From df3b96fa372f3e7bac5867fdec643f2e931e32a7 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期五, 11 十月 2024 20:17:09 +0800
Subject: [PATCH] Merge branch 'master' of http://47.115.28.255:8110/r/TigerClouds-Tech/Server/TigerApi6_2024

---
 Tiger.Business.MES/WorkAction/PrintLabel.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/Tiger.Business.MES/WorkAction/PrintLabel.cs b/Tiger.Business.MES/WorkAction/PrintLabel.cs
index ba7dd94..a818341 100644
--- a/Tiger.Business.MES/WorkAction/PrintLabel.cs
+++ b/Tiger.Business.MES/WorkAction/PrintLabel.cs
@@ -42,6 +42,9 @@
 
             Label = Biz.Db.Queryable<BAS_LABEL_TEMP>().Where(q => q.LABEL_CODE == setting.LABEL_CODE).IncludesAllFirstLayer().First();
             LabelPV = Biz.Db.Queryable<BAS_LABEL_PV>().ToList();
+
+            CurStep.Message = Biz.L("绛夊緟鏍囩鎵撳嵃");
+            CurStep.Status = StepStatus.Normal;
         }
 
         /// <summary>
@@ -64,7 +67,7 @@
             var action = new ApiAction<SubmitOutput>(new SubmitOutput());
 
             //璁剧疆鎵撳嵃鍙橀噺鍊�
-            Label = CurPosition.SetLabelVariables(LabelPV, Label);
+            Label = CurPosition.SetLabelVariables(LabelPV, Label, this);
             action.Data.Data = Label;
 
             //濡傛灉杩斿洖鎴愬姛鍒欒涓哄綋鍓嶈涓哄彲浠ュ紑濮嬫墽琛岋紝鍚﹀垯杩斿洖澶辫触
@@ -152,6 +155,7 @@
                     ACT_VALUE_1 = Label.LABEL_CODE,
                     ACT_VALUE_2 = Label.Variables.ToJson(),
                     ACT_RESULT = "Y",
+                    ELAPSED_TIME = CurStep.GetElapsedTime().TotalMilliseconds.ToInt64(),
                     TRACE_INFO = $"鏍囩{Label.LABEL_NAME}[{Label.LABEL_CODE}]鎵撳嵃鎴愬姛",
                 };
                 wipActs.Add(wipAct);

--
Gitblit v1.9.3