package com.fzzy.igds.dzhwk.constant;
|
|
/**
|
* 工单状态
|
* @author chen
|
*
|
*/
|
public enum AuditStatus {
|
Status_10("10", "待审核"),
|
Status_11("11", "待仓储审核"),
|
Status_12("12", "待质检审核"),
|
Status_13("13", "待统计审核"),
|
Status_14("14", "待会计审核"),
|
Status_15("15", "待领导审核"),
|
Status_20("20", "通过"),
|
Status_30("30", "拒绝"),
|
Status_40("40", "退回");
|
|
private String code;
|
private String msg;
|
|
AuditStatus(String code, String msg) {
|
this.code = code;
|
this.msg = msg;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public String getMsg() {
|
return msg;
|
}
|
|
public static String getMsg(String code) {
|
if(null == code) return null;
|
|
if(AuditStatus.Status_10.getCode().equals(code)) return AuditStatus.Status_10.getMsg();
|
if(AuditStatus.Status_11.getCode().equals(code)) return AuditStatus.Status_11.getMsg();
|
if(AuditStatus.Status_12.getCode().equals(code)) return AuditStatus.Status_12.getMsg();
|
if(AuditStatus.Status_13.getCode().equals(code)) return AuditStatus.Status_13.getMsg();
|
if(AuditStatus.Status_14.getCode().equals(code)) return AuditStatus.Status_14.getMsg();
|
if(AuditStatus.Status_15.getCode().equals(code)) return AuditStatus.Status_15.getMsg();
|
if(AuditStatus.Status_20.getCode().equals(code)) return AuditStatus.Status_20.getMsg();
|
if(AuditStatus.Status_30.getCode().equals(code)) return AuditStatus.Status_30.getMsg();
|
if(AuditStatus.Status_40.getCode().equals(code)) return AuditStatus.Status_40.getMsg();
|
|
return "";
|
}
|
|
}
|