schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
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
}