|
@@ -3,8 +3,7 @@
|
|
|
|
|
|
import os
|
|
|
from ui.own.frame_theme import MyFrame
|
|
|
-from utils.qt import QtWidgets, QtGui, QIcon, QPixmap, Qt
|
|
|
-from utils.resource import resource_path
|
|
|
+from utils.qt import QtWidgets
|
|
|
from utils.globalvar import SD
|
|
|
|
|
|
|
|
@@ -613,9 +612,91 @@ class TopPage(QtWidgets.QWidget):
|
|
|
self.lb_soc_avg.setText("")
|
|
|
self.soc_avg_layout.addWidget(self.lb_soc_avg)
|
|
|
|
|
|
+ self.nom_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
+ self.nom_energy.setTitle("系统标称能量")
|
|
|
+ self.nom_energy_layout = QtWidgets.QHBoxLayout(self.nom_energy)
|
|
|
+ self.lb_nom_energy_value = QtWidgets.QLabel(self.nom_energy)
|
|
|
+ self.lb_nom_energy_value.setText(" ")
|
|
|
+ self.nom_energy_layout.addWidget(self.lb_nom_energy_value)
|
|
|
+ self.lb_nom_energy = QtWidgets.QLabel(self.nom_energy)
|
|
|
+ self.lb_nom_energy.setText("kWh")
|
|
|
+ self.nom_energy_layout.addWidget(self.lb_nom_energy)
|
|
|
+
|
|
|
+ self.all_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
+ self.all_energy.setTitle("系统总能量")
|
|
|
+ self.all_energy_layout = QtWidgets.QHBoxLayout(self.all_energy)
|
|
|
+ self.lb_all_energy_value = QtWidgets.QLabel(self.all_energy)
|
|
|
+ self.lb_all_energy_value.setText(" ")
|
|
|
+ self.all_energy_layout.addWidget(self.lb_all_energy_value)
|
|
|
+ self.lb_all_energy = QtWidgets.QLabel(self.all_energy)
|
|
|
+ self.lb_all_energy.setText("kWh")
|
|
|
+ self.all_energy_layout.addWidget(self.lb_all_energy)
|
|
|
+
|
|
|
+ self.afe_temp_high = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
+ self.afe_temp_high.setTitle("最高AFE温度值")
|
|
|
+ self.afe_temp_high_layout = QtWidgets.QHBoxLayout(self.afe_temp_high)
|
|
|
+ self.lb_afe_temp_high_value = QtWidgets.QLabel(self.afe_temp_high)
|
|
|
+ self.lb_afe_temp_high_value.setText(" ")
|
|
|
+ self.afe_temp_high_layout.addWidget(self.lb_afe_temp_high_value)
|
|
|
+ self.lb_afe_temp_high = QtWidgets.QLabel(self.afe_temp_high)
|
|
|
+ self.lb_afe_temp_high.setText("℃")
|
|
|
+ self.afe_temp_high_layout.addWidget(self.lb_afe_temp_high)
|
|
|
+
|
|
|
+ self.afe_temp_high_slave = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
+ self.afe_temp_high_slave.setTitle("最高AFE温度所在从控ID")
|
|
|
+ self.afe_temp_high_slave_layout = QtWidgets.QHBoxLayout(self.afe_temp_high_slave)
|
|
|
+ self.lb_afe_temp_high_slave_value = QtWidgets.QLabel(self.afe_temp_high_slave)
|
|
|
+ self.lb_afe_temp_high_slave_value.setText(" ")
|
|
|
+ self.afe_temp_high_slave_layout.addWidget(self.lb_afe_temp_high_slave_value)
|
|
|
+ self.lb_afe_temp_high_slave = QtWidgets.QLabel(self.afe_temp_high_slave)
|
|
|
+ self.lb_afe_temp_high_slave.setText("")
|
|
|
+ self.afe_temp_high_slave_layout.addWidget(self.lb_afe_temp_high_slave)
|
|
|
+
|
|
|
+ self.afe_temp_high_slave_in = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
+ self.afe_temp_high_slave_in.setTitle("最高AFE温度所在从控内编号")
|
|
|
+ self.afe_temp_high_slave_in_layout = QtWidgets.QHBoxLayout(self.afe_temp_high_slave_in)
|
|
|
+ self.lb_afe_temp_high_slave_in_value = QtWidgets.QLabel(self.afe_temp_high_slave_in)
|
|
|
+ self.lb_afe_temp_high_slave_in_value.setText(" ")
|
|
|
+ self.afe_temp_high_slave_in_layout.addWidget(self.lb_afe_temp_high_slave_in_value)
|
|
|
+ self.lb_afe_temp_high_slave_in = QtWidgets.QLabel(self.afe_temp_high_slave_in)
|
|
|
+ self.lb_afe_temp_high_slave_in.setText("")
|
|
|
+ self.afe_temp_high_slave_in_layout.addWidget(self.lb_afe_temp_high_slave_in)
|
|
|
+
|
|
|
+ self.afe_temp_low = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
+ self.afe_temp_low.setTitle("最低AFE温度值")
|
|
|
+ self.afe_temp_low_layout = QtWidgets.QHBoxLayout(self.afe_temp_low)
|
|
|
+ self.lb_afe_temp_low_value = QtWidgets.QLabel(self.afe_temp_low)
|
|
|
+ self.lb_afe_temp_low_value.setText(" ")
|
|
|
+ self.afe_temp_low_layout.addWidget(self.lb_afe_temp_low_value)
|
|
|
+ self.lb_afe_temp_low = QtWidgets.QLabel(self.afe_temp_low)
|
|
|
+ self.lb_afe_temp_low.setText("℃")
|
|
|
+ self.afe_temp_low_layout.addWidget(self.lb_afe_temp_low)
|
|
|
+
|
|
|
+ self.afe_temp_low_slave = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
+ self.afe_temp_low_slave.setTitle("最低AFE温度所在从控ID")
|
|
|
+ self.afe_temp_low_slave_layout = QtWidgets.QHBoxLayout(self.afe_temp_low_slave)
|
|
|
+ self.lb_afe_temp_low_slave_value = QtWidgets.QLabel(self.afe_temp_low_slave)
|
|
|
+ self.lb_afe_temp_low_slave_value.setText(" ")
|
|
|
+ self.afe_temp_low_slave_layout.addWidget(self.lb_afe_temp_low_slave_value)
|
|
|
+ self.lb_afe_temp_low_slave = QtWidgets.QLabel(self.afe_temp_low_slave)
|
|
|
+ self.lb_afe_temp_low_slave.setText("")
|
|
|
+ self.afe_temp_low_slave_layout.addWidget(self.lb_afe_temp_low_slave)
|
|
|
+
|
|
|
+ self.afe_temp_low_slave_in = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
+ self.afe_temp_low_slave_in.setTitle("最低AFE温度所在从控内编号")
|
|
|
+ self.afe_temp_low_slave_in_layout = QtWidgets.QHBoxLayout(self.afe_temp_low_slave_in)
|
|
|
+ self.lb_afe_temp_low_slave_in_value = QtWidgets.QLabel(self.afe_temp_low_slave_in)
|
|
|
+ self.lb_afe_temp_low_slave_in_value.setText(" ")
|
|
|
+ self.afe_temp_low_slave_in_layout.addWidget(self.lb_afe_temp_low_slave_in_value)
|
|
|
+ self.lb_afe_temp_low_slave_in = QtWidgets.QLabel(self.afe_temp_low_slave_in)
|
|
|
+ self.lb_afe_temp_low_slave_in.setText("")
|
|
|
+ self.afe_temp_low_slave_in_layout.addWidget(self.lb_afe_temp_low_slave_in)
|
|
|
+
|
|
|
if SD.CCU_TYPE == 1:
|
|
|
self.top_qscrollarea_layout.addWidget(self.tv_2, 3, 6, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.tv_3, 3, 7, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.nom_energy, 3, 8, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.all_energy, 3, 9, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.jz_temp_high, 4, 5, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.jz_temp_high_index, 4, 6, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.bcu_temp_high, 4, 7, 1, 1)
|
|
@@ -626,27 +707,12 @@ class TopPage(QtWidgets.QWidget):
|
|
|
self.top_qscrollarea_layout.addWidget(self.soc_low, 5, 2, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.soc_avg, 5, 3, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.max_dchg_vol, 5, 4, 1, 1)
|
|
|
- self.nom_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
- self.nom_energy.setTitle("系统标称能量")
|
|
|
- self.nom_energy_layout = QtWidgets.QHBoxLayout(self.nom_energy)
|
|
|
- self.lb_nom_energy_value = QtWidgets.QLabel(self.nom_energy)
|
|
|
- self.lb_nom_energy_value.setText(" ")
|
|
|
- self.nom_energy_layout.addWidget(self.lb_nom_energy_value)
|
|
|
- self.lb_nom_energy = QtWidgets.QLabel(self.nom_energy)
|
|
|
- self.lb_nom_energy.setText("kWh")
|
|
|
- self.nom_energy_layout.addWidget(self.lb_nom_energy)
|
|
|
- self.top_qscrollarea_layout.addWidget(self.nom_energy, 3, 8, 1, 1)
|
|
|
-
|
|
|
- self.all_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
- self.all_energy.setTitle("系统总能量")
|
|
|
- self.all_energy_layout = QtWidgets.QHBoxLayout(self.all_energy)
|
|
|
- self.lb_all_energy_value = QtWidgets.QLabel(self.all_energy)
|
|
|
- self.lb_all_energy_value.setText(" ")
|
|
|
- self.all_energy_layout.addWidget(self.lb_all_energy_value)
|
|
|
- self.lb_all_energy = QtWidgets.QLabel(self.all_energy)
|
|
|
- self.lb_all_energy.setText("kWh")
|
|
|
- self.all_energy_layout.addWidget(self.lb_all_energy)
|
|
|
- self.top_qscrollarea_layout.addWidget(self.all_energy, 3, 9, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_high, 5, 5, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_high_slave, 5, 6, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_high_slave_in, 5, 7, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_low, 5, 8, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_low_slave, 5, 9, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_low_slave_in, 6, 0, 1, 1)
|
|
|
else:
|
|
|
self.tv_2.setHidden(True)
|
|
|
self.tv_3.setHidden(True)
|
|
@@ -654,33 +720,19 @@ class TopPage(QtWidgets.QWidget):
|
|
|
self.jz_temp_high_index.setHidden(True)
|
|
|
self.bcu_temp_high.setHidden(True)
|
|
|
self.bcu_temp_high_index.setHidden(True)
|
|
|
- self.nom_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
- self.nom_energy.setTitle("系统标称能量")
|
|
|
- self.nom_energy_layout = QtWidgets.QHBoxLayout(self.nom_energy)
|
|
|
- self.lb_nom_energy_value = QtWidgets.QLabel(self.nom_energy)
|
|
|
- self.lb_nom_energy_value.setText(" ")
|
|
|
- self.nom_energy_layout.addWidget(self.lb_nom_energy_value)
|
|
|
- self.lb_nom_energy = QtWidgets.QLabel(self.nom_energy)
|
|
|
- self.lb_nom_energy.setText("kWh")
|
|
|
- self.nom_energy_layout.addWidget(self.lb_nom_energy)
|
|
|
self.top_qscrollarea_layout.addWidget(self.nom_energy, 3, 6, 1, 1)
|
|
|
-
|
|
|
- self.all_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
|
|
|
- self.all_energy.setTitle("系统总能量")
|
|
|
- self.all_energy_layout = QtWidgets.QHBoxLayout(self.all_energy)
|
|
|
- self.lb_all_energy_value = QtWidgets.QLabel(self.all_energy)
|
|
|
- self.lb_all_energy_value.setText(" ")
|
|
|
- self.all_energy_layout.addWidget(self.lb_all_energy_value)
|
|
|
- self.lb_all_energy = QtWidgets.QLabel(self.all_energy)
|
|
|
- self.lb_all_energy.setText("kWh")
|
|
|
- self.all_energy_layout.addWidget(self.lb_all_energy)
|
|
|
self.top_qscrollarea_layout.addWidget(self.all_energy, 3, 7, 1, 1)
|
|
|
-
|
|
|
self.top_qscrollarea_layout.addWidget(self.mos_temp_1, 3, 8, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.mos_temp_2, 3, 9, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.soc_high, 4, 5, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.soc_low, 4, 6, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.soc_avg, 4, 7, 1, 1)
|
|
|
self.top_qscrollarea_layout.addWidget(self.max_dchg_vol, 4, 8, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_high, 4, 9, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_high_slave, 5, 0, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_high_slave_in, 5, 1, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_low, 5, 2, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_low_slave, 5, 3, 1, 1)
|
|
|
+ self.top_qscrollarea_layout.addWidget(self.afe_temp_low_slave_in, 5, 4, 1, 1)
|
|
|
self.top_layout.addWidget(self.top_groupbox)
|
|
|
self.verticalLayout.addWidget(self.top_widget)
|