|
|
|
@ -1305,7 +1305,10 @@ public class MesEnumUtil {
|
|
|
|
|
MES_WORK_CENTER(150, "生产线"),
|
|
|
|
|
MES_WORK_CELL(160, "工位"),
|
|
|
|
|
MES_WC_EQUIPMENT(170, "工位设备关系表"),
|
|
|
|
|
MES_SHIFT(180, "班次");
|
|
|
|
|
MES_SHIFT(180, "班次"),
|
|
|
|
|
MES_SHIFT_GROUP(190, "班组"),
|
|
|
|
|
MES_WORK_CELL_PARAM_CFG(200, "工作单元参数配置"),
|
|
|
|
|
MES_PROCESS_BOM(210, "工序BOM表");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -3481,4 +3484,50 @@ public class MesEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* MesWorkCellParamCfg 工作单元参数配置 是否必须校验
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_WORK_CELL_PARAM_CFG_IS_CHECK {
|
|
|
|
|
|
|
|
|
|
RUNNING(1, "是"),
|
|
|
|
|
STOPPED(2, "否");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MES_WORK_CELL_PARAM_CFG_IS_CHECK(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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Integer descriptionOfValue(String description) {
|
|
|
|
|
Integer tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(description)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|