排产单更新
This commit is contained in:
@@ -288,13 +288,13 @@ public class HfStationDeviceDriver extends AbstractOpcDeviceDriver implements De
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
//人工排产确认
|
//人工排产确认
|
||||||
if (!requireSucess && !order.equals("0")) {
|
if (!requireSucess && StrUtil.isNotEmpty(order)) {
|
||||||
enterOrder();
|
enterOrder();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
//工单完成
|
//工单完成
|
||||||
if (!finishRequireSucess && !order.equals("0")) {
|
if (!finishRequireSucess && StrUtil.isNotEmpty(order)) {
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -302,19 +302,19 @@ public class HfStationDeviceDriver extends AbstractOpcDeviceDriver implements De
|
|||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
//呼叫空盅
|
//呼叫空盅
|
||||||
if (!callEmptyRequireSucess && !order.equals("0")) {
|
if (!callEmptyRequireSucess && StrUtil.isNotEmpty(order)) {
|
||||||
callEmpty();
|
callEmpty();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
//满盅入库
|
//满盅入库
|
||||||
if (!fullInRequireSucess && !order.equals("0")) {
|
if (!fullInRequireSucess && StrUtil.isNotEmpty(order)) {
|
||||||
fullIn();
|
fullIn();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
//压机叫料
|
//压机叫料
|
||||||
if (!callMaterialRequireSucess && !order.equals("0")) {
|
if (!callMaterialRequireSucess && StrUtil.isNotEmpty(order)) {
|
||||||
callMaterial();
|
callMaterial();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -137,9 +137,9 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService, A
|
|||||||
|
|
||||||
if (device.getDeviceDriver() instanceof HfStationDeviceDriver) {
|
if (device.getDeviceDriver() instanceof HfStationDeviceDriver) {
|
||||||
hfStationDeviceDriver = (HfStationDeviceDriver) device.getDeviceDriver();
|
hfStationDeviceDriver = (HfStationDeviceDriver) device.getDeviceDriver();
|
||||||
// hfStationDeviceDriver.writing("to_order",dto.getOrder_code());
|
hfStationDeviceDriver.writing("to_order",dto.getOrder_code());
|
||||||
// hfStationDeviceDriver.writing("to_order_num",String.valueOf(dto.getQty()));
|
hfStationDeviceDriver.writing("to_order_num",String.valueOf(dto.getQty()));
|
||||||
// hfStationDeviceDriver.writing("to_product_number",dto.getMaterial_code());
|
hfStationDeviceDriver.writing("to_product_number",dto.getMaterial_code());
|
||||||
}
|
}
|
||||||
|
|
||||||
JSONObject json = (JSONObject) JSONObject.toJSON(dto);
|
JSONObject json = (JSONObject) JSONObject.toJSON(dto);
|
||||||
|
|||||||
Reference in New Issue
Block a user