|
|
|
@ -375,21 +375,21 @@ public class MesEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_MATCH_TYPE {
|
|
|
|
|
|
|
|
|
|
ORGANIZATION("10", "工厂"),
|
|
|
|
|
PART("20", "物料"),
|
|
|
|
|
CUST_CODE("30", "客户代码"),
|
|
|
|
|
CUST_PART_NO("40", "客户物料号"),
|
|
|
|
|
WORK_CENTER("50", "产线");
|
|
|
|
|
ORGANIZATION(10, "工厂"),
|
|
|
|
|
PART(20, "物料"),
|
|
|
|
|
CUST_CODE(30, "客户代码"),
|
|
|
|
|
CUST_PART_NO(40, "客户物料号"),
|
|
|
|
|
WORK_CENTER(50, "产线");
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MES_MATCH_TYPE(String value, String description) {
|
|
|
|
|
MES_MATCH_TYPE(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -397,7 +397,7 @@ public class MesEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(String val) {
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
@ -414,19 +414,19 @@ public class MesEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_CODE_TYPE {
|
|
|
|
|
|
|
|
|
|
SERIAL_SN("10", "过程条码"),
|
|
|
|
|
PRODUCT_SN("20", "产品条码"),
|
|
|
|
|
PACK_SN("30", "包装条码");
|
|
|
|
|
SERIAL_SN(10, "过程条码"),
|
|
|
|
|
PRODUCT_SN(20, "产品条码"),
|
|
|
|
|
PACK_SN(30, "包装条码");
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MES_CODE_TYPE(String value, String description) {
|
|
|
|
|
MES_CODE_TYPE(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -434,7 +434,7 @@ public class MesEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(String val) {
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
|