|
|
@ -90,15 +90,14 @@ public class AndonEnumUtil {
|
|
|
|
* 10-是,20-否
|
|
|
|
* 10-是,20-否
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum IS_ALARM_STATUS{
|
|
|
|
public enum ALARM_STATUS {
|
|
|
|
|
|
|
|
|
|
|
|
YES(10,"需要按灯"),
|
|
|
|
YES(10,"需要按灯"),
|
|
|
|
ON(20,"不需要按灯");
|
|
|
|
ON(20,"不需要按灯");
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
private int value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
IS_ALARM_STATUS(int value, String description) {
|
|
|
|
ALARM_STATUS(int value, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -128,7 +127,6 @@ public class AndonEnumUtil {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum ALARM_BUSI_FLAG{
|
|
|
|
public enum ALARM_BUSI_FLAG{
|
|
|
|
|
|
|
|
|
|
|
|
ALARM_FLAG("10","安灯呼叫标识"),
|
|
|
|
ALARM_FLAG("10","安灯呼叫标识"),
|
|
|
|
USER_CODE("20","用户工号"),
|
|
|
|
USER_CODE("20","用户工号"),
|
|
|
|
READ_FLAG("30", "安灯读取状态"),
|
|
|
|
READ_FLAG("30", "安灯读取状态"),
|
|
|
@ -158,8 +156,7 @@ public class AndonEnumUtil {
|
|
|
|
* 1-呼叫,2-签到,3-解决
|
|
|
|
* 1-呼叫,2-签到,3-解决
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum ALARM_FLAG{
|
|
|
|
public enum ANDON_ACTION_TAG {
|
|
|
|
|
|
|
|
|
|
|
|
CALL(1,"10","呼叫"),
|
|
|
|
CALL(1,"10","呼叫"),
|
|
|
|
SIGN(2,"20","响应"),
|
|
|
|
SIGN(2,"20","响应"),
|
|
|
|
RESOLVE(3,"30","解决"),
|
|
|
|
RESOLVE(3,"30","解决"),
|
|
|
@ -171,7 +168,7 @@ public class AndonEnumUtil {
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
ALARM_FLAG(int value,String code, String description) {
|
|
|
|
ANDON_ACTION_TAG(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
@ -198,37 +195,7 @@ public class AndonEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 按灯动作标志
|
|
|
|
|
|
|
|
* 10 = 呼叫,20 = 签到,30 = 解决,40 = 撤销,50 = 提交,60 = 审批,70 = 转呼
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum ANDON_ACTION_FLAG{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CALL_ACTION("10","呼叫动作"),
|
|
|
|
|
|
|
|
SIGN_ACTION("20","签到动作"),
|
|
|
|
|
|
|
|
RESOLVE_ACTION("30", "解决动作"),
|
|
|
|
|
|
|
|
CANCEL_ACTION("40", "撤销动作"),
|
|
|
|
|
|
|
|
COMMIT_ACTION("50","提交动作"),
|
|
|
|
|
|
|
|
PASS_ACTION("60","审批动作"),
|
|
|
|
|
|
|
|
SHIFG_CALL_ACTION("70", "转呼动作");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ANDON_ACTION_FLAG(String value, String description) {
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
|
|
|
return description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 优先级别
|
|
|
|
* 优先级别
|
|
|
@ -236,7 +203,6 @@ public class AndonEnumUtil {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum ALARM_PRIORITY{
|
|
|
|
public enum ALARM_PRIORITY{
|
|
|
|
|
|
|
|
|
|
|
|
FIRST(10,"一级"),
|
|
|
|
FIRST(10,"一级"),
|
|
|
|
SECOND(20,"二级"),
|
|
|
|
SECOND(20,"二级"),
|
|
|
|
THIRD(30,"三级");
|
|
|
|
THIRD(30,"三级");
|
|
|
@ -268,52 +234,14 @@ public class AndonEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 通知级别
|
|
|
|
|
|
|
|
* 10 - 一级,20 - 二级,30 - 三级,40 - 四级
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum NOTICE_LEVEL{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FIRST(10,"一级"),
|
|
|
|
|
|
|
|
SECOND(20,"二级"),
|
|
|
|
|
|
|
|
THIRD(30,"三级"),
|
|
|
|
|
|
|
|
FOUTH(40,"四级");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NOTICE_LEVEL(int value, String description) {
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
|
|
|
return 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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* ANDON类型:MM=物料 QM=质量 EQ=设备 GY=工艺 JC=检测
|
|
|
|
* ANDON类型:MM=物料 QM=质量 EQ=设备 GY=工艺 JC=检测
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum ALARM_CODE{
|
|
|
|
public enum ALARM_TYPE {
|
|
|
|
|
|
|
|
|
|
|
|
PART("PART_ALARM","物料"),
|
|
|
|
PART("PART_ALARM","物料"),
|
|
|
|
QUALITY("QUALITY_ALARM","质量"),
|
|
|
|
QUALITY("QUALITY_ALARM","质量"),
|
|
|
|
EQUIP("EQUMENT_ALARM","设备"),
|
|
|
|
EQUIP("EQUMENT_ALARM","设备"),
|
|
|
@ -323,7 +251,7 @@ public class AndonEnumUtil {
|
|
|
|
private String value;
|
|
|
|
private String value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
ALARM_CODE(String value, String description) {
|
|
|
|
ALARM_TYPE(String value, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -352,7 +280,6 @@ public class AndonEnumUtil {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum PROD_ORG_LEVEL{
|
|
|
|
public enum PROD_ORG_LEVEL{
|
|
|
|
|
|
|
|
|
|
|
|
LEVEL_ONE(1,"一级目录"),
|
|
|
|
LEVEL_ONE(1,"一级目录"),
|
|
|
|
LEVEL_TWO(2,"二级目录"),
|
|
|
|
LEVEL_TWO(2,"二级目录"),
|
|
|
|
LEVEL_THREE(3,"三级目录"),
|
|
|
|
LEVEL_THREE(3,"三级目录"),
|
|
|
@ -391,7 +318,6 @@ public class AndonEnumUtil {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum STOP_LINE_FLAG{
|
|
|
|
public enum STOP_LINE_FLAG{
|
|
|
|
|
|
|
|
|
|
|
|
STOP("1","停止产线"),
|
|
|
|
STOP("1","停止产线"),
|
|
|
|
RESTART("0","启动产线");
|
|
|
|
RESTART("0","启动产线");
|
|
|
|
|
|
|
|
|
|
|
@ -417,15 +343,91 @@ public class AndonEnumUtil {
|
|
|
|
* 10-短信,20-邮箱
|
|
|
|
* 10-短信,20-邮箱
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum NOTICE_WAYS{
|
|
|
|
public enum NOTICE_MESSAGE_SEND_TYPE {
|
|
|
|
|
|
|
|
|
|
|
|
SMS("10","短信"),
|
|
|
|
SMS("10","短信"),
|
|
|
|
EMAIL("20","邮箱");
|
|
|
|
EMAIL("20","邮箱");
|
|
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
private String value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
NOTICE_WAYS(String value, String description) {
|
|
|
|
NOTICE_MESSAGE_SEND_TYPE(String value, String description) {
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
|
|
|
return description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 通知级别
|
|
|
|
|
|
|
|
* 10 - 一级,20 - 二级,30 - 三级,40 - 四级
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum NOTICE_MESSAGE_SEND_LEVEL {
|
|
|
|
|
|
|
|
FIRST(10,"一级"),
|
|
|
|
|
|
|
|
SECOND(20,"二级"),
|
|
|
|
|
|
|
|
THIRD(30,"三级"),
|
|
|
|
|
|
|
|
FOUTH(40,"四级");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NOTICE_MESSAGE_SEND_LEVEL(int value, String description) {
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
|
|
|
return 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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 安灯动作
|
|
|
|
|
|
|
|
* <per>
|
|
|
|
|
|
|
|
* <br/> 10 = 呼叫
|
|
|
|
|
|
|
|
* <br/> 20 = 签到
|
|
|
|
|
|
|
|
* <br/> 30 = 解决
|
|
|
|
|
|
|
|
* <br/> 40 = 撤销
|
|
|
|
|
|
|
|
* <br/> 50 = 提交
|
|
|
|
|
|
|
|
* <br/> 60 = 审批
|
|
|
|
|
|
|
|
* <br/> 70 = 转呼
|
|
|
|
|
|
|
|
* </per>
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum ANDON_ACTION_FLAG{
|
|
|
|
|
|
|
|
CALL_ACTION("10","呼叫动作"),
|
|
|
|
|
|
|
|
SIGN_ACTION("20","签到动作"),
|
|
|
|
|
|
|
|
RESOLVE_ACTION("30", "解决动作"),
|
|
|
|
|
|
|
|
CANCEL_ACTION("40", "撤销动作"),
|
|
|
|
|
|
|
|
COMMIT_ACTION("50","提交动作"),
|
|
|
|
|
|
|
|
PASS_ACTION("60","审批动作"),
|
|
|
|
|
|
|
|
SHIFG_CALL_ACTION("70", "转呼动作");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ANDON_ACTION_FLAG(String value, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -438,4 +440,5 @@ public class AndonEnumUtil {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|