服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-10-08 3c93870a157ecc4128d5df16f219c96bb8d785d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using Newtonsoft.Json;
using Rhea.Common;
using System;
using Tiger.Model;
using Tiger.Model.Entitys.MES.Position;
 
namespace Tiger.IBusiness
{
    /// <summary>
    /// 工步行为基类
    /// </summary>
    public interface IWorkStep : IStep<SubmitInput, SubmitOutput>
    {
        #region Propertys & Variables
        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 ActSetting { get; set; }
        public IPosition CurPosition { get; set; }
        public IWorkAction CurAction { get; set; }
        public List<string> PrepNodeIDs { get; set; }
        public Action DBSubmitAction { get; set; }
        #endregion Propertys & Variables
        public enum NodeTypes { Node, Action }
 
        #region Functions
        /// <summary>
        /// 获取行为开始的提示信息
        /// </summary>
        /// <returns></returns>
        public Locale GetBeginMsg();
        /// <summary>
        /// 设置工步状态和消息
        /// </summary>
        /// <returns></returns>
        public void SetStatusMessage(StepStatus status, Locale msg);
        /// <summary>
        /// 获取工步当前耗时
        /// </summary>
        /// <returns></returns>
        public TimeSpan GetElapsedTime();
        #endregion Functions
    }
 
}