MES 生产计划枚举

yun-zuoyi
crish 6 years ago
parent bbf0fb6b62
commit 4d9b1efb69

@ -46,4 +46,119 @@ public class MesEnumUtil {
return tmp;
}
}
/**
* MesPlanOrderstatus
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PALN_ORDER_STATUS{
CREATE(10,"创建"),
DE_COMPOSE_ING(20,"分解中"),
DE_COMPOSE_ED(30,"分解完成"),
CLOSE(40,"关闭");
private int value;
private String description;
PALN_ORDER_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* MesWorkOrderworkOrderStatus
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_ORDER_STATUS{
CREATE(10,"创建"),
LANDED(20,"下达"),
OPEN(30,"开启"),
PAUSE(40,"暂停"),
CANCEL(50,"撤销"),
CLOSE(60,"关闭");
private int value;
private String description;
WORK_ORDER_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* MesWorkOrderworkOrderType
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_ORDER_TYPE{
STANDARD_ORDER(10,"标准工单"),
BTS_ORDER(20,"BTS工单"),
ATTEMPT_ORDER(30,"试制工单");
private int value;
private String description;
WORK_ORDER_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save