package jnpf.limsEntity;
|
|
/**
|
* 接样分配子流程(lims_jieyang_banzu.jieshou_zhuangtai)的状态枚举。
|
* 与 {@link BizStatus} 解耦:BizStatus 跟踪接样单整体进度,本枚举跟踪班组接收进度。
|
*/
|
public enum JieyangStatus {
|
|
PENDING_RECEIVE("pending_receive", "待接样"),
|
RECEIVED("received", "已接样");
|
|
private final String code;
|
private final String label;
|
|
JieyangStatus(String code, String label) {
|
this.code = code;
|
this.label = label;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public String getLabel() {
|
return label;
|
}
|
|
public static JieyangStatus fromCode(String code) {
|
for (JieyangStatus status : values()) {
|
if (status.code.equals(code)) {
|
return status;
|
}
|
}
|
throw new IllegalArgumentException("未知接样状态: " + code);
|
}
|
}
|