|
|
@@ -1,73 +0,0 @@
|
|
1
|
|
-package com.chinaitop.depot.basic.model.Enum;
|
|
2
|
|
-
|
|
3
|
|
-/**
|
|
4
|
|
- * 编码规则,规则类型.
|
|
5
|
|
-* <p>Title: CodeRuleType</p>
|
|
6
|
|
-* <p>Description: </p>
|
|
7
|
|
-* @author yaoyabin
|
|
8
|
|
-* @date 2017年12月15日 下午5:06:15
|
|
9
|
|
- */
|
|
10
|
|
-public enum CodeRuleType {
|
|
11
|
|
- plan("计划申请", "plan", 5467),
|
|
12
|
|
- contract("合同申请", "contract", 5468),
|
|
13
|
|
- contractChange("合同变更申请", "contractChange", 5468),
|
|
14
|
|
- storageNotice("入库通知单申请", "storageNotice", 5469),
|
|
15
|
|
- deliveryNotice("出库通知单申请", "deliveryNotice", 5470),
|
|
16
|
|
- acceptance("验收申请", "acceptance", 6992),
|
|
17
|
|
-
|
|
18
|
|
- customer("客户管理", "customer", 6891),
|
|
19
|
|
-
|
|
20
|
|
- fumigationProgram("熏蒸方案申请", "fumigationProgram", 6881),
|
|
21
|
|
- storageAeration("通风作业申请", "storageAeration", 6882),
|
|
22
|
|
- areationPlan("通风计划申请", "areationPlan", 6990),
|
|
23
|
|
- drugInfo("药剂信息维护", "drugInfo", 6883),
|
|
24
|
|
- drugPurchase("药剂采购申请", "drugPurchase", 6884),
|
|
25
|
|
- drugUseApply("药剂领用申请", "drugUseApply", 6886),
|
|
26
|
|
- drugCheck("药剂盘点", "drugCheck", 6885),
|
|
27
|
|
- transferNotice("中转入站通知单申请", "transferNotice", 6914),
|
|
28
|
|
- lading("提货单申请", "lading", 6915),
|
|
29
|
|
- busineNo("倒仓申请单号", "busineNo", 6993),
|
|
30
|
|
- workNo("倒仓作业单号", "workNo", 6994),
|
|
31
|
|
- applyNo("架空期申请单号", "applyNo", 7029);
|
|
32
|
|
-
|
|
33
|
|
-
|
|
34
|
|
-
|
|
35
|
|
- private String name;
|
|
36
|
|
- private String type;
|
|
37
|
|
- private Integer enumId;
|
|
38
|
|
-
|
|
39
|
|
- public String getName() {
|
|
40
|
|
- return name;
|
|
41
|
|
- }
|
|
42
|
|
- public Integer getEnumId() {
|
|
43
|
|
- return enumId;
|
|
44
|
|
- }
|
|
45
|
|
- public void setName(String name) {
|
|
46
|
|
- this.name = name;
|
|
47
|
|
- }
|
|
48
|
|
- public void setEnumId(Integer enumId) {
|
|
49
|
|
- this.enumId = enumId;
|
|
50
|
|
- }
|
|
51
|
|
- public String getType() {
|
|
52
|
|
- return type;
|
|
53
|
|
- }
|
|
54
|
|
- public void setType(String type) {
|
|
55
|
|
- this.type = type;
|
|
56
|
|
- }
|
|
57
|
|
- private CodeRuleType(String name, String type, Integer enumId) {
|
|
58
|
|
- this.name = name;
|
|
59
|
|
- this.type = type;
|
|
60
|
|
- this.enumId = enumId;
|
|
61
|
|
- }
|
|
62
|
|
-
|
|
63
|
|
- public static Integer getEnumIdByType(String type) {
|
|
64
|
|
- Integer enumId = null;
|
|
65
|
|
- for(CodeRuleType crt : CodeRuleType.values()) {
|
|
66
|
|
- if (crt.getType().equals(type)) {
|
|
67
|
|
- enumId = crt.getEnumId();
|
|
68
|
|
- }
|
|
69
|
|
- }
|
|
70
|
|
- return enumId;
|
|
71
|
|
- }
|
|
72
|
|
-
|
|
73
|
|
-}
|