| | |
| | | private bool SaveOrUpdateData(SqlSugarScope db, ProductionOrder mesRohIn, |
| | | List<ProductionOrderSub> mesRohInDatas, string type) |
| | | { |
| | | if(type == "3") |
| | | if(type == "3" || (mesRohIn.DocumentStatus != null && mesRohIn.DocumentStatus != "C")) |
| | | { |
| | | mesRohIn.Typea = "3"; // 新增字段赋值 |
| | | mesRohIn.OrderNo = mesRohIn.OrderNo + "F"; |
| | | mesRohIn.OrderNo = mesRohIn.OrderNo + "F" + mesRohIn.ErpProductionEntryCode; |
| | | } |
| | | |
| | | if (StringUtil.CheckGuid(mesRohIn.Guid)) |
| | |
| | | }; |
| | | |
| | | var single = base.GetSingle(it => it.ErpProductionEntryCode == erpDto.FSUBENTRYID); |
| | | if (single != null) productionOrder.Guid = single.Guid; |
| | | if (single != null) |
| | | { |
| | | productionOrder.Guid = single.Guid; |
| | | productionOrder.AuditDate = single.AuditDate; |
| | | productionOrder.AuditStatus = single.AuditStatus; |
| | | productionOrder.Auditor = single.Auditor; |
| | | } |
| | | |
| | | return productionOrder; |
| | | } |