服务端的TigerApi 框架,基于.NET6 2024 版本
YangYuGang
3 天以前 8ca0a4e167bcfe8ea99efe615c1c0f1bc62255a5
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
using System;
using SqlSugar;
using System.Linq;
using System.ComponentModel;
using System.Collections.Generic;
 
namespace Tiger.Model
{
    /// <summary>
    /// 实体:工单工序行为
    /// </summary>
    [Description("Primary:ID")]
    [DisplayName("工单工序行为")]
    [Serializable]
    [SugarTable("MES_WO_ACTION")]
    public class MES_WO_ACTION : DbEntityWithAuth
    {
        #region 构造函数
        /// <summary>
        /// 实体:工单工序行为
        /// </summary>
        public MES_WO_ACTION() {}
        #endregion
 
        #region 公共属性
        /// <summary>
        /// 关联工单号
        /// </summary>
        [DisplayName("关联工单号")]
        public string WORK_ORDER { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        [DisplayName("产品编码")]
        public string PROD_CODE { get; set; }
        /// <summary>
        /// 客户编码(留空则不区分客户)
        /// </summary>
        [DisplayName("客户编码(留空则不区分客户)")]
        public string CUST_CODE { get; set; }
        /// <summary>
        /// 工艺路线ID
        /// </summary>
        [DisplayName("工艺路线ID")]
        public string ROT_ID { get; set; }
        /// <summary>
        /// 工单路线节点ID
        /// </summary>
        [DisplayName("工单路线节点ID")]
        public string NODE_ID { get; set; }
        /// <summary>
        /// 工单行为节点ID
        /// </summary>
        [DisplayName("工单行为节点ID")]
        public string ACT_ID { get; set; }
        /// <summary>
        /// 行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则)
        /// </summary>
        [DisplayName("行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则)")]
        public int ACT_TYPE { get; set; }
        /// <summary>
        /// 行为定义编码
        /// </summary>
        [DisplayName("行为定义编码")]
        public string ACT_CODE { get; set; }
        /// <summary>
        /// 扫码验证:条码规则
        /// </summary>
        [DisplayName("扫码验证:条码规则")]
        public string RULE_CODE { get; set; }
        /// <summary>
        /// 组装上料:物料料号
        /// </summary>
        [DisplayName("组装上料:物料料号")]
        public string ITEM_CODE { get; set; }
        /// <summary>
        /// 产品测试:检验项目编码
        /// </summary>
        [DisplayName("产品测试:检验项目编码")]
        public string TEST_CODE { get; set; }
        /// <summary>
        /// 产品抽检:抽样规则编码
        /// </summary>
        [DisplayName("产品抽检:抽样规则编码")]
        public string SAPL_CODE { get; set; }
        /// <summary>
        /// 标签打印:标签模板编码
        /// </summary>
        [DisplayName("标签打印:标签模板编码")]
        public string LABEL_CODE { get; set; }
        /// <summary>
        /// 包装规则:包装规则编码
        /// </summary>
        [DisplayName("包装规则:包装规则编码")]
        public string PKG_CODE { get; set; }
        /// <summary>
        /// 是否启用(Y/N)
        /// </summary>
        [DisplayName("是否启用(Y/N)")]
        public string IS_ACTIVE { get; set; }
        /// <summary>
        /// 是否设置完成(Y/N)
        /// </summary>
        [DisplayName("是否设置完成(Y/N)")]
        public string SETUP_FINISH { get; set; }
        /// <summary>
        /// 设置值1
        /// </summary>
        [DisplayName("设置值1")]
        public string OPTION_1 { get; set; }
        /// <summary>
        /// 设置值2
        /// </summary>
        [DisplayName("设置值2")]
        public string OPTION_2 { get; set; }
        /// <summary>
        /// 设置值3
        /// </summary>
        [DisplayName("设置值3")]
        public string OPTION_3 { get; set; }
        /// <summary>
        /// 设置值4
        /// </summary>
        [DisplayName("设置值4")]
        public string OPTION_4 { get; set; }
        /// <summary>
        /// 设置值5
        /// </summary>
        [DisplayName("设置值5")]
        public string OPTION_5 { get; set; }
        /// <summary>
        /// 设置值6
        /// </summary>
        [DisplayName("设置值6")]
        public string OPTION_6 { get; set; }
        /// <summary>
        /// 设置值7
        /// </summary>
        [DisplayName("设置值7")]
        public string OPTION_7 { get; set; }
        /// <summary>
        /// 设置值8
        /// </summary>
        [DisplayName("设置值8")]
        public string OPTION_8 { get; set; }
        /// <summary>
        /// 设置值9
        /// </summary>
        [DisplayName("设置值9")]
        public string OPTION_9 { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string REMARK { get; set; }
        #endregion
 
        #region 虚拟属性
        /*例子
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
        #endregion
 
        #region 外键属性
        /*例子
        //一对一外键导航
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是MES_WO_ACTION类里面的外键ID字段
        public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
        //一对多外键导航
        [Navigate(NavigateType.OneToMany, nameof(ClassA.MES_WO_ACTIONId))]//ClassA表中的MES_WO_ACTIONId
        public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
        //多对多外键导航
        [Navigate(typeof(MappingClass), nameof(MappingClass.MES_WO_ACTIONId), nameof(MappingClass.ClassAId))]//注意顺序
        public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null
        */
        #endregion
 
        #region 枚举变量
        /*例子
        public enum FieldNames
        {
            [Description("枚举描述0")]
            Enum0,
            [Description("枚举描述1")]
            Enum1,
        }
        */
 
        /// <summary>
        /// 枚举:行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则)
        /// </summary>
        public enum ACT_TYPEs
        {
            [Description("默认行为")]
            Normal = 0,
            [Description("扫码验证")]
            Scan = 1,
            [Description("组装上料")]
            Assy = 2,
            [Description("产品测试")]
            Test = 3,
            [Description("产品抽检")]
            Audit = 4,
            [Description("标签打印")]
            Print = 5,
            [Description("包装规则")]
            Package = 6,
        }
        #endregion
 
        #region 公共方法
 
        #endregion
 
    }//endClass
}