diff --git a/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/util/MesExtEnumUtil.java b/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/util/MesExtEnumUtil.java index c9423ca..ea98c2c 100644 --- a/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/util/MesExtEnumUtil.java +++ b/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/util/MesExtEnumUtil.java @@ -59,7 +59,7 @@ public class MesExtEnumUtil { shape = JsonFormat.Shape.OBJECT ) public static enum ORDER_TYPE_IDENTIFICATION { - N(10, "N"), + S(10, "S"), P(20, "P"), E(30, "E"); @@ -93,6 +93,50 @@ public class MesExtEnumUtil { } /** + * 工单类型标识 + */ + @JsonFormat( + shape = JsonFormat.Shape.OBJECT + ) + public static enum ORDER_STATUS { + CREATE(10, "已创建"), + RELEASE(20, "已发布"), + process(30, "在加工"), + CLOSE(40, "已关闭"), + COMPLETE(50, "已完成"), + CANCEL(60, "已取消"), + DISMANTLE(70, "已拆解"); + + private int value; + private String description; + + private ORDER_STATUS(int value, String description) { + this.value = value; + this.description = description; + } + + public static String valueOfDescription(int val) { + String tmp = null; + + for (int i = 0; i < values().length; ++i) { + if (values()[i].value == val) { + tmp = values()[i].description; + } + } + + return tmp; + } + + public int getValue() { + return this.value; + } + + public String getDescription() { + return this.description; + } + } + + /** * 发运单状态 */ @JsonFormat(