From e990cf78de3e145f4a4b1493901c8d8caf95e53d Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 05 十二月 2024 11:50:48 +0800 Subject: [PATCH] 解绑优化 --- Tiger.Business.MES/Transaction/YadaPacking.cs | 26 ++++---------------------- 1 files changed, 4 insertions(+), 22 deletions(-) diff --git a/Tiger.Business.MES/Transaction/YadaPacking.cs b/Tiger.Business.MES/Transaction/YadaPacking.cs index afed3d3..d6f5e44 100644 --- a/Tiger.Business.MES/Transaction/YadaPacking.cs +++ b/Tiger.Business.MES/Transaction/YadaPacking.cs @@ -70,10 +70,10 @@ // //action.LocaleMsg = new("MES.Transaction.PackingNode.Submit.QtyError", input.Qty); // return SetOutPutMqttMsg(action, input.Locale); //} - if (input.Options.ContainsKey("IsPrintCustomerLabel")) - { - IsPrintCustomerLabel = input.Options["IsPrintCustomerLabel"].ToBoolean(); - } + //if (input.Options.ContainsKey("IsPrintCustomerLabel")) + //{ + // IsPrintCustomerLabel = input.Options["IsPrintCustomerLabel"].ToBoolean(); + //} //if (input.Options.ContainsKey("ShippingOrder")) //{ @@ -349,7 +349,6 @@ FLOW_SN = input.SN, STATUS = MES_WIP_DATA.STATUSs.Init.GetValue(), ITEM_CODE = CurBatch.WO.ITEM_CODE, - QTY = 1, WORK_ORDER = CurBatch.Batch.ORDER_NO, BATCH_NO = CurBatch.Batch.BATCH_NO, FTY_CODE = CurFactory.FTY_CODE, @@ -423,25 +422,9 @@ ShippingOrder = IsPrintCustomerLabel ? ship?.ShipDoc ?? "" : ""; //缂撳瓨鍑鸿揣鏁伴噺 Context.SetOrAdd("CurShipQty", CurShipQty); - //if (Context.ContainsKey("CurShipQty")) - //{ - // Context["CurShipQty"] = CurShipQty; - //} - //else - //{ - // Context.Add("CurShipQty", CurShipQty); - //} //缂撳瓨鍑鸿揣绠辨暟 Context.SetOrAdd("CurWaitShipmentCarton", WaitShipmentCarton); Context.SetOrAdd("CurWaitShipment", WaitShipment); - //if (Context.ContainsKey("CurWaitShipmentCarton")) - //{ - // Context["CurWaitShipmentCarton"] = WaitShipmentCarton; - //} - //else - //{ - // Context.Add("CurWaitShipmentCarton", WaitShipmentCarton); - //} debug.Log(new StackFrame(true), "***** 12", info => { ConsoleExt.WriteLine(info.ToString()); }); //缁戝畾鏉$爜鍒板伐鍗� @@ -457,7 +440,6 @@ FLOW_SN = wipSN.SN, TRAY_SN = wipSN.TRAY_SN, STATUS = BIZ_MES_WO_SN.STATUSs.NotInput.GetValue(), - QTY = 1, }); } } -- Gitblit v1.9.3