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("methodgroup")]
public class MethodGroup
{
///
/// 属性变化事件对象
///
public event PropertyChangedEventHandler PropertyChanged;
private int _method_group_id;
///
/// 分组ID
///
[SugarColumn(ColumnName = "method_group_id", IsPrimaryKey = true)]
public int method_group_id
{
get { return _method_group_id; }
set
{
_method_group_id = value;
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(nameof(method_group_id)));
}
}
}
private string _method_group_name;
///
/// 分组中文名称
///
[SugarColumn(ColumnName = "method_group_name")]
public string method_group_name
{
get { return _method_group_name; }
set
{
_method_group_name = value;
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(nameof(method_group_name)));
}
}
}
private string _method_group_sname;
///
/// 分组英文名称
///
[SugarColumn(ColumnName = "method_group_sname")]
public string method_group_sname
{
get { return _method_group_sname; }
set
{
_method_group_sname = value;
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(nameof(method_group_sname)));
}
}
}
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public string strIndex { get; set; }
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public string isrun { get; set; }
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public string status { get; set; }
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public string name { get; set; }
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public string label { get; set; }
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public string remark { get; set; }
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public string title { get; set; }
///
/// guid:保存的xml中Id(只能保证在当前方法文件中唯一)
///
[SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public string id { get; set; } = Guid.NewGuid().ToString();
}
#region 命令分组枚举
///
/// 命令分组枚举
///
public enum MethodGroupEnum
{
///
/// 无
///
[Description("无")]
None = -1,
///
/// 单步液体处理
///
[Description("单步液体处理")]
SingleStep = 1,
///
/// 组合液体处理
///
[Description("组合液体处理")]
MultiSteps = 2,
///
/// 抓手命令
///
[Description("抓手命令")]
GripperCommand = 3,
///
/// 控制命令
///
[Description("控制命令")]
ControlCommand = 4,
///
/// 数据处理
///
[Description("数据处理")]
DataProcess = 5,
///
/// 第三方设备
///
[Description("第三方设备")]
ThirdPart = 6,
///
/// 菌落处理
///
[Description("菌落处理")]
BacteriaProcess = 7,
}
#endregion
}