增加CAN 调度表配置
This commit is contained in:
@@ -43,5 +43,17 @@ namespace CapMachine.Wpf.Dtos
|
||||
get { return _DbcPath; }
|
||||
set { _DbcPath = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
|
||||
private bool _SchEnable;
|
||||
/// <summary>
|
||||
/// 调度表是否启用
|
||||
/// </summary>
|
||||
public bool SchEnable
|
||||
{
|
||||
get { return _SchEnable; }
|
||||
set { _SchEnable = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
83
CapMachine.Wpf/Dtos/CANScheduleConfigDto.cs
Normal file
83
CapMachine.Wpf/Dtos/CANScheduleConfigDto.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
using CapMachine.Model.CANLIN;
|
||||
using Prism.Mvvm;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.Dtos
|
||||
{
|
||||
/// <summary>
|
||||
/// CANScheduleConfigDto
|
||||
/// </summary>
|
||||
public class CANScheduleConfigDto : BindableBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
private string? _MsgName;
|
||||
/// <summary>
|
||||
/// 消息名称/帧名称
|
||||
/// </summary>
|
||||
public string? MsgName
|
||||
{
|
||||
get { return _MsgName; }
|
||||
set { _MsgName = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private int _Cycle;
|
||||
/// <summary>
|
||||
/// 周期
|
||||
/// </summary>
|
||||
public int Cycle
|
||||
{
|
||||
get { return _Cycle; }
|
||||
set { _Cycle = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private int _OrderSend;
|
||||
/// <summary>
|
||||
/// 发送方式
|
||||
/// </summary>
|
||||
public int OrderSend
|
||||
{
|
||||
get { return _OrderSend; }
|
||||
set { _OrderSend = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private int _SchTabIndex;
|
||||
/// <summary>
|
||||
/// 调度表的Index序列
|
||||
/// </summary>
|
||||
public int SchTabIndex
|
||||
{
|
||||
get { return _SchTabIndex; }
|
||||
set { _SchTabIndex = 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(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
82
CapMachine.Wpf/Dtos/LINScheduleConfigDto.cs
Normal file
82
CapMachine.Wpf/Dtos/LINScheduleConfigDto.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
using CapMachine.Model.CANLIN;
|
||||
using Prism.Mvvm;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.Dtos
|
||||
{
|
||||
public class LINScheduleConfigDto : BindableBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
private string? _MsgName;
|
||||
/// <summary>
|
||||
/// 消息名称/帧名称
|
||||
/// </summary>
|
||||
public string? MsgName
|
||||
{
|
||||
get { return _MsgName; }
|
||||
set { _MsgName = 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(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user