From 4417ac9e48587bdfcc0bdee5e84dca7627a6e4a4 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期四, 17 十月 2024 21:18:00 +0800
Subject: [PATCH] 工艺路线删除优化

---
 Tiger.Business.MES/Transaction/CollectNode.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Tiger.Business.MES/Transaction/CollectNode.cs b/Tiger.Business.MES/Transaction/CollectNode.cs
index 71aafd0..38aef47 100644
--- a/Tiger.Business.MES/Transaction/CollectNode.cs
+++ b/Tiger.Business.MES/Transaction/CollectNode.cs
@@ -57,7 +57,7 @@
                             info.InputQty = CurOperInfo(input.Locale).InputQty;
                             action.Data.OperInfo = info;
                         }
-                        else if (!IsFinishAllSteps)
+                        else if (Steps.Any() && !IsFinishAllSteps)
                         {
                             action.Data.OperInfo = SetOperNodeInfo(CurOperInfo(input.Locale));
                         }
@@ -424,7 +424,7 @@
                     CurWipSNHiss.Clear();
                     foreach (var wipSN in wipSNs)
                     {
-                        var his = new MES_WIP_HIS(wipSN, $"宸ュ崟[{wipSN.WORK_ORDER}]鏉$爜[{wipSN.SN}]鍦ㄥ矖浣峓{wipSN.POST_CODE}]杩囩珯宸ュ簭[{wipSN.NODE_NAME}]鎴愬姛");
+                        var his = new MES_WIP_HIS(wipSN, $"宸ュ崟[{wipSN.WORK_ORDER}]鏉$爜[{wipSN.SN}]鍦ㄥ矖浣峓{wipSN.POST_CODE}]杩囩珯宸ュ簭[{wipSN.NODE_NAME}]鎴愬姛锛圱ransId锛歿TransID}锛�");
                         wipSN.History.Add(his);
                         CurWipSNHiss.Add(his);
                     }
@@ -596,7 +596,7 @@
                 var wipHiss = new List<MES_WIP_HIS>();
                 foreach (var wipSN in CurWipSNs)
                 {
-                    var his = new MES_WIP_HIS(wipSN, $"宸ュ崟[{wipSN.WORK_ORDER}]鏉$爜[{wipSN.SN}]鍦ㄥ矖浣峓{wipSN.POST_CODE}]杩囩珯宸ュ簭[{wipSN.NODE_NAME}]鎴愬姛");
+                    var his = new MES_WIP_HIS(wipSN, $"宸ュ崟[{wipSN.WORK_ORDER}]鏉$爜[{wipSN.SN}]鍦ㄥ矖浣峓{wipSN.POST_CODE}]杩囩珯宸ュ簭[{wipSN.NODE_NAME}]鎴愬姛锛圱ransId锛歿TransID}锛�");
                     wipSN.History.Add(his);
                     wipHiss.Add(his);
                 }

--
Gitblit v1.9.3