|
|
|
@ -6188,19 +6188,21 @@ public class WmsEnumUtil {
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum WEEK_TYPE {
|
|
|
|
|
MONDAY(20, "星期一"),
|
|
|
|
|
TUESDAY(30, "星期二"),
|
|
|
|
|
WEDNESDAY(40, "星期三"),
|
|
|
|
|
THURSDAY(50, "星期四"),
|
|
|
|
|
FRIDAY(60, "星期五"),
|
|
|
|
|
SATURDAY(70, "星期六"),
|
|
|
|
|
SUNDAY(10, "星期日");
|
|
|
|
|
MONDAY(20, 1, "星期一"),
|
|
|
|
|
TUESDAY(30, 2, "星期二"),
|
|
|
|
|
WEDNESDAY(40, 3, "星期三"),
|
|
|
|
|
THURSDAY(50, 4, "星期四"),
|
|
|
|
|
FRIDAY(60, 5, "星期五"),
|
|
|
|
|
SATURDAY(70, 6, "星期六"),
|
|
|
|
|
SUNDAY(10, 0, "星期日");
|
|
|
|
|
|
|
|
|
|
private final int value;
|
|
|
|
|
private final int code;
|
|
|
|
|
private final String description;
|
|
|
|
|
|
|
|
|
|
WEEK_TYPE(int value, String description) {
|
|
|
|
|
WEEK_TYPE(int value, int code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -6208,6 +6210,10 @@ public class WmsEnumUtil {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
@ -6230,6 +6236,15 @@ public class WmsEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int getValByCode(int code) {
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].code == code) {
|
|
|
|
|
return values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -8794,4 +8809,50 @@ public class WmsEnumUtil {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 收货看板状态
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum RC_BOARD_STATUS {
|
|
|
|
|
FINISH(10, "已完成(绿色)"),
|
|
|
|
|
OVER_TIME(20, "已超时(红色)"),
|
|
|
|
|
UNRECEIVED(30, "未收货(蓝色)"),
|
|
|
|
|
VARIANT(40, "有差异(黄色)");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
RC_BOARD_STATUS(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static RC_BOARD_STATUS codeOf(int value) {
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == value) {
|
|
|
|
|
return values()[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|