package com.vincent.rsf.server.manager.enums;
|
|
public enum LocStsWcsOrOtherType {
|
|
//WCS
|
LOC_STS_TYPE_WCS("WCS", "WCS"),
|
//RCS
|
LOC_STS_TYPE_RCS("RCS", "RCS"),
|
//OTHER
|
LOC_STS_TYPE_OTHER("OTHER", "OTHER")
|
;
|
|
public String type;
|
|
public String desc;
|
|
LocStsWcsOrOtherType(String type, String desc) {
|
this.type = type;
|
this.desc = desc;
|
}
|
|
|
public static LocStsWcsOrOtherType get(String el) {
|
for (LocStsWcsOrOtherType value : LocStsWcsOrOtherType.values()) {
|
if (el.equals(value.toString())) {
|
return value;
|
}
|
}
|
return null;
|
}
|
|
public static String getApiType(String val) {
|
switch (val) {
|
case "3#立体库区":
|
return LocStsWcsOrOtherType.LOC_STS_TYPE_WCS.type;
|
// case "RCS":
|
// return LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type;
|
default:
|
return LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type;
|
}
|
}
|
|
// public static String getLocSts(String val) {
|
// if (val.equals("WCS")) {
|
// return LocStsWcsOrOtherType.LOC_STS_TYPE_WCS.type;
|
// } else if (val.equals("RCS")) {
|
// return LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type;
|
// } else {
|
// return LocStsWcsOrOtherType.LOC_STS_TYPE_OTHER.type;
|
// }
|
// }
|
|
// public static String getLocSts(Integer areaId) {
|
// switch (areaId) {
|
// case 22:
|
// return LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type;
|
// case 100:
|
// return LocStsWcsOrOtherType.LOC_STS_TYPE_WCS.type;
|
// default:
|
// return LocStsWcsOrOtherType.LOC_STS_TYPE_OTHER.type;
|
// }
|
// }
|
|
|
}
|