yun-zuoyi
王杰 5 years ago
parent 202a968bf1
commit e8611616db

@ -16,6 +16,47 @@ public class MesPcnEnumUtil {
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IPC_PROD_ACTION_TYPE {
HAND_WORK(10, "10", "手工录入模式"),
PLC_WORK(20, "20", "PLC监听模式");
private int value;
private String code;
private String description;
IPC_PROD_ACTION_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 codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_MODULE_TYPE {
MONITOR_MODULE(10, "监听组件"),
REVEAL_MODULE(20, "展示组件"),

Loading…
Cancel
Save