From f0c7f4ba26a8bcb4e551c50d6d9468edb542c063 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期日, 27 十月 2024 14:07:05 +0800
Subject: [PATCH] 优化手动结束包装支持打印入库标签

---
 Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs b/Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs
index 84c318f..6fbe831 100644
--- a/Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs
+++ b/Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs
@@ -68,6 +68,14 @@
         {
             var action = new ApiAction<SubmitOutput>(new SubmitOutput());
 
+            //璁剧疆鎵撳嵃鍙橀噺鍊�
+            Label = CurPosition.SetLabelVariables(LabelPV, Label, this);
+            if (CurPosition.Context.ContainsKey("CurPackage"))
+            {
+                (CurPosition.Context["CurPackage"] as WipPkg).InStoreLabel = Label;
+            }
+
+            //鍒ゆ柇鏄惁闇�瑕佹墦鍗板叆搴撴爣绛�
             NoNeedInStorePrint = (!CurPosition.Context.ContainsKey("CurPackage") || !(CurPosition.Context["CurPackage"] as WipPkg).IsFinished) 
                                     || (CurPosition is YadaPacking && (CurPosition as YadaPacking).IsPrintCustomerLabel);
             if (NoNeedInStorePrint)
@@ -76,8 +84,6 @@
             } 
             else
             {
-	            //璁剧疆鎵撳嵃鍙橀噺鍊�
-	            Label = CurPosition.SetLabelVariables(LabelPV, Label, this);
 	            action.Data.Data = Label;
 	
 	            //濡傛灉杩斿洖鎴愬姛鍒欒涓哄綋鍓嶈涓哄彲浠ュ紑濮嬫墽琛岋紝鍚﹀垯杩斿洖澶辫触

--
Gitblit v1.9.3