From 4a3788499301329d245b07bf2ba0213cf9fba540 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 13 八月 2024 21:03:29 +0800 Subject: [PATCH] 产品、工单绑定工艺路线更新 --- Tiger.Business.MES/Transaction/CollectNode.cs | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Tiger.Business.MES/Transaction/CollectNode.cs b/Tiger.Business.MES/Transaction/CollectNode.cs index 3c688ed..4856df7 100644 --- a/Tiger.Business.MES/Transaction/CollectNode.cs +++ b/Tiger.Business.MES/Transaction/CollectNode.cs @@ -181,6 +181,7 @@ var wipSN = new MES_WIP_DATA() { SN = input.SN, + FLOW_SN = input.SN, STATUS = MES_WIP_DATA.STATUSs.Init.GetValue(), ITEM_CODE = CurBatch.WO.ITEM_CODE, WORK_ORDER = CurBatch.Batch.ORDER_NO, @@ -206,11 +207,12 @@ //缁戝畾鏉$爜鍒板伐鍗� foreach (var wipSN in wipSNs) { - if (!CurBatch.WoSNs.Any(q => q.SN == wipSN.SN)) + if (!CurBatch.WoSNs.Any(q => q.WIP_ID == wipSN.ID)) { CurBatch.WoSNs.Add(new() { WORK_ORDER = CurBatch.Batch.ORDER_NO, + WIP_ID = wipSN.ID, SN = wipSN.SN, TRAY_SN = wipSN.TRAY_SN, STATUS = BIZ_MES_WO_SN.STATUSs.NotInput.GetValue(), @@ -295,8 +297,10 @@ DFT_CODE = dft.DFT_CODE, DFT_NAME = dft.DFT_NAME, DFT_LEVEL = dft.DFT_LEVEL, + FLOW_SN = wipSN.FLOW_SN, TRAY_SN = wipSN.TRAY_SN, - CONTAINER_SN = wipSN.CONTAINER_SN, + INNER_SN = wipSN.INNER_SN, + CARTON_SN = wipSN.CARTON_SN, PALLET_SN = wipSN.PALLET_SN, INV_FLAG = wipSN.INV_FLAG, OPERATION_TIME = DateTime.Now, -- Gitblit v1.9.3