74 lines
1.8 KiB
C#
74 lines
1.8 KiB
C#
using Prism.Mvvm;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CapMachine.Wpf.Dtos
|
|
{
|
|
/// <summary>
|
|
/// 逻辑转换规则模型
|
|
/// </summary>
|
|
public class LogicRuleDto : BindableBase
|
|
{
|
|
/// <summary>
|
|
/// 主键ID
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
|
|
private string _name = string.Empty;
|
|
/// <summary>
|
|
/// 规则名称
|
|
/// </summary>
|
|
public string Name
|
|
{
|
|
get { return _name; }
|
|
set { SetProperty(ref _name, value); }
|
|
}
|
|
|
|
|
|
private string _description = string.Empty;
|
|
/// <summary>
|
|
/// 规则描述
|
|
/// </summary>
|
|
public string Description
|
|
{
|
|
get { return _description; }
|
|
set { SetProperty(ref _description, value); }
|
|
}
|
|
|
|
private string _expression = string.Empty;
|
|
/// <summary>
|
|
/// 规则表达式
|
|
/// </summary>
|
|
public string Expression
|
|
{
|
|
get { return _expression; }
|
|
set { _expression = value; RaisePropertyChanged(); }
|
|
}
|
|
|
|
|
|
private string _parameterType = string.Empty;
|
|
/// <summary>
|
|
/// 适用的参数类型(如:转速、功率等)
|
|
/// </summary>
|
|
public string ParameterType
|
|
{
|
|
get { return _parameterType; }
|
|
set { SetProperty(ref _parameterType, value); }
|
|
}
|
|
|
|
private DateTime _CreateTime;
|
|
/// <summary>
|
|
/// 适用的参数类型(如:转速、功率等)
|
|
/// </summary>
|
|
public DateTime CreateTime
|
|
{
|
|
get { return _CreateTime; }
|
|
set { _CreateTime = value; RaisePropertyChanged(); }
|
|
}
|
|
}
|
|
}
|