liusheng
19 小时以前 a4c8c09a33ae26a460c7422f59b4d2f93d0f6dc5
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 cn.lihu.jh.module.ecg.enums;
 
import lombok.AllArgsConstructor;
import lombok.Getter;
 
/**
 * Action类型枚举
 */
@Getter
@AllArgsConstructor
public enum AppointmentTypeEnum {
    SQDKL("   1", "    申请单开立"),
    SQDCX("  2", "申请单撤销"),
    JCDJ("  3    ", "检查登记"),
    QXJC("  4", "    取消检查"),
    JCKS("  5", "    检查开始"),
    GZYJ("  6", "    给造影剂"),
    JCJS("  7", "    检查结束"),
    BGSC("  8", "    报告生成"),
    BGCX("  9", "    报告撤销"),
    BGSH("  10", "    报告审核");
 
    /**
     * 类型
     */
    private final String type;
    /**
     * 描述
     */
    private final String description;
 
    /**
     * 根据类型获取枚举
     *
     * @param type 类型
     * @return 枚举
     */
    public static String getByType(String type) {
        for (AppointmentTypeEnum value : values()) {
            if (value.getType().equals(type)) {
                return value.getDescription();
            }
        }
        return null;
    }
}