top_page.py 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. import os
  4. from ui.own.frame_theme import MyFrame
  5. from utils.qt import QtWidgets, QtGui, QIcon, QPixmap, Qt
  6. from utils.resource import resource_path
  7. from utils.globalvar import SD
  8. class TopPage(QtWidgets.QWidget):
  9. def __init__(self, parent=None):
  10. super(TopPage, self).__init__(parent)
  11. self.initUI()
  12. def initUI(self):
  13. self.verticalLayout = QtWidgets.QVBoxLayout(self)
  14. self.verticalLayout.setContentsMargins(0, 0, 0, 0)
  15. self.verticalLayout.setSpacing(0)
  16. # 设置参数
  17. self.top_widget = MyFrame(self)
  18. self.top_layout = QtWidgets.QVBoxLayout(self.top_widget)
  19. self.top_layout.setContentsMargins(0, 0, 0, 0)
  20. self.top_layout.setSpacing(0)
  21. self.top_groupbox = QtWidgets.QGroupBox(self.top_widget)
  22. self.top_groupbox.setTitle("参数配置")
  23. self.top_groupbox_layout = QtWidgets.QHBoxLayout(self.top_groupbox)
  24. self.top_qscrollarea = QtWidgets.QScrollArea(self.top_groupbox)
  25. self.top_qscrollarea.setWidgetResizable(True)
  26. # self.top_qscrollarea.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)
  27. self.top_groupbox_layout.addWidget(self.top_qscrollarea)
  28. self.top_qwidget = QtWidgets.QWidget()
  29. self.top_qscrollarea.setWidget(self.top_qwidget)
  30. self.top_qscrollarea_layout = QtWidgets.QGridLayout(self.top_qwidget)
  31. self.top_qscrollarea_layout.setObjectName("scrollLayout")
  32. # self.top_qscrollarea_layout.setContentsMargins(3, 3, 3, 3)
  33. self.top_qscrollarea_layout.setSpacing(0)
  34. self.tv = QtWidgets.QGroupBox(self.top_qscrollarea)
  35. self.tv.setTitle("总压")
  36. self.tv_layout = QtWidgets.QHBoxLayout(self.tv)
  37. self.lb_tv_value = QtWidgets.QLabel(self.tv)
  38. self.lb_tv_value.setText(" ")
  39. self.tv_layout.addWidget(self.lb_tv_value)
  40. self.lb_tv = QtWidgets.QLabel(self.tv)
  41. self.lb_tv.setText("V")
  42. self.tv_layout.addWidget(self.lb_tv)
  43. self.top_qscrollarea_layout.addWidget(self.tv, 0, 0, 1, 1)
  44. self.tcur = QtWidgets.QGroupBox(self.top_qscrollarea)
  45. self.tcur.setTitle("电流")
  46. self.tcur_layout = QtWidgets.QHBoxLayout(self.tcur)
  47. self.lb_tcur_value = QtWidgets.QLabel(self.tcur)
  48. self.lb_tcur_value.setText(" ")
  49. self.tcur_layout.addWidget(self.lb_tcur_value)
  50. self.lb_tcur = QtWidgets.QLabel(self.tcur)
  51. self.lb_tcur.setText("A")
  52. self.tcur_layout.addWidget(self.lb_tcur)
  53. self.top_qscrollarea_layout.addWidget(self.tcur, 0, 1, 1, 1)
  54. self.tsoc = QtWidgets.QGroupBox(self.top_qscrollarea)
  55. self.tsoc.setTitle("SOC")
  56. self.soc_layout = QtWidgets.QHBoxLayout(self.tsoc)
  57. self.lb_soc_value = QtWidgets.QLabel(self.tsoc)
  58. self.lb_soc_value.setText(" ")
  59. self.soc_layout.addWidget(self.lb_soc_value)
  60. self.lb_soc = QtWidgets.QLabel(self.tsoc)
  61. self.lb_soc.setText("%")
  62. self.soc_layout.addWidget(self.lb_soc)
  63. self.top_qscrollarea_layout.addWidget(self.tsoc, 0, 2, 1, 1)
  64. self.tsoh = QtWidgets.QGroupBox(self.top_qscrollarea)
  65. self.tsoh.setTitle("SOH")
  66. self.tsoh_layout = QtWidgets.QHBoxLayout(self.tsoh)
  67. self.lb_tsoh_value = QtWidgets.QLabel(self.tsoh)
  68. self.lb_tsoh_value.setText(" ")
  69. self.tsoh_layout.addWidget(self.lb_tsoh_value)
  70. self.lb_tsoh = QtWidgets.QLabel(self.tsoh)
  71. self.lb_tsoh.setText("%")
  72. self.tsoh_layout.addWidget(self.lb_tsoh)
  73. self.top_qscrollarea_layout.addWidget(self.tsoh, 0, 3, 1, 1)
  74. self.tsoe = QtWidgets.QGroupBox(self.top_qscrollarea)
  75. self.tsoe.setTitle("SOE")
  76. self.tsoe_layout = QtWidgets.QHBoxLayout(self.tsoe)
  77. self.lb_tsoe_value = QtWidgets.QLabel(self.tsoe)
  78. self.lb_tsoe_value.setText(" ")
  79. self.tsoe_layout.addWidget(self.lb_tsoe_value)
  80. self.lb_tsoe = QtWidgets.QLabel(self.tsoe)
  81. self.lb_tsoe.setText("%")
  82. self.tsoe_layout.addWidget(self.lb_tsoe)
  83. self.top_qscrollarea_layout.addWidget(self.tsoe, 0, 4, 1, 1)
  84. self.tcellhv = QtWidgets.QGroupBox(self.top_qscrollarea)
  85. self.tcellhv.setTitle("单体最高电压")
  86. self.tcellhv_layout = QtWidgets.QHBoxLayout(self.tcellhv)
  87. self.lb_tcellhv_value = QtWidgets.QLabel(self.tcellhv)
  88. self.lb_tcellhv_value.setText(" ")
  89. self.tcellhv_layout.addWidget(self.lb_tcellhv_value)
  90. self.lb_tcellhv = QtWidgets.QLabel(self.tcellhv)
  91. self.lb_tcellhv.setText("mV")
  92. self.tcellhv_layout.addWidget(self.lb_tcellhv)
  93. self.top_qscrollarea_layout.addWidget(self.tcellhv, 0, 5, 1, 1)
  94. self.tcelllv = QtWidgets.QGroupBox(self.top_qscrollarea)
  95. self.tcelllv.setTitle("单体最低电压")
  96. self.tcelllv_layout = QtWidgets.QHBoxLayout(self.tcelllv)
  97. self.lb_tcelllv_value = QtWidgets.QLabel(self.tcelllv)
  98. self.lb_tcelllv_value.setText(" ")
  99. self.tcelllv_layout.addWidget(self.lb_tcelllv_value)
  100. self.lb_tcelllv = QtWidgets.QLabel(self.tcelllv)
  101. self.lb_tcelllv.setText("mV")
  102. self.tcelllv_layout.addWidget(self.lb_tcelllv)
  103. self.top_qscrollarea_layout.addWidget(self.tcelllv, 0, 6, 1, 1)
  104. self.tcellhv_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  105. self.tcellhv_index.setTitle("最高单体电压编号")
  106. self.tcellhv_index_layout = QtWidgets.QHBoxLayout(self.tcellhv_index)
  107. self.lb_tcellhv_index_value = QtWidgets.QLabel(self.tcellhv_index)
  108. self.lb_tcellhv_index_value.setText(" ")
  109. self.tcellhv_index_layout.addWidget(self.lb_tcellhv_index_value)
  110. self.lb_tcellhv_index = QtWidgets.QLabel(self.tcellhv_index)
  111. self.lb_tcellhv_index.setText("")
  112. self.tcellhv_index_layout.addWidget(self.lb_tcellhv_index)
  113. self.top_qscrollarea_layout.addWidget(self.tcellhv_index, 0, 7, 1, 1)
  114. self.tcellhv_slave_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  115. self.tcellhv_slave_index.setTitle("最高单体电压从控编号")
  116. self.tcellhv_slave_index_layout = QtWidgets.QHBoxLayout(self.tcellhv_slave_index)
  117. self.lb_tcellhv_slave_index_value = QtWidgets.QLabel(self.tcellhv_slave_index)
  118. self.lb_tcellhv_slave_index_value.setText(" ")
  119. self.tcellhv_slave_index_layout.addWidget(self.lb_tcellhv_slave_index_value)
  120. self.lb_tcellhv_slave_index = QtWidgets.QLabel(self.tcellhv_slave_index)
  121. self.lb_tcellhv_slave_index.setText("")
  122. self.tcellhv_slave_index_layout.addWidget(self.lb_tcellhv_slave_index)
  123. self.top_qscrollarea_layout.addWidget(self.tcellhv_slave_index, 0, 8, 1, 1)
  124. self.tcellhv_in_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  125. self.tcellhv_in_index.setTitle("最高单体电压从控内编号")
  126. self.tcellhv_in_index_layout = QtWidgets.QHBoxLayout(self.tcellhv_in_index)
  127. self.lb_tcellhv_in_index_value = QtWidgets.QLabel(self.tcellhv_in_index)
  128. self.lb_tcellhv_in_index_value.setText(" ")
  129. self.tcellhv_in_index_layout.addWidget(self.lb_tcellhv_in_index_value)
  130. self.lb_tcellhv_in_index = QtWidgets.QLabel(self.tcellhv_in_index)
  131. self.lb_tcellhv_in_index.setText("")
  132. self.tcellhv_in_index_layout.addWidget(self.lb_tcellhv_in_index)
  133. self.top_qscrollarea_layout.addWidget(self.tcellhv_in_index, 0, 9, 1, 1)
  134. self.tcelllv_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  135. self.tcelllv_index.setTitle("最低单体电压编号")
  136. self.tcelllv_index_layout = QtWidgets.QHBoxLayout(self.tcelllv_index)
  137. self.lb_tcelllv_index_value = QtWidgets.QLabel(self.tcelllv_index)
  138. self.lb_tcelllv_index_value.setText(" ")
  139. self.tcelllv_index_layout.addWidget(self.lb_tcelllv_index_value)
  140. self.lb_tcelllv_index = QtWidgets.QLabel(self.tcelllv_index)
  141. self.lb_tcelllv_index.setText("")
  142. self.tcelllv_index_layout.addWidget(self.lb_tcelllv_index)
  143. self.top_qscrollarea_layout.addWidget(self.tcelllv_index, 1, 0, 1, 1)
  144. self.tcelllv_slave_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  145. self.tcelllv_slave_index.setTitle("最低单体电压从控编号")
  146. self.tcelllv_slave_index_layout = QtWidgets.QHBoxLayout(self.tcelllv_slave_index)
  147. self.lb_tcelllv_slave_index_value = QtWidgets.QLabel(self.tcelllv_slave_index)
  148. self.lb_tcelllv_slave_index_value.setText(" ")
  149. self.tcelllv_slave_index_layout.addWidget(self.lb_tcelllv_slave_index_value)
  150. self.lb_tcelllv_slave_index = QtWidgets.QLabel(self.tcelllv_slave_index)
  151. self.lb_tcelllv_slave_index.setText("")
  152. self.tcelllv_slave_index_layout.addWidget(self.lb_tcelllv_slave_index)
  153. self.top_qscrollarea_layout.addWidget(self.tcelllv_slave_index, 1, 1, 1, 1)
  154. self.tcelllv_in_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  155. self.tcelllv_in_index.setTitle("最低单体电压从控内编号")
  156. self.tcelllv_in_index_layout = QtWidgets.QHBoxLayout(self.tcelllv_in_index)
  157. self.lb_tcelllv_in_index_value = QtWidgets.QLabel(self.tcelllv_in_index)
  158. self.lb_tcelllv_in_index_value.setText(" ")
  159. self.tcelllv_in_index_layout.addWidget(self.lb_tcelllv_in_index_value)
  160. self.lb_tcelllv_in_index = QtWidgets.QLabel(self.tcelllv_in_index)
  161. self.lb_tcelllv_in_index.setText("")
  162. self.tcelllv_in_index_layout.addWidget(self.lb_tcelllv_in_index)
  163. self.top_qscrollarea_layout.addWidget(self.tcelllv_in_index, 1, 2, 1, 1)
  164. self.avg_vol = QtWidgets.QGroupBox(self.top_qscrollarea)
  165. self.avg_vol.setTitle("平均电压")
  166. self.avg_vol_layout = QtWidgets.QHBoxLayout(self.avg_vol)
  167. self.lb_avg_vol_value = QtWidgets.QLabel(self.avg_vol)
  168. self.lb_avg_vol_value.setText(" ")
  169. self.avg_vol_layout.addWidget(self.lb_avg_vol_value)
  170. self.lb_avg_vol = QtWidgets.QLabel(self.avg_vol)
  171. self.lb_avg_vol.setText("mV")
  172. self.avg_vol_layout.addWidget(self.lb_avg_vol)
  173. self.top_qscrollarea_layout.addWidget(self.avg_vol, 1, 3, 1, 1)
  174. self.diff_vol = QtWidgets.QGroupBox(self.top_qscrollarea)
  175. self.diff_vol.setTitle("单体最大压差")
  176. self.diff_vol_layout = QtWidgets.QHBoxLayout(self.diff_vol)
  177. self.lb_diff_vol_value = QtWidgets.QLabel(self.diff_vol)
  178. self.lb_diff_vol_value.setText(" ")
  179. self.diff_vol_layout.addWidget(self.lb_diff_vol_value)
  180. self.lb_diff_vol = QtWidgets.QLabel(self.diff_vol)
  181. self.lb_diff_vol.setText("mV")
  182. self.diff_vol_layout.addWidget(self.lb_diff_vol)
  183. self.top_qscrollarea_layout.addWidget(self.diff_vol, 1, 4, 1, 1)
  184. self.h_temp = QtWidgets.QGroupBox(self.top_qscrollarea)
  185. self.h_temp.setTitle("最高电池温度")
  186. self.h_temp_layout = QtWidgets.QHBoxLayout(self.h_temp)
  187. self.lb_h_temp_value = QtWidgets.QLabel(self.h_temp)
  188. self.lb_h_temp_value.setText(" ")
  189. self.h_temp_layout.addWidget(self.lb_h_temp_value)
  190. self.lb_h_temp = QtWidgets.QLabel(self.h_temp)
  191. self.lb_h_temp.setText("℃")
  192. self.h_temp_layout.addWidget(self.lb_h_temp)
  193. self.top_qscrollarea_layout.addWidget(self.h_temp, 1, 5, 1, 1)
  194. self.l_temp = QtWidgets.QGroupBox(self.top_qscrollarea)
  195. self.l_temp.setTitle("最低电池温度")
  196. self.l_temp_layout = QtWidgets.QHBoxLayout(self.l_temp)
  197. self.lb_l_temp_value = QtWidgets.QLabel(self.l_temp)
  198. self.lb_l_temp_value.setText(" ")
  199. self.l_temp_layout.addWidget(self.lb_l_temp_value)
  200. self.lb_l_temp = QtWidgets.QLabel(self.l_temp)
  201. self.lb_l_temp.setText("℃")
  202. self.l_temp_layout.addWidget(self.lb_l_temp)
  203. self.top_qscrollarea_layout.addWidget(self.l_temp, 1, 6, 1, 1)
  204. self.h_temp_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  205. self.h_temp_index.setTitle("最高单体温度编号")
  206. self.h_temp_index_layout = QtWidgets.QHBoxLayout(self.h_temp_index)
  207. self.lb_h_temp_index_value = QtWidgets.QLabel(self.h_temp_index)
  208. self.lb_h_temp_index_value.setText(" ")
  209. self.h_temp_index_layout.addWidget(self.lb_h_temp_index_value)
  210. self.lb_h_temp_index = QtWidgets.QLabel(self.h_temp_index)
  211. self.lb_h_temp_index.setText("")
  212. self.h_temp_index_layout.addWidget(self.lb_h_temp_index)
  213. self.top_qscrollarea_layout.addWidget(self.h_temp_index, 1, 7, 1, 1)
  214. self.h_temp_slave_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  215. self.h_temp_slave_index.setTitle("最高单体温度从控编号")
  216. self.h_temp_slave_index_layout = QtWidgets.QHBoxLayout(self.h_temp_slave_index)
  217. self.lb_h_temp_slave_index_value = QtWidgets.QLabel(self.h_temp_slave_index)
  218. self.lb_h_temp_slave_index_value.setText(" ")
  219. self.h_temp_slave_index_layout.addWidget(self.lb_h_temp_slave_index_value)
  220. self.lb_h_temp_slave_index = QtWidgets.QLabel(self.h_temp_slave_index)
  221. self.lb_h_temp_slave_index.setText("")
  222. self.h_temp_slave_index_layout.addWidget(self.lb_h_temp_slave_index)
  223. self.top_qscrollarea_layout.addWidget(self.h_temp_slave_index, 1, 8, 1, 1)
  224. self.h_temp_in_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  225. self.h_temp_in_index.setTitle("最高单体温度从控内编号")
  226. self.h_temp_in_index_layout = QtWidgets.QHBoxLayout(self.h_temp_in_index)
  227. self.lb_h_temp_in_index_value = QtWidgets.QLabel(self.h_temp_in_index)
  228. self.lb_h_temp_in_index_value.setText(" ")
  229. self.h_temp_in_index_layout.addWidget(self.lb_h_temp_in_index_value)
  230. self.lb_h_temp_in_index = QtWidgets.QLabel(self.h_temp_in_index)
  231. self.lb_h_temp_in_index.setText("")
  232. self.h_temp_in_index_layout.addWidget(self.lb_h_temp_in_index)
  233. self.top_qscrollarea_layout.addWidget(self.h_temp_in_index, 1, 9, 1, 1)
  234. self.avg_temp = QtWidgets.QGroupBox(self.top_qscrollarea)
  235. self.avg_temp.setTitle("平均温度")
  236. self.avg_temp_layout = QtWidgets.QHBoxLayout(self.avg_temp)
  237. self.lb_avg_temp_value = QtWidgets.QLabel(self.avg_temp)
  238. self.lb_avg_temp_value.setText(" ")
  239. self.avg_temp_layout.addWidget(self.lb_avg_temp_value)
  240. self.lb_avg_temp = QtWidgets.QLabel("℃")
  241. self.avg_temp_layout.addWidget(self.lb_avg_temp)
  242. self.top_qscrollarea_layout.addWidget(self.avg_temp, 2, 0, 1, 1)
  243. self.diff_temp = QtWidgets.QGroupBox(self.top_qscrollarea)
  244. self.diff_temp.setTitle("单体最大温差")
  245. self.diff_temp_layout = QtWidgets.QHBoxLayout(self.diff_temp)
  246. self.lb_diff_temp_value = QtWidgets.QLabel(self.diff_temp)
  247. self.lb_diff_temp_value.setText(" ")
  248. self.diff_temp_layout.addWidget(self.lb_diff_temp_value)
  249. self.lb_diff_temp = QtWidgets.QLabel(self.diff_temp)
  250. self.lb_diff_temp.setText("℃")
  251. self.diff_temp_layout.addWidget(self.lb_diff_temp)
  252. self.top_qscrollarea_layout.addWidget(self.diff_temp, 2, 1, 1, 1)
  253. self.sys_against = QtWidgets.QGroupBox(self.top_qscrollarea)
  254. self.sys_against.setTitle("系统绝缘阻抗")
  255. self.sys_against_layout = QtWidgets.QHBoxLayout(self.sys_against)
  256. self.lb_sys_against_value = QtWidgets.QLabel(self.sys_against)
  257. self.lb_sys_against_value.setText(" ")
  258. self.sys_against_layout.addWidget(self.lb_sys_against_value)
  259. self.lb_sys_against = QtWidgets.QLabel(self.sys_against)
  260. self.lb_sys_against.setText("kΩ")
  261. self.sys_against_layout.addWidget(self.lb_sys_against)
  262. self.top_qscrollarea_layout.addWidget(self.sys_against, 2, 2, 1, 1)
  263. self.sys_p_against = QtWidgets.QGroupBox(self.top_qscrollarea)
  264. self.sys_p_against.setTitle("系统正极绝缘阻抗")
  265. self.sys_p_against_layout = QtWidgets.QHBoxLayout(self.sys_p_against)
  266. self.lb_sys_p_against_value = QtWidgets.QLabel(self.sys_p_against)
  267. self.lb_sys_p_against_value.setText(" ")
  268. self.sys_p_against_layout.addWidget(self.lb_sys_p_against_value)
  269. self.lb_sys_p_against = QtWidgets.QLabel(self.sys_p_against)
  270. self.lb_sys_p_against.setText("kΩ")
  271. self.sys_p_against_layout.addWidget(self.lb_sys_p_against)
  272. self.top_qscrollarea_layout.addWidget(self.sys_p_against, 2, 3, 1, 1)
  273. self.sys_n_against = QtWidgets.QGroupBox(self.top_qscrollarea)
  274. self.sys_n_against.setTitle("系统负极绝缘阻抗")
  275. self.sys_n_against_layout = QtWidgets.QHBoxLayout(self.sys_n_against)
  276. self.lb_sys_n_against_value = QtWidgets.QLabel(self.sys_n_against)
  277. self.lb_sys_n_against_value.setText(" ")
  278. self.sys_n_against_layout.addWidget(self.lb_sys_n_against_value)
  279. self.lb_sys_n_against = QtWidgets.QLabel(self.sys_n_against)
  280. self.lb_sys_n_against.setText("kΩ")
  281. self.sys_n_against_layout.addWidget(self.lb_sys_n_against)
  282. self.top_qscrollarea_layout.addWidget(self.sys_n_against, 2, 4, 1, 1)
  283. self.nom_cap = QtWidgets.QGroupBox(self.top_qscrollarea)
  284. self.nom_cap.setTitle("标称容量")
  285. self.nom_cap_layout = QtWidgets.QHBoxLayout(self.nom_cap)
  286. self.lb_nom_cap_value = QtWidgets.QLabel(self.nom_cap)
  287. self.lb_nom_cap_value.setText(" ")
  288. self.nom_cap_layout.addWidget(self.lb_nom_cap_value)
  289. self.lb_nom_cap = QtWidgets.QLabel(self.nom_cap)
  290. self.lb_nom_cap.setText("Ah")
  291. self.nom_cap_layout.addWidget(self.lb_nom_cap)
  292. self.top_qscrollarea_layout.addWidget(self.nom_cap, 2, 5, 1, 1)
  293. self.all_cap = QtWidgets.QGroupBox(self.top_qscrollarea)
  294. self.all_cap.setTitle("总容量")
  295. self.all_cap_layout = QtWidgets.QHBoxLayout(self.all_cap)
  296. self.lb_all_cap_value = QtWidgets.QLabel(self.all_cap)
  297. self.lb_all_cap_value.setText(" ")
  298. self.all_cap_layout.addWidget(self.lb_all_cap_value)
  299. self.lb_all_cap = QtWidgets.QLabel(self.all_cap)
  300. self.lb_all_cap.setText("Ah")
  301. self.all_cap_layout.addWidget(self.lb_all_cap)
  302. self.top_qscrollarea_layout.addWidget(self.all_cap, 2, 6, 1, 1)
  303. self.left_cap = QtWidgets.QGroupBox(self.top_qscrollarea)
  304. self.left_cap.setTitle("剩余容量")
  305. self.left_cap_layout = QtWidgets.QHBoxLayout(self.left_cap)
  306. self.lb_left_cap_value = QtWidgets.QLabel(self.left_cap)
  307. self.lb_left_cap_value.setText(" ")
  308. self.left_cap_layout.addWidget(self.lb_left_cap_value)
  309. self.lb_left_cap = QtWidgets.QLabel(self.left_cap)
  310. self.lb_left_cap.setText("Ah")
  311. self.left_cap_layout.addWidget(self.lb_left_cap)
  312. self.top_qscrollarea_layout.addWidget(self.left_cap, 2, 7, 1, 1)
  313. self.chg_kwh = QtWidgets.QGroupBox(self.top_qscrollarea)
  314. self.chg_kwh.setTitle("累计充电能量")
  315. self.chg_kwh_layout = QtWidgets.QHBoxLayout(self.chg_kwh)
  316. self.lb_chg_kwh_value = QtWidgets.QLabel(self.chg_kwh)
  317. self.lb_chg_kwh_value.setText(" ")
  318. self.chg_kwh_layout.addWidget(self.lb_chg_kwh_value)
  319. self.lb_chg_kwh = QtWidgets.QLabel(self.chg_kwh)
  320. self.lb_chg_kwh.setText("kWh")
  321. self.chg_kwh_layout.addWidget(self.lb_chg_kwh)
  322. self.top_qscrollarea_layout.addWidget(self.chg_kwh, 2, 8, 1, 1)
  323. self.dchg_kwh = QtWidgets.QGroupBox(self.top_qscrollarea)
  324. self.dchg_kwh.setTitle("累计放电能量")
  325. self.dchg_kwh_layout = QtWidgets.QHBoxLayout(self.dchg_kwh)
  326. self.lb_dchg_kwh_value = QtWidgets.QLabel(self.dchg_kwh)
  327. self.lb_dchg_kwh_value.setText(" ")
  328. self.dchg_kwh_layout.addWidget(self.lb_dchg_kwh_value)
  329. self.lb_dchg_kwh = QtWidgets.QLabel(self.dchg_kwh)
  330. self.lb_dchg_kwh.setText("kWh")
  331. self.dchg_kwh_layout.addWidget(self.lb_dchg_kwh)
  332. self.top_qscrollarea_layout.addWidget(self.dchg_kwh, 2, 9, 1, 1)
  333. self.chg_kw = QtWidgets.QGroupBox(self.top_qscrollarea)
  334. self.chg_kw.setTitle("当前允许充电功率")
  335. self.chg_kw_layout = QtWidgets.QHBoxLayout(self.chg_kw)
  336. self.lb_chg_kw_value = QtWidgets.QLabel(self.chg_kw)
  337. self.lb_chg_kw_value.setText(" ")
  338. self.chg_kw_layout.addWidget(self.lb_chg_kw_value)
  339. self.lb_chg_kw = QtWidgets.QLabel(self.chg_kw)
  340. self.lb_chg_kw.setText("kW")
  341. self.chg_kw_layout.addWidget(self.lb_chg_kw)
  342. self.top_qscrollarea_layout.addWidget(self.chg_kw, 3, 0, 1, 1)
  343. self.dchg_kw = QtWidgets.QGroupBox(self.top_qscrollarea)
  344. self.dchg_kw.setTitle("当前允许放电功率")
  345. self.dchg_kw_layout = QtWidgets.QHBoxLayout(self.dchg_kw)
  346. self.lb_dchg_kw_value = QtWidgets.QLabel(self.dchg_kw)
  347. self.lb_dchg_kw_value.setText(" ")
  348. self.dchg_kw_layout.addWidget(self.lb_dchg_kw_value)
  349. self.lb_dchg_kw = QtWidgets.QLabel(self.dchg_kw)
  350. self.lb_dchg_kw.setText("kW")
  351. self.dchg_kw_layout.addWidget(self.lb_dchg_kw)
  352. self.top_qscrollarea_layout.addWidget(self.dchg_kw, 3, 1, 1, 1)
  353. self.max_chg_vol = QtWidgets.QGroupBox(self.top_qscrollarea)
  354. self.max_chg_vol.setTitle("当前允许最大充电电压")
  355. self.max_chg_vol_layout = QtWidgets.QHBoxLayout(self.max_chg_vol)
  356. self.lb_max_chg_vol_value = QtWidgets.QLabel(self.max_chg_vol)
  357. self.lb_max_chg_vol_value.setText(" ")
  358. self.max_chg_vol_layout.addWidget(self.lb_max_chg_vol_value)
  359. self.lb_max_chg_vol = QtWidgets.QLabel(self.max_chg_vol)
  360. self.lb_max_chg_vol.setText("V")
  361. self.max_chg_vol_layout.addWidget(self.lb_max_chg_vol)
  362. self.top_qscrollarea_layout.addWidget(self.max_chg_vol, 3, 2, 1, 1)
  363. self.max_chg_cur = QtWidgets.QGroupBox(self.top_qscrollarea)
  364. self.max_chg_cur.setTitle("当前允许最大充电电流")
  365. self.max_chg_cur_layout = QtWidgets.QHBoxLayout(self.max_chg_cur)
  366. self.lb_max_chg_cur_value = QtWidgets.QLabel(self.max_chg_cur)
  367. self.lb_max_chg_cur_value.setText(" ")
  368. self.max_chg_cur_layout.addWidget(self.lb_max_chg_cur_value)
  369. self.lb_max_chg_cur = QtWidgets.QLabel(self.max_chg_cur)
  370. self.lb_max_chg_cur.setText("A")
  371. self.max_chg_cur_layout.addWidget(self.lb_max_chg_cur)
  372. self.top_qscrollarea_layout.addWidget(self.max_chg_cur, 3, 3, 1, 1)
  373. self.max_dchg_cur = QtWidgets.QGroupBox(self.top_qscrollarea)
  374. self.max_dchg_cur.setTitle("当前允许最大放电电流")
  375. self.max_dchg_cur_layout = QtWidgets.QHBoxLayout(self.max_dchg_cur)
  376. self.lb_max_dchg_cur_value = QtWidgets.QLabel(self.max_dchg_cur)
  377. self.lb_max_dchg_cur_value.setText(" ")
  378. self.max_dchg_cur_layout.addWidget(self.lb_max_dchg_cur_value)
  379. self.lb_max_dchg_cur = QtWidgets.QLabel(self.max_dchg_cur)
  380. self.lb_max_dchg_cur.setText("A")
  381. self.max_dchg_cur_layout.addWidget(self.lb_max_dchg_cur)
  382. self.top_qscrollarea_layout.addWidget(self.max_dchg_cur, 3, 4, 1, 1)
  383. self.max_dchg_vol = QtWidgets.QGroupBox(self.top_qscrollarea)
  384. self.max_dchg_vol.setTitle("当前允许放电限制电压")
  385. self.max_dchg_vol_layout = QtWidgets.QHBoxLayout(self.max_dchg_vol)
  386. self.lb_max_dchg_vol_value = QtWidgets.QLabel(self.max_dchg_vol)
  387. self.lb_max_dchg_vol_value.setText(" ")
  388. self.max_dchg_vol_layout.addWidget(self.lb_max_dchg_vol_value)
  389. self.lb_max_dchg_vol = QtWidgets.QLabel(self.max_dchg_vol)
  390. self.lb_max_dchg_vol.setText("V")
  391. self.max_dchg_vol_layout.addWidget(self.lb_max_dchg_vol)
  392. self.sum_vol = QtWidgets.QGroupBox(self.top_qscrollarea)
  393. self.sum_vol.setTitle("单体累加电压和")
  394. self.sum_vol_layout = QtWidgets.QHBoxLayout(self.sum_vol)
  395. self.lb_sum_vol_value = QtWidgets.QLabel(self.sum_vol)
  396. self.lb_sum_vol_value.setText(" ")
  397. self.sum_vol_layout.addWidget(self.lb_sum_vol_value)
  398. self.lb_sum_vol = QtWidgets.QLabel(self.sum_vol)
  399. self.lb_sum_vol.setText("V")
  400. self.sum_vol_layout.addWidget(self.lb_sum_vol)
  401. self.top_qscrollarea_layout.addWidget(self.sum_vol, 3, 5, 1, 1)
  402. self.tv_2 = QtWidgets.QGroupBox(self.top_qscrollarea)
  403. self.tv_2.setTitle("总压2")
  404. self.tv_2_layout = QtWidgets.QHBoxLayout(self.tv_2)
  405. self.lb_tv_2_value = QtWidgets.QLabel(self.tv_2)
  406. self.lb_tv_2_value.setText(" ")
  407. self.tv_2_layout.addWidget(self.lb_tv_2_value)
  408. self.lb_tv_2 = QtWidgets.QLabel(self.tv_2)
  409. self.lb_tv_2.setText("V")
  410. self.tv_2_layout.addWidget(self.lb_tv_2)
  411. self.tv_3 = QtWidgets.QGroupBox(self.top_qscrollarea)
  412. self.tv_3.setTitle("总压3")
  413. self.tv_3_layout = QtWidgets.QHBoxLayout(self.tv_3)
  414. self.lb_tv_3_value = QtWidgets.QLabel(self.tv_3)
  415. self.lb_tv_3_value.setText(" ")
  416. self.tv_3_layout.addWidget(self.lb_tv_3_value)
  417. self.lb_tv_3 = QtWidgets.QLabel(self.tv_3)
  418. self.lb_tv_3.setText("V")
  419. self.tv_3_layout.addWidget(self.lb_tv_3)
  420. self.left_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
  421. self.left_energy.setTitle("系统剩余能量")
  422. self.left_energy_layout = QtWidgets.QHBoxLayout(self.left_energy)
  423. self.lb_left_energy_value = QtWidgets.QLabel(self.left_energy)
  424. self.lb_left_energy_value.setText(" ")
  425. self.left_energy_layout.addWidget(self.lb_left_energy_value)
  426. self.lb_left_energy = QtWidgets.QLabel(self.left_energy)
  427. self.lb_left_energy.setText("kWh")
  428. self.left_energy_layout.addWidget(self.lb_left_energy)
  429. self.top_qscrollarea_layout.addWidget(self.left_energy, 4, 0, 1, 1)
  430. self.nowday_chg_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
  431. self.nowday_chg_energy.setTitle("当天累计充电能量")
  432. self.nowday_chg_energy_layout = QtWidgets.QHBoxLayout(self.nowday_chg_energy)
  433. self.lb_nowday_chg_energy_value = QtWidgets.QLabel(self.nowday_chg_energy)
  434. self.lb_nowday_chg_energy_value.setText(" ")
  435. self.nowday_chg_energy_layout.addWidget(self.lb_nowday_chg_energy_value)
  436. self.lb_nowday_chg_energy = QtWidgets.QLabel(self.nowday_chg_energy)
  437. self.lb_nowday_chg_energy.setText("kWh")
  438. self.nowday_chg_energy_layout.addWidget(self.lb_nowday_chg_energy)
  439. self.top_qscrollarea_layout.addWidget(self.nowday_chg_energy, 4, 1, 1, 1)
  440. self.nowday_dchg_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
  441. self.nowday_dchg_energy.setTitle("当天累计放电能量")
  442. self.nowday_dchg_energy_layout = QtWidgets.QHBoxLayout(self.nowday_dchg_energy)
  443. self.lb_nowday_dchg_energy_value = QtWidgets.QLabel(self.nowday_dchg_energy)
  444. self.lb_nowday_dchg_energy_value.setText(" ")
  445. self.nowday_dchg_energy_layout.addWidget(self.lb_nowday_dchg_energy_value)
  446. self.lb_nowday_dchg_energy = QtWidgets.QLabel(self.nowday_dchg_energy)
  447. self.lb_nowday_dchg_energy.setText("kWh")
  448. self.nowday_dchg_energy_layout.addWidget(self.lb_nowday_dchg_energy)
  449. self.top_qscrollarea_layout.addWidget(self.nowday_dchg_energy, 4, 2, 1, 1)
  450. self.circle_num = QtWidgets.QGroupBox(self.top_qscrollarea)
  451. self.circle_num.setTitle("循环次数")
  452. self.circle_num_layout = QtWidgets.QHBoxLayout(self.circle_num)
  453. self.lb_circle_num_value = QtWidgets.QLabel(self.circle_num)
  454. self.lb_circle_num_value.setText(" ")
  455. self.circle_num_layout.addWidget(self.lb_circle_num_value)
  456. self.lb_circle_num = QtWidgets.QLabel(self.circle_num)
  457. self.lb_circle_num.setText("")
  458. self.circle_num_layout.addWidget(self.lb_circle_num)
  459. self.top_qscrollarea_layout.addWidget(self.circle_num, 4, 3, 1, 1)
  460. self.gdcy_vol = QtWidgets.QGroupBox(self.top_qscrollarea)
  461. self.gdcy_vol.setTitle("供电采样电压")
  462. self.gdcy_vol_layout = QtWidgets.QHBoxLayout(self.gdcy_vol)
  463. self.lb_gdcy_vol_value = QtWidgets.QLabel(self.gdcy_vol)
  464. self.lb_gdcy_vol_value.setText(" ")
  465. self.gdcy_vol_layout.addWidget(self.lb_gdcy_vol_value)
  466. self.lb_gdcy_vol = QtWidgets.QLabel(self.gdcy_vol)
  467. self.lb_gdcy_vol.setText("V")
  468. self.gdcy_vol_layout.addWidget(self.lb_gdcy_vol)
  469. self.top_qscrollarea_layout.addWidget(self.gdcy_vol, 4, 4, 1, 1)
  470. self.jz_temp_high = QtWidgets.QGroupBox(self.top_qscrollarea)
  471. self.jz_temp_high.setTitle("最高极柱温度")
  472. self.jz_temp_high_layout = QtWidgets.QHBoxLayout(self.jz_temp_high)
  473. self.lb_jz_temp_high_value = QtWidgets.QLabel(self.jz_temp_high)
  474. self.lb_jz_temp_high_value.setText(" ")
  475. self.jz_temp_high_layout.addWidget(self.lb_jz_temp_high_value)
  476. self.lb_jz_temp_high = QtWidgets.QLabel(self.jz_temp_high)
  477. self.lb_jz_temp_high.setText("℃")
  478. self.jz_temp_high_layout.addWidget(self.lb_jz_temp_high)
  479. self.jz_temp_high_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  480. self.jz_temp_high_index.setTitle("最高极柱温度编号")
  481. self.jz_temp_high_index_layout = QtWidgets.QHBoxLayout(self.jz_temp_high_index)
  482. self.lb_jz_temp_high_index_value = QtWidgets.QLabel(self.jz_temp_high_index)
  483. self.lb_jz_temp_high_index_value.setText(" ")
  484. self.jz_temp_high_index_layout.addWidget(self.lb_jz_temp_high_index_value)
  485. self.lb_jz_temp_high_index = QtWidgets.QLabel(self.jz_temp_high_index)
  486. self.lb_jz_temp_high_index.setText("")
  487. self.jz_temp_high_index_layout.addWidget(self.lb_jz_temp_high_index)
  488. self.bcu_temp_high = QtWidgets.QGroupBox(self.top_qscrollarea)
  489. self.bcu_temp_high.setTitle("最高极柱温度")
  490. self.bcu_temp_high_layout = QtWidgets.QHBoxLayout(self.bcu_temp_high)
  491. self.lb_bcu_temp_high_value = QtWidgets.QLabel(self.bcu_temp_high)
  492. self.lb_bcu_temp_high_value.setText(" ")
  493. self.bcu_temp_high_layout.addWidget(self.lb_bcu_temp_high_value)
  494. self.lb_bcu_temp_high = QtWidgets.QLabel(self.bcu_temp_high)
  495. self.lb_bcu_temp_high.setText("℃")
  496. self.bcu_temp_high_layout.addWidget(self.lb_bcu_temp_high)
  497. self.bcu_temp_high_index = QtWidgets.QGroupBox(self.top_qscrollarea)
  498. self.bcu_temp_high_index.setTitle("最高极柱温度编号")
  499. self.bcu_temp_high_index_layout = QtWidgets.QHBoxLayout(self.bcu_temp_high_index)
  500. self.lb_bcu_temp_high_index_value = QtWidgets.QLabel(self.bcu_temp_high_index)
  501. self.lb_bcu_temp_high_index_value.setText(" ")
  502. self.bcu_temp_high_index_layout.addWidget(self.lb_bcu_temp_high_index_value)
  503. self.lb_bcu_temp_high_index = QtWidgets.QLabel(self.bcu_temp_high_index)
  504. self.lb_bcu_temp_high_index.setText("")
  505. self.bcu_temp_high_index_layout.addWidget(self.lb_bcu_temp_high_index)
  506. self.mos_temp_1 = QtWidgets.QGroupBox(self.top_qscrollarea)
  507. self.mos_temp_1.setTitle("MOS温度1")
  508. self.mos_temp_1_layout = QtWidgets.QHBoxLayout(self.mos_temp_1)
  509. self.lb_mos_temp_1_value = QtWidgets.QLabel(self.mos_temp_1)
  510. self.lb_mos_temp_1_value.setText(" ")
  511. self.mos_temp_1_layout.addWidget(self.lb_mos_temp_1_value)
  512. self.lb_mos_temp_1 = QtWidgets.QLabel(self.mos_temp_1)
  513. self.lb_mos_temp_1.setText("℃")
  514. self.mos_temp_1_layout.addWidget(self.lb_mos_temp_1)
  515. self.mos_temp_2 = QtWidgets.QGroupBox(self.top_qscrollarea)
  516. self.mos_temp_2.setTitle("MOS温度2")
  517. self.mos_temp_2_layout = QtWidgets.QHBoxLayout(self.mos_temp_2)
  518. self.lb_mos_temp_2_value = QtWidgets.QLabel(self.mos_temp_2)
  519. self.lb_mos_temp_2_value.setText(" ")
  520. self.mos_temp_2_layout.addWidget(self.lb_mos_temp_2_value)
  521. self.lb_mos_temp_2 = QtWidgets.QLabel(self.mos_temp_2)
  522. self.lb_mos_temp_2.setText("℃")
  523. self.mos_temp_2_layout.addWidget(self.lb_mos_temp_2)
  524. self.soc_high = QtWidgets.QGroupBox(self.top_qscrollarea)
  525. self.soc_high.setTitle("最高单体SOC")
  526. self.soc_high_layout = QtWidgets.QHBoxLayout(self.soc_high)
  527. self.lb_soc_high_value = QtWidgets.QLabel(self.soc_high)
  528. self.lb_soc_high_value.setText(" ")
  529. self.soc_high_layout.addWidget(self.lb_soc_high_value)
  530. self.lb_soc_high = QtWidgets.QLabel(self.soc_high)
  531. self.lb_soc_high.setText("")
  532. self.soc_high_layout.addWidget(self.lb_soc_high)
  533. self.soc_low = QtWidgets.QGroupBox(self.top_qscrollarea)
  534. self.soc_low.setTitle("最低单体SOC")
  535. self.soc_low_layout = QtWidgets.QHBoxLayout(self.soc_low)
  536. self.lb_soc_low_value = QtWidgets.QLabel(self.soc_low)
  537. self.lb_soc_low_value.setText(" ")
  538. self.soc_low_layout.addWidget(self.lb_soc_low_value)
  539. self.lb_soc_low = QtWidgets.QLabel(self.soc_low)
  540. self.lb_soc_low.setText("")
  541. self.soc_low_layout.addWidget(self.lb_soc_low)
  542. self.soc_avg = QtWidgets.QGroupBox(self.top_qscrollarea)
  543. self.soc_avg.setTitle("平均单体SOC")
  544. self.soc_avg_layout = QtWidgets.QHBoxLayout(self.soc_avg)
  545. self.lb_soc_avg_value = QtWidgets.QLabel(self.soc_avg)
  546. self.lb_soc_avg_value.setText(" ")
  547. self.soc_avg_layout.addWidget(self.lb_soc_avg_value)
  548. self.lb_soc_avg = QtWidgets.QLabel(self.soc_avg)
  549. self.lb_soc_avg.setText("")
  550. self.soc_avg_layout.addWidget(self.lb_soc_avg)
  551. if SD.CCU_TYPE == 1:
  552. self.top_qscrollarea_layout.addWidget(self.tv_2, 3, 6, 1, 1)
  553. self.top_qscrollarea_layout.addWidget(self.tv_3, 3, 7, 1, 1)
  554. self.top_qscrollarea_layout.addWidget(self.jz_temp_high, 4, 5, 1, 1)
  555. self.top_qscrollarea_layout.addWidget(self.jz_temp_high_index, 4, 6, 1, 1)
  556. self.top_qscrollarea_layout.addWidget(self.bcu_temp_high, 4, 7, 1, 1)
  557. self.top_qscrollarea_layout.addWidget(self.bcu_temp_high_index, 4, 8, 1, 1)
  558. self.top_qscrollarea_layout.addWidget(self.mos_temp_1, 4, 9, 1, 1)
  559. self.top_qscrollarea_layout.addWidget(self.mos_temp_2, 5, 0, 1, 1)
  560. self.top_qscrollarea_layout.addWidget(self.soc_high, 5, 1, 1, 1)
  561. self.top_qscrollarea_layout.addWidget(self.soc_low, 5, 2, 1, 1)
  562. self.top_qscrollarea_layout.addWidget(self.soc_avg, 5, 3, 1, 1)
  563. self.top_qscrollarea_layout.addWidget(self.max_dchg_vol, 5, 4, 1, 1)
  564. self.nom_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
  565. self.nom_energy.setTitle("系统标称能量")
  566. self.nom_energy_layout = QtWidgets.QHBoxLayout(self.nom_energy)
  567. self.lb_nom_energy_value = QtWidgets.QLabel(self.nom_energy)
  568. self.lb_nom_energy_value.setText(" ")
  569. self.nom_energy_layout.addWidget(self.lb_nom_energy_value)
  570. self.lb_nom_energy = QtWidgets.QLabel(self.nom_energy)
  571. self.lb_nom_energy.setText("kWh")
  572. self.nom_energy_layout.addWidget(self.lb_nom_energy)
  573. self.top_qscrollarea_layout.addWidget(self.nom_energy, 3, 8, 1, 1)
  574. self.all_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
  575. self.all_energy.setTitle("系统总能量")
  576. self.all_energy_layout = QtWidgets.QHBoxLayout(self.all_energy)
  577. self.lb_all_energy_value = QtWidgets.QLabel(self.all_energy)
  578. self.lb_all_energy_value.setText(" ")
  579. self.all_energy_layout.addWidget(self.lb_all_energy_value)
  580. self.lb_all_energy = QtWidgets.QLabel(self.all_energy)
  581. self.lb_all_energy.setText("kWh")
  582. self.all_energy_layout.addWidget(self.lb_all_energy)
  583. self.top_qscrollarea_layout.addWidget(self.all_energy, 3, 9, 1, 1)
  584. else:
  585. self.tv_2.setHidden(True)
  586. self.tv_3.setHidden(True)
  587. self.jz_temp_high.setHidden(True)
  588. self.jz_temp_high_index.setHidden(True)
  589. self.bcu_temp_high.setHidden(True)
  590. self.bcu_temp_high_index.setHidden(True)
  591. self.nom_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
  592. self.nom_energy.setTitle("系统标称能量")
  593. self.nom_energy_layout = QtWidgets.QHBoxLayout(self.nom_energy)
  594. self.lb_nom_energy_value = QtWidgets.QLabel(self.nom_energy)
  595. self.lb_nom_energy_value.setText(" ")
  596. self.nom_energy_layout.addWidget(self.lb_nom_energy_value)
  597. self.lb_nom_energy = QtWidgets.QLabel(self.nom_energy)
  598. self.lb_nom_energy.setText("kWh")
  599. self.nom_energy_layout.addWidget(self.lb_nom_energy)
  600. self.top_qscrollarea_layout.addWidget(self.nom_energy, 3, 6, 1, 1)
  601. self.all_energy = QtWidgets.QGroupBox(self.top_qscrollarea)
  602. self.all_energy.setTitle("系统总能量")
  603. self.all_energy_layout = QtWidgets.QHBoxLayout(self.all_energy)
  604. self.lb_all_energy_value = QtWidgets.QLabel(self.all_energy)
  605. self.lb_all_energy_value.setText(" ")
  606. self.all_energy_layout.addWidget(self.lb_all_energy_value)
  607. self.lb_all_energy = QtWidgets.QLabel(self.all_energy)
  608. self.lb_all_energy.setText("kWh")
  609. self.all_energy_layout.addWidget(self.lb_all_energy)
  610. self.top_qscrollarea_layout.addWidget(self.all_energy, 3, 7, 1, 1)
  611. self.top_qscrollarea_layout.addWidget(self.mos_temp_1, 3, 8, 1, 1)
  612. self.top_qscrollarea_layout.addWidget(self.mos_temp_2, 3, 9, 1, 1)
  613. self.top_qscrollarea_layout.addWidget(self.soc_high, 4, 5, 1, 1)
  614. self.top_qscrollarea_layout.addWidget(self.soc_low, 4, 6, 1, 1)
  615. self.top_qscrollarea_layout.addWidget(self.soc_avg, 4, 7, 1, 1)
  616. self.top_qscrollarea_layout.addWidget(self.max_dchg_vol, 4, 8, 1, 1)
  617. self.top_layout.addWidget(self.top_groupbox)
  618. self.verticalLayout.addWidget(self.top_widget)