81 lines
2.0 KiB
C#
81 lines
2.0 KiB
C#
using Community;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model
|
|
{
|
|
/// <summary>
|
|
/// 流程模型
|
|
/// </summary>
|
|
public class FlowModel : NotificationObject
|
|
{
|
|
private string myName;
|
|
/// <summary>
|
|
/// 流程名称
|
|
/// </summary>
|
|
public string MyName
|
|
{
|
|
get { return myName; }
|
|
set
|
|
{
|
|
myName = value;
|
|
RaisePropertyChanged("MyName");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 流程步骤
|
|
/// </summary>
|
|
public GengralProcessEnum RunStep { get; set; }
|
|
/// <summary>
|
|
/// 时间
|
|
/// </summary>
|
|
public DateTime RunTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 流程结束标识
|
|
/// </summary>
|
|
public bool bl { get; set; }
|
|
/// <summary>
|
|
/// 子流程
|
|
/// </summary>
|
|
public FlowModel NoteFlow { get; set; }
|
|
|
|
/// <summary>
|
|
/// 临时指令
|
|
/// </summary>
|
|
public CommandModel MyCommand { get; set; }
|
|
|
|
private ShowInfo runState;
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public ShowInfo RunState
|
|
{
|
|
get { return runState; }
|
|
set
|
|
{
|
|
runState = value;
|
|
RaisePropertyChanged("RunState");
|
|
}
|
|
}
|
|
|
|
|
|
public FlowModel(string name)
|
|
{
|
|
MyName = name;
|
|
RunStep = GengralProcessEnum.Start;
|
|
RunState = new ShowInfo() { StatuInfo = "待运行", StatusBackground = ColorStr.Gray, StatusForeground = ColorStr.White };
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
RunStep = GengralProcessEnum.Start;
|
|
RunState = new ShowInfo() { StatuInfo = "待运行", StatusBackground = ColorStr.Gray, StatusForeground = ColorStr.White };
|
|
}
|
|
}
|
|
}
|