|
|
|
@ -292,7 +292,44 @@ public class MesExtEnumUtil {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 设备变量类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|
shape = JsonFormat.Shape.OBJECT
|
|
|
|
|
)
|
|
|
|
|
public static enum SECOND_CATEGORY {
|
|
|
|
|
SECOND_CATEGORY_10(10, "物理设备"),
|
|
|
|
|
SECOND_CATEGORY_20(20, "虚拟设备");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private SECOND_CATEGORY(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 设备点检-点检单类型
|
|
|
|
|
*/
|
|
|
|
@ -1209,6 +1246,204 @@ public class MesExtEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 产线类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|
shape = JsonFormat.Shape.OBJECT
|
|
|
|
|
)
|
|
|
|
|
public static enum LINE_TYPE {
|
|
|
|
|
LINE_TYPE_10(10, "排序产线"),
|
|
|
|
|
LINE_TYPE_20(20, "非排序产线");
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private LINE_TYPE(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 生成拉动单的工单状态
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|
shape = JsonFormat.Shape.OBJECT
|
|
|
|
|
)
|
|
|
|
|
public static enum GENERATE_STATUS {
|
|
|
|
|
GENERATE_STATUS_10(10, "已发布"),
|
|
|
|
|
GENERATE_STATUS_20(20, "正在加工"),
|
|
|
|
|
GENERATE_STATUS_30(30, "未处理");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private GENERATE_STATUS(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 验证类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|
shape = JsonFormat.Shape.OBJECT
|
|
|
|
|
)
|
|
|
|
|
public static enum CHECK_TYPE {
|
|
|
|
|
CHECK_TYPE_10(10, "无序"),
|
|
|
|
|
CHECK_TYPE_20(20, "柔性焊顺序"),
|
|
|
|
|
CHECK_TYPE_30(30, "零件号加工顺序"),
|
|
|
|
|
CHECK_TYPE_40(40, "工单顺序");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private CHECK_TYPE(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 工单推送方式
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|
shape = JsonFormat.Shape.OBJECT
|
|
|
|
|
)
|
|
|
|
|
public static enum PUSH_TYPE {
|
|
|
|
|
PUSH_TYPE_10(10, "自动推送"),
|
|
|
|
|
PUSH_TYPE_20(20, "手动扫描");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private PUSH_TYPE(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 条码输入模式
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|
shape = JsonFormat.Shape.OBJECT
|
|
|
|
|
)
|
|
|
|
|
public static enum SN_ENTER_TYPE {
|
|
|
|
|
SN_ENTER_TYPE_10(10, "扫描器带回车"),
|
|
|
|
|
SN_ENTER_TYPE_20(20, "条码带回车"),
|
|
|
|
|
SN_ENTER_TYPE_30(20, "条码自带回车");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private SN_ENTER_TYPE(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 缺陷类型-类别
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
@ -1248,5 +1483,4 @@ public class MesExtEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|