Files
CapMachine/CapMachine.Wpf/Dtos/LINScheduleConfigDto.cs

106 lines
2.9 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using CapMachine.Model.CANLIN;
using Prism.Mvvm;
namespace CapMachine.Wpf.Dtos
{
public class LINScheduleConfigDto : BindableBase
{
/// <summary>
/// 主键
/// </summary>
public long Id { get; set; }
private bool _IsActive;
/// <summary>
/// 是否激活
/// </summary>
public bool IsActive
{
get { return _IsActive; }
set { _IsActive = value; RaisePropertyChanged(); }
}
private bool _IsMsgActived;
/// <summary>
/// 帧/报文是否被选中(隶属某个调度表)
/// </summary>
public bool IsMsgActived
{
get { return _IsMsgActived; }
set { _IsMsgActived = value; RaisePropertyChanged(); }
}
private string? _MsgName;
/// <summary>
/// 消息名称/帧名称
/// </summary>
public string? MsgName
{
get { return _MsgName; }
set { _MsgName = value; RaisePropertyChanged(); }
}
private int _MsgNameIndex;
/// <summary>
/// 消息名称/帧名称的Index
/// </summary>
public int MsgNameIndex
{
get { return _MsgNameIndex; }
set { _MsgNameIndex = value; RaisePropertyChanged(); }
}
private int _Cycle;
/// <summary>
/// 周期
/// </summary>
public int Cycle
{
get { return _Cycle; }
set { _Cycle = value; RaisePropertyChanged(); }
}
private int _SchTabIndex;
/// <summary>
/// 调度表的Index序列
/// </summary>
public int SchTabIndex
{
get { return _SchTabIndex; }
set { _SchTabIndex = value; RaisePropertyChanged(); }
}
private string? _SchTabName;
/// <summary>
/// 调度表的名称
/// </summary>
public string? SchTabName
{
get { return _SchTabName; }
set { _SchTabName = value; RaisePropertyChanged(); }
}
///// <summary>
///// 在更新调度表数据时,我们有一个整体的帧数据指令集合,但是这些帧数据集合,分属于不同的调度表,
///// 这个在开始时生成整体的帧数据指令集合才会把这个MsgIndex分配上这个不需要保存到数据库中对接使用
///// </summary>
//public int MsgIndex { get; set; }
/// <summary>
/// 程序的ID
/// </summary>
public long CanLinConfigProId { get; set; }
private CanLinConfigPro _CanLinConfigPro;
/// <summary>
/// 所属的程序
/// </summary>
public CanLinConfigPro CanLinConfigPro
{
get { return _CanLinConfigPro; }
set { _CanLinConfigPro = value; RaisePropertyChanged(); }
}
}
}