//new PreOrderService().ManualAllocationJson(new ManualAllocationRequest() //{ PodRequest = pod, ID = Convert.ToInt64(ID), CustomerId = CustomerId, Creator = base.UserInfo.Name, Criterion = Criterion }); public override void CustomerDefinedSettledAllocate() { if (AllocateMode == "自动分配") { this.SqlProc = "Proc_WMS_AutomatedOutbound_Hilti"; PreOrderService service = new PreOrderService(); var response = service.AutomaticAllocation(List, UserName, AllocateType, SqlProc); if (!response.IsSuccess) { //throw response.Exception; this.DisInfo = null; } this.DisInfo = response.Result.DisInfo; } else if (AllocateMode == "指定分配") { this.SqlProc = "Proc_WMS_AssignedOutbound_Hilti"; PreOrderService service = new PreOrderService(); var response = service.ManualAllocationJson(new ManualAllocationRequest() { PodRequest = Pod, ID = ID, CustomerId = CustomerId, Creator = UserName, Criterion = AllocateType, SqlProc = SqlProc }); if (!response.IsSuccess) { this.DisInfo = null; } this.DisInfo = response.Result.DisInfo; } else { this.SqlProc = "Proc_WMS_ManualAllocation_Hilti"; PreOrderService service = new PreOrderService(); var response = service.ManualAllocationJson(new ManualAllocationRequest() { PodRequest = Pod, ID = ID, CustomerId = CustomerId, Creator = UserName, Criterion = AllocateType }); if (!response.IsSuccess) { this.DisInfo = null; } this.DisInfo = response.Result.DisInfo; } }
//new PreOrderService().ManualAllocationJson(new ManualAllocationRequest() //{ PodRequest = pod, ID = Convert.ToInt64(ID), CustomerId = CustomerId, Creator = base.UserInfo.Name, Criterion = Criterion }); public override void CustomerDefinedSettledAllocate() { PreOrderService service = new PreOrderService(); Response <PreOrderAndPreOrderDetail> response = new Response <PreOrderAndPreOrderDetail>(); switch (AllocateMode) { case "自动分配": this.SqlProc = "Proc_WMS_AutomatedOutbound_Total"; response = service.AutomaticAllocation(List, UserName, AllocateType, SqlProc); break; case "手动分配": this.SqlProc = "Proc_WMS_ManualAllocation_Total"; response = service.ManualAllocationJson(new ManualAllocationRequest() { PodRequest = Pod, ID = ID, CustomerId = CustomerId, Creator = UserName, Criterion = AllocateType }); break; case "现场分配": this.SqlProc = "Proc_WMS_ManualAllocation_Total"; response = service.WorkersAlloctions(new ManualAllocationRequest() { PodRequest = Pod, ID = ID, CustomerId = CustomerId, Creator = UserName, Criterion = AllocateType }); break; default: break; } if (!response.IsSuccess) { this.DisInfo = null; } this.DisInfo = response.Result.DisInfo; }