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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package pwc.taxtech.atms.common;
/** @see PwC.Tax.Tech.Atms.Application.Dto\TaxAdminDto\LogOnDto.cs */
public enum CheckState {
// Success = 0,
// EmptyUserName = 1,
// EmptyPassword = 2,
// UserNameNotExist = 3,
// WrongPassword = 4,
// Inactive = 5,
// Expired = 6,
// UnKnown = 7,
// Unauthorized = 8
/***/
Success(0),
/***/
EmptyUserName(1),
/***/
EmptyPassword(2),
/***/
UserNameNotExist(3),
/***/
WrongPassword(4),
/***/
Inactive(5),
/***/
Expired(6),
/***/
UnKnown(7),
/***/
Unauthorized(8),
/***/
;
private Integer value;
CheckState(Integer value) {
this.value = value;
}
public Integer value() {
return value;
}
public static CheckState valueOf(Integer value) {
for (CheckState item : CheckState.values()) {
if (item.value.equals(value)) {
return item;
}
}
return null;
}
public static String int2str(Integer value) {
for (CheckState item : CheckState.values()) {
if (item.value.equals(value)) {
return item.name();
}
}
return null;
}
}