From e749bf256738008aa9283c3f8ac4241b374191a0 Mon Sep 17 00:00:00 2001 From: 展杰 <1240968267@qq.com> Date: 星期三, 07 八月 2024 10:56:19 +0800 Subject: [PATCH] 夏蒙 --- MES.Service/service/BasicData/MesRohInManager.cs | 47 ++++++++++++++++++++++------------------------- 1 files changed, 22 insertions(+), 25 deletions(-) diff --git a/MES.Service/service/BasicData/MesRohInManager.cs b/MES.Service/service/BasicData/MesRohInManager.cs index 35acb3c..cd79236 100644 --- a/MES.Service/service/BasicData/MesRohInManager.cs +++ b/MES.Service/service/BasicData/MesRohInManager.cs @@ -14,25 +14,18 @@ { var rohInErpRohIn = rohIn.ErpRohIn; var mesRohIn = GetMesRohIn(rohInErpRohIn); - var mesRohInDatas = - GetMesRohInDatas(rohIn.ErpRohinDatas, rohInErpRohIn.Type); + var mesRohInDatas = GetMesRohInDatas(rohIn.ErpRohinDatas, rohInErpRohIn.Type); return UseTransaction(db => { switch (rohInErpRohIn.Type) { - // case "2": - // return InsertData(db, mesRohIn, mesRohInDatas, - // rohInErpRohIn.FBILLTYPE) - // ? 1 - // : 0; - case "3": - return UpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0; case "2": case "4": - return SaveOrUpdateData(db, mesRohIn, mesRohInDatas) - ? 1 - : 0; + case "5": + return SaveOrUpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0; + case "3": + return UpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0; default: throw new NotImplementedException( $"type娌℃湁{rohInErpRohIn.Type}杩欎釜绫诲瀷"); @@ -147,13 +140,13 @@ mesRohIn.PurchaseGroup = rohIn.FPurchaserGroupId; mesRohIn.QtyAcceptance = rohIn.Facctype; mesRohIn.Purchaser = rohIn.FPurchaserId; - mesRohIn.QualityReq = rohIn.F_UNW_Remarks_zlyq; + //mesRohIn.QualityReq = rohIn.F_UNW_Remarks_zlyq; mesRohIn.SettlementParty = rohIn.FSettleId; mesRohIn.PaymentParty = rohIn.FChargeId; - mesRohIn.Email = rohIn.FProviderEMail; - mesRohIn.TransportMethod = rohIn.F_UNW_Text_ysfs; - mesRohIn.Remarks = rohIn.F_UNW_BZ; - mesRohIn.FixtureMoldProcurement = rohIn.F_UNW_Combo_zjmj; + // mesRohIn.Email = rohIn.FProviderEMail; + // mesRohIn.TransportMethod = rohIn.F_UNW_Text_ysfs; + mesRohIn.Remarks = rohIn.FHEADNOTE; + // mesRohIn.FixtureMoldProcurement = rohIn.F_UNW_Combo_zjmj; mesRohIn.CancellationStatus = rohIn.FCancelStatus; mesRohIn.CancellationPerson = rohIn.FCancellerId; @@ -192,13 +185,12 @@ EbelnK3id = Convert.ToDecimal(s.id), ErpId = Convert.ToDecimal(s.Eid), BillNo = s.FBillNo, - SalesOrderId = s.F_UNW_Text_xsddh, + SalesOrderId=s.FDEMANDBILLNO, + OrderLineId=s.FSEQ, ItemId = s.FMaterialId, PurchaseUnit = s.FUnitId, PurchaseQty = Convert.ToDecimal(s.FQty), InventoryUnit = s.FStockUnitID, - PricingUnit = s.FPriceUnitId, - PricingQty = Convert.ToDecimal(s.FPriceUnitQty), DeliveryDate = s.FDeliveryDate != null ? DateTime.ParseExact(s.FDeliveryDate, "yyyy-MM-dd HH:mm:ss", null) @@ -212,7 +204,7 @@ "yyyy-MM-dd HH:mm:ss", null) : null, IsGift = s.FGiveAway, - Remarks = s.FEntryNote, + Remarks = s.Fnote, SupplierItemCode = s.FSupMatId, SupplierItemName = s.FSupMatName, OutsourcingOrderId = s.FSUBREQBILLNO, @@ -246,10 +238,15 @@ DemandSource = s.FDEMANDTYPE, DemandDocumentId = s.FDEMANDBILLNO, DemandDocumentLineId = s.FDEMANDBILLENTRYSEQ, - PurchaseOrderLineNumber = s.PurchaseOrderLineNumber, - Demand = s.Demand, - Receiving = s.Receiving, - Settlement = s.Settlement + DemandOrg = s.FRequireOrgId, + ReceivingOrg = s.FReceiveOrgId, + SettlementOrg = s.FSETTLEORGID, + PurchaseOrderLineNumber = s.FSEQ, + Demand =s.FRequireOrgId, + Receiving = s.FReceiveOrgId, + Settlement =s.FSETTLEORGID, + DemandDepartment = s.FRequireDeptId, + ReceivingDepartment = s.FReceiveDeptId }; var single = rohInDataManager.GetSingle(it => -- Gitblit v1.9.3