服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-09-11 27b4865c2c15b2256bff5d32d6c0853646451fbd
Tiger.IBusiness/MES/IWorkStep.cs
@@ -9,41 +9,34 @@
    /// <summary>
    /// 工步行为基类
    /// </summary>
    public interface IWorkStep
    public interface IWorkStep : IStep<SubmitInput, SubmitOutput>
    {
        #region Propertys & Variables
        public string ID { get; set; }
        public Types Type { get; set; }
        public int Sequence { get; set; }
        public string NodeID { get; }
        public NodeTypes NodeType { get; set; }
        public MES_WO_NODE Node { get; set; }
        public MES_WO_OPER OperSetting { get; set; }
        public MES_WO_NODE_ACT NodeAct { get; set; }
        public MES_WO_ACTION Setting { get; set; }
        public MES_WO_ACTION ActSetting { get; set; }
        public IPosition CurPosition { get; set; }
        public IWorkAction CurAction { get; set; }
        public List<string> PrepNodeIDs { get; set; }
        public string NodeID { get; }
        public bool IsFinished { get; set; }
        public Action DBSubmitAction { get; set; }
        #endregion Propertys & Variables
        public enum Types { Node, Action }
        public enum NodeTypes { Node, Action }
        #region Functions
        /// <summary>
        /// 尝试开始执行工步
        /// </summary>
        /// <returns></returns>
        public ApiAction<SubmitOutput> TryBegin(SubmitInput input);
        /// <summary>
        /// 获取行为开始的提示信息
        /// </summary>
        /// <returns></returns>
        public Locale GetBeginMsg();
        /// <summary>
        /// 工步提交数据
        /// 设置工步状态和消息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public ApiAction<SubmitOutput> Submit(SubmitInput input);
        public void SetStatusMessage(StepStatus status, Locale msg);
        #endregion Functions
    }
}