ReplenishmentController.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using Business.Domain;
  2. using Business.Dto;
  3. using Business.ReplenishmentManagement;
  4. using Business.ResourceExamineManagement;
  5. using Business.ResourceExamineManagement.Dto;
  6. using Microsoft.AspNetCore.Mvc;
  7. using MongoDB.Bson.IO;
  8. using Newtonsoft.Json;
  9. using Org.BouncyCastle.Asn1.Ocsp;
  10. using System;
  11. using System.Collections.Generic;
  12. using System.ComponentModel.Design;
  13. using System.Linq;
  14. using System.Text;
  15. using System.Threading.Tasks;
  16. using Volo.Abp;
  17. using Volo.Abp.AspNetCore.Mvc;
  18. namespace Business.Controllers
  19. {
  20. /// <summary>
  21. /// 补货模型
  22. /// </summary>
  23. [RemoteService]
  24. [Area("Business")]
  25. [Route("api/business/replenishment")]
  26. public class ReplenishmentController : AbpController
  27. {
  28. private readonly IReplenishmentAppService _ReplenishmentAppService;
  29. public ReplenishmentController(IReplenishmentAppService ReplenishmentAppService)
  30. {
  31. _ReplenishmentAppService = ReplenishmentAppService;
  32. }
  33. ///// <summary>
  34. ///// 计划工单齐套检查
  35. ///// </summary>
  36. ///// <param name="workOrd"></param>
  37. ///// <returns></returns>
  38. //[HttpPost]
  39. //[Route("PlanOrderResourceCheck")]
  40. //public Task<string> PlanOrderResourceCheck(string companyid)
  41. //{
  42. // return _ReplenishmentAppService.PlanOrderResourceCheck(companyid);
  43. //}
  44. /// <summary>
  45. /// 调整ROP和最高库存水位
  46. /// </summary>
  47. /// <param name="input"></param>
  48. /// <returns></returns>
  49. [HttpPost]
  50. [Route("calcrop")]
  51. public Task<string> CalcROP(InputDto input)
  52. {
  53. return _ReplenishmentAppService.CalcROP(input);
  54. }
  55. ///// <summary>
  56. ///// 更新周计划
  57. ///// </summary>
  58. ///// <param name="input"></param>
  59. ///// <returns></returns>
  60. //[HttpPost]
  61. //[Route("weekplan")]
  62. //public Task<string> WeekPlan(InputDto input)
  63. //{
  64. // return _ReplenishmentAppService.WeekPlan(input);
  65. //}
  66. }
  67. }