From 3b4dd8ba2e49d193dea28766c2477e540b4614c4 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期三, 11 九月 2024 20:07:33 +0800
Subject: [PATCH] Merge branch 'master' of http://47.115.28.255:8110/r/TigerClouds-Tech/Server/TigerApi6_2024

---
 Tiger.Business.MES/Transaction/Position.cs |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/Tiger.Business.MES/Transaction/Position.cs b/Tiger.Business.MES/Transaction/Position.cs
index f01aa1f..fae36cc 100644
--- a/Tiger.Business.MES/Transaction/Position.cs
+++ b/Tiger.Business.MES/Transaction/Position.cs
@@ -63,7 +63,7 @@
         public List<WorkStep> Steps { get; set; } = new();
         public WorkStep CurStep { get; set; }
         public List<WorkStep> NextSteps { get; set; } = new();
-        public bool IsFinishNodeSteps => !Steps.Any(q => q.Type == IWorkStep.Types.Node && !q.IsFinished);
+        public bool IsFinishNodeSteps => !Steps.Any(q => q.NodeType == IWorkStep.NodeTypes.Node && !q.IsFinished);
         public bool IsFinishAllSteps => !Steps.Any() || !Steps.Any(q => !q.IsFinished);
         //public int CurStep => Steps.Where(q => !q.IsFinished).OrderBy(q => q.Sequence).FirstOrDefault()?.Sequence ?? 0;
         private DbClient CommitDB;
@@ -74,7 +74,7 @@
         protected Dictionary<string, List<Action>> DBCommitList { get; set; } = new();
         protected List<Position> NodeCommitList { get; set; } = new();
         protected Dictionary<string, OperInfo> OperInfoDic { get; set; } = new();
-        protected OperInfo CurOperInfo { get; set; }
+        //protected OperInfo CurOperInfo { get; set; }
         #endregion Propertys & Variables
 
         #region Functions
@@ -192,17 +192,19 @@
         /// <summary>
         /// 璁剧疆褰撳墠鏉$爜鐨勫伐搴忎俊鎭�
         /// </summary>
-        public OperInfo SetOperNodeInfo(OperInfo info)
+        public OperInfo SetOperNodeInfo(OperInfo info, string locale)
         {
             if (CurWipSNs.Any())
             {
                 info.CurNode = CurWipSNs.First().NODE_NAME;
                 info.NextNode = string.Join(",", CurBatch.GetNextNodes(CurWipSNs.First()).Select(q => q.NODE_NAME));
+                info.StepsInfo = Steps.Select(q => q.GetInfo(locale)).ToList();
             }
             else
             {
                 info.CurNode = "   鈥�   ";
                 info.NextNode = "   鈥�   ";
+                info.StepsInfo = new();
             }
             return info;
         }
@@ -249,12 +251,14 @@
                 }
                 else
                 {
-                    var next = new WorkStep(IWorkStep.Types.Action, this)
+                    var next = new WorkStep(IWorkStep.NodeTypes.Action, this)
                     {
+                        Name = act.ACT_NAME,
                         Sequence = parent.Sequence + 1,
                         Node = parent.Node,
+                        OperSetting = CurBatch.NodeSets.FirstOrDefault(q => q.NODE_ID == parent.Node.ID),
                         NodeAct = act,
-                        Setting = CurBatch.ActionSets.FirstOrDefault(q => q.ACT_ID == act.ID),
+                        ActSetting = CurBatch.ActionSets.FirstOrDefault(q => q.ACT_ID == act.ID),
                     };
                     next.Init();
                     next.PrepNodeIDs.Add(parent.NodeID);

--
Gitblit v1.9.3