服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-11-04 f4ce2bcaa377c5fe869c0e8f0e1640cee3f8a400
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
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_WIP_DFT")]
    public class MES_WIP_DFT : DbEntityWithAuth
    {
        #region 构造函数
        /// <summary>
        /// 实体:生产不良记录
        /// </summary>
        public MES_WIP_DFT() { }
        #endregion
 
        #region 公共属性
        /// <summary>
        /// 在制品ID
        /// </summary>
        [DisplayName("在制品ID")]
        public string WIP_ID { get; set; }
        /// <summary>
        /// 过站条码
        /// </summary>
        [DisplayName("过站条码")]
        public string SN { get; set; }
        /// <summary>
        /// 状态(0WaitHandle待处理|1Repairing维修中|2Resolved已处理|3Scrap已报废)
        /// </summary>
        [DisplayName("状态(0WaitHandle待处理|1Repairing维修中|2Resolved已处理|3Scrap已报废)")]
        public int STATUS { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        [DisplayName("物料编码")]
        public string ITEM_CODE { get; set; }
        /// <summary>
        /// 工单号
        /// </summary>
        [DisplayName("工单号")]
        public string WORK_ORDER { get; set; }
        /// <summary>
        /// 工单批次号
        /// </summary>
        [DisplayName("工单批次号")]
        public string BATCH_NO { get; set; }
        /// <summary>
        /// 工艺路线编码
        /// </summary>
        [DisplayName("工艺路线编码")]
        public string ROT_CODE { get; set; }
        /// <summary>
        /// 工艺路线节点ID
        /// </summary>
        [DisplayName("工艺路线节点ID")]
        public string NODE_ID { get; set; }
        /// <summary>
        /// 工艺路线节点名称
        /// </summary>
        [DisplayName("工艺路线节点名称")]
        public string NODE_NAME { get; set; }
        /// <summary>
        /// 工厂编码
        /// </summary>
        [DisplayName("工厂编码")]
        public string FTY_CODE { get; set; }
        /// <summary>
        /// 车间编码
        /// </summary>
        [DisplayName("车间编码")]
        public string WS_CODE { get; set; }
        /// <summary>
        /// 产线编码
        /// </summary>
        [DisplayName("产线编码")]
        public string LINE_CODE { get; set; }
        /// <summary>
        /// 岗位编码
        /// </summary>
        [DisplayName("岗位编码")]
        public string POST_CODE { get; set; }
        /// <summary>
        /// 工序编码
        /// </summary>
        [DisplayName("工序编码")]
        public string OPER_CODE { get; set; }
        /// <summary>
        /// 加工段
        /// </summary>
        [DisplayName("加工段")]
        public string SEGMENT { get; set; }
        /// <summary>
        /// 不良代码编码
        /// </summary>
        [DisplayName("不良代码编码")]
        public string DFT_CODE { get; set; }
        /// <summary>
        /// 不良代码名称
        /// </summary>
        [DisplayName("不良代码名称")]
        public string DFT_NAME { get; set; }
        /// <summary>
        /// 缺陷等级(0MI轻微缺陷|1MA严重缺陷|2CR致命缺陷)
        /// </summary>
        [DisplayName("缺陷等级(0MI轻微缺陷|1MA严重缺陷|2CR致命缺陷)")]
        public int DFT_LEVEL { get; set; }
        /// <summary>
        /// 厂内流转条码
        /// </summary>
        [DisplayName("厂内流转条码")]
        public string FLOW_SN { get; set; }
        /// <summary>
        /// 托盘/载具条码
        /// </summary>
        [DisplayName("托盘/载具条码")]
        public string TRAY_SN { get; set; }
        /// <summary>
        /// 内包装条码
        /// </summary>
        [DisplayName("内包装条码")]
        public string INNER_SN { get; set; }
        /// <summary>
        /// 外箱条码
        /// </summary>
        [DisplayName("外箱条码")]
        public string CARTON_SN { get; set; }
        /// <summary>
        /// 栈板条码
        /// </summary>
        [DisplayName("栈板条码")]
        public string PALLET_SN { get; set; }
        /// <summary>
        /// 是否入库
        /// </summary>
        [DisplayName("是否入库")]
        public string INV_FLAG { get; set; }
        /// <summary>
        /// 当前操作时间
        /// </summary>
        [DisplayName("当前操作时间")]
        public DateTime OPERATION_TIME { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 班制编码
        /// </summary>
        [DisplayName("班制编码")]
        public string SFTS_CODE { get; set; }
        /// <summary>
        /// 班次编码
        /// </summary>
        [DisplayName("班次编码")]
        public string SFT_CODE { get; set; }
        /// <summary>
        /// 时段编码
        /// </summary>
        [DisplayName("时段编码")]
        public string PRD_CODE { get; set; }
        /// <summary>
        /// 抽检批次号
        /// </summary>
        [DisplayName("抽检批次号")]
        public string OBA_BATCH { get; set; }
        /// <summary>
        /// 锁定批次号
        /// </summary>
        [DisplayName("锁定批次号")]
        public string LOCK_BATCH { get; set; }
        /// <summary>
        /// 不良原因编码
        /// </summary>
        [DisplayName("不良原因编码")]
        public string RSN_CODE { get; set; }
        /// <summary>
        /// 不良原因名称
        /// </summary>
        [DisplayName("不良原因名称")]
        public string RSN_NAME { get; set; }
        /// <summary>
        /// 是否必须更换零件(Y/N)
        /// </summary>
        [DisplayName("是否必须更换零件(Y/N)")]
        public string NEED_REPLACE { get; set; }
        /// <summary>
        /// 不良责任编码
        /// </summary>
        [DisplayName("不良责任编码")]
        public string DUTY_CODE { get; set; }
        /// <summary>
        /// 不良责任名称
        /// </summary>
        [DisplayName("不良责任名称")]
        public string DUTY_NAME { get; set; }
        /// <summary>
        /// 缺陷位置编码
        /// </summary>
        [DisplayName("缺陷位置编码")]
        public string LOC_CODE { get; set; }
        /// <summary>
        /// 缺陷位置名称
        /// </summary>
        [DisplayName("缺陷位置名称")]
        public string LOC_NAME { get; set; }
        /// <summary>
        /// 不良解决方案编码
        /// </summary>
        [DisplayName("不良解决方案编码")]
        public string SOL_CODE { get; set; }
        /// <summary>
        /// 不良解决方案名称
        /// </summary>
        [DisplayName("不良解决方案名称")]
        public string SOL_NAME { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string REMARK { get; set; }
        /// <summary>
        /// 追溯信息
        /// </summary>
        [DisplayName("追溯信息")]
        public string TRACE_INFO { get; set; }
        #endregion
 
        #region 虚拟属性
        /*例子
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
        #endregion
 
        #region 外键属性
        /*例子
        //一对一外键导航
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是MES_WIP_DFT类里面的外键ID字段
        public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
        //一对多外键导航
        [Navigate(NavigateType.OneToMany, nameof(ClassA.MES_WIP_DFTId))]//ClassA表中的MES_WIP_DFTId
        public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
        //多对多外键导航
        [Navigate(typeof(MappingClass), nameof(MappingClass.MES_WIP_DFTId), nameof(MappingClass.ClassAId))]//注意顺序
        public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null
        */
        #endregion
 
        #region 枚举变量
        /*例子
        public enum FieldNames
        {
            [Description("枚举描述0")]
            Enum0,
            [Description("枚举描述1")]
            Enum1,
        }
        */
 
        /// <summary>
        /// 枚举:状态(0WaitHandle待处理|1Repairing维修中|2Resolved已处理|3Scrap已报废)
        /// </summary>
        public enum STATUSs
        {
            [Description("待处理")]
            WaitHandle = 0,
            [Description("维修中")]
            Repairing = 1,
            [Description("已处理")]
            Resolved = 2,
            [Description("已报废")]
            Scrap = 3,
        }
 
        /// <summary>
        /// 枚举:缺陷等级(0MI轻微缺陷|1MA严重缺陷|2CR致命缺陷)
        /// </summary>
        public enum DFT_LEVELs
        {
            [Description("轻微缺陷")]
            MI = 0,
            [Description("严重缺陷")]
            MA = 1,
            [Description("致命缺陷")]
            CR = 2,
        }
        #endregion
 
        #region 公共方法
 
        #endregion
 
    }//endClass
}