|
|
|
@ -1003,9 +1003,8 @@ public class WmsEnumUtil {
|
|
|
|
|
INSTOCKED(30, "入库"),
|
|
|
|
|
PICKED(40, "配料"),
|
|
|
|
|
OUT_STOCK(50, "出库"),
|
|
|
|
|
FRAZE(60, "冻结"),
|
|
|
|
|
SCRAPED(70, "报废"),
|
|
|
|
|
COMMING(80, "在途");
|
|
|
|
|
FRAZE(60, "报废"),
|
|
|
|
|
COMMING(70, "在途");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
@ -2014,4 +2013,62 @@ public class WmsEnumUtil {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 数据状态
|
|
|
|
|
* 1 启用
|
|
|
|
|
* 2 禁用
|
|
|
|
|
* 3 全部
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum DATA_STATUS {
|
|
|
|
|
ENABLE(1, "启用", "fa fa-success cell-fa fa-check"),
|
|
|
|
|
DISABLE(2, "禁用", "fa fa-disabled cell-fa fa-times-circle"),
|
|
|
|
|
LOCKING(3, "全部", "fa cell-fa fa-lock");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String name;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
DATA_STATUS() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DATA_STATUS(int value, String name, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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].getName();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].name.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|