using Community; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { /// /// 流程模型 /// public class FlowModel : NotificationObject { private string myName; /// /// 流程名称 /// public string MyName { get { return myName; } set { myName = value; RaisePropertyChanged("MyName"); } } /// /// 流程步骤 /// public GengralProcessEnum RunStep { get; set; } /// /// 时间 /// public DateTime RunTime { get; set; } /// /// 流程结束标识 /// public bool bl { get; set; } /// /// 子流程 /// public FlowModel NoteFlow { get; set; } /// /// 临时指令 /// public CommandModel MyCommand { get; set; } private ShowInfo runState; /// /// 状态 /// 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 }; } } }