逻辑规则的初步增加工能:
1)规则的界面的增删改查 2)规则服务的初步测试,目前测试是OK的
This commit is contained in:
75
CapMachine.Wpf/Dtos/LogicRuleDto.cs
Normal file
75
CapMachine.Wpf/Dtos/LogicRuleDto.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
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>
|
||||
/// 逻辑转换规则模型
|
||||
/// </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(); }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user