| | |
| | | |
| | | if (mesRohInDatas.Count > 0) |
| | | db.Deleteable<ProductionOrderSub>() |
| | | .Where(s => s.ErpHeaderId == mesRohIn.ErpId).ExecuteCommand(); |
| | | .Where(s => s.ErpProductionEntryCode == mesRohIn.ErpProductionEntryCode).ExecuteCommand(); |
| | | |
| | | var orUpdate = base.Insert(mesRohIn); |
| | | var baOrUpdate = _productionOrderSubManager.InsertRange(mesRohInDatas); |
| | | var orUpdate = db.Insertable(mesRohIn) |
| | | .IgnoreColumns(true).ExecuteCommand() > 0; |
| | | |
| | | |
| | | var baOrUpdate = db.Insertable(mesRohInDatas).PageSize(1) |
| | | .IgnoreColumnsNull() |
| | | .ExecuteCommand() > 0; |
| | | |
| | | if (orUpdate && baOrUpdate) return true; |
| | | |
| | | throw new NotImplementedException("插入或更新失败"); |
| | |
| | | ClosingPerson = erpDto.FFORCECLOSERID, |
| | | ClosingType = erpDto.FCloseType, |
| | | Remarks = erpDto.FDescription, |
| | | ErpId = erpDto.FPPOMID, |
| | | ErpId = erpDto.FID, |
| | | ErpProductionEntryCode = erpDto.FSUBENTRYID, |
| | | Purchaseorderno = erpDto.FPurOrderNo, |
| | | Purchaseorderentryseq = Convert.ToInt32(erpDto.FPurOrderEntrySeq), |
| | |
| | | Typea = erpDto.TypeA, |
| | | }; |
| | | |
| | | var single = base.GetSingle(it => it.ErpId == erpDto.FPPOMID); |
| | | var single = base.GetSingle(it => it.ErpId == erpDto.FID); |
| | | if (single != null) productionOrder.Guid = single.Guid; |
| | | |
| | | return productionOrder; |