| | |
| | | //allocateOrder.OrderType = businessType == BusinessTypeEnum.æºä»è°å¤é¨ä»åº ? 215 : 115; |
| | | if (businessType == BusinessTypeEnum.æºä»è°å¤é¨ä»åº) |
| | | { |
| | | allocateOrder.OrderType = 115; |
| | | allocateOrder.OrderType = 215; |
| | | } |
| | | else if (businessType == BusinessTypeEnum.å¤é¨ä»åºè°æºä») |
| | | { |
| | | allocateOrder.OrderType = 215; |
| | | allocateOrder.OrderType = 115; |
| | | } |
| | | |
| | | foreach (var detailDto in model.Details) |
| | | { |
| | | if (businessType == BusinessTypeEnum.æºä»è°å¤é¨ä»åº && (detailDto.Barcodes == null || !detailDto.Barcodes.Any())) |
| | | if (businessType == BusinessTypeEnum.å¤é¨ä»åºè°æºä» && (detailDto.Barcodes == null || !detailDto.Barcodes.Any())) |
| | | { |
| | | return WebResponseContent.Instance.Error($"æ¡ç ä¸è½ä¸ºç©º"); |
| | | } |
| | |
| | | MaterielCode = detailDto.MaterialCode, |
| | | LineNo = detailDto.LineNo, |
| | | OrderQuantity = detailDto.Qty, |
| | | Unit = detailDto.Unit |
| | | Unit = detailDto.Unit, |
| | | BarcodeUnit =detailDto.Unit, |
| | | BarcodeQty=detailDto.Qty, |
| | | |
| | | }; |
| | | allocateOrder.Details.Add(orderDetail); |
| | | } |