|
|
|
@ -13,13 +13,12 @@ public class MesPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* mes-pcn定时任务状态
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_PCN_TASK_STATUS{
|
|
|
|
|
public enum MES_PCN_TASK_STATUS {
|
|
|
|
|
|
|
|
|
|
OPEN(1,"OPEN"),
|
|
|
|
|
CLOSE(2,"CLOSE");
|
|
|
|
|
OPEN(1, "OPEN"),
|
|
|
|
|
CLOSE(2, "CLOSE");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -50,13 +49,12 @@ public class MesPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* mes-pcn定时任务同步结果状态
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_PCN_TASK_SYNC_STATUS{
|
|
|
|
|
public enum MES_PCN_TASK_SYNC_STATUS {
|
|
|
|
|
|
|
|
|
|
SUCCESS(1,"mes主服务定时任务工作清单同步成功"),
|
|
|
|
|
ERROR(2,"mes主服务定时任务工作清单同步失败");
|
|
|
|
|
SUCCESS(1, "mes主服务定时任务工作清单同步成功"),
|
|
|
|
|
ERROR(2, "mes主服务定时任务工作清单同步失败");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -90,10 +88,10 @@ public class MesPcnEnumUtil {
|
|
|
|
|
* 10.
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SYNC_PATTERN{
|
|
|
|
|
public enum SYNC_PATTERN {
|
|
|
|
|
|
|
|
|
|
UPDATE(1,"修改或新增"),
|
|
|
|
|
INSERT(2,"新增");
|
|
|
|
|
UPDATE(1, "修改或新增"),
|
|
|
|
|
INSERT(2, "新增");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -127,10 +125,10 @@ public class MesPcnEnumUtil {
|
|
|
|
|
* 10.
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SYNC_TYPE{
|
|
|
|
|
public enum SYNC_TYPE {
|
|
|
|
|
|
|
|
|
|
GET_MES_DATA(1,"pcn获取mes数据"),
|
|
|
|
|
DATA_TO_MES(2,"pcn推送数据至mes");
|
|
|
|
|
GET_MES_DATA(1, "pcn获取mes数据"),
|
|
|
|
|
DATA_TO_MES(2, "pcn推送数据至mes");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -232,4 +230,119 @@ public class MesPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* RAW_PART_TYPE 原材料类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum RAW_PART_TYPE {
|
|
|
|
|
|
|
|
|
|
RAW(10, "lotNo", "原材料"),
|
|
|
|
|
SEMIFINISHED(20, "fixLotNo", "半成品");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
RAW_PART_TYPE(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PROCESS_BOM_ISFEED 是否投料
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum PROCESS_BOM_ISFEED {
|
|
|
|
|
|
|
|
|
|
FEED(1, "投料"),
|
|
|
|
|
NOT_FEED(2, "不投料");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
PROCESS_BOM_ISFEED(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|