啊鑫
2025-01-22 eb744ecfecc0f1b6d9c0999c65bc740d93e30eda
StandardPda/MES.Service/service/BasicData/ProductionOrderManager.cs
@@ -1,9 +1,7 @@
using System.Globalization;
using AngleSharp.Dom;
using MES.Service.DB;
using MES.Service.Dto.webApi;
using MES.Service.Modes;
using MES.Service.util;
using SqlSugar;
namespace MES.Service.service.BasicData;
@@ -131,8 +129,12 @@
            //ParseDateTime(erpDto.FPlanFinishDate) ?? null,
            PLANCONFIRMATION = erpDto.PlanConfirmation,
            StockInlimith = erpDto.FStockInLimitH,//Convert.ToDecimal(erpDto.FStockInLimitH),
            StockInlimitl = erpDto.FStockInLimitL,//Convert.ToDecimal(erpDto.FStockInLimitL),
            StockInlimith =
                erpDto
                    .FStockInLimitH, //Convert.ToDecimal(erpDto.FStockInLimitH),
            StockInlimitl =
                erpDto
                    .FStockInLimitL, //Convert.ToDecimal(erpDto.FStockInLimitL),
            Mtono = erpDto.FMTONO,
            Lot = erpDto.FLot,
            Caa013 = erpDto.FBomId,
@@ -154,7 +156,9 @@
            Erpid = Convert.ToDecimal(erpDto.FID),
            FSUBENTRYID = erpDto.FSUBENTRYID,
            FPURORDERNO = erpDto.FPurOrderNo,
            FPURORDERENTRYSEQ = erpDto.FPurOrderEntrySeq,//Convert.ToInt32(erpDto.FPurOrderEntrySeq),
            FPURORDERENTRYSEQ =
                erpDto
                    .FPurOrderEntrySeq, //Convert.ToInt32(erpDto.FPurOrderEntrySeq),
            FBASESTOCKINQTY = Convert.ToDecimal(erpDto.FBaseStockInQty),
            FBASENOSTOCKINQTY = Convert.ToDecimal(erpDto.FBaseNoStockInQty),
            FINSTOCKOWNERID = erpDto.FInStockOwnerId,
@@ -227,7 +231,8 @@
                ErpProductionEntryCode = erpDto.FSUBENTRYID
            };
            var single = base.GetSingle(it => it.Erpid == productionOrderSub.Erpid);
            var single =
                base.GetSingle(it => it.Erpid == productionOrderSub.Erpid);
            if (single != null) productionOrderSub.Id = single.Id;
            productionOrderSubList.Add(productionOrderSub);