package com.chinaztt.mes.plan.state.outsourcing.constant;
|
|
/**
|
* @Author: cxf
|
* @Date: 2021-08-17 9:51
|
*/
|
public enum OutsourcingOrderStates {
|
/**
|
* 已计划
|
*/
|
PLANNED(OutsourcingOrderStateStringValues.PLANNED),
|
/**
|
* 已下达
|
*/
|
ISSUED(OutsourcingOrderStateStringValues.ISSUED),
|
/**
|
* 已完成
|
*/
|
COMPLETED(OutsourcingOrderStateStringValues.COMPLETED),
|
/**
|
* 已取消
|
*/
|
CANCELED(OutsourcingOrderStateStringValues.CANCELED);
|
|
private String stringValue;
|
|
public String getValue() {
|
return stringValue;
|
}
|
|
OutsourcingOrderStates(final String stringValue) {
|
this.stringValue = stringValue;
|
}
|
|
@Override
|
public String toString() {
|
return getValue();
|
}
|
|
public static OutsourcingOrderStates getEnum(String value) {
|
for (OutsourcingOrderStates v : values()) {
|
if (v.getValue().equalsIgnoreCase(value)) {
|
return v;
|
}
|
}
|
throw new IllegalArgumentException();
|
}
|
|
}
|