| | |
| | | using System.Diagnostics.Eventing.Reader; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Common.AllocateEnum; |
| | | using WIDESEA_Common.OrderEnum; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Attributes; |
| | | using WIDESEA_Core.BaseController; |
| | |
| | | BusinessType = model.BusinessType, |
| | | FactoryArea = model.FactoryArea, |
| | | IsBatch = model.IsBatch, |
| | | CreateType = model.OperationType, |
| | | CreateType =(int)OrderCreateTypeEnum.UpperSystemPush, |
| | | FromWarehouse = model.fromWarehouse, |
| | | ToWarehouse = model.toWarehouse, |
| | | Details = new List<Dt_AllocateOrderDetail>() |
| | |
| | | ValidDate = barcodeDto.validDate, |
| | | BoxSN = barcodeDto.BoxSN |
| | | }; |
| | | if (businessType == BusinessTypeEnum.æºä»è°å¤é¨ä»åº || businessType == BusinessTypeEnum.æºä»è°æºä») |
| | | { |
| | | orderDetail.WarehouseCode = model.fromWarehouse; |
| | | } |
| | | allocateOrder.Details.Add(orderDetail); |
| | | } |
| | | } |
| | |
| | | BarcodeQty=detailDto.Qty, |
| | | MaterielName = materialName |
| | | }; |
| | | if (businessType == BusinessTypeEnum.æºä»è°å¤é¨ä»åº || businessType == BusinessTypeEnum.æºä»è°æºä») |
| | | { |
| | | orderDetail.WarehouseCode = model.fromWarehouse; |
| | | } |
| | | allocateOrder.Details.Add(orderDetail); |
| | | } |
| | | allocateOrder.Details.AddRange(allocateOrder.Details); |
| | | } |
| | | var content = await Service.ReceiveAllocateOrder(allocateOrder, model.OperationType); |
| | | |