散件BOM导入

yun-zuoyi
宋军超 5 years ago
parent ca85c59cdb
commit 69b620336f

@ -1803,7 +1803,8 @@ public class MesEnumUtil {
MES_PLC(390, "PLC地址清单"), MES_PLC(390, "PLC地址清单"),
MES_PROCESS(400, "工序信息"), MES_PROCESS(400, "工序信息"),
MES_KPSN_RULE(410, "关键件条码校验规则"), MES_KPSN_RULE(410, "关键件条码校验规则"),
MES_QUEUE_JIT_ACTUAL(420, "客户JIT生产队列"); MES_QUEUE_JIT_ACTUAL(420, "客户JIT生产队列"),
MES_PART_BOM_IMPORT(430, "散件BOM导入");
private int value; private int value;
private String description; private String description;
@ -4759,4 +4760,91 @@ public class MesEnumUtil {
return null; return null;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PART_TRAIT {
NORMAL(10, "正常件"),
FICTITIOUS_ASSEMBLY(20, "虚拟散件总成"),
FICTITIOUS_HALF_ASSEMBLY(30, "虚拟散件半总成");
private int value;
private String description;
PART_TRAIT(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;
}
public static String valueOfDescription2(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description.equals("已审批") ? "审批" : values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROD_CFG_TYPE {
NORMAL("10", "正常"),
SCATTERED("20", "散件");
private String value;
private String description;
PROD_CFG_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
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;
}
}
} }

@ -92,6 +92,10 @@ public class MesPart extends BaseBean implements Serializable {
@ApiParam("产品类型名称") @ApiParam("产品类型名称")
private String pptCode; private String pptCode;
@Column(name = "PART_TRAIT")
@ApiParam("物料特性")
private Integer partTrait;
@Transient @Transient
@ApiParam("产品类型名称") @ApiParam("产品类型名称")
private String produceCategoryName; private String produceCategoryName;

@ -39,4 +39,7 @@ public class ExcelImportResultModel<T> implements Serializable {
@ApiParam("导入数据集合") @ApiParam("导入数据集合")
private List<T> excelList; private List<T> excelList;
@ApiParam("导入进度")
private String importSpeed;
} }

@ -24,4 +24,7 @@ public class MesRouteCfgModel {
@ApiParam("流程代码") @ApiParam("流程代码")
private String routeCode; private String routeCode;
@ApiParam("是否执行 1=是 2=否")
private Integer isActive;
} }

@ -18,8 +18,5 @@ public class MesRouteCfgParamModel {
@ApiParam("工序代码") @ApiParam("工序代码")
private String processCode; private String processCode;
@ApiParam("是否执行 1=是 2=否")
private Integer isActive;
List<MesRouteCfgStepModel> stepModelList; List<MesRouteCfgStepModel> stepModelList;
} }

@ -18,5 +18,11 @@ public class MesRouteCfgStepModel {
@ApiParam("工步代码") @ApiParam("工步代码")
private String stepCode; private String stepCode;
@ApiParam("参数代码")
private String paramCode;
@ApiParam("参数值")
private String paramValue;
List<MesRouteCfgModel> routeCfgModelList; List<MesRouteCfgModel> routeCfgModelList;
} }

Loading…
Cancel
Save