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