【1440 PLC采集工步【生产数据】】

yun-zuoyi
陈思洁 5 years ago
parent e90ea98d1f
commit b3e38170e6

@ -2951,4 +2951,78 @@ public class MesPcnEnumUtil {
return description; return description;
} }
} }
/**
* BOM
* 10.
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATION_BOM_MATCH_RULE {
BARCODE_RULE_MATCHING(10, "条码规则匹配"),
PROCESS_BARCODE_MATCHING(20, "过程条码匹配"),
BAR_CODE_MATCHING(20, "条码匹配");
private int value;
private String description;
STATION_BOM_MATCH_RULE(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;
}
}
/**
*
* 10.
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OPERATION_MODE {
SINGLE_SCAN(10, "单个扫描"),
NO_SCAN_DEDUCTION(20, "不扫描后端扣减");
private int value;
private String description;
OPERATION_MODE(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;
}
}
} }

@ -78,6 +78,10 @@ public class MesStationBom extends BaseBean implements Serializable {
@ApiParam(value = "是否绑定关键件") @ApiParam(value = "是否绑定关键件")
private Integer isBindKey; private Integer isBindKey;
@Column(name = "MATCH_RULE")
@ApiParam(value = "匹配规则")
private Integer matchRule;
@Transient @Transient
@ApiParam("是否已绑定") @ApiParam("是否已绑定")
private Boolean isBind; private Boolean isBind;
@ -114,6 +118,10 @@ public class MesStationBom extends BaseBean implements Serializable {
@ApiParam(value = "是否绑定关键件名称") @ApiParam(value = "是否绑定关键件名称")
private String isBindKeyName; private String isBindKeyName;
@Transient
@ApiParam("是否扫描")
private Boolean isScan;
public double getQtyVal() { public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty; return this.qty == null ? 0.0d : this.qty;
} }

Loading…
Cancel
Save