严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
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
package com.northglass.entity;
 
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;
 
@Entity
@Table(name = "gmms_singal_glass")
public class SingalGlass extends IdEntity {
 
    private int glassId;
    // private String manufactureId;
    // private int processSequence;
    
 
    private double startlength;// 起始宽度
    private double startwidth;// 起始高度
    
    private double length;// 宽度
    private double width;// 高度
    private double thickness;// 单片名称 包含厚度和颜色。这里分开定义,先定义一个厚度
    private String color;// 颜色
    private String customer;// 客户名称
    // private String manufacturer;
    // private String comment;
    private String state;
    private String groups;
    private String apart_id;// 流程卡号
    private String manufacture_batch;// 批次编号
    private int pieces;// 数量
    private int completePieces;
    private int arrangePieces;
    private String arrangeStatu;
 
    private RawPackageTxt rawPackageTxt;
    private OptPattern optPattern;
    
 
    // 新加字段
    private String application;// 项目名称
    private String production;// 成品名称
    private String floor_number;// 楼层编号
    private String order_number;// 订单序号
    private String piece_sign;// 片标记
    private String remark;// 明细备注
    
    //除膜+抛光
    private String remove;
    private String polish;
    
    private int sort;//单架排序
    //infoid
    private String infoId;
 
    public SingalGlass() {
    }
 
    public SingalGlass(double length, double width, int pieces, OptPattern optPattern) {
        super();
        this.length = length;
        this.width = width;
        this.pieces = pieces;
        this.optPattern = optPattern;
    }
 
    public SingalGlass(String arrangeStatu, int glassId, double length, double width, double thickness, String color,
            String customer, String state, String groups, String apart_id, String manufacture_batch, int pieces,
            int completePieces, RawPackageTxt rawPackageTxt) {
        super();
        this.arrangeStatu = arrangeStatu;
        this.glassId = glassId;
        this.length = length;
        this.width = width;
        this.thickness = thickness;
        this.color = color;
        this.customer = customer;
        this.state = state;
        this.groups = groups;
        this.apart_id = apart_id;
        this.manufacture_batch = manufacture_batch;
        this.pieces = pieces;
        this.completePieces = completePieces;
        this.rawPackageTxt = rawPackageTxt;
    }
 
    public SingalGlass(String arrangeStatu, int glassId, double length, double width, double thickness, String color,
            String customer, String state, String groups, String apart_id, String manufacture_batch, int pieces,
            int completePieces, RawPackageTxt rawPackageTxt, String application, String production,
            String floor_number, String order_number, String piece_sign, String remark) {
        super();
        this.arrangeStatu = arrangeStatu;
        this.glassId = glassId;
        this.length = length;
        this.width = width;
        this.thickness = thickness;
        this.color = color;
        this.customer = customer;
        this.state = state;
        this.groups = groups;
        this.apart_id = apart_id;
        this.manufacture_batch = manufacture_batch;
        this.pieces = pieces;
        this.completePieces = completePieces;
        this.rawPackageTxt = rawPackageTxt;
        this.application = application;
        this.production = production;
        this.floor_number = floor_number;
        this.order_number = order_number;
        this.piece_sign = piece_sign;
        this.remark = remark;
    }
 
    public SingalGlass(int glassId, double thickness, int pieces, String infoId) {
        super();
        this.glassId = glassId;
        this.thickness = thickness;
        this.pieces = pieces;
        this.infoId = infoId;
    }
 
    @ManyToOne(cascade = CascadeType.REFRESH)
    @JoinColumn(name = "raw_package_txt_id")
    public RawPackageTxt getRawPackageTxt() {
        return rawPackageTxt;
    }
 
    public void setRawPackageTxt(RawPackageTxt rawPackageTxt) {
        this.rawPackageTxt = rawPackageTxt;
    }
    
    @ManyToOne(cascade = CascadeType.REFRESH)
    @JoinColumn(name = "opt_pattern_id")
    public OptPattern getOptPattern() {
        return optPattern;
    }
 
 
 
    public void setOptPattern(OptPattern optPattern) {
        this.optPattern = optPattern;
    }
    public int getGlassId() {
        return glassId;
    }
 
    public void setGlassId(int glassId) {
        this.glassId = glassId;
    }
 
    public double getLength() {
        return length;
    }
 
    public void setLength(double length) {
        this.length = length;
    }
 
    public double getWidth() {
        return width;
    }
 
    public void setWidth(double width) {
        this.width = width;
    }
 
    public double getThickness() {
        return thickness;
    }
 
    public void setThickness(double thickness) {
        this.thickness = thickness;
    }
 
    public double getStartlength() {
        return startlength;
    }
 
    public void setStartlength(double startlength) {
        this.startlength = startlength;
    }
 
    public double getStartwidth() {
        return startwidth;
    }
 
    public void setStartwidth(double startwidth) {
        this.startwidth = startwidth;
    }
 
    public String getColor() {
        return color;
    }
 
    public void setColor(String color) {
        this.color = color;
    }
 
    public String getCustomer() {
        return customer;
    }
 
    public void setCustomer(String customer) {
        this.customer = customer;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    public String getGroups() {
        return groups;
    }
 
    public void setGroups(String groups) {
        this.groups = groups;
    }
 
    public String getApart_id() {
        return apart_id;
    }
 
    public void setApart_id(String apart_id) {
        this.apart_id = apart_id;
    }
 
    public String getManufacture_batch() {
        return manufacture_batch;
    }
 
    public void setManufacture_batch(String manufacture_batch) {
        this.manufacture_batch = manufacture_batch;
    }
 
    public int getPieces() {
        return pieces;
    }
 
    public void setPieces(int pieces) {
        this.pieces = pieces;
    }
 
    public int getCompletePieces() {
        return completePieces;
    }
 
    public void setCompletePieces(int completePieces) {
        this.completePieces = completePieces;
    }
 
    public String getApplication() {
        return application;
    }
 
    public void setApplication(String application) {
        this.application = application;
    }
 
    public String getProduction() {
        return production;
    }
 
    public void setProduction(String production) {
        this.production = production;
    }
 
    public String getFloor_number() {
        return floor_number;
    }
 
    public void setFloor_number(String floor_number) {
        this.floor_number = floor_number;
    }
 
    public String getOrder_number() {
        return order_number;
    }
 
    public void setOrder_number(String order_number) {
        this.order_number = order_number;
    }
 
    public String getPiece_sign() {
        return piece_sign;
    }
 
    public void setPiece_sign(String piece_sign) {
        this.piece_sign = piece_sign;
    }
 
    public String getRemark() {
        return remark;
    }
 
    public void setRemark(String remark) {
        this.remark = remark;
    }
 
    public int getArrangePieces() {
        return arrangePieces;
    }
 
    public void setArrangePieces(int arrangePieces) {
        this.arrangePieces = arrangePieces;
    }
 
    public String getArrangeStatu() {
        return arrangeStatu;
    }
 
    public void setArrangeStatu(String arrangeStatu) {
        this.arrangeStatu = arrangeStatu;
    }
 
    public String getInfoId() {
        return infoId;
    }
 
    public void setInfoId(String infoId) {
        this.infoId = infoId;
    }
 
    public String getRemove() {
        return remove;
    }
 
    public void setRemove(String remove) {
        this.remove = remove;
    }
 
    public String getPolish() {
        return polish;
    }
 
    public void setPolish(String polish) {
        this.polish = polish;
    }
 
    public int getSort() {
        return sort;
    }
 
    public void setSort(int sort) {
        this.sort = sort;
    }
 
    @Transient
    public String getDescription() {
        return this.rawPackageTxt.getTxt_name() + " [" + this.thickness + "mm " + this.length + "*" + this.width
                + "mm] " + " " + this.completePieces + "/" + this.pieces;
    }
}