|
|
|
@ -11,6 +11,75 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
public class MesEnumUtil {
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum HQL_EXPRESSION {
|
|
|
|
|
GT(10,">","大于"),
|
|
|
|
|
LT(20,"<","小于"),
|
|
|
|
|
EQ(30,"=","等于"),
|
|
|
|
|
NEQ(40,"!=","不等于"),
|
|
|
|
|
GTE(50,">=","大于等于"),
|
|
|
|
|
LTE(60,"<=","小于等于"),
|
|
|
|
|
LIKE(70,"like","LIKE"),
|
|
|
|
|
IN(80,"in","包含");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
HQL_EXPRESSION(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOf(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 static String codeOf(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
|
tmp = values()[i].code;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 作业程序组件类型
|
|
|
|
|
*/
|
|
|
|
@ -430,6 +499,9 @@ public class MesEnumUtil {
|
|
|
|
|
|
|
|
|
|
NEVER(-1, "不过期"),
|
|
|
|
|
ONE_HOUR(3600, "一小时"),
|
|
|
|
|
HALF_HOUR(1800, "半小时"),
|
|
|
|
|
ONE_QUARTER(900, "一刻钟"),
|
|
|
|
|
TEN_MIN(300, "十分钟"),
|
|
|
|
|
ONE_MIN(60, "一分钟");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
@ -644,7 +716,10 @@ public class MesEnumUtil {
|
|
|
|
|
SCRAP("SCRAP", "报废原因"),
|
|
|
|
|
QC_CHECK_STAND("QC_CHECK_STAND", "质量检测标准"),
|
|
|
|
|
WC_CHECK("WC_CHECK", "开线检查项"),
|
|
|
|
|
BOARD("BOARD", "看板类型");
|
|
|
|
|
BOARD("BOARD", "看板类型"),
|
|
|
|
|
EQU_DEFECT_CAUSE("EQU_DEFECT_CAUSE", "故障原因"),
|
|
|
|
|
EQU_DEFECT_METHOD("EQU_DEFECT_METHOD", "故障处理措施"),
|
|
|
|
|
EQU_DEFECT_PHENOMENON("EQU_DEFECT_PHENOMENON", "故障现象");
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
private String description;
|
|
|
|
@ -1796,58 +1871,58 @@ public class MesEnumUtil {
|
|
|
|
|
* mes导入模块
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MES_INSERT_EXCEL {
|
|
|
|
|
|
|
|
|
|
MES_PLAN_ORDER(10, "planOrderExcelImportService", "生产计划"),
|
|
|
|
|
MES_EQUIPMENT(20, "equipmentExcelImportService", "设备台账,支持编辑"),
|
|
|
|
|
MES_EQU_TASK_STANDARD(30, "equTaskStandardExcelImportService", "设备作业要求,支持编辑"),
|
|
|
|
|
MES_CUST_ORDER(40, "custOrderExcelImportService", "客户订单"),
|
|
|
|
|
MES_PCN_SYNC_CFG(50, "pcnSyncCfgExcelImportService", "PCN同步配置"),
|
|
|
|
|
MES_PART(60, "partExcelImportService", "物料表,支持编辑"),
|
|
|
|
|
MES_PRODUCE_CATEGORY(70, "produceCategoryExcelImportService", "产品类型"),
|
|
|
|
|
MES_PACK_SPEC(80, "packSpecExcelImportService", "包装规格,支持编辑"),
|
|
|
|
|
MES_PROD_PACK(90, "prodPackExcelImportService", "产品包装关系"),
|
|
|
|
|
MES_PRODUCT_ENCODE_CFG(100, "productEncodeCfgExcelImportService", "产品编码配置"),
|
|
|
|
|
MES_BOM(110, "bomExcelImportService", "物料清单,支持编辑"),
|
|
|
|
|
MES_PROD_CFG_TYPE(120, "prodCfgTypeExcelImportService", "产品配置类型"),
|
|
|
|
|
MES_CUSTOMER(130, "customerExcelImportService", "客户表,支持编辑"),
|
|
|
|
|
MES_CUSTOMER_PART(140, "customerPartExcelImportService", "客户零件关系表,支持编辑"),
|
|
|
|
|
MES_WORK_CENTER(150, "workCenterExcelImportService", "生产线,支持编辑"),
|
|
|
|
|
MES_WORK_CELL(160, "workCellExcelImportService", "工位,支持编辑"),
|
|
|
|
|
MES_WC_EQUIPMENT(170, "wcEquipmentExcelImportService", "工位设备关系表"),
|
|
|
|
|
MES_SHIFT(180, "shiftExcelImportService", "班次,支持编辑"),
|
|
|
|
|
MES_SHIFT_GROUP(190, "shiftGroupExcelImportService", "班组,支持编辑"),
|
|
|
|
|
MES_WORK_CELL_PARAM_CFG(200, "workCellParamCfgExcelImportService", "工作单元参数配置"),
|
|
|
|
|
MES_STATION_BOM(210, "stationBomExcelImportService", "工位BOM表"),
|
|
|
|
|
MES_DATA_OBJECT(220, "dataObjectExcelImportService", "数据对象"),
|
|
|
|
|
MES_OBJECT_CFG(230, "objectCfgExcelImportService", "对象结构"),
|
|
|
|
|
MES_WC_CHECK(240, "wcCheckExcelImportService", "开线检查,支持编辑"),
|
|
|
|
|
MES_QC_CHECK_STANDARD(250, "qcCheckStandardExcelImportService", "质量检测标准,支持编辑"),
|
|
|
|
|
MES_FAULT_CAUSE(260, "faultCauseExcelImportService", "设备故障原因,支持编辑"),
|
|
|
|
|
MES_FAULT_METHOD(270, "faultMethodExcelImportService", "设备故障处理措施,支持编辑"),
|
|
|
|
|
MES_FAULT_PHENOMENON(280, "faultPhenomenonExcelImportService", "设备故障现象,支持编辑"),
|
|
|
|
|
MES_DEFECT(290, "defectExcelImportService", "缺陷,支持编辑"),
|
|
|
|
|
MES_DEFECT_CAUSE(300, "defectCauseExcelImportService", "缺陷原因,支持编辑"),
|
|
|
|
|
MES_SCRAP(310, "scrapExcelImportService", "报废原因,支持编辑"),
|
|
|
|
|
MES_REPAIR(320, "repairExcelImportService", "质量数据处理措施,支持编辑"),
|
|
|
|
|
MES_EQU_TASK_PLAN(330, "equTaskPlanExcelImportService", "设备作业周期计划,支持编辑"),
|
|
|
|
|
MES_PART_OJBECT(340, "partObjectExcelImportService", "物料对象"),
|
|
|
|
|
MES_ROUTE_PROCESS_WORK_CELL(350, "routeProcessWorkCellExcelImportService", "工序工作单元"),
|
|
|
|
|
MES_DATASOURCE(360, "datasourceExcelImportService", "DB地址清单"),
|
|
|
|
|
MES_EQU_TASK_NOTIFY_CFG(370, "equTaskNotifyCfgExcelImportService", "设备通知配置"),
|
|
|
|
|
MES_EQU_NOTIFY_OBJECT_CFG(380, "equNotifyObjectCfgExcelImportService", "设备通知对象"),
|
|
|
|
|
MES_PLC(390, "plcExcelImportService", "PLC地址清单,支持编辑"),
|
|
|
|
|
MES_PROCESS(400, "processExcelImportService", "工序信息"),
|
|
|
|
|
MES_KPSN_RULE(410, "kpsnRuleExcelImportService", "关键件条码校验规则,支持编辑"),
|
|
|
|
|
MES_QUEUE_JIT_ACTUAL(420, "queueJitActualExcelImportService", "客户JIT生产队列"),
|
|
|
|
|
MES_PART_BOM_IMPORT(430, "partBomExcelImportService", "散件BOM导入"),
|
|
|
|
|
MES_PLAN_ORDER_BATCH_COMPILE(440, "planOrderBatchCompileExcelImportService", "生产计划批量编制,支持编辑");
|
|
|
|
|
public enum MES_EXCEL {
|
|
|
|
|
|
|
|
|
|
MES_PLAN_ORDER(10, "planOrderExcelService", "生产计划"),
|
|
|
|
|
MES_EQUIPMENT(20, "equipmentExcelService", "设备台账,支持编辑"),
|
|
|
|
|
MES_EQU_TASK_STANDARD(30, "equTaskStandardExcelService", "设备作业要求,支持编辑"),
|
|
|
|
|
MES_CUST_ORDER(40, "custOrderExcelService", "客户订单"),
|
|
|
|
|
MES_PCN_SYNC_CFG(50, "pcnSyncCfgExcelService", "PCN同步配置"),
|
|
|
|
|
MES_PART(60, "partExcelService", "物料表,支持编辑"),
|
|
|
|
|
MES_PRODUCE_CATEGORY(70, "produceCategoryExcelService", "产品类型"),
|
|
|
|
|
MES_PACK_SPEC(80, "packSpecExcelService", "包装规格,支持编辑"),
|
|
|
|
|
MES_PROD_PACK(90, "prodPackExcelService", "产品包装关系"),
|
|
|
|
|
MES_PRODUCT_ENCODE_CFG(100, "productEncodeCfgExcelService", "产品编码配置"),
|
|
|
|
|
MES_BOM(110, "bomExcelService", "物料清单,支持编辑"),
|
|
|
|
|
MES_PROD_CFG_TYPE(120, "prodCfgTypeExcelService", "产品配置类型"),
|
|
|
|
|
MES_CUSTOMER(130, "customerExcelService", "客户表,支持编辑"),
|
|
|
|
|
MES_CUSTOMER_PART(140, "customerPartExcelService", "客户零件关系表,支持编辑"),
|
|
|
|
|
MES_WORK_CENTER(150, "workCenterExcelService", "生产线,支持编辑"),
|
|
|
|
|
MES_WORK_CELL(160, "workCellExcelService", "工位,支持编辑"),
|
|
|
|
|
MES_WC_EQUIPMENT(170, "wcEquipmentExcelService", "工位设备关系表"),
|
|
|
|
|
MES_SHIFT(180, "shiftExcelService", "班次,支持编辑"),
|
|
|
|
|
MES_SHIFT_GROUP(190, "shiftGroupExcelService", "班组,支持编辑"),
|
|
|
|
|
MES_WORK_CELL_PARAM_CFG(200, "workCellParamCfgExcelService", "工作单元参数配置"),
|
|
|
|
|
MES_STATION_BOM(210, "stationBomExcelService", "工位BOM表"),
|
|
|
|
|
MES_DATA_OBJECT(220, "dataObjectExcelService", "数据对象"),
|
|
|
|
|
MES_OBJECT_CFG(230, "objectCfgExcelService", "对象结构"),
|
|
|
|
|
MES_WC_CHECK(240, "wcCheckExcelService", "开线检查,支持编辑"),
|
|
|
|
|
MES_QC_CHECK_STANDARD(250, "qcCheckStandardExcelService", "质量检测标准,支持编辑"),
|
|
|
|
|
MES_FAULT_CAUSE(260, "faultCauseExcelService", "设备故障原因,支持编辑"),
|
|
|
|
|
MES_FAULT_METHOD(270, "faultMethodExcelService", "设备故障处理措施,支持编辑"),
|
|
|
|
|
MES_FAULT_PHENOMENON(280, "faultPhenomenonExcelService", "设备故障现象,支持编辑"),
|
|
|
|
|
MES_DEFECT(290, "defectExcelService", "缺陷,支持编辑"),
|
|
|
|
|
MES_DEFECT_CAUSE(300, "defectCauseExcelService", "缺陷原因,支持编辑"),
|
|
|
|
|
MES_SCRAP(310, "scrapExcelService", "报废原因,支持编辑"),
|
|
|
|
|
MES_REPAIR(320, "repairExcelService", "质量数据处理措施,支持编辑"),
|
|
|
|
|
MES_EQU_TASK_PLAN(330, "equTaskPlanExcelService", "设备作业周期计划,支持编辑"),
|
|
|
|
|
MES_PART_OJBECT(340, "partObjectExcelService", "物料对象"),
|
|
|
|
|
MES_ROUTE_PROCESS_WORK_CELL(350, "routeProcessWorkCellExcelService", "工序工作单元"),
|
|
|
|
|
MES_DATASOURCE(360, "datasourceExcelService", "DB地址清单"),
|
|
|
|
|
MES_EQU_TASK_NOTIFY_CFG(370, "equTaskNotifyCfgExcelService", "设备通知配置"),
|
|
|
|
|
MES_EQU_NOTIFY_OBJECT_CFG(380, "equNotifyObjectCfgExcelService", "设备通知对象"),
|
|
|
|
|
MES_PLC(390, "plcExcelService", "PLC地址清单,支持编辑"),
|
|
|
|
|
MES_PROCESS(400, "processExcelService", "工序信息"),
|
|
|
|
|
MES_KPSN_RULE(410, "kpsnRuleExcelService", "关键件条码校验规则,支持编辑"),
|
|
|
|
|
MES_QUEUE_JIT_ACTUAL(420, "queueJitActualExcelService", "客户JIT生产队列"),
|
|
|
|
|
MES_PART_BOM_IMPORT(430, "partBomExcelService", "散件BOM导入"),
|
|
|
|
|
MES_PLAN_ORDER_BATCH_COMPILE(440, "planOrderBatchCompileExcelService", "生产计划批量编制,支持编辑");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String service;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MES_INSERT_EXCEL(int value, String service, String description) {
|
|
|
|
|
MES_EXCEL(int value, String service, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.service = service;
|
|
|
|
|
this.description = description;
|
|
|
|
@ -1865,10 +1940,10 @@ public class MesEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static MES_INSERT_EXCEL getByValue(int value) {
|
|
|
|
|
for (MES_INSERT_EXCEL mesInsertExcel : values()) {
|
|
|
|
|
if (mesInsertExcel.getValue() == value) {
|
|
|
|
|
return mesInsertExcel;
|
|
|
|
|
public static MES_EXCEL getByValue(int value) {
|
|
|
|
|
for (MES_EXCEL excel : values()) {
|
|
|
|
|
if (excel.getValue() == value) {
|
|
|
|
|
return excel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
@ -5174,4 +5249,327 @@ public class MesEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 运算对象属性 运算类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum OPERATE_TYPE {
|
|
|
|
|
OEE(10, "OEE"),
|
|
|
|
|
MTBF(20, "MTBF平均故障间隔"),
|
|
|
|
|
MTTR(30, "MTTR平均修理时间");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
OPERATE_TYPE(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 运算对象属性 属性类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum ATTRIBUTE_TYPE {
|
|
|
|
|
STANDARD_ATTRIBUTE(10, "标准属性"),
|
|
|
|
|
CUSTOM_ATTRIBUTE(20, "自定义属性");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
ATTRIBUTE_TYPE(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 运算对象属性配置 赋值类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum VALUE_TYPE {
|
|
|
|
|
MANUAL_ASSIGNMENT("10", "手工赋值"),
|
|
|
|
|
SPEL_EXPRESSION("20", "spel表达式"),
|
|
|
|
|
FUNCTION_ASSIGNMENT("30", "函数赋值"),
|
|
|
|
|
JOB_ASSIGNMENT("40", "job赋值");
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
VALUE_TYPE(String value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static VALUE_TYPE getByValue(String value) {
|
|
|
|
|
for (VALUE_TYPE valueType : values()) {
|
|
|
|
|
if (valueType.getValue().equals(value)) {
|
|
|
|
|
return valueType;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(String val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value.equals(val)) {
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 运算对象 对象代码
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum OBJECT_CODE {
|
|
|
|
|
ORGANIZE_OEE("10", "工厂OEE"),
|
|
|
|
|
WORK_CENTER_OEE("20", "产线OEE"),
|
|
|
|
|
WORK_CELL_CEE("30", "工位OEE"),
|
|
|
|
|
EQU_OEE("40", "设备OEE");
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
OBJECT_CODE(String value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static OBJECT_CODE getByValue(String value) {
|
|
|
|
|
for (OBJECT_CODE objectCode : values()) {
|
|
|
|
|
if (objectCode.getValue().equals(value)) {
|
|
|
|
|
return objectCode;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value.equals(val)) {
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 脚本类型(组件、表单、报表、JOB、其他)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SCRIPT_TYPE {
|
|
|
|
|
ASSEMBLY(10, "组件"),
|
|
|
|
|
FORM(20, "表单"),
|
|
|
|
|
REPORT_FORM(30, "报表"),
|
|
|
|
|
JOB(40, "JOB"),
|
|
|
|
|
OTHER(50, "其他");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
SCRIPT_TYPE(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 语言类型(Groovy、Python、JavaScript、Scala、Ruby)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SCRIPT_LANGUAGE {
|
|
|
|
|
GROOVY(10, "Groovy"),
|
|
|
|
|
PYTHON(20, "Python"),
|
|
|
|
|
JAVA_SCRIPT(30, "JavaScript"),
|
|
|
|
|
SCALA(40, "Scala"),
|
|
|
|
|
RUBY(50, "Ruby");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
SCRIPT_LANGUAGE(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 运算对象代码
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum OPERATE_OBJECT_CODE {
|
|
|
|
|
ORGANIZE_OEE_HOUR("ORGANIZE_OEE_HOUR", "工厂OEE(小时)"),
|
|
|
|
|
ORGANIZE_OEE_DAY("ORGANIZE_OEE_DAY", "工厂OEE(天)"),
|
|
|
|
|
WORK_CENTER_OEE_DAY("WORK_CENTER_OEE_DAY", "产线OEE(天)"),
|
|
|
|
|
EQU_OEE_DAY("EQU_OEE_Day", "设备OEE(天)");
|
|
|
|
|
|
|
|
|
|
private String value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
OPERATE_OBJECT_CODE(String value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static OPERATE_OBJECT_CODE getByValue(String value) {
|
|
|
|
|
for (OPERATE_OBJECT_CODE objectCode : values()) {
|
|
|
|
|
if (objectCode.getValue().equals(value)) {
|
|
|
|
|
return objectCode;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value.equals(val)) {
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* oee 运算状态
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum OEE_STATUS {
|
|
|
|
|
STAY_OPERATE(10, "待运算"),
|
|
|
|
|
ALREADY_OPERATE(20, "已运算");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
OEE_STATUS(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|