package com.chinaztt.mes.plan.state.masterproductionschedule.constant;
|
|
import com.chinaztt.mes.plan.state.requirement.constant.MpsRequirementsStateStringValues;
|
import com.chinaztt.mes.plan.state.requirement.constant.MpsRequirementsStates;
|
|
/**
|
* @author ZTT
|
*/
|
public enum MasterProductionScheduleStates {
|
/**
|
* 待处理
|
*/
|
PENDING(MasterProductionScheduleStateStringValues.PENDING),
|
|
/**
|
* 已处理
|
*/
|
PROCESSED(MasterProductionScheduleStateStringValues.PROCESSED),
|
|
/**
|
* 已处理
|
*/
|
CANCELED(MasterProductionScheduleStateStringValues.CANCELED);
|
|
private String stringValue;
|
|
public String getValue() {
|
return stringValue;
|
}
|
|
MasterProductionScheduleStates(final String stringValue) {
|
this.stringValue = stringValue;
|
}
|
|
@Override
|
public String toString() {
|
return getValue();
|
}
|
|
public static MasterProductionScheduleStates getEnum(String value) {
|
for (MasterProductionScheduleStates v : values()) {
|
if (v.getValue().equalsIgnoreCase(value)) {
|
return v;
|
}
|
}
|
throw new IllegalArgumentException();
|
}
|
}
|