1
schangxiang@126.com
2024-08-30 120e7a933c675b5587db9db17bb202075cacee00
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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace iWare.Wms.Core
{
    [Table("WorkPieceInfo")]
    [Comment("工件信息表")]
    public class WorkPieceInfo : DEntityBase
    {
        /// <summary>
        /// 质量不合格原因类型,枚举QualityNoOkEnum 【Editby shaocx,2024-06-26】
        /// </summary>
        public int? QualityNoOk { get; set; }
 
        /// <summary>
        /// 质量不合格原因 【Editby shaocx,2024-06-26】
        /// </summary>
        public string QualityNoOkReason { get; set; }
 
        /// <summary>
        /// 工件号
        /// </summary>
        [Comment("工件号")]
        [Required, MaxLength(32)]
        public string WorkPieceID { get; set; }
 
        /// <summary>
        /// 工件OP80打的码
        /// </summary>
        [Comment("工件OP80码")]
        public string OP80NewCode { get; set; }
 
        /// <summary>
        /// 工件状态;在制品还是完成
        /// </summary>
        [Comment("工件状态")]
        public int? WorkPieceState { get; set; }
 
        /// <summary>
        /// 工件当前位置序号;最大值21亿多,可以考虑一直累加
        /// </summary>
        [Comment("工件当前位置序号")]
        public int? WorkPieceCurrentPositionOrder { get; set; }
 
        /// <summary>
        /// 工件当前位置;设备中或者两个设备中间的输送辊道上
        /// </summary>
        [Comment("工件当前位置")]
        [MaxLength(255)]
        public string WorkPieceCurrentPosition { get; set; }
 
        /// <summary>
        /// 当前设备
        /// </summary>
        [Comment("当前设备")]
        [MaxLength(32)]
        public string EquipmentID { get; set; }
 
        /// <summary>
        /// 当前已完成工序流程;每次已完成工序累积上来,下次进入工序若不符合计划的则提示
        /// </summary>
        [Comment("当前已完成工序流程")]
        [MaxLength(255)]
        public string WorkingProcedureCompleted { get; set; }
 
        /// <summary>
        /// 计划工序流程;OP05OP10PO20OP30OP40OP50OP60OP80OP90,此处是否需要可配置流程待定
        /// </summary>
        [Comment("计划工序流程")]
        [MaxLength(255)]
        public string WorkingProcedurePlan { get; set; }
 
        /// <summary>
        /// 当前工序;进入下一工序前,此工序不变化
        /// </summary>
        [Comment("当前工序")]
        [MaxLength(32)]
        public string WorkingProcedureCurrent { get; set; }
 
        /// <summary>
        /// 工序开始时间
        /// </summary>
        [Comment("工序开始时间")]
        public DateTime? WorkingProcedureStartTime { get; set; }
        [Comment("工序结束时间")]
        public DateTime? WorkingProcedureEndTime { get; set; }
 
        /// <summary>
        /// 当前工序加工时长
        /// </summary>
        [Comment("当前工序加工时长")]
        public int? ProcessingDurationForCurrent { get; set; }
 
        /// <summary>
        /// 总加工时长
        /// </summary>
        [Comment("总加工时长")]
        public int? ProcessingDurationTotal { get; set; }
 
        /// <summary>
        /// 首工序上线时间
        /// </summary>
        [Comment("首工序上线时间")]
        public DateTime? WorkPieceinitOnlineTime { get; set; }
 
        /// <summary>
        /// 工序下线时间
        /// </summary>
        [Comment("工序下线时间")]
        public DateTime? WorkPieceLastOfflineTime { get; set; }
 
        /// <summary>
        /// 数量
        /// </summary>
        [Comment("数量")]
        public int? Number { get; set; }
 
        /// <summary>
        /// 供应商
        /// </summary>
        [Comment("供应商")]
        [MaxLength(2)]
        public string WorkPieceIDTo1 { get; set; }
 
        /// <summary>
        /// 零件设计尾号
        /// </summary>
        [Comment("零件设计尾号")]
        [MaxLength(4)]
        public string WorkPieceIDTo2 { get; set; }
 
        /// <summary>
        /// 年月日
        /// </summary>
        [Comment("年月日")]
        [MaxLength(6)]
        public string WorkPieceIDTo3 { get; set; }
 
        /// <summary>
        /// 班次
        /// </summary>
        [Comment("班次")]
        [MaxLength(2)]
        public string WorkPieceIDTo4 { get; set; }
 
        /// <summary>
        /// 流水号
        /// </summary>
        [Comment("流水号")]
        [MaxLength(4)]
        public string WorkPieceIDTo5 { get; set; }
 
        /// <summary>
        /// 模具号
        /// </summary>
        [Comment("模具号")]
        [MaxLength(2)]
        public string WorkPieceIDTo6 { get; set; }
 
        /// <summary>
        /// 炉号
        /// </summary>
        [Comment("炉号")]
        [MaxLength(2)]
        public string WorkPieceIDTo7 { get; set; }
 
        /// <summary>
        /// 质量状态;合格、不合格、疑似
        /// </summary>
        [Comment("质量状态")]
        public int? QualityState { get; set; }
 
        /// <summary>
        /// 质量不合格原因
        /// </summary>
        [Comment("质量不合格原因")]
        [MaxLength(255)]
        public string QualityErrorInfo { get; set; }
 
        /// <summary>
        /// 质量状态变更人
        /// </summary>
        [Comment("质量状态变更人")]
        [MaxLength(32)]
        public string QualityStateUpdateUser { get; set; }
 
        /// <summary>
        /// 质量状态变更时间
        /// </summary>
        [Comment("质量状态变更时间")]
        public DateTime? QualityStateUpdateTime { get; set; }
 
        /// <summary>
        /// 质量状态变更方式;手动或自动
        /// </summary>
        [Comment("质量状态变更方式")]
        [MaxLength(32)]
        public string QualityStateUpdateMode { get; set; }
 
        /// <summary>
        /// 告警类型
        /// </summary>
        [Comment("告警类型")]
        public int? AlertType { get; set; }
 
        /// <summary>
        /// 告警内容
        /// </summary>
        [Comment("告警内容")]
        [MaxLength(255)]
        public string AlertMsg { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [Comment("备注")]
        [MaxLength(255)]
        public string Remarks { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [Comment("Log添加时间")]
        [MaxLength(255)]
        public DateTime? LogAddTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Comment("Log新增备注")]
        [MaxLength(255)]
        public string LogAddRemark { get; set; }
 
        /// <summary>
        /// 完成时间
        /// </summary>
        [Comment("完成时间")]
        public DateTime? CompleteTime { get; set; }
 
 
 
        /// <summary>
        /// 下线阶段
        /// </summary>
        [Comment("下线阶段")]
        public PieceUnLineStage? UnLineStage { get; set; }
 
        /// <summary>
        /// 下线阶段名称
        /// </summary>
        [Comment("下线阶段名称")]
        public String UnLineStageName { get; set; }
 
        #region 下线
 
        /// <summary>
        /// 下线时间
        /// </summary>
        [Comment("下线时间")]
        public DateTime? WorkPieceUnLineTime { get; set; }
 
 
        /// <summary>
        /// 下线人Id
        /// </summary>
        [Comment("下线人Id")]
        public long? WorkPieceUnLineUserId { get; set; }
 
        /// <summary>
        /// 下线人名称
        /// </summary>
        [Comment("下线人名称")]
        [MaxLength(32)]
        public string WorkPieceUnLineUserName { get; set; }
 
        #endregion
 
        #region 出库相关
 
        /// <summary>
        /// 是否出库
        /// </summary>
        [Comment("是否出库")]
        public bool? IsOut { get; set; }
 
        /// <summary>
        /// 出库人
        /// </summary>
        [Comment("出库人")]
        [MaxLength(255)]
        public string OutPerson { get; set; }
 
        /// <summary>
        /// 出库备注
        /// </summary>
        [Comment("出库备注")]
        [MaxLength(255)]
        public string OutRemark { get; set; }
 
        /// <summary>
        /// 出库时间
        /// </summary>
        [Comment("出库时间")]
        public DateTime? OutTime { get; set; }
 
        #endregion
    }
}