| | |
| | | var single = base.GetSingle(it => it.ErpId == erpDto.ErpID); |
| | | if (single != null) salesOrder.Id = single.Id; |
| | | |
| | | if (salesOrder.ErpId is null || salesOrder.ErpId=="") |
| | | { |
| | | throw new NotImplementedException( |
| | | $"表头ErpID不能为空"); |
| | | } |
| | | return salesOrder; |
| | | } |
| | | |
| | |
| | | FLINE_NO = erpDto.FLINE_NO |
| | | |
| | | }; |
| | | |
| | | if (salesOrderSub.ErpLineId is null || salesOrderSub.ErpLineId=="") |
| | | { |
| | | throw new NotImplementedException( |
| | | $"明细行ErpID(ERP行ID)不能为空"); |
| | | } |
| | | if (salesOrderSub.ErpHeadId is null || salesOrderSub.ErpHeadId == "") |
| | | { |
| | | throw new NotImplementedException( |
| | | $"明细行EHID(ERP头ID)不能为空"); |
| | | } |
| | | var single = _SalesDeliveryDetailManager.GetSingle(it => |
| | | it.ErpLineId == salesOrderSub.ErpLineId); |
| | | if (single != null) salesOrderSub.Id = single.Id; |