using Business.Domain; using Business.Dto; using Business.ReplenishmentManagement; using Business.ResourceExamineManagement; using Business.ResourceExamineManagement.Dto; using Microsoft.AspNetCore.Mvc; using MongoDB.Bson.IO; using Newtonsoft.Json; using Org.BouncyCastle.Asn1.Ocsp; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Text; using System.Threading.Tasks; using Volo.Abp; using Volo.Abp.AspNetCore.Mvc; namespace Business.Controllers { /// /// 补货模型 /// [RemoteService] [Area("Business")] [Route("api/business/replenishment")] public class ReplenishmentController : AbpController { private readonly IReplenishmentAppService _ReplenishmentAppService; public ReplenishmentController(IReplenishmentAppService ReplenishmentAppService) { _ReplenishmentAppService = ReplenishmentAppService; } ///// ///// 计划工单齐套检查 ///// ///// ///// //[HttpPost] //[Route("PlanOrderResourceCheck")] //public Task PlanOrderResourceCheck(string companyid) //{ // return _ReplenishmentAppService.PlanOrderResourceCheck(companyid); //} /// /// 调整ROP和最高库存水位 /// /// /// [HttpPost] [Route("calcrop")] public Task CalcROP(InputDto input) { return _ReplenishmentAppService.CalcROP(input); } /// /// 根据月计划生产周计划 /// /// /// [HttpPost] [Route("calcweekplan")] public Task CalcCalcWeekPlanROP(InputDto input) { return _ReplenishmentAppService.CalcWeekPlan(input); } ///// ///// 更新周计划 ///// ///// ///// //[HttpPost] //[Route("weekplan")] //public Task WeekPlan(InputDto input) //{ // return _ReplenishmentAppService.WeekPlan(input); //} /// /// 刷新年度销售预测 /// /// /// [HttpPost] [Route("demandanalysis")] public Task DemandAnalysis(InputDto input) { return _ReplenishmentAppService.DemandAnalysis(input); } /// /// 定时任务长周期物料 /// /// /// [HttpGet] [Route("calclongperioditempr")] public Task CalcLongPeriodItemPR(InputDto input) { return _ReplenishmentAppService.CalcLongPeriodItemPR(input); } /// /// 生成整体需求计划 /// /// /// [HttpPost] [Route("overalldemandplan")] //public Task OverallDemandPlan(InputDto input) //{ // return _ReplenishmentAppService.OverallDemandPlan(input); //} /// /// 年度生产大纲 /// /// /// [HttpPost] [Route("SaveAnnualProductionOutline")] public Task SaveAnnualProductionOutline(InputDto input) { return _ReplenishmentAppService.SaveAnnualProductionOutline(input); } } }