zds
1 month ago
17 changed files with 221 additions and 165 deletions
@ -1,91 +0,0 @@ |
|||
package org.nl.wms.basedata.master.constant; |
|||
|
|||
import com.alibaba.fastjson.JSONObject; |
|||
|
|||
/** |
|||
* 获取物料操作类型 |
|||
*/ |
|||
public enum MaterOptTypeEnum { |
|||
QBWL(1, "00", "全部物料", "('1')", ""), |
|||
BCP(2, "01", "管件半成品", "('1528555443906023424')", ""), |
|||
YCL(3, "02", "管件原材料", "('1503644349995552768')", ""), |
|||
CP(4, "03", "关键成品", "('1528555444031852544')", ""); |
|||
|
|||
|
|||
//顺序号
|
|||
private int index; |
|||
//编码
|
|||
private String code; |
|||
//名字
|
|||
private String name; |
|||
//分类标识串
|
|||
private String class_idStr; |
|||
//描述
|
|||
private String desc; |
|||
|
|||
public static JSONObject getObj(String code) { |
|||
for (MaterOptTypeEnum item : values()) { |
|||
if (item.getCode().equals(code)) { |
|||
JSONObject json = new JSONObject(); |
|||
json.put("index", item.getIndex()); |
|||
json.put("code", item.getCode()); |
|||
json.put("name", item.getName()); |
|||
json.put("class_idStr", item.getClass_idStr()); |
|||
json.put("desc", item.getDesc()); |
|||
return json; |
|||
} |
|||
} |
|||
|
|||
return null; |
|||
|
|||
} |
|||
|
|||
|
|||
private MaterOptTypeEnum(int index, String code, String name, String class_idStr, String desc) { |
|||
this.index = index; |
|||
this.code = code; |
|||
this.name = name; |
|||
this.class_idStr = class_idStr; |
|||
this.desc = desc; |
|||
} |
|||
|
|||
public String getClass_idStr() { |
|||
return class_idStr; |
|||
} |
|||
|
|||
public void setClass_idStr(String class_idStr) { |
|||
this.class_idStr = class_idStr; |
|||
} |
|||
|
|||
public String getDesc() { |
|||
return desc; |
|||
} |
|||
|
|||
public void setDesc(String desc) { |
|||
this.desc = desc; |
|||
} |
|||
|
|||
public int getIndex() { |
|||
return index; |
|||
} |
|||
|
|||
public void setIndex(int index) { |
|||
this.index = index; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
} |
Loading…
Reference in new issue