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
| package com.chinaztt.mes.basic.enums;
|
| /**
| * @Author 张宾
| * @Date 2023/11/1
| */
| public enum FileEnums {
| warehouse("warehouse","仓库"),
| location("location","库位"),
| division("division","部门"),
| staff("staff","员工"),
| post("post","岗位"),
| crew("crew","班组"),
|
| workstation("workstation","工作站"),
| structure("structure","产品结构"),
| param("param","参数")
| ;
|
| FileEnums(String name, String fileName) {
| this.name = name;
| this.fileName = fileName;
| }
|
| public String getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| public String getFileName() {
| return fileName;
| }
|
| public void setFileName(String fileName) {
| this.fileName = fileName;
| }
|
| private String name,fileName;
|
| public static String getFileName(String name) {
| return FileEnums.valueOf(name).getFileName();
| }
| }
|
|