From e98b23d77d1b2e5271bbe3497ad16657001d2457 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期三, 20 十一月 2024 15:09:15 +0800 Subject: [PATCH] 解绑条码删除包装信息 --- Tiger.Business.MES/Common/WorkBatch.cs | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Tiger.Business.MES/Common/WorkBatch.cs b/Tiger.Business.MES/Common/WorkBatch.cs index 6e24526..d431e97 100644 --- a/Tiger.Business.MES/Common/WorkBatch.cs +++ b/Tiger.Business.MES/Common/WorkBatch.cs @@ -625,6 +625,7 @@ //BIZ_MES_WO_SN db.Updateable<BIZ_MES_WO_SN>(user) .SetColumns(q => q.STATUS == BIZ_MES_WO_SN.STATUSs.Offline.GetValue()) + .SetColumns(q => q.TRAY_SN == null).SetColumns(q => q.OUTER_SN == null) .Where(q => q.WORK_ORDER == wo.ORDER_NO && wipIDs.Contains(q.WIP_ID)) .ExecuteCommand(); //MES_WIP_DATA & MES_WIP_HIS @@ -632,6 +633,8 @@ foreach (var wipSN in wipList.Where(q => q.STATUS != MES_WIP_DATA.STATUSs.Offline.GetValue())) { wipSN.STATUS = MES_WIP_DATA.STATUSs.Offline.GetValue(); + wipSN.TRAY_SN = wipSN.INNER_SN = wipSN.CARTON_SN = wipSN.PALLET_SN = wipSN.SHIPPING_ORDER = null; + wipSN.FINISHED_FLAG = wipSN.HOLD_FLAG = "N"; wipSN.UNBIND_FLAG = "Y"; wipSN.NODE_ID = ""; wipSN.NODE_NAME = "涓嬬嚎閫�搴�"; -- Gitblit v1.9.3