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;
|
}
|
}
|