BusWorkOrderHead.cs
9.98 KB
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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace HHECS.Model.Entities
{
/// <summary>
/// 工序任务头表
/// </summary>
[Table("bus_workOrder_head")]
[Serializable]
public class BusWorkOrderHead : BaseEntityCU<int>
{
[Column("keys")]
public Guid Keys { get; set; }
/// <summary>
/// 工艺路线keys
/// </summary>
[Column("processHeadKeys")]
public Guid ProcessHeadKeys { get; set; }
/// <summary>
/// 产品表code
/// </summary>
[Column("productHeaderCode")]
public string ProductHeaderCode { get; set; }
/// <summary>
/// 产品名称
/// </summary>
[Column("productName")]
public string ProductName { get; set; }
/// <summary>
/// 工单code 生产订单号
/// </summary>
[Column("workOrderCode")]
public string WorkOrderCode { get; set; }
/// <summary>
/// 生产订单名称
/// </summary>
[Column("workOrderName")]
public string WorkOrderName { get; set; }
/// <summary>
/// 生产计划号 唯一
/// </summary>
[Column("planCode")]
public string PlanCode { get; set; }
/// <summary>
/// 工单工作包Code
/// </summary>
[Column("otherOrderCode")]
public string OtherOrderCode { get; set; }
/// <summary>
/// 订单类型 1:正常订单;2:返工返修订单
/// </summary>
[Column("orderType")]
public string OrderType { get; set; }
/// <summary>
/// 项目编码
/// </summary>
[Column("projectCode")]
public string ProjectCode { get; set; }
/// <summary>
/// 项目名称
/// </summary>
[Column("projectName")]
public string ProjectName { get; set; }
/// <summary>
/// 管线号/图纸号
/// </summary>
[Column("lineNo")]
public string LineNo { get; set; }
/// <summary>
/// 工厂编码
/// </summary>
[Column("factoryCode")]
public string FactoryCode { get; set; }
/// <summary>
/// 产线Code
/// </summary>
[Column("lineCode")]
public string LineCode { get; set; }
/// <summary>
/// 当前工序(方便查询)
/// </summary>
[Column("nowOprSequenceCode")]
public string NowOprSequenceCode { get; set; }
/// <summary>
/// true 报废 false未报废
/// </summary>
[Column("isScrap")]
public bool IsScrap { get; set; }
//[Column("attachment1PrintInfo")]
///// <summary>
///// 附件一打印信息
///// </summary>
//public string attachment1PrintInfo { get; set; }
///// <summary>
///// 附件二打印信息
///// </summary>
//public string attachment2PrintInfo { get; set; }
/// <summary>
/// 任务状态
/// </summary>
[Column("state")]
public int State { get; set; }
/// <summary>
/// 计划开始时间
/// </summary>
[Column("planStartTime")]
public DateTime PlanStartTime { get; set; }
/// <summary>
/// 计划结束时间
/// </summary>
[Column("planEndTime")]
public DateTime PlanEndTime { get; set; }
/// <summary>
/// 实际开始时间(进线时间)
/// </summary>
[Column("actualStartTime")]
public DateTime ActualStartTime { get; set; }
/// <summary>
/// 实际结束时间 出线时间
/// </summary>
[Column("actualEndTime")]
public DateTime ActualEndTime { get; set; }
/// <summary>
/// 下个工序
/// </summary>
[Column("nextOprSequenceCode")]
public string NextOprSequenceCode { get; set; }
/// <summary>
/// 当前工位
/// </summary>
[Column("nowStationCode")]
public string NowStationCode { get; set; }
/// <summary>
/// 下一个工位
/// </summary>
[Column("nextStationCode")]
public string NextStationCode { get; set; }
[Column("plmeId")]
public string PlmeId { get; set; }
/// <summary>
/// 工艺路线版本
/// </summary>
[Column("edition")]
public decimal Edition { get; set; }
/// <summary>
/// 扩展字段1
/// </summary>
[Column("extend1")]
public string Extend1 { get; set; }
/// <summary>
/// 扩展字段2
/// </summary>
[Column("extend2")]
public string Extend2 { get; set; }
/// <summary>
/// 扩展字段3
/// </summary>
[Column("extend3")]
public string Extend3 { get; set; }
/// <summary>
/// 扩展字段4
/// </summary>
[Column("extend4")]
public string Extend4 { get; set; }
/// <summary>
/// 1弃用0 删除
/// </summary>
[Column("isDelete")]
public int IsDelete { get; set; }
/// <summary>
///
/// </summary>
[Column("topKeys")]
public Guid TopKeys { get; set; }
/// <summary>
///
/// </summary>
[Column("projectSerialNumber")]
public string ProjectSerialNumber { get; set; }
/// <summary>
/// 工件编码
/// </summary>
[Column("workPieceNo")]
public string WorkPieceNo { get; set; }
/// <summary>
/// 管件码
/// </summary>
[Column("pipePartsNo")]
public string PipePartsNo { get; set; }
/// <summary>
/// 管件9位码
/// </summary>
[Column("pipePartsCode")]
public string PipePartsCode { get; set; }
/// <summary>
/// 涂装信息
/// </summary>
[Column("paintCode")]
public string PaintCode { get; set; }
/// <summary>
/// 组立信息
/// </summary>
[Column("assemblageInfo")]
public string AssemblageInfo { get; set; }
/// <summary>
/// 系列
/// </summary>
[Column("range")]
public string Range { get; set; }
/// <summary>
/// 直径
/// </summary>
[Column("diameter")]
public string Diameter { get; set; }
/// <summary>
/// 壁厚
/// </summary>
[Column("thickness")]
public string Thickness { get; set; }
/// <summary>
/// 等级
/// </summary>
[Column("level")]
public string Level { get; set; }
/// <summary>
/// 物质编码
/// </summary>
[Column("materielCode")]
public string MaterielCode { get; set; }
/// <summary>
/// 切割长度
/// </summary>
[Column("cutLength")]
public int CutLength { get; set; }
/// <summary>
/// 流向1
/// </summary>
[Column("flowOrientation1")]
public string FlowOrientation1 { get; set; }
/// <summary>
/// 流向2
/// </summary>
[Column("flowOrientation2")]
public string FlowOrientation2 { get; set; }
/// <summary>
/// 附件1
/// </summary>
[Column("attachment1")]
public string Attachment1 { get; set; }
/// <summary>
/// 说明1
/// </summary>
[Column("instructions1")]
public string Instructions1 { get; set; }
/// <summary>
/// 附件2
/// </summary>
[Column("attachment2")]
public string Attachment2 { get; set; }
/// <summary>
/// 说明2
/// </summary>
[Column("instructions2")]
public string Instructions2 { get; set; }
/// <summary>
/// 坡口2
/// </summary>
[Column("bevels2")]
public string Bevels2 { get; set; }
/// <summary>
/// 扭转角度
/// </summary>
[Column("turningAngle")]
public string TurningAngle { get; set; }
/// <summary>
/// 工单主表base_work_order_head的keys
/// </summary>
[Column("headKeys")]
public Guid HeadKeys { get; set; }
#region 添加的实体,用于存放相关信息
/// <summary>
/// 线体
/// </summary>
[NotMapped]
public Line LineVM { get; set; }
/// <summary>
/// 工单类型描述
/// </summary>
[NotMapped]
public string WoTypeDesc { get; set; }
/// <summary>
/// 物料信息
/// </summary>
[NotMapped]
public BaseMaterial MaterialVM { get; set; }
/// <summary>
/// 工艺路线头
/// </summary>
[NotMapped]
public BaseProcessRouteHead ProcessRouteHead { get; set; }
/// <summary>
/// 当前工艺路线明细
/// </summary>
[NotMapped]
public BaseProcessRouteDetail ProcessRouteDetail { get; set; }
/// <summary>
/// 下一个工艺路线明细
/// </summary>
[NotMapped]
public BaseProcessRouteDetail NextProcessRouteDetail { get; set; }
/// <summary>
/// 当前工位信息
/// </summary>
[NotMapped]
public BaseWorkStation StationIdVM { get; set; }
/// <summary>
/// 下个工位信息
/// </summary>
[NotMapped]
public BaseWorkStation NextStationIdVM { get; set; }
/// <summary>
/// 状态描述
/// </summary>
[NotMapped]
public string StatusDesc { get; set; }
/// <summary>
/// 状态vm
/// </summary>
[NotMapped]
public int StatusVM { get; set; }
#endregion
}
}