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; } }