|
|
@ -316,7 +316,8 @@ public class MesEnumUtil {
|
|
|
|
NORMAL(10, "正常"),
|
|
|
|
NORMAL(10, "正常"),
|
|
|
|
ONLINE(20, "已上线"),
|
|
|
|
ONLINE(20, "已上线"),
|
|
|
|
OFFLINE(30, "已下线"),
|
|
|
|
OFFLINE(30, "已下线"),
|
|
|
|
CLOSE(40,"已关闭"),;
|
|
|
|
CLOSE(40, "已关闭"),
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
private int value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
@ -392,7 +393,8 @@ public class MesEnumUtil {
|
|
|
|
OFFLINE(30, "下线"),
|
|
|
|
OFFLINE(30, "下线"),
|
|
|
|
INSTOCKED(40, "入库"),
|
|
|
|
INSTOCKED(40, "入库"),
|
|
|
|
SHIPING(50, "发运"),
|
|
|
|
SHIPING(50, "发运"),
|
|
|
|
CLOSE(90,"关闭"),;
|
|
|
|
CLOSE(90, "关闭"),
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
private int value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
@ -645,6 +647,7 @@ public class MesEnumUtil {
|
|
|
|
return tmp;
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 工步参数类型
|
|
|
|
* 工步参数类型
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -710,4 +713,80 @@ public class MesEnumUtil {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 动作类型枚举
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum ACTION_TYPE {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SEATS(10, "座椅"),
|
|
|
|
|
|
|
|
METAL(20, "金属件"),
|
|
|
|
|
|
|
|
FOAMING(30, "发泡");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ACTION_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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 事件类型枚举
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum EVENT_TYPE {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SEATS(10, "座椅"),
|
|
|
|
|
|
|
|
METAL(20, "金属件"),
|
|
|
|
|
|
|
|
FOAMING(30, "发泡");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EVENT_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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|