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