【2856 10 2.3.8 20027-PCN端工位监控如果报错数据没有采集怎么报警提示】

yun-zuoyi
陈思洁 5 years ago
parent 30f8e332fa
commit 1706b7a684

@ -7775,7 +7775,7 @@ public class MesEnumUtil {
}
/**
*
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SRC_MENU_CODE {

@ -5704,6 +5704,84 @@ public class MesPcnEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SRC_MENU_CODE {
STATION_MONITOR("STATION_MONITOR", "工位监控");
private String value;
private String description;
SRC_MENU_CODE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String descriptionOfValue(String description) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum EXCEPTION_WINDOW_RECORD_STATUS {
PENDING(10, "待处理"),
PROCESSED(20, "已处理");
private Integer value;
private String description;
EXCEPTION_WINDOW_RECORD_STATUS(Integer value, String description) {
this.value = value;
this.description = description;
}
public Integer getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save