package com.consum.base.core.type; public enum InAndOutPutType { /** * 正常入库:0 */ Common(0), /** * 采购入库:1 */ Procure_Input(1), /** * 零星入库 2 */ Fragmentary_Input(2), /** * 零星出库 3 */ Fragmentary_Output(3), /** * 调拨入库 4 */ Transfer_Input(4), /** * 调拨出库 5 */ Transfer_Output(5), /** * 盘点入库 6 */ Inventory_Input(6), /** * 盘点出库 7 */ Inventory_Output(7), /** * 仓库物品报废 */ Scrapped_Warehouse(8), /** * 在用物品报废 */ Scrapped_Using(9), /** * 机构仓库 分发出库 */ Lending_Out(10), /** * 机构仓库 分发返库 */ Lending_Back(11), /** * 部门仓库 分发出库 */ Dept_Lending_Out(12), /** * 部门仓库 分发返库 */ Dept_Lending_Back(13); private int value; InAndOutPutType(int value) { this.value = value; } public int getValue() { return value; } /** * 根据编码获取对应枚举 * * @param key 编码 * @return */ public static InAndOutPutType getValueByKey(String key) { for (InAndOutPutType myEnum : InAndOutPutType.values()) { if (myEnum.name().equals(key)) { return myEnum; } } return null; } }