rev 在线状态
This commit is contained in:
@@ -301,7 +301,7 @@ public class HailiangCleaningFeedingLineDriver extends AbstractOpcDeviceDriver i
|
||||
jo.put("allowed_in", allowed_in == 1 ? "是" : "否");
|
||||
jo.put("requireSucess", requireSucess.toString());
|
||||
jo.put("in_pcsn", in_pcsn);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("error", ErrorUtil.getDictDetail("clean_up_error_type", String.valueOf(this.getError())));
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
|
||||
@@ -184,7 +184,7 @@ public class HailiangCleaningMachineDeviceDriver extends AbstractOpcDeviceDriver
|
||||
public JSONObject getDeviceStatusName() throws Exception {
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("device_name", this.getDevice().getDevice_name());
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("error", ErrorUtil.getDictDetail("clean_error_type", String.valueOf(this.getError())));
|
||||
jo.put("driver_type", "hailiang_cleaning_feeding_line");
|
||||
return jo;
|
||||
|
||||
@@ -226,7 +226,7 @@ public class HailiangCleaningMachineStorageStationDeviceDriver extends AbstractO
|
||||
jo.put("device_name", this.getDevice().getDevice_name());
|
||||
jo.put("silo_weight", silo_weight);
|
||||
jo.put("full_number", full_number);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("error", ErrorUtil.getDictDetail("clean_mach_error_type", String.valueOf(this.getError())));
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
|
||||
@@ -247,7 +247,7 @@ public class EalingMachineDeviceDriver extends AbstractOpcDeviceDriver implement
|
||||
public JSONObject getDeviceStatusName() {
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("device_name", this.getDevice().getDevice_name());
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
return jo;
|
||||
}
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ public class HailiangEngravingCacheDeviceDriver extends AbstractOpcDeviceDriver
|
||||
jo.put("device_name", this.getDevice().getDevice_name());
|
||||
jo.put("mode", mode == 1 ? "联机" : "单机");
|
||||
jo.put("move", move == 1 ? "有货" : "无货");
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("noFeedAgvMessage", this.getNoFeedAgvMessage());
|
||||
|
||||
@@ -667,7 +667,7 @@ public class HailiangEngravingMachineDeviceDriver extends AbstractOpcDeviceDrive
|
||||
jo.put("lettering_silo_number", lettering_silo_number);
|
||||
jo.put("error", ErrorUtil.getDictDetail("eng_mach_error_type", String.valueOf(this.getError())));
|
||||
jo.put("order", order);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("noFeedAgvMessage", this.getNoFeedAgvMessage());
|
||||
|
||||
@@ -280,7 +280,7 @@ public class HailiangOldSpecialDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
jo.put("now_one_box_num", now_one_box_num);
|
||||
jo.put("line_stock_num", line_stock_num);
|
||||
jo.put("order_prod_allnum", order_prod_allnum);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("driver_type", "hailiang_old_special_device");
|
||||
|
||||
@@ -226,7 +226,7 @@ public class HailiangOldSpecialEmptyStationDeviceDriver extends AbstractOpcDevic
|
||||
jo.put("order", order);
|
||||
jo.put("error", ErrorUtil.getDictDetail("empty_error_type", String.valueOf(this.getError())));
|
||||
jo.put("task", task);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("is_click", true);
|
||||
|
||||
@@ -307,7 +307,7 @@ public class HailiangOldSpecialFullStationDeviceDriver extends AbstractOpcDevice
|
||||
jo.put("requireSucess", requireSucess.toString());
|
||||
jo.put("error", ErrorUtil.getDictDetail("full_error_type", String.valueOf(this.getError())));
|
||||
jo.put("task", task);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("is_click", true);
|
||||
|
||||
@@ -121,7 +121,7 @@ public class HailiangOldSpecialPickStationDeviceDriver extends AbstractOpcDevice
|
||||
public JSONObject getDeviceStatusName() {
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("device_name", this.getDevice().getDevice_name());
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("error", ErrorUtil.getDictDetail("error_type", String.valueOf(this.getError())));
|
||||
jo.put("driver_type", "hailiang_old_special_pick_station");
|
||||
return jo;
|
||||
|
||||
@@ -276,7 +276,7 @@ public class HailiangOldSpecialPourStationDeviceDriver extends AbstractOpcDevice
|
||||
jo.put("requireSucess", requireSucess.toString());
|
||||
jo.put("error", ErrorUtil.getDictDetail("pour_error_type", String.valueOf(this.getError())));
|
||||
jo.put("task", task);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("is_click", true);
|
||||
|
||||
@@ -638,7 +638,7 @@ public class HailiangPackerStationDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
jo.put("hopper_removed", hopper_removed == 1 ? "是" : "否");
|
||||
jo.put("order_now", order_now);
|
||||
jo.put("error", ErrorUtil.getDictDetail("packer_error_type", String.valueOf(this.getError())));
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("is_click", true);
|
||||
|
||||
@@ -71,7 +71,7 @@ public class SealingMachineDeviceDriver extends AbstractOpcDeviceDriver implemen
|
||||
public JSONObject getDeviceStatusName() {
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("device_name", this.getDevice().getDevice_name());
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
return jo;
|
||||
}
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ public class HailiangSpecialDeviceDriver extends AbstractOpcDeviceDriver impleme
|
||||
jo.put("now_one_box_num", now_one_box_num);
|
||||
jo.put("line_stock_num", line_stock_num);
|
||||
jo.put("order_prod_allnum", order_prod_allnum);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("driver_type", "hailiang_engraving_machine");
|
||||
|
||||
@@ -227,7 +227,7 @@ public class HailiangSpecialEmptyStationDeviceDriver extends AbstractOpcDeviceDr
|
||||
jo.put("order", order);
|
||||
jo.put("error", ErrorUtil.getDictDetail("empty_error_type", String.valueOf(this.getError())));
|
||||
jo.put("task", task);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("is_click", true);
|
||||
|
||||
@@ -311,7 +311,7 @@ public class HailiangSpecialFullStationDeviceDriver extends AbstractOpcDeviceDri
|
||||
jo.put("full_number", full_number);
|
||||
jo.put("error", ErrorUtil.getDictDetail("full_error_type", String.valueOf(this.getError())));
|
||||
jo.put("task", task);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("is_click", true);
|
||||
|
||||
@@ -45,6 +45,7 @@ public class HailiangSpecialPickStationDeviceDriver extends AbstractOpcDeviceDri
|
||||
int last_now_one_prod_num = 0;
|
||||
|
||||
Boolean isonline = true;
|
||||
Boolean last_isonline = true;
|
||||
int hasGoods = 0;
|
||||
String message = null;
|
||||
Boolean iserror = false;
|
||||
@@ -72,6 +73,7 @@ public class HailiangSpecialPickStationDeviceDriver extends AbstractOpcDeviceDri
|
||||
mode = this.itemProtocol.getMode();
|
||||
now_one_prod_num = this.itemProtocol.getItem_now_one_box_num();
|
||||
order = this.itemProtocol.getOrder();
|
||||
isonline = this.itemProtocol.getIsonline();
|
||||
|
||||
if (mode != last_mode) {
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号mode:" + last_mode + "->" + mode);
|
||||
@@ -130,7 +132,7 @@ public class HailiangSpecialPickStationDeviceDriver extends AbstractOpcDeviceDri
|
||||
public JSONObject getDeviceStatusName() throws Exception {
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("device_name", this.getDevice().getDevice_name());
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("error", ErrorUtil.getDictDetail("error_type", String.valueOf(this.getError())));
|
||||
jo.put("driver_type", "hailiang_special_pick_station");
|
||||
return jo;
|
||||
|
||||
@@ -281,7 +281,7 @@ public class HailiangSpecialPourStationDeviceDriver extends AbstractOpcDeviceDri
|
||||
jo.put("requireSucess", requireSucess.toString());
|
||||
jo.put("error", ErrorUtil.getDictDetail("pour_error_type", String.valueOf(this.getError())));
|
||||
jo.put("task", task);
|
||||
jo.put("isOnline", this.getIsonline());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", this.getIserror());
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("is_click", true);
|
||||
|
||||
@@ -416,8 +416,8 @@ public class HailiangStackingStationDriver extends AbstractOpcDeviceDriver imple
|
||||
jo.put("order", order);
|
||||
jo.put("error", ErrorUtil.getDictDetail("stack_error_type", String.valueOf(line_error)));
|
||||
jo.put("lane_error", ErrorUtil.getDictDetail("stack_error_type", String.valueOf(lane_error)));
|
||||
jo.put("isOnline", this.getMode() == 1 ? true : false);
|
||||
jo.put("isError", this.getLane_error() != 0 || this.getLine_error() != 0 ? true : false);
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
jo.put("isError", (this.getLane_error() != 0 || this.getLine_error() != 0) ? true : false);
|
||||
jo.put("message", this.getMessage());
|
||||
jo.put("driver_type", "hailiang_stacking_station");
|
||||
return jo;
|
||||
|
||||
@@ -166,6 +166,7 @@ public class UnboxingMachineDeviceDriver extends AbstractOpcDeviceDriver impleme
|
||||
public JSONObject getDeviceStatusName() {
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("device_name", this.getDevice().getDevice_name());
|
||||
jo.put("isOnline", this.itemProtocol.getIsonline());
|
||||
return jo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user