package com.chinaztt.mes.production.state.productmain.constant;
|
|
import com.chinaztt.mes.production.state.productout.constant.ProductOutStateStringValues;
|
|
/**
|
* @Author: zhangxy
|
* @Date: 2020-08-24 9:51
|
*/
|
public enum ProductMainStates {
|
/**
|
* 草稿
|
*/
|
DRAFT(ProductMainStateStringValues.DRAFT),
|
|
/**
|
* 已提交
|
*/
|
SUBMITTED(ProductMainStateStringValues.SUBMITTED),
|
|
/**
|
* 交班
|
*/
|
CHANGESHIFT(ProductOutStateStringValues.CHANGESHIFT),
|
|
|
/**
|
* 处理中
|
*/
|
PROCESSING(ProductMainStateStringValues.PROCESSING);
|
|
|
|
private String stringValue;
|
|
public String getValue() {
|
return stringValue;
|
}
|
|
ProductMainStates(final String stringValue) {
|
this.stringValue = stringValue;
|
}
|
|
@Override
|
public String toString() {
|
return getValue();
|
}
|
|
public static ProductMainStates getEnum(String value) {
|
for (ProductMainStates v : values()) {
|
if (v.getValue().equalsIgnoreCase(value)) {
|
return v;
|
}
|
}
|
throw new IllegalArgumentException();
|
}
|
|
}
|