From 459d4a2b2bd5390a5d02947e75a934207fb9ad0c Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期一, 24 三月 2025 17:08:39 +0800 Subject: [PATCH] 更新U9实体,新增业务实体 --- Tiger.Business.WMS/T100ToWMS/ProductInputBusiness.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tiger.Business.WMS/T100ToWMS/ProductInputBusiness.cs b/Tiger.Business.WMS/T100ToWMS/ProductInputBusiness.cs index a7ec6b8..e8b4682 100644 --- a/Tiger.Business.WMS/T100ToWMS/ProductInputBusiness.cs +++ b/Tiger.Business.WMS/T100ToWMS/ProductInputBusiness.cs @@ -109,12 +109,12 @@ snLst.Add(new BIZ_WMS_TRANSFER_SN() { AUTH_ORG = warehouse.OrgCode, - BILLCODE = input.BillCode, + ORDER_NO = input.BillCode, SN = item.SN, STATUS = WMS_ITEM.STATUSs.WaitIn.GetValue(), ITEM_CODE = snData.Where(i => i.SN == item.SN).FirstOrDefault()?.ITEM_CODE, QTY = item.Qty, - BILLLINE = dicitemcode[item.ItemCode] + ORDER_LINE = dicitemcode[item.ItemCode] }); } } @@ -209,7 +209,7 @@ if (snLst.Any()) { - var history = db.Queryable<BIZ_WMS_TRANSFER_SN>().Where(i => i.BILLCODE == input.BillCode).ToList(); + var history = db.Queryable<BIZ_WMS_TRANSFER_SN>().Where(i => i.ORDER_NO == input.BillCode).ToList(); if (history.Any()) { db.Deleteable(history).ExecuteCommand(); @@ -495,7 +495,7 @@ sqn++; var itemcode = dic[sqn]; var whUnit = whUnits.FirstOrDefault(q => q.WH_CODE + "@" + q.LOCATION_CODE == input.WarehouseCode + "@" + item.Location); - var mesCount = mesData.Count != 0 ? (mesData.FirstOrDefault(i => i.SHIPPING_SN == item.SN).SO_NUMBER).ToDecimal() : 0; + var mesCount = mesData.Count != 0 ? (mesData.FirstOrDefault(i => i.SHIPPING_SN == item.SN).SO_NUMBER).ToDouble() : 0; if (whUnit.IsNullOrEmpty()) { Logger.Scheduler.Info($"褰撳墠宸ュ崟锛歿input.WorkOrder} 鏈兘鏌ヨ鍒板綋鍓嶅簱浣�/鍌ㄤ綅{input.WarehouseCode}/{item.Location}淇℃伅锛岃纭璇ュ簱浣�/鍌ㄤ綅鏄惁瀛樺湪锛�"); @@ -579,7 +579,7 @@ #region 娣诲姞 SN-Box鏁版嵁 var whUnit = whUnits.FirstOrDefault(q => q.WH_CODE + "@" + q.LOCATION_CODE == input.WarehouseCode + "@" + item.Location); - var mesCount = mesData.Count != 0 ? (mesData.FirstOrDefault(i => i.SHIPPING_SN == item.SN).SO_NUMBER).ToDecimal() : 0; + var mesCount = mesData.Count != 0 ? (mesData.FirstOrDefault(i => i.SHIPPING_SN == item.SN).SO_NUMBER).ToDouble() : 0; pkgModel.Add(new WMS_ITEM_PKG() { AUTH_ORG = inData?.AUTH_ORG, @@ -876,7 +876,7 @@ /// <param name="input"></param> /// <param name="Count"></param> /// <returns></returns> - public List<BIZ_ERP_PROD_IN_DTL> ChangeDTL(List<BIZ_ERP_PROD_IN_DTL> input, decimal Count) + public List<BIZ_ERP_PROD_IN_DTL> ChangeDTL(List<BIZ_ERP_PROD_IN_DTL> input, double Count) { var model = new List<BIZ_ERP_PROD_IN_DTL>(); var data = input.Where(i => i.INSTOCKQTY < i.PRQTY).OrderBy(i => i.BILLLINE).ToList(); -- Gitblit v1.9.3