服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-09-24 d958b698f2bab06fdecd5ac4b436179cc6aa43f0
Tiger.Business/MES/Biz.WorkStep.cs
@@ -41,14 +41,14 @@
            public int Sequence { get; set; }
            public List<string> PrepNodeIDs { get; set; } = new();
            public string NodeID => NodeType == IWorkStep.NodeTypes.Action ? NodeAct.ID : Node.ID;
            //private bool _IsFinished = false;
            //public bool IsFinished
            //{
            //    get => NodeType == IWorkStep.NodeTypes.Action ? CurAction.IsFinished : _IsFinished;
            //    set { _IsFinished = value; }
            //}
            private bool _IsFinished = false;
            public bool IsFinished
            {
                get => NodeType == IWorkStep.NodeTypes.Action ? CurAction.IsFinished : _IsFinished;
                set { _IsFinished = value; }
            }
            public StepStatus Status { get; set; } = StepStatus.Normal;
            public bool IsFinished => Status == StepStatus.Finished;
            //public bool IsFinished => Status == StepStatus.Finished;
            private Locale _Message;
            public Locale Message
            {
@@ -110,6 +110,16 @@
            }
            /// <summary>
            /// 设置工步状态和消息
            /// </summary>
            /// <returns></returns>
            public void SetStatusMessage(StepStatus status, Locale msg)
            {
                Message = msg;
                Status = status;
            }
            /// <summary>
            /// 获取当前工步的信息
            /// </summary>
            /// <returns></returns>
@@ -117,6 +127,7 @@
            {
                return new WorkStepInfo() { 
                    ID = ID,
                    Name = Name,
                    Sequence = Sequence,
                    NodeID = NodeID,
                    NodeType = NodeType.ToString(),