11
啊鑫
2024-12-18 6fd758e19542fe3879ac182ce30c0cd39af87237
MES.Service/service/BasicData/ProductionOrderManager.cs
@@ -148,7 +148,15 @@
            Purchaseorderentryseq = Convert.ToInt32(erpDto.FPurOrderEntrySeq),
            Stockinqty = Convert.ToDecimal(erpDto.FBaseStockInQty),
            Nostockinqty = Convert.ToDecimal(erpDto.FBaseNoStockInQty),
            Stockowner = erpDto.FInStockOwnerId
            Stockowner = erpDto.FInStockOwnerId,
            PlanConfirmation = erpDto.PlanConfirmation != null
                ? DateTime.ParseExact(erpDto.PlanConfirmation,
                    "yyyy-MM-dd HH:mm:ss", null)
                : null,
            ReqSrc = erpDto.FReqSrc,
            SrcSplitSeq = erpDto.SrcSplitSeq,
            Typeb = erpDto.TypeB,
            Typea = erpDto.TypeA,
        };
        var single = base.GetSingle(it => it.ErpId == erpDto.FPPOMID);
@@ -190,6 +198,17 @@
                ItemNo = erpDto.FReplaceGroup,
                OwnerType = erpDto.FOwnerTypeId,
                Owner = erpDto.FOwnerID2,
                Fisgetscrap = erpDto.FISGETSCRAP,
                Fiskeycomponent = erpDto.FISKEYCOMPONENT,
                Fsrctransorgid = erpDto.FSRCTRANSORGID,
                Fsrctransstockid = erpDto.FSRCTRANSSTOCKID,
                Fstockstatusid = erpDto.FSTOCKSTATUSID,
                Fneeddate = erpDto.FNEEDDATE != null
                    ? DateTime.ParseExact(erpDto.FNEEDDATE,
                        "yyyy-MM-dd HH:mm:ss", null)
                    : null,
                Freservetype = erpDto.FRESERVETYPE,
                Fmemo = erpDto.FMEMO,
                ErpProductionEntryCode = erpDto.FSUBENTRYID
            };