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 LogicRuleDto : BindableBase
{
///
/// 主键ID
///
public int Id { get; set; }
private string _name = string.Empty;
///
/// 规则名称
///
public string Name
{
get { return _name; }
set { SetProperty(ref _name, value); }
}
private string _description = string.Empty;
///
/// 规则描述
///
public string Description
{
get { return _description; }
set { SetProperty(ref _description, value); }
}
private string _expression = string.Empty;
///
/// 规则表达式
///
public string Expression
{
get { return _expression; }
set { _expression = value; RaisePropertyChanged(); }
}
private string _parameterType = string.Empty;
///
/// 适用的参数类型(如:转速、功率等)
///
public string ParameterType
{
get { return _parameterType; }
set { SetProperty(ref _parameterType, value); }
}
private DateTime _CreateTime;
///
/// 适用的参数类型(如:转速、功率等)
///
public DateTime CreateTime
{
get { return _CreateTime; }
set { _CreateTime = value; RaisePropertyChanged(); }
}
}
}