|
@@ -1,5 +1,8 @@
|
|
package cn.com.qmth.scancentral.enums;
|
|
package cn.com.qmth.scancentral.enums;
|
|
|
|
|
|
|
|
+import java.util.LinkedList;
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
public enum ConditionType {
|
|
public enum ConditionType {
|
|
|
|
|
|
FILL_SUSPECT("填涂识别嫌疑", false),
|
|
FILL_SUSPECT("填涂识别嫌疑", false),
|
|
@@ -13,6 +16,8 @@ public enum ConditionType {
|
|
|
|
|
|
private boolean needValue;
|
|
private boolean needValue;
|
|
|
|
|
|
|
|
+ private static List<ConditionType> options;
|
|
|
|
+
|
|
ConditionType(String name, boolean needValue) {
|
|
ConditionType(String name, boolean needValue) {
|
|
this.name = name;
|
|
this.name = name;
|
|
this.needValue = needValue;
|
|
this.needValue = needValue;
|
|
@@ -44,4 +49,17 @@ public enum ConditionType {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static List<ConditionType> getOptionList() {
|
|
|
|
+ if (options == null) {
|
|
|
|
+ options = new LinkedList<>();
|
|
|
|
+ for (ConditionType status : ConditionType.values()) {
|
|
|
|
+ if(status == ConditionType.FILL_SUSPECT){
|
|
|
|
+ continue;
|
|
|
|
+ }else{
|
|
|
|
+ options.add(status);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return options;
|
|
|
|
+ }
|
|
}
|
|
}
|