From 935722e71cc47d8c9f3b0e911de33c7eb0cbc693 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期三, 28 八月 2024 22:55:55 +0800
Subject: [PATCH] 优化工步实体,增加名称,状态,消息

---
 Tiger.Business.MES/WorkAction/IPQC.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Tiger.Business.MES/WorkAction/IPQC.cs b/Tiger.Business.MES/WorkAction/IPQC.cs
index 199d8d4..d092fe8 100644
--- a/Tiger.Business.MES/WorkAction/IPQC.cs
+++ b/Tiger.Business.MES/WorkAction/IPQC.cs
@@ -80,7 +80,7 @@
                 //琛屼负鎵ц瀹屾垚
                 if (false)
                 {
-                	action = End();
+                	action = End(input);
                 }
             }
             //鎻愪氦鏁版嵁鎵ц澶辫触
@@ -103,7 +103,7 @@
         /// 缁撴潫鎵ц宸ュ簭琛屼负
         /// </summary>
         /// <returns></returns>
-        public ApiAction<SubmitOutput> End()
+        public ApiAction<SubmitOutput> End(SubmitInput input)
         {
             var action = new ApiAction<SubmitOutput>(new SubmitOutput());
 
@@ -165,6 +165,7 @@
             };
 
             IsFinished = true;
+            CurStep.Status = StepStatus.Finished;
             action.Data.ShortMsg = new("娴嬭瘯瀹屾垚", ShortMessage.Types.Success);
             action.LocaleMsg = new($"娴嬭瘯缁撴潫");
             //action.LocaleMsg = new("MES.WorkAction.IPQC.Finish");

--
Gitblit v1.9.3