自动化立体仓库 - WCS系统
zc
3 天以前 a3cd273234d56c5a36bd0a793a67e533a2141d6d
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
package com.zy.core.enums;
 
/**
 * 入出库模式枚举
 */
public enum IoModeType {
 
    NONE((short) 2, "未知"),
    PAKIN_MODE((short) 0, "入库模式"),
    PAKOUT_MODE((short) 1, "出库模式"),
    ;
 
    public Short id;
    public String desc;
 
    IoModeType(Short id, String desc) {
        this.id = id;
        this.desc = desc;
    }
 
    public static IoModeType get(Short id) {
        for (IoModeType type : IoModeType.values()) {
            if (id.equals(type.id)) {
                return type;
            }
        }
        return IoModeType.NONE;
    }
 
}