add(派单任务和管片任务的刷新)
This commit is contained in:
@ -4,7 +4,7 @@ from view.widgets.system_center_dialog import SystemCenterDialog
|
||||
from view.widgets.bottom_control_widget import BottomControlWidget
|
||||
from view.widgets.system_diagnostics_dialog import SystemDiagnosticsDialog
|
||||
from view.widgets.message_popup_widget import MessagePopupWidget
|
||||
|
||||
from view.main_window import MainWindow
|
||||
from service.msg_recorder import MessageRecorder
|
||||
from service.msg_query_thread import MsgQueryThread
|
||||
|
||||
@ -16,7 +16,7 @@ from service.monitor_thread import MonitorThread
|
||||
"""
|
||||
|
||||
class BottomControlController:
|
||||
def __init__(self, bottom_control_widget:BottomControlWidget, main_window):
|
||||
def __init__(self, bottom_control_widget:BottomControlWidget, main_window:MainWindow):
|
||||
self.bottom_control_widget = bottom_control_widget
|
||||
self.main_window = main_window
|
||||
|
||||
@ -25,7 +25,7 @@ class BottomControlController:
|
||||
self.diagnostics_device_row = 0 # 系统诊断弹窗的设备检测行号,从0开始
|
||||
self.diagnostics_device_col = 0 # 系统诊断弹窗的设备检测列号,从0开始
|
||||
self.diagnostics_service_row = 0 # 系统诊断弹窗的服务检测行号,从0开始
|
||||
self.diagnostics_service_col = 2 # 系统诊断弹窗的服务检测行号,从2开始
|
||||
self.diagnostics_service_col = 2 # 系统诊断弹窗的服务检测列号,从2开始
|
||||
|
||||
# 系统中心弹窗
|
||||
self.system_center_dialog = SystemCenterDialog(self.main_window)
|
||||
@ -211,8 +211,17 @@ class BottomControlController:
|
||||
self.system_diagnostics_dialog.set_ms_value(row, col, delay)
|
||||
if delay <= self.device_monitor.warning_delay:
|
||||
self.system_diagnostics_dialog.set_circle_status(row, col, "normal")
|
||||
# 设置上料斗或者下料斗的设备状态(主界面的上料斗、下料斗控件中)
|
||||
if device_name == "上料斗":
|
||||
self.main_window.hopper_widget.setUpperHopperStatus(0)
|
||||
elif device_name == "下料斗":
|
||||
self.main_window.hopper_widget.setLowerHopperStatus(0)
|
||||
else:
|
||||
self.system_diagnostics_dialog.set_circle_status(row, col, "warning")
|
||||
if device_name == "上料斗":
|
||||
self.main_window.hopper_widget.setUpperHopperStatus(1)
|
||||
elif device_name == "下料斗":
|
||||
self.main_window.hopper_widget.setLowerHopperStatus(1)
|
||||
# 显示检测组件
|
||||
self.system_diagnostics_dialog.set_selected_show(row, col)
|
||||
|
||||
@ -225,6 +234,11 @@ class BottomControlController:
|
||||
self.system_diagnostics_dialog.set_circle_status(row, col, "error")
|
||||
# 显示检测组件
|
||||
self.system_diagnostics_dialog.set_selected_show(row, col)
|
||||
# 设置上料斗或者下料斗的设备状态(主界面的上料斗、下料斗控件中)
|
||||
if device_name == "上料斗":
|
||||
self.main_window.hopper_widget.setUpperHopperStatus(2)
|
||||
elif device_name == "下料斗":
|
||||
self.main_window.hopper_widget.setLowerHopperStatus(2)
|
||||
|
||||
def _get_diagnostics_service_row_col(self):
|
||||
"""获取系统诊断弹窗中 服务检测的 行号 和 列号"""
|
||||
|
||||
Reference in New Issue
Block a user