yun-zuoyi
gragon.xu 7 years ago
parent 3c1d015653
commit 6f524abe28

@ -146,6 +146,7 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@ -284,7 +285,6 @@ public class WmsEnumUtil {
}
/**
*
* 1: success_queue
@ -437,4 +437,318 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OUT_MOVEMENT_MOVE_TYPE {
IN_STORE(1, "IN", "入库"),
OUT_STORE(2, "OUT", "出库"),
MOVE_STORE(3, "MOVE", "移库");
private int value;
private String code;
private String description;
OUT_MOVEMENT_MOVE_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
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].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OUT_MOVEMENT_BUSI_TYPE {
RECEIVE_GOODS(1, "RC", "收货"),
QUALITY_TESTING(2, "QC", "质检"),
IN_STORE(3, "IN", "入库"),
MIX_RECEIVE(4, "ZI", "杂收"),
MIX_SEND(5, "ZO", "杂发"),
SUPPLIER_RETURN_GOODS(6, "VJ", "供应商退货"),
CUSTOMER_RETURN_GOODS(7, "CJ", "客户退货"),
ORDER_PICKING_PART(8, "WP", "工单领料"),
ORDER_RETURN_PART(9, "WJ", "工单退料"),
MOVE_IN(10, "MI", "移库入库"),
MOVE_OUT(11, "MO", "移库出库"),
SEND(12, "SO", "发运");
private int value;
private String code;
private String description;
OUT_MOVEMENT_BUSI_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
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].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OUT_MOVEMENT_STATUS {
CREATE(1, "新建"),
RECEIPT(10, "处理中"),
RECEIPT_FINISH(20, "已完成"),
CLOSED(90, "已关闭"),
CANCELLED(91, "已取消");
private int value;
private String description;
OUT_MOVEMENT_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
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].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OUT_MOVEMENT_DETAILS_UNIT {
CREATE(1, "AA"),
RECEIPT(2, "BB"),
RECEIPT_FINISH(3, "CC"),
CLOSED(4, "DD"),
CANCELLED(5, "EE");
private int value;
private String description;
OUT_MOVEMENT_DETAILS_UNIT(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
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].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OUT_MOVEMENT_DETAILS_STATUS {
NORMAL(1, "N", "正常"),
CANCEL(2, "C", "取消");
private int value;
private String code;
private String description;
OUT_MOVEMENT_DETAILS_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
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].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* ABC
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PART_ABC {
A(1, "A", "正常"),
B(2, "B", "正常"),
C(3, "C", "取消"),
D(4, "D", "取消"),
E(5, "E", "取消");
private int value;
private String code;
private String description;
PART_ABC(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
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].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save