using Community; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Documents; namespace Model { /// /// 流程模型 /// public class FlowModel : NotificationObject { /// /// 入料检知 /// public InputSignal InSignal { get; set; } /// /// 出料检知 /// public InputSignal OutSignal { get; set; } /// /// 皮带控制 /// public OutputSignal OutCmd { get; set; } /// /// 允许放料信号 /// public bool ProductPut { get; set; } private string myName; /// /// 流程名称 /// public string MyName { get { return myName; } set { myName = value; RaisePropertyChanged("MyName"); } } /// /// 流程步骤 /// public GengralProcessEnum RunStep { get; set; } /// /// 时间 /// public DateTime RunTime { get; set; } private ShowInfo runState; /// /// 状态 /// public ShowInfo RunState { get { return runState; } set { runState = value; RaisePropertyChanged("RunState"); } } /// /// 子流程1 /// public FlowModel NodeFlow1 { get; set; } /// /// 子流程2 /// public FlowModel NodeFlow2 { get; set; } /// /// 子流程完成标记1 /// public bool NodeOK1 { get; set; } /// /// 子流程完成标记2 /// public bool NodeOK2 { get; set; } /// /// 流程是否完成 /// public bool bl { get; set; } 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 }; } } }