top_page.py 44 KB

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