using DataEntity;
|
using DataEntity.Base;
|
using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace XImagingXhandler.XDAL
|
{
|
/// <summary>
|
/// 单命令方法实体
|
/// </summary>
|
[SugarTable("method")]
|
public class Method : IEntity
|
{
|
#region DB
|
/// <summary>
|
/// 方法Id/设备Id
|
/// </summary>
|
private string _method_id;
|
[SugarColumn(ColumnName = "method_id")]
|
public string method_id
|
{
|
get { return _method_id; }
|
set
|
{
|
_method_id = value;
|
OnPropertyChanged(nameof(method_id));
|
|
}
|
}
|
|
/// <summary>
|
/// 方法名
|
/// </summary>
|
private string _method_name;
|
[SugarColumn(ColumnName = "method_name")]
|
public string method_name
|
{
|
get { return _method_name; }
|
set
|
{
|
_method_name = value;
|
OnPropertyChanged(nameof(method_name));
|
}
|
}
|
|
/// <summary>
|
/// 方法图标文件名称
|
/// </summary>
|
private string _method_ico;
|
[SugarColumn(ColumnName = "method_ico")]
|
public string method_ico
|
{
|
get { return _method_ico; }
|
set
|
{
|
_method_ico = value;
|
OnPropertyChanged(nameof(method_ico));
|
}
|
}
|
|
/// <summary>
|
/// 方法描述
|
/// </summary>
|
private string _method_content;
|
[SugarColumn(ColumnName = "method_content")]
|
public string method_content
|
{
|
get { return _method_content; }
|
set
|
{
|
_method_content = value;
|
OnPropertyChanged(nameof(method_content));
|
}
|
}
|
|
/// <summary>
|
/// 方法状态:0:删除;1:可用
|
/// </summary>
|
private int _method_status;
|
[SugarColumn(ColumnName = "method_status")]
|
public int method_status
|
{
|
get { return _method_status; }
|
set
|
{
|
_method_status = value;
|
OnPropertyChanged(nameof(method_status));
|
}
|
}
|
|
/// <summary>
|
/// 分组Id
|
/// </summary>
|
private int _method_group_id;
|
[SugarColumn(ColumnName = "method_group_id")]
|
public int method_group_id
|
{
|
get { return _method_group_id; }
|
set
|
{
|
_method_group_id = value;
|
OnPropertyChanged(nameof(method_group_id));
|
}
|
}
|
|
/// <summary>
|
/// 该方法目前是否支持(0:不支持, 1:支持)
|
/// </summary>
|
private int _method_support;
|
[SugarColumn(ColumnName = "method_support")]
|
public int method_support
|
{
|
get { return _method_support; }
|
set
|
{
|
_method_support = value;
|
OnPropertyChanged(nameof(method_support));
|
}
|
}
|
|
/// <summary>
|
/// 1:单指令, 2:组合指令
|
/// </summary>
|
private int _method_type;
|
[SugarColumn(ColumnName = "method_type")]
|
public int method_type
|
{
|
get { return _method_type; }
|
set
|
{
|
_method_type = value;
|
OnPropertyChanged(nameof(method_type));
|
}
|
}
|
#endregion
|
|
|
|
|
private string _method_Tipcontent = "";
|
/// <summary>
|
/// 提示显示内容
|
/// </summary>
|
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
public string method_Tipcontent
|
{
|
get { return _method_Tipcontent; }
|
set
|
{
|
_method_Tipcontent = value;
|
OnPropertyChanged(nameof(method_Tipcontent));
|
}
|
}
|
|
//private bool _isThirdPart = false;
|
///// <summary>
|
///// 是否第三方设备
|
///// </summary>
|
//public bool IsThirdPart
|
//{
|
// get { return _isThirdPart; }
|
// set
|
// {
|
// _isThirdPart = value;
|
// OnPropertyChanged(nameof(IsThirdPart));
|
// }
|
//}
|
}
|
|
#region 方法状态
|
/// <summary>
|
/// 方法状态;1:可用;0:删除
|
/// </summary>
|
public enum MethodStatusEnum
|
{
|
/// <summary>
|
/// 无效
|
/// </summary>
|
[Description("无效")]
|
Invalid = 0,
|
/// <summary>
|
/// 有效
|
/// </summary>
|
[Description("有效")]
|
Valid = 1,
|
}
|
#endregion
|
|
#region 方法是否支持
|
/// <summary>
|
/// 方法是否支持:0:不支持, 1:支持
|
/// </summary>
|
public enum MethodSupportEnum
|
{
|
/// <summary>
|
/// 不支持
|
/// </summary>
|
[Description("不支持")]
|
NoSupport = 0,
|
/// <summary>
|
/// 支持
|
/// </summary>
|
[Description("支持")]
|
Support = 1,
|
}
|
#endregion
|
|
#region 指令类型
|
/// <summary>
|
/// 指令类型:1:单指令, 2:组合指令
|
/// </summary>
|
public enum MethodTypeEnum
|
{
|
/// <summary>
|
/// 单指令
|
/// </summary>
|
[Description("单指令")]
|
SingleStep = 1,
|
/// <summary>
|
/// 组合指令
|
/// </summary>
|
[Description("组合指令")]
|
MultiSteps = 2,
|
}
|
#endregion
|
}
|