|
|
|
@ -12,6 +12,159 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
public class MesEnumUtil {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* mes 图片面位
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_SIDE_LOCATION {
|
|
|
|
|
|
|
|
|
|
A_SIDE(10, "A面"),
|
|
|
|
|
B_SIDE(20, "B面"),
|
|
|
|
|
C_SIDE(30, "C面"),
|
|
|
|
|
D_SIDE(40, "D面");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MES_SIDE_LOCATION(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缺陷类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_DEFECT_TYPE {
|
|
|
|
|
|
|
|
|
|
DEFECT_TYPE1(10, "缺陷类型1"),
|
|
|
|
|
DEFECT_TYPE2(20, "缺陷类型2"),
|
|
|
|
|
DEFECT_TYPE3(30, "缺陷类型3");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MES_DEFECT_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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* mes类型信息,业务类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_TYPE_CFG_BUSIN_TYPE {
|
|
|
|
|
|
|
|
|
|
BUSIN_TYPE1(10, "业务类型1"),
|
|
|
|
|
BUSIN_TYPE2(20, "业务类型2"),
|
|
|
|
|
BUSIN_TYPE3(30, "业务类型3");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MES_TYPE_CFG_BUSIN_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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* mes缺陷原因类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_DEFECT_CAUSE_TYPE {
|
|
|
|
|
|
|
|
|
|
QUALITY_DEFECTS(10, "质量缺陷"),
|
|
|
|
|
PROCESS_DEFECTS(20, "工艺缺陷"),
|
|
|
|
|
EQUIPMENT_DEFECT(30, "设备缺陷");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MES_DEFECT_CAUSE_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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* mes设备作业任务明细-执行状态
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@ -452,8 +605,8 @@ public class MesEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_WORK_CELL_TYPE {
|
|
|
|
|
|
|
|
|
|
NORMAL(1, "正常"),
|
|
|
|
|
REWORK(2, "返修");
|
|
|
|
|
NORMAL(10, "正常"),
|
|
|
|
|
REWORK(20, "返修");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -500,8 +653,8 @@ public class MesEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_ACTION_TYPE {
|
|
|
|
|
|
|
|
|
|
BIND(1, "绑定"),
|
|
|
|
|
UNTYING(2, "解绑");
|
|
|
|
|
BIND(10, "绑定"),
|
|
|
|
|
UNTYING(20, "解绑");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -548,8 +701,8 @@ public class MesEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_IS_KEY {
|
|
|
|
|
|
|
|
|
|
IS_KEY(1, "是"),
|
|
|
|
|
NO_KEY(2, "否");
|
|
|
|
|
IS_KEY(10, "是"),
|
|
|
|
|
NO_KEY(20, "否");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -596,8 +749,8 @@ public class MesEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_REPAIR_STATUS {
|
|
|
|
|
|
|
|
|
|
REPAIRED(1, "已维修"),
|
|
|
|
|
NO_REPAIR(2, "待维修");
|
|
|
|
|
REPAIRED(10, "已维修"),
|
|
|
|
|
NO_REPAIR(20, "待维修");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -644,11 +797,11 @@ public class MesEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_OPERATE_TYPE {
|
|
|
|
|
|
|
|
|
|
WORKSTATION_SCAN(1, "工位扫描"),
|
|
|
|
|
QUALITY_JUDGEMENT(2, "质量判定"),
|
|
|
|
|
MATERIAL_DISMANTLING(3, "物料拆解"),
|
|
|
|
|
REWORK(4, "返修作业"),
|
|
|
|
|
WORKSTATION_MONITORING(5, "工位监控");
|
|
|
|
|
WORKSTATION_SCAN(10, "工位扫描"),
|
|
|
|
|
QUALITY_JUDGEMENT(20, "质量判定"),
|
|
|
|
|
MATERIAL_DISMANTLING(30, "物料拆解"),
|
|
|
|
|
REWORK(40, "返修作业"),
|
|
|
|
|
WORKSTATION_MONITORING(50, "工位监控");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -1323,9 +1476,7 @@ public class MesEnumUtil {
|
|
|
|
|
public enum PASS_FAIL {
|
|
|
|
|
|
|
|
|
|
PASS(1, "合格"),
|
|
|
|
|
FAIL(2, "不合格"),
|
|
|
|
|
SCRAP(3, "报废"),
|
|
|
|
|
DISMANTLED(4, "已拆解");
|
|
|
|
|
FAIL(2, "不合格");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -1796,7 +1947,8 @@ public class MesEnumUtil {
|
|
|
|
|
|
|
|
|
|
QUALIFIED(10, "合格"),
|
|
|
|
|
DEFECTED(20, "不合格"),
|
|
|
|
|
SCRAPED(30, "报废");
|
|
|
|
|
SCRAPED(30, "报废"),
|
|
|
|
|
DISMANTLED(40, "已拆解");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -2104,7 +2256,8 @@ public class MesEnumUtil {
|
|
|
|
|
UPDATE_SYNC_TIME(50, "UPDATE_SYNC_TIME"),
|
|
|
|
|
PCN_PULL(60, "PCN_PULL"),
|
|
|
|
|
PCN_PUSH(70, "PCN_PUSH"),
|
|
|
|
|
FDFS_DOWNLOAD(80, "FDFS_DOWNLOAD");
|
|
|
|
|
FDFS_DOWNLOAD(80, "FDFS_DOWNLOAD"),
|
|
|
|
|
REWORK_REPAIR(90, "REWORK_REPAIR");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|