Files
CapMachine/CapMachine.Wpf/Dtos/CanLinRWConfigDto.cs

82 lines
2.2 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;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.Dtos
{
public class CanLinRWConfigDto : BindableBase
{
/// <summary>
/// 主键
/// </summary>
public long Id { get; set; }
private RW _RWInfo;
/// <summary>
/// 输入输出信息 读取/写入/系统
/// </summary>
public RW RWInfo
{
get { return _RWInfo; }
set { _RWInfo = value; RaisePropertyChanged(); }
}
private string? _Name;
/// <summary>
/// 配置项名称-比如转速、功率限制等
/// </summary>
public string? Name
{
get { return _Name; }
set { _Name = value; RaisePropertyChanged(); }
}
private string? _MsgFrameName;
/// <summary>
/// 配置-
/// DBC里面的 消息名称 MsgId对应 帧名称
/// SDF里面的 Frame名称 帧名称
/// </summary>
public string? MsgFrameName
{
get { return _MsgFrameName; }
set { _MsgFrameName = value; RaisePropertyChanged(); }
}
private string? _SignalName;
/// <summary>
/// 配置项值
/// 信号名称
/// </summary>
public string? SignalName
{
get { return _SignalName; }
set { _SignalName = value; RaisePropertyChanged(); }
}
private string? _DefautValue;
/// <summary>
/// 配置项默认值和数据
/// </summary>
public string? DefautValue
{
get { return _DefautValue; }
set { _DefautValue = value; RaisePropertyChanged(); }
}
public long LogicRuleId { get; set; }
/// <summary>
/// CanLinConfig的逻辑转换规则
/// 比如速度下发的数据SV是4000但是下发到CAN的值是40可能是其他的逻辑转换规则这里就是保存其中的逻辑规则
/// </summary>
public LogicRuleDto? LogicRuleDto { get; set; }
}
}