|
|
|
@ -286,6 +286,67 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 反馈信号子命令(灭灯状态)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SIGNAL_CHILD_CMD {
|
|
|
|
|
CHILD_CMD_06H("06", 6, "正常"),
|
|
|
|
|
CHILD_CMD_07H("07", 7, "缺货"),
|
|
|
|
|
CHILD_CMD_09H("09", 9, "标签自检"),
|
|
|
|
|
CHILD_CMD_0AH("0A", 10, "亮灯错误"),
|
|
|
|
|
CHILD_CMD_0BH("0B", 11, "查询设备故障,返回设备故障"),
|
|
|
|
|
CHILD_CMD_0CH("0C", 12, "设备无法执行命令,用错命令"),
|
|
|
|
|
CHILD_CMD_0DH("0D", 13, "卡键,按键卡住"),
|
|
|
|
|
CHILD_CMD_0FH("0F", 15, "返回库存模式下的缺货量"),
|
|
|
|
|
CHILD_CMD_64H("64", 100, "熄灭情况下返回"),
|
|
|
|
|
CHILD_CMD_FAH("FA", 250, "设备的 F/W 模型信息"),
|
|
|
|
|
CHILD_CMD_FCH("FC", 252, "标签产品信息");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private Integer value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
SIGNAL_CHILD_CMD(String code, Integer value, String description) {
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static SIGNAL_CHILD_CMD getByValue(String code) {
|
|
|
|
|
for (SIGNAL_CHILD_CMD signalChildCmd : values()) {
|
|
|
|
|
if (signalChildCmd.getCode().equals(code)) {
|
|
|
|
|
return signalChildCmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Integer codeOfValue(String code) {
|
|
|
|
|
Integer tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].code.equals(code)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 标签显示器亮灯颜色枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@ -309,7 +370,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
public static TAG_LIGHT_COLOR_CMD getByValue(String code) {
|
|
|
|
|
for (TAG_LIGHT_COLOR_CMD tagLightColorCmd : values()) {
|
|
|
|
|
if (tagLightColorCmd.getCode() == code) {
|
|
|
|
|
if (tagLightColorCmd.getCode().equals(code)) {
|
|
|
|
|
return tagLightColorCmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -356,6 +417,15 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static TAG_LIGHT_TYPE getByValue(int value) {
|
|
|
|
|
for (TAG_LIGHT_TYPE tagLightType : values()) {
|
|
|
|
|
if (tagLightType.getValue() == value) {
|
|
|
|
|
return tagLightType;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
@ -396,7 +466,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
public static FINISH_TAG_LIGHT_MUSIC_CMD getByValue(String code) {
|
|
|
|
|
for (FINISH_TAG_LIGHT_MUSIC_CMD finishTagLightMusicCmd : values()) {
|
|
|
|
|
if (finishTagLightMusicCmd.getCode() == code) {
|
|
|
|
|
if (finishTagLightMusicCmd.getCode().equals(code)) {
|
|
|
|
|
return finishTagLightMusicCmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -459,7 +529,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
public static FINISH_TAG_LIGHT_VOLUME_CMD getByValue(String code) {
|
|
|
|
|
for (FINISH_TAG_LIGHT_VOLUME_CMD finishTagLightVolumeCmd : values()) {
|
|
|
|
|
if (finishTagLightVolumeCmd.getCode() == code) {
|
|
|
|
|
if (finishTagLightVolumeCmd.getCode().equals(code)) {
|
|
|
|
|
return finishTagLightVolumeCmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -619,21 +689,22 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MonitorProcessMessageType {
|
|
|
|
|
public enum MONITOR_PROCESS_MESSAGE_TYPE {
|
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
EXCEPTION__DISCONNECT_CONTROL_CMD(25, "EXCEPTION_DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
EXCEPTION_DISCONNECT_CONTROL_CMD(25, "EXCEPTION_DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
LIGHT_ON_CMD(30, "LIGHT_ON_CMD", "lightOnService", "亮灯命令"),
|
|
|
|
|
LIGHT_OFF_CMD(40, "LIGHT_OFF_CMD", "lightOffService", "灭灯命令"),
|
|
|
|
|
CONTROL_SIGNAL_CMD(50, "CONTROL_SIGNAL_CMD", "controlSignalService", "控制器反馈信号"),
|
|
|
|
|
INTERFACE_SIGNAL_CMD(60, "INTERFACE_SIGNAL_CMD", "", "发送给界面actor通过websocket返回");
|
|
|
|
|
INTERFACE_SIGNAL_CMD(60, "INTERFACE_SIGNAL_CMD", "", "发送给界面actor通过websocket返回"),
|
|
|
|
|
REFRESH_CONTROL_CMD(70, "REFRESH_CONTROL_CMD", "refreshControlService", "刷新");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String callClass;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MonitorProcessMessageType(int value, String code, String callClass, String description) {
|
|
|
|
|
MONITOR_PROCESS_MESSAGE_TYPE(int value, String code, String callClass, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
@ -656,11 +727,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static MonitorProcessMessageType getTypeByValue(String code) {
|
|
|
|
|
public static MONITOR_PROCESS_MESSAGE_TYPE getTypeByValue(String code) {
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (MonitorProcessMessageType enums : MonitorProcessMessageType.values()) {
|
|
|
|
|
for (MONITOR_PROCESS_MESSAGE_TYPE enums : MONITOR_PROCESS_MESSAGE_TYPE.values()) {
|
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
|
return enums;
|
|
|
|
|
}
|
|
|
|
@ -670,12 +741,13 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum InterfaceSignalMessageType {
|
|
|
|
|
public enum INTERFACE_SIGNAL_MESSAGE_TYPE {
|
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
REFRESH_CONTROL_CMD(30, "REFRESH_CONTROL_CMD", "refreshControlService", "刷新"),
|
|
|
|
|
SCAN_CONTROL_CMD(40, "SCAN_CONTROL_CMD", "scanControlService", "扫描"),
|
|
|
|
|
INIT_MODULE_CONTROL_CMD(50, "INIT_MODULE_CONTROL_CMD", "initModuleControlService", "初始化页面");
|
|
|
|
|
INIT_MODULE_CONTROL_CMD(50, "INIT_MODULE_CONTROL_CMD", "initModuleControlService", "初始化页面"),
|
|
|
|
|
GET_CONTROL_DATA_CONTROL_CMD(60, "GET_CONTROL_DATA_CONTROL_CMD", "getControlDataControlService", "获取控制器数据");
|
|
|
|
|
// UNLOCK_CONTROL_CMD(50, "UNLOCK_CONTROL_CMD", "unlockControlService", "解锁"),
|
|
|
|
|
// LABEL_SELF_CHECK_CONTROL_CMD(60, "labelSelfCheck", "labelSelfCheckControlService", "标签自检"),
|
|
|
|
|
// LIGHT_DETAIL_CONTROL_CMD(70, "LABEL_SELF_CHECK_CONTROL_CMD", "lightDetailControlService", "亮灯明细");
|
|
|
|
@ -685,7 +757,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
private String callClass;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
InterfaceSignalMessageType(int value, String code, String callClass, String description) {
|
|
|
|
|
INTERFACE_SIGNAL_MESSAGE_TYPE(int value, String code, String callClass, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
@ -708,11 +780,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static InterfaceSignalMessageType getTypeByValue(String code) {
|
|
|
|
|
public static INTERFACE_SIGNAL_MESSAGE_TYPE getTypeByValue(String code) {
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (InterfaceSignalMessageType enums : InterfaceSignalMessageType.values()) {
|
|
|
|
|
for (INTERFACE_SIGNAL_MESSAGE_TYPE enums : INTERFACE_SIGNAL_MESSAGE_TYPE.values()) {
|
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
|
return enums;
|
|
|
|
|
}
|
|
|
|
@ -721,25 +793,33 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成任务actor message type
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum WsBusiType {
|
|
|
|
|
MONITOR_PROCESS(10, "MONITOR_PROCESS", "控制器相关"),
|
|
|
|
|
INTERFACE_PROCESS(10, "INTERFACE_PROCESS", "界面处理");
|
|
|
|
|
public enum GEN_TASK_MESSAGE_TYPE {
|
|
|
|
|
GEN_TASK_CMD(10, "GEN_TASK_CMD", "", "生成任务");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String callClass;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
WsBusiType(int value, String code, String description) {
|
|
|
|
|
GEN_TASK_MESSAGE_TYPE(int value, String code, String callClass, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCallClass() {
|
|
|
|
|
return callClass;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
@ -747,22 +827,33 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static INTERFACE_SIGNAL_MESSAGE_TYPE getTypeByValue(String code) {
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (INTERFACE_SIGNAL_MESSAGE_TYPE enums : INTERFACE_SIGNAL_MESSAGE_TYPE.values()) {
|
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
|
return enums;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum WsDataType {
|
|
|
|
|
TEXT(10, "TEXT", "正常信息"),
|
|
|
|
|
EXP_TEXT(20, "EXP_TEXT", "异常信息"),
|
|
|
|
|
TABLE(30, "TABLE", "表格");
|
|
|
|
|
public enum WsBusiType {
|
|
|
|
|
MONITOR_PROCESS(10, "MONITOR_PROCESS", "控制器相关"),
|
|
|
|
|
INTERFACE_PROCESS(20, "INTERFACE_PROCESS", "界面处理");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
WsDataType(int value, String code, String description) {
|
|
|
|
|
WsBusiType(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
this.code = code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
@ -779,16 +870,16 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum STATUS_TYPE {
|
|
|
|
|
START(10, "START", "开始状态"),
|
|
|
|
|
FINISH(20, "FINISH", "完成状态"),
|
|
|
|
|
TERMINATE(30, "TERMINATE", "中断状态");
|
|
|
|
|
public enum WsDataType {
|
|
|
|
|
TEXT(10, "TEXT", "正常信息"),
|
|
|
|
|
EXP_TEXT(20, "EXP_TEXT", "异常信息"),
|
|
|
|
|
TABLE(30, "TABLE", "表格");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
STATUS_TYPE(int value, String code, String description) {
|
|
|
|
|
WsDataType(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
@ -808,15 +899,16 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum AREA_SECTION_TASK_DETAIL_STATUS {
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
|
COMPLETE(20, "COMPLETE", "完成");
|
|
|
|
|
public enum STATUS_TYPE {
|
|
|
|
|
START(10, "START", "开始状态"),
|
|
|
|
|
FINISH(20, "FINISH", "完成状态"),
|
|
|
|
|
TERMINATE(30, "TERMINATE", "中断状态");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
AREA_SECTION_TASK_DETAIL_STATUS(int value, String code, String description) {
|
|
|
|
|
STATUS_TYPE(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
@ -835,22 +927,18 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成任务actor message type
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum GenTaskMessageType {
|
|
|
|
|
GEN_TASK_CMD(10, "GEN_TASK_CMD", "", "生成任务");
|
|
|
|
|
public enum AREA_SECTION_TASK_DETAIL_STATUS {
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
|
COMPLETE(20, "COMPLETE", "完成");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String callClass;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
GenTaskMessageType(int value, String code, String callClass, String description) {
|
|
|
|
|
AREA_SECTION_TASK_DETAIL_STATUS(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -858,10 +946,6 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCallClass() {
|
|
|
|
|
return callClass;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
@ -869,18 +953,6 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static InterfaceSignalMessageType getTypeByValue(String code) {
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (InterfaceSignalMessageType enums : InterfaceSignalMessageType.values()) {
|
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
|
return enums;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -1236,4 +1308,443 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PCN同步PTL主数据同步类型枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SYNC_TYPE {
|
|
|
|
|
|
|
|
|
|
GET_PTL_DATA(1, "pcn获取Ptl数据"),
|
|
|
|
|
DATA_TO_PTL(2, "pcn推送数据至ptl");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
SYNC_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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PCN同步PTL主数据同步方式枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SYNC_PATTERN {
|
|
|
|
|
|
|
|
|
|
UPDATE(1, "修改"),
|
|
|
|
|
INSERT(2, "新增");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
SYNC_PATTERN(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ptl-pcn定时任务状态
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum PTL_PCN_TASK_STATUS {
|
|
|
|
|
|
|
|
|
|
OPEN(1, "开启"),
|
|
|
|
|
CLOSE(2, "关闭");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
PTL_PCN_TASK_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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* mes-pcn定时任务同步结果状态
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum PTL_PCN_TASK_SYNC_STATUS {
|
|
|
|
|
|
|
|
|
|
SUCCESS(1, "ptl主服务定时任务工作清单同步成功"),
|
|
|
|
|
ERROR(2, "ptl主服务定时任务工作清单同步失败");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
PTL_PCN_TASK_SYNC_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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 单据主表类型(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MASTER_ORDER_TYPE {
|
|
|
|
|
CREATE(10, "NORMAL", "正常");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MASTER_ORDER_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 valueOf(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 int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 区域任务状态(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MASTER_ORDER_STATUS {
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
|
RECEIPT(20, "IN_PROGRESS", "处理中"),
|
|
|
|
|
RECEIPT_FINISH(30, "COMPLETED", "已完成"),
|
|
|
|
|
CANCELLED(40, "CANCELLED", "已取消");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MASTER_ORDER_STATUS(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 valueOf(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 int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 区域任务类型(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum AREA_SECTION_TASK_TYPE {
|
|
|
|
|
CREATE(10, "CREATE", "JIT任务"),
|
|
|
|
|
RECEIPT(20, "IN_PROGRESS", "单据任务"),
|
|
|
|
|
RECEIPT_FINISH(30, "COMPLETED", "单点任务");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
AREA_SECTION_TASK_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 valueOf(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 int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 区域任务状态(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum AREA_TASK_STATUS {
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
|
RECEIPT(20, "IN_PROGRESS", "处理中"),
|
|
|
|
|
RECEIPT_FINISH(30, "COMPLETED", "已完成");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
AREA_TASK_STATUS(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 valueOf(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 int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 区域任务类型(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum AREA_TASK_TYPE {
|
|
|
|
|
CREATE(10, "JIT_TASK", "JIT任务"),
|
|
|
|
|
RECEIPT(20, "DOCUMENT_TASK", "单据任务"),
|
|
|
|
|
RECEIPT_FINISH(30, "SINGLE_POINT_TASK", "单点任务");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
AREA_TASK_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 valueOf(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 int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|