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
|
{
|
#region Propertys & Variables
|
public string ID { get; set; }
|
public Types Type { get; set; }
|
public int Sequence { get; set; }
|
public MES_WO_NODE Node { get; set; }
|
public MES_WO_NODE_ACT NodeAct { get; set; }
|
public MES_WO_ACTION Setting { 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 }
|
|
#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);
|
#endregion Functions
|
}
|
}
|