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
{
///
/// 单命令方法实体
///
[SugarTable("method")]
public class Method : IEntity
{
#region DB
///
/// 方法Id/设备Id
///
private string _method_id;
[SugarColumn(ColumnName = "method_id")]
public string method_id
{
get { return _method_id; }
set
{
_method_id = value;
OnPropertyChanged(nameof(method_id));
}
}
///
/// 方法名
///
private string _method_name;
[SugarColumn(ColumnName = "method_name")]
public string method_name
{
get { return _method_name; }
set
{
_method_name = value;
OnPropertyChanged(nameof(method_name));
}
}
///
/// 方法图标文件名称
///
private string _method_ico;
[SugarColumn(ColumnName = "method_ico")]
public string method_ico
{
get { return _method_ico; }
set
{
_method_ico = value;
OnPropertyChanged(nameof(method_ico));
}
}
///
/// 方法描述
///
private string _method_content;
[SugarColumn(ColumnName = "method_content")]
public string method_content
{
get { return _method_content; }
set
{
_method_content = value;
OnPropertyChanged(nameof(method_content));
}
}
///
/// 方法状态:0:删除;1:可用
///
private int _method_status;
[SugarColumn(ColumnName = "method_status")]
public int method_status
{
get { return _method_status; }
set
{
_method_status = value;
OnPropertyChanged(nameof(method_status));
}
}
///
/// 分组Id
///
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));
}
}
///
/// 该方法目前是否支持(0:不支持, 1:支持)
///
private int _method_support;
[SugarColumn(ColumnName = "method_support")]
public int method_support
{
get { return _method_support; }
set
{
_method_support = value;
OnPropertyChanged(nameof(method_support));
}
}
///
/// 1:单指令, 2:组合指令
///
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 = "";
///
/// 提示显示内容
///
[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;
/////
///// 是否第三方设备
/////
//public bool IsThirdPart
//{
// get { return _isThirdPart; }
// set
// {
// _isThirdPart = value;
// OnPropertyChanged(nameof(IsThirdPart));
// }
//}
}
#region 方法状态
///
/// 方法状态;1:可用;0:删除
///
public enum MethodStatusEnum
{
///
/// 无效
///
[Description("无效")]
Invalid = 0,
///
/// 有效
///
[Description("有效")]
Valid = 1,
}
#endregion
#region 方法是否支持
///
/// 方法是否支持:0:不支持, 1:支持
///
public enum MethodSupportEnum
{
///
/// 不支持
///
[Description("不支持")]
NoSupport = 0,
///
/// 支持
///
[Description("支持")]
Support = 1,
}
#endregion
#region 指令类型
///
/// 指令类型:1:单指令, 2:组合指令
///
public enum MethodTypeEnum
{
///
/// 单指令
///
[Description("单指令")]
SingleStep = 1,
///
/// 组合指令
///
[Description("组合指令")]
MultiSteps = 2,
}
#endregion
}