|
|
@ -13,6 +13,116 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
public class MesEnumUtil {
|
|
|
|
public class MesEnumUtil {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* RAW_PART_STATUS 原材料状态
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum RAW_PART_STATUS {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
READY(10, "待投料"),
|
|
|
|
|
|
|
|
ALREADY(20, "已投料");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RAW_PART_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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 接口同步状态
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum IF_SYNC_STATUS {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NO_SYNC(10, "未同步"),
|
|
|
|
|
|
|
|
ALREADY_SYNC(20, "已同步"),
|
|
|
|
|
|
|
|
FAIL_SYNC(30, "同步失败");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF_SYNC_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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 包装层级 MES_PACKAGE
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum PACKAGE_PACKLEVEL {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FIRST(1, "第一层"),
|
|
|
|
|
|
|
|
SECOND(2, "第二层"),
|
|
|
|
|
|
|
|
THIRD(3, "第三层"),
|
|
|
|
|
|
|
|
FOURTH(4, "第四层");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PACKAGE_PACKLEVEL(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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* MesIf 交互方式
|
|
|
|
* MesIf 交互方式
|
|
|
@ -265,21 +375,21 @@ public class MesEnumUtil {
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum MES_MATCH_TYPE {
|
|
|
|
public enum MES_MATCH_TYPE {
|
|
|
|
|
|
|
|
|
|
|
|
ORGANIZATION("10", "工厂"),
|
|
|
|
ORGANIZATION(10, "工厂"),
|
|
|
|
PART("20", "物料"),
|
|
|
|
PART(20, "物料"),
|
|
|
|
CUST_CODE("30", "客户代码"),
|
|
|
|
CUST_CODE(30, "客户代码"),
|
|
|
|
CUST_PART_NO("40", "客户物料号"),
|
|
|
|
CUST_PART_NO(40, "客户物料号"),
|
|
|
|
WORK_CENTER("50", "产线");
|
|
|
|
WORK_CENTER(50, "产线");
|
|
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
private int value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
MES_MATCH_TYPE(String value, String description) {
|
|
|
|
MES_MATCH_TYPE(int value, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
public int getValue() {
|
|
|
|
return value;
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -287,7 +397,7 @@ public class MesEnumUtil {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(String val) {
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
String tmp = null;
|
|
|
|
String tmp = null;
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
if (values()[i].value == val) {
|
|
|
@ -304,19 +414,19 @@ public class MesEnumUtil {
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum MES_CODE_TYPE {
|
|
|
|
public enum MES_CODE_TYPE {
|
|
|
|
|
|
|
|
|
|
|
|
SERIAL_SN("10", "过程条码"),
|
|
|
|
SERIAL_SN(10, "过程条码"),
|
|
|
|
PRODUCT_SN("20", "产品条码"),
|
|
|
|
PRODUCT_SN(20, "产品条码"),
|
|
|
|
PACK_SN("30", "包装条码");
|
|
|
|
PACK_SN(30, "包装条码");
|
|
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
private int value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
MES_CODE_TYPE(String value, String description) {
|
|
|
|
MES_CODE_TYPE(int value, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
public int getValue() {
|
|
|
|
return value;
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -324,7 +434,7 @@ public class MesEnumUtil {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(String val) {
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
String tmp = null;
|
|
|
|
String tmp = null;
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
if (values()[i].value == val) {
|
|
|
@ -2852,7 +2962,8 @@ public class MesEnumUtil {
|
|
|
|
SUPPLY_SWITCH(150,"SUPPLY_SWITCH",""),
|
|
|
|
SUPPLY_SWITCH(150,"SUPPLY_SWITCH",""),
|
|
|
|
PCN_LOGIN(160, "PCN_LOGIN",""),
|
|
|
|
PCN_LOGIN(160, "PCN_LOGIN",""),
|
|
|
|
PCN_MENU(170, "PCN_MENU",""),
|
|
|
|
PCN_MENU(170, "PCN_MENU",""),
|
|
|
|
PCN_MODULE(180, "PCN_MODULE","");
|
|
|
|
PCN_MODULE(180, "PCN_MODULE",""),
|
|
|
|
|
|
|
|
PCN_LOGOUT(190, "PCN_LOGOUT","");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
private int value;
|
|
|
@ -2963,6 +3074,39 @@ public class MesEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum ONLINE_SEND_TYPE {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PLC("PLC", "PLC"),
|
|
|
|
|
|
|
|
DB("DB", "DB");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ONLINE_SEND_TYPE(String value, String description) {
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
|
|
|
return description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(String val) {
|
|
|
|
|
|
|
|
String tmp = null;
|
|
|
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return tmp;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* WC_CHECK_TYPE 开线检查的模块
|
|
|
|
* WC_CHECK_TYPE 开线检查的模块
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|