P15GEN2\59518
2024-05-29 d4210c7c4b04abde20037ea8aa0f54ef8a2649aa
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
package foundation.state.approve;
 
public enum ApproveOperate {
 
    Approve("同意"), GoEnd("全流程免审核"), GoBack("拒绝"), GoHome("打回到提交人"), PullBack("申请人撤回"), Unknown("未知");
    
    private String title;
    
    ApproveOperate(String title) {
        this.title = title;
    }
 
    public String getTitle() {
        return title;
    }
 
    public static ApproveOperate parse(String operator) {
        if (operator == null) {
            return Unknown;
        }
        
        operator = operator.toLowerCase();
        
        if ("approve".equals(operator)) {
            return Approve;
        }
        else if ("goend".equals(operator)) {
            return GoEnd;
        }
        else if ("goback".equals(operator)) {
            return GoBack;
        }
        else if ("gohome".equals(operator)) {
            return GoHome;
        }
        else if ("pullback".equals(operator)) {
            return PullBack;
        }
        
        return Unknown;
    }
    
}