dengzedong
2024-12-19 85b2001c0ec2f1adc598db3bf47ad457dcca7074
提交 | 用户 | 时间
149dd0 1 package com.iailab.netsdk.lib.enumeration;
H 2
3
4 /** 
5 * @author 291189
6 * @description  是否使用远程判图 
7 * @origin autoTool
8 * @date 2023/04/19 15:38:12
9 */
10 public enum EM_XRAY_DETECTION_JUDGE_REMOTELY {
11 /**
12 未知, 当表示为未知时意为本地不送远程判图,集中判图时送到远程判图
13 */
14 EM_XRAY_DETECTION_JUDGE_REMOTELY_UNKNOWN(-1,"未知, 当表示为未知时意为本地不送远程判图,集中判图时送到远程判图"),
15 /**
16 不送远端三方进行判图
17 */
18 EM_XRAY_DETECTION_JUDGE_REMOTELY_NOT_SEND_JUDGE(0,"不送远端三方进行判图"),
19 /**
20 送远端三方进行判图
21 */
22 EM_XRAY_DETECTION_JUDGE_REMOTELY_SEND_JUDGE(1,"送远端三方进行判图");
23
24 private int value;
25
26 private String note;
27
28 public String getNote() {
29         return note;
30     }
31
32 public int getValue() {
33         return value;
34     }
35
36 EM_XRAY_DETECTION_JUDGE_REMOTELY(int givenValue, String note) {
37         this.value = givenValue;
38         this.note = note;
39     }
40
41 public static String getNoteByValue(int givenValue) {
42         for (EM_XRAY_DETECTION_JUDGE_REMOTELY enumType : EM_XRAY_DETECTION_JUDGE_REMOTELY.values()) {
43             if (givenValue == enumType.getValue()) {
44                 return enumType.getNote();
45             }
46         }
47         return null;
48     }
49
50 public static int getValueByNote(String givenNote) {
51         for (EM_XRAY_DETECTION_JUDGE_REMOTELY enumType : EM_XRAY_DETECTION_JUDGE_REMOTELY.values()) {
52             if (givenNote.equals(enumType.getNote())) {
53                 return enumType.getValue();
54             }
55         }
56         return -2;
57     }
58
59 public static EM_XRAY_DETECTION_JUDGE_REMOTELY getEnum(int value) {
60         for (EM_XRAY_DETECTION_JUDGE_REMOTELY e : EM_XRAY_DETECTION_JUDGE_REMOTELY.values()) {
61             if (e.getValue() == value)
62                 return e;
63         }
64         return EM_XRAY_DETECTION_JUDGE_REMOTELY.EM_XRAY_DETECTION_JUDGE_REMOTELY_UNKNOWN;
65     }
66
67 }