李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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();
    }
}