添加工步返回表格背景色

yun-zuoyi
wynne1005 5 years ago
parent f6b812aaf8
commit d86c84a39e

@ -4889,4 +4889,36 @@ public class MesPcnEnumUtil {
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STEP_DISPLAY_CLASS {
WHITE(10, "white"),
LIGHT_BLUE(20, "lightBlue");
private Integer value;
private String description;
STEP_DISPLAY_CLASS(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