protect.py 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. from ui.own.frame_theme import MyFrame
  4. from utils.qt import QtWidgets, QtCore, Qt, QtGui
  5. from utils.globalvar import SD
  6. class Protect(MyFrame):
  7. def setupUi(self, Protect):
  8. self.reg = QtCore.QRegExp('^[\-\+]?\d+(\.\d)?$')
  9. self.validator = QtGui.QRegExpValidator(self)
  10. self.validator.setRegExp(self.reg)
  11. self.protect = MyFrame(Protect)
  12. self.protect_layout = QtWidgets.QHBoxLayout(self.protect)
  13. self.protect_layout.setContentsMargins(5, 5, 5, 5)
  14. self.protect_layout.setSpacing(0)
  15. self.protect_left_groupbox = QtWidgets.QGroupBox(self.protect)
  16. self.protect_left_groupbox.setTitle("保护参数" if SD.SYSTEM_LANGUAGE == 0 else "Protect Param.")
  17. self.protect_left_groupbox_layout = QtWidgets.QVBoxLayout(self.protect_left_groupbox)
  18. self.protect_table = QtWidgets.QTableWidget(self.protect_left_groupbox)
  19. self.protect_table.setColumnCount(11)
  20. self.protect_table.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
  21. # 设置只能选择行
  22. self.protect_table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
  23. self.protect_table.setHorizontalHeaderLabels(["参数名称", "物理值", "单位", "地址", "数据类型", "长度(字节)", "分辨率", "偏移量", "原始值", "最小值", "最大值"])
  24. # self.protect_table.verticalHeader().setVisible(False)
  25. self.protect_table.verticalHeader().setHighlightSections(True)
  26. self.protect_table.verticalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch)
  27. self.protect_table.horizontalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch)
  28. self.protect_table.horizontalHeader().setSectionResizeMode(0, QtWidgets.QHeaderView.ResizeToContents)
  29. self.protect_table.setRowCount(82)
  30. for i in range(82):
  31. item = QtWidgets.QTableWidgetItem("N/A")
  32. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  33. self.protect_table.setItem(i, 1, item)
  34. item = QtWidgets.QTableWidgetItem(str.upper('{:0>4x}'.format(0xA000 + i)))
  35. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  36. self.protect_table.setItem(i, 3, item)
  37. item = QtWidgets.QTableWidgetItem("uint16")
  38. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  39. self.protect_table.setItem(i, 4, item)
  40. item = QtWidgets.QTableWidgetItem("2")
  41. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  42. self.protect_table.setItem(i, 5, item)
  43. # item = QtWidgets.QTableWidgetItem("1")
  44. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  45. # self.protect_table.setItem(i, 6, item)
  46. item = QtWidgets.QTableWidgetItem("0")
  47. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  48. self.protect_table.setItem(i, 7, item)
  49. item = QtWidgets.QTableWidgetItem("")
  50. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  51. self.protect_table.setItem(i, 8, item)
  52. item = QtWidgets.QTableWidgetItem("")
  53. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  54. self.protect_table.setItem(i, 9, item)
  55. item = QtWidgets.QTableWidgetItem("")
  56. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  57. self.protect_table.setItem(i, 10, item)
  58. item = QtWidgets.QTableWidgetItem("单体过压三级告警")
  59. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  60. self.protect_table.setItem(0, 0, item)
  61. item = QtWidgets.QTableWidgetItem("mV")
  62. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  63. self.protect_table.setItem(0, 2, item)
  64. item = QtWidgets.QTableWidgetItem("1")
  65. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  66. self.protect_table.setItem(0, 6, item)
  67. item = QtWidgets.QTableWidgetItem("单体过压二级告警")
  68. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  69. self.protect_table.setItem(1, 0, item)
  70. item = QtWidgets.QTableWidgetItem("mV")
  71. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  72. self.protect_table.setItem(1, 2, item)
  73. item = QtWidgets.QTableWidgetItem("1")
  74. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  75. self.protect_table.setItem(1, 6, item)
  76. item = QtWidgets.QTableWidgetItem("单体过压一级告警")
  77. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  78. self.protect_table.setItem(2, 0, item)
  79. item = QtWidgets.QTableWidgetItem("mV")
  80. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  81. self.protect_table.setItem(2, 2, item)
  82. item = QtWidgets.QTableWidgetItem("1")
  83. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  84. self.protect_table.setItem(2, 6, item)
  85. item = QtWidgets.QTableWidgetItem("单体过压恢复回差阈值")
  86. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  87. self.protect_table.setItem(3, 0, item)
  88. item = QtWidgets.QTableWidgetItem("mV")
  89. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  90. self.protect_table.setItem(3, 2, item)
  91. item = QtWidgets.QTableWidgetItem("1")
  92. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  93. self.protect_table.setItem(3, 6, item)
  94. item = QtWidgets.QTableWidgetItem("单体欠压三级告警")
  95. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  96. self.protect_table.setItem(4, 0, item)
  97. item = QtWidgets.QTableWidgetItem("mV")
  98. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  99. self.protect_table.setItem(4, 2, item)
  100. item = QtWidgets.QTableWidgetItem("1")
  101. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  102. self.protect_table.setItem(4, 6, item)
  103. item = QtWidgets.QTableWidgetItem("单体欠压二级告警")
  104. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  105. self.protect_table.setItem(5, 0, item)
  106. item = QtWidgets.QTableWidgetItem("mV")
  107. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  108. self.protect_table.setItem(5, 2, item)
  109. item = QtWidgets.QTableWidgetItem("1")
  110. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  111. self.protect_table.setItem(5, 6, item)
  112. item = QtWidgets.QTableWidgetItem("单体欠压一级告警")
  113. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  114. self.protect_table.setItem(6, 0, item)
  115. item = QtWidgets.QTableWidgetItem("mV")
  116. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  117. self.protect_table.setItem(6, 2, item)
  118. item = QtWidgets.QTableWidgetItem("1")
  119. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  120. self.protect_table.setItem(6, 6, item)
  121. item = QtWidgets.QTableWidgetItem("单体欠压恢复回差阈值")
  122. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  123. self.protect_table.setItem(7, 0, item)
  124. item = QtWidgets.QTableWidgetItem("mV")
  125. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  126. self.protect_table.setItem(7, 2, item)
  127. item = QtWidgets.QTableWidgetItem("1")
  128. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  129. self.protect_table.setItem(7, 6, item)
  130. item = QtWidgets.QTableWidgetItem("单体压差三级告警")
  131. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  132. self.protect_table.setItem(8, 0, item)
  133. item = QtWidgets.QTableWidgetItem("mV")
  134. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  135. self.protect_table.setItem(8, 2, item)
  136. item = QtWidgets.QTableWidgetItem("1")
  137. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  138. self.protect_table.setItem(8, 6, item)
  139. item = QtWidgets.QTableWidgetItem("单体压差二级告警")
  140. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  141. self.protect_table.setItem(9, 0, item)
  142. item = QtWidgets.QTableWidgetItem("mV")
  143. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  144. self.protect_table.setItem(9, 2, item)
  145. item = QtWidgets.QTableWidgetItem("1")
  146. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  147. self.protect_table.setItem(9, 6, item)
  148. item = QtWidgets.QTableWidgetItem("单体压差一级告警")
  149. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  150. self.protect_table.setItem(10, 0, item)
  151. item = QtWidgets.QTableWidgetItem("mV")
  152. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  153. self.protect_table.setItem(10, 2, item)
  154. item = QtWidgets.QTableWidgetItem("1")
  155. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  156. self.protect_table.setItem(10, 6, item)
  157. item = QtWidgets.QTableWidgetItem("单体压差恢复回差阈值")
  158. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  159. self.protect_table.setItem(11, 0, item)
  160. item = QtWidgets.QTableWidgetItem("mV")
  161. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  162. self.protect_table.setItem(11, 2, item)
  163. item = QtWidgets.QTableWidgetItem("1")
  164. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  165. self.protect_table.setItem(11, 6, item)
  166. item = QtWidgets.QTableWidgetItem("总压过压三级告警")
  167. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  168. self.protect_table.setItem(12, 0, item)
  169. item = QtWidgets.QTableWidgetItem("V")
  170. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  171. self.protect_table.setItem(12, 2, item)
  172. item = QtWidgets.QTableWidgetItem("0.1")
  173. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  174. self.protect_table.setItem(12, 6, item)
  175. item = QtWidgets.QTableWidgetItem("总压过压二级告警")
  176. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  177. self.protect_table.setItem(13, 0, item)
  178. item = QtWidgets.QTableWidgetItem("V")
  179. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  180. self.protect_table.setItem(13, 2, item)
  181. item = QtWidgets.QTableWidgetItem("0.1")
  182. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  183. self.protect_table.setItem(13, 6, item)
  184. item = QtWidgets.QTableWidgetItem("总压过压一级告警")
  185. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  186. self.protect_table.setItem(14, 0, item)
  187. item = QtWidgets.QTableWidgetItem("V")
  188. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  189. self.protect_table.setItem(14, 2, item)
  190. item = QtWidgets.QTableWidgetItem("0.1")
  191. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  192. self.protect_table.setItem(14, 6, item)
  193. item = QtWidgets.QTableWidgetItem("总压过压恢复回差阈值")
  194. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  195. self.protect_table.setItem(15, 0, item)
  196. item = QtWidgets.QTableWidgetItem("V")
  197. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  198. self.protect_table.setItem(15, 2, item)
  199. item = QtWidgets.QTableWidgetItem("0.1")
  200. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  201. self.protect_table.setItem(15, 6, item)
  202. item = QtWidgets.QTableWidgetItem("总压欠压三级告警")
  203. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  204. self.protect_table.setItem(16, 0, item)
  205. item = QtWidgets.QTableWidgetItem("V")
  206. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  207. self.protect_table.setItem(16, 2, item)
  208. item = QtWidgets.QTableWidgetItem("0.1")
  209. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  210. self.protect_table.setItem(16, 6, item)
  211. item = QtWidgets.QTableWidgetItem("总压欠压二级告警")
  212. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  213. self.protect_table.setItem(17, 0, item)
  214. item = QtWidgets.QTableWidgetItem("V")
  215. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  216. self.protect_table.setItem(17, 2, item)
  217. item = QtWidgets.QTableWidgetItem("0.1")
  218. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  219. self.protect_table.setItem(17, 6, item)
  220. item = QtWidgets.QTableWidgetItem("总压欠压一级告警")
  221. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  222. self.protect_table.setItem(18, 0, item)
  223. item = QtWidgets.QTableWidgetItem("V")
  224. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  225. self.protect_table.setItem(18, 2, item)
  226. item = QtWidgets.QTableWidgetItem("0.1")
  227. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  228. self.protect_table.setItem(18, 6, item)
  229. item = QtWidgets.QTableWidgetItem("总压欠压恢复回差阈值")
  230. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  231. self.protect_table.setItem(19, 0, item)
  232. item = QtWidgets.QTableWidgetItem("V")
  233. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  234. self.protect_table.setItem(19, 2, item)
  235. item = QtWidgets.QTableWidgetItem("0.1")
  236. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  237. self.protect_table.setItem(19, 6, item)
  238. item = QtWidgets.QTableWidgetItem("充电高温三级告警")
  239. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  240. self.protect_table.setItem(20, 0, item)
  241. item = QtWidgets.QTableWidgetItem("℃")
  242. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  243. self.protect_table.setItem(20, 2, item)
  244. item = QtWidgets.QTableWidgetItem("0.1")
  245. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  246. self.protect_table.setItem(20, 6, item)
  247. item = QtWidgets.QTableWidgetItem("-40")
  248. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  249. self.protect_table.setItem(20, 7, item)
  250. item = QtWidgets.QTableWidgetItem("充电高温二级告警")
  251. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  252. self.protect_table.setItem(21, 0, item)
  253. item = QtWidgets.QTableWidgetItem("℃")
  254. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  255. self.protect_table.setItem(21, 2, item)
  256. item = QtWidgets.QTableWidgetItem("0.1")
  257. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  258. self.protect_table.setItem(21, 6, item)
  259. item = QtWidgets.QTableWidgetItem("-40")
  260. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  261. self.protect_table.setItem(21, 7, item)
  262. item = QtWidgets.QTableWidgetItem("充电高温一级告警")
  263. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  264. self.protect_table.setItem(22, 0, item)
  265. item = QtWidgets.QTableWidgetItem("℃")
  266. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  267. self.protect_table.setItem(22, 2, item)
  268. item = QtWidgets.QTableWidgetItem("0.1")
  269. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  270. self.protect_table.setItem(22, 6, item)
  271. item = QtWidgets.QTableWidgetItem("-40")
  272. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  273. self.protect_table.setItem(22, 7, item)
  274. item = QtWidgets.QTableWidgetItem("充电高温恢复回差阈值")
  275. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  276. self.protect_table.setItem(23, 0, item)
  277. item = QtWidgets.QTableWidgetItem("℃")
  278. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  279. self.protect_table.setItem(23, 2, item)
  280. item = QtWidgets.QTableWidgetItem("0.1")
  281. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  282. self.protect_table.setItem(23, 6, item)
  283. item = QtWidgets.QTableWidgetItem("-40")
  284. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  285. self.protect_table.setItem(23, 7, item)
  286. item = QtWidgets.QTableWidgetItem("充电低温三级告警")
  287. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  288. self.protect_table.setItem(24, 0, item)
  289. item = QtWidgets.QTableWidgetItem("℃")
  290. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  291. self.protect_table.setItem(24, 2, item)
  292. item = QtWidgets.QTableWidgetItem("0.1")
  293. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  294. self.protect_table.setItem(24, 6, item)
  295. item = QtWidgets.QTableWidgetItem("-40")
  296. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  297. self.protect_table.setItem(24, 7, item)
  298. item = QtWidgets.QTableWidgetItem("充电低温二级告警")
  299. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  300. self.protect_table.setItem(25, 0, item)
  301. item = QtWidgets.QTableWidgetItem("℃")
  302. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  303. self.protect_table.setItem(25, 2, item)
  304. item = QtWidgets.QTableWidgetItem("0.1")
  305. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  306. self.protect_table.setItem(25, 6, item)
  307. item = QtWidgets.QTableWidgetItem("-40")
  308. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  309. self.protect_table.setItem(25, 7, item)
  310. item = QtWidgets.QTableWidgetItem("充电低温一级告警")
  311. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  312. self.protect_table.setItem(26, 0, item)
  313. item = QtWidgets.QTableWidgetItem("℃")
  314. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  315. self.protect_table.setItem(26, 2, item)
  316. item = QtWidgets.QTableWidgetItem("0.1")
  317. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  318. self.protect_table.setItem(26, 6, item)
  319. item = QtWidgets.QTableWidgetItem("-40")
  320. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  321. self.protect_table.setItem(26, 7, item)
  322. item = QtWidgets.QTableWidgetItem("充电低温恢复回差阈值")
  323. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  324. self.protect_table.setItem(27, 0, item)
  325. item = QtWidgets.QTableWidgetItem("℃")
  326. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  327. self.protect_table.setItem(27, 2, item)
  328. item = QtWidgets.QTableWidgetItem("0.1")
  329. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  330. self.protect_table.setItem(27, 6, item)
  331. item = QtWidgets.QTableWidgetItem("-40")
  332. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  333. self.protect_table.setItem(27, 7, item)
  334. item = QtWidgets.QTableWidgetItem("放电高温三级告警")
  335. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  336. self.protect_table.setItem(28, 0, item)
  337. item = QtWidgets.QTableWidgetItem("℃")
  338. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  339. self.protect_table.setItem(28, 2, item)
  340. item = QtWidgets.QTableWidgetItem("0.1")
  341. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  342. self.protect_table.setItem(28, 6, item)
  343. item = QtWidgets.QTableWidgetItem("-40")
  344. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  345. self.protect_table.setItem(28, 7, item)
  346. item = QtWidgets.QTableWidgetItem("放电高温二级告警")
  347. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  348. self.protect_table.setItem(29, 0, item)
  349. item = QtWidgets.QTableWidgetItem("℃")
  350. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  351. self.protect_table.setItem(29, 2, item)
  352. item = QtWidgets.QTableWidgetItem("0.1")
  353. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  354. self.protect_table.setItem(29, 6, item)
  355. item = QtWidgets.QTableWidgetItem("-40")
  356. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  357. self.protect_table.setItem(29, 7, item)
  358. item = QtWidgets.QTableWidgetItem("放电高温一级告警")
  359. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  360. self.protect_table.setItem(30, 0, item)
  361. item = QtWidgets.QTableWidgetItem("℃")
  362. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  363. self.protect_table.setItem(30, 2, item)
  364. item = QtWidgets.QTableWidgetItem("0.1")
  365. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  366. self.protect_table.setItem(30, 6, item)
  367. item = QtWidgets.QTableWidgetItem("-40")
  368. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  369. self.protect_table.setItem(30, 7, item)
  370. item = QtWidgets.QTableWidgetItem("放电高温恢复回差阈值")
  371. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  372. self.protect_table.setItem(31, 0, item)
  373. item = QtWidgets.QTableWidgetItem("℃")
  374. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  375. self.protect_table.setItem(31, 2, item)
  376. item = QtWidgets.QTableWidgetItem("0.1")
  377. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  378. self.protect_table.setItem(31, 6, item)
  379. item = QtWidgets.QTableWidgetItem("-40")
  380. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  381. self.protect_table.setItem(31, 7, item)
  382. item = QtWidgets.QTableWidgetItem("放电低温三级告警")
  383. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  384. self.protect_table.setItem(32, 0, item)
  385. item = QtWidgets.QTableWidgetItem("℃")
  386. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  387. self.protect_table.setItem(32, 2, item)
  388. item = QtWidgets.QTableWidgetItem("0.1")
  389. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  390. self.protect_table.setItem(32, 6, item)
  391. item = QtWidgets.QTableWidgetItem("-40")
  392. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  393. self.protect_table.setItem(32, 7, item)
  394. item = QtWidgets.QTableWidgetItem("放电低温二级告警")
  395. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  396. self.protect_table.setItem(33, 0, item)
  397. item = QtWidgets.QTableWidgetItem("℃")
  398. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  399. self.protect_table.setItem(33, 2, item)
  400. item = QtWidgets.QTableWidgetItem("0.1")
  401. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  402. self.protect_table.setItem(33, 6, item)
  403. item = QtWidgets.QTableWidgetItem("-40")
  404. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  405. self.protect_table.setItem(33, 7, item)
  406. item = QtWidgets.QTableWidgetItem("放电低温一级告警")
  407. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  408. self.protect_table.setItem(34, 0, item)
  409. item = QtWidgets.QTableWidgetItem("℃")
  410. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  411. self.protect_table.setItem(34, 2, item)
  412. item = QtWidgets.QTableWidgetItem("0.1")
  413. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  414. self.protect_table.setItem(34, 6, item)
  415. item = QtWidgets.QTableWidgetItem("-40")
  416. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  417. self.protect_table.setItem(34, 7, item)
  418. item = QtWidgets.QTableWidgetItem("放电低温恢复回差阈值")
  419. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  420. self.protect_table.setItem(35, 0, item)
  421. item = QtWidgets.QTableWidgetItem("℃")
  422. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  423. self.protect_table.setItem(35, 2, item)
  424. item = QtWidgets.QTableWidgetItem("0.1")
  425. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  426. self.protect_table.setItem(35, 6, item)
  427. item = QtWidgets.QTableWidgetItem("-40")
  428. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  429. self.protect_table.setItem(35, 7, item)
  430. item = QtWidgets.QTableWidgetItem("充电过流三级告警")
  431. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  432. self.protect_table.setItem(36, 0, item)
  433. item = QtWidgets.QTableWidgetItem("A")
  434. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  435. self.protect_table.setItem(36, 2, item)
  436. item = QtWidgets.QTableWidgetItem("0.1")
  437. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  438. self.protect_table.setItem(36, 6, item)
  439. item = QtWidgets.QTableWidgetItem("充电过流二级告警")
  440. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  441. self.protect_table.setItem(37, 0, item)
  442. item = QtWidgets.QTableWidgetItem("A")
  443. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  444. self.protect_table.setItem(37, 2, item)
  445. item = QtWidgets.QTableWidgetItem("0.1")
  446. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  447. self.protect_table.setItem(37, 6, item)
  448. item = QtWidgets.QTableWidgetItem("充电过流一级告警")
  449. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  450. self.protect_table.setItem(38, 0, item)
  451. item = QtWidgets.QTableWidgetItem("A")
  452. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  453. self.protect_table.setItem(38, 2, item)
  454. item = QtWidgets.QTableWidgetItem("0.1")
  455. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  456. self.protect_table.setItem(38, 6, item)
  457. item = QtWidgets.QTableWidgetItem("充电过流恢复回差阈值")
  458. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  459. self.protect_table.setItem(39, 0, item)
  460. item = QtWidgets.QTableWidgetItem("A")
  461. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  462. self.protect_table.setItem(39, 2, item)
  463. item = QtWidgets.QTableWidgetItem("0.1")
  464. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  465. self.protect_table.setItem(39, 6, item)
  466. item = QtWidgets.QTableWidgetItem("放电过流三级告警")
  467. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  468. self.protect_table.setItem(40, 0, item)
  469. item = QtWidgets.QTableWidgetItem("A")
  470. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  471. self.protect_table.setItem(40, 2, item)
  472. item = QtWidgets.QTableWidgetItem("0.1")
  473. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  474. self.protect_table.setItem(40, 6, item)
  475. item = QtWidgets.QTableWidgetItem("放电过流二级告警")
  476. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  477. self.protect_table.setItem(41, 0, item)
  478. item = QtWidgets.QTableWidgetItem("A")
  479. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  480. self.protect_table.setItem(41, 2, item)
  481. item = QtWidgets.QTableWidgetItem("0.1")
  482. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  483. self.protect_table.setItem(41, 6, item)
  484. item = QtWidgets.QTableWidgetItem("放电过流一级告警")
  485. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  486. self.protect_table.setItem(42, 0, item)
  487. item = QtWidgets.QTableWidgetItem("A")
  488. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  489. self.protect_table.setItem(42, 2, item)
  490. item = QtWidgets.QTableWidgetItem("0.1")
  491. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  492. self.protect_table.setItem(42, 6, item)
  493. item = QtWidgets.QTableWidgetItem("放电过流恢复回差阈值")
  494. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  495. self.protect_table.setItem(43, 0, item)
  496. item = QtWidgets.QTableWidgetItem("A")
  497. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  498. self.protect_table.setItem(43, 2, item)
  499. item = QtWidgets.QTableWidgetItem("0.1")
  500. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  501. self.protect_table.setItem(43, 6, item)
  502. item = QtWidgets.QTableWidgetItem("电芯温差三级告警")
  503. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  504. self.protect_table.setItem(44, 0, item)
  505. item = QtWidgets.QTableWidgetItem("℃")
  506. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  507. self.protect_table.setItem(44, 2, item)
  508. item = QtWidgets.QTableWidgetItem("0.1")
  509. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  510. self.protect_table.setItem(44, 6, item)
  511. item = QtWidgets.QTableWidgetItem("-40")
  512. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  513. self.protect_table.setItem(44, 7, item)
  514. item = QtWidgets.QTableWidgetItem("电芯温差二级告警")
  515. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  516. self.protect_table.setItem(45, 0, item)
  517. item = QtWidgets.QTableWidgetItem("℃")
  518. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  519. self.protect_table.setItem(45, 2, item)
  520. item = QtWidgets.QTableWidgetItem("0.1")
  521. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  522. self.protect_table.setItem(45, 6, item)
  523. item = QtWidgets.QTableWidgetItem("-40")
  524. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  525. self.protect_table.setItem(45, 7, item)
  526. item = QtWidgets.QTableWidgetItem("电芯温差一级告警")
  527. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  528. self.protect_table.setItem(46, 0, item)
  529. item = QtWidgets.QTableWidgetItem("℃")
  530. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  531. self.protect_table.setItem(46, 2, item)
  532. item = QtWidgets.QTableWidgetItem("0.1")
  533. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  534. self.protect_table.setItem(46, 6, item)
  535. item = QtWidgets.QTableWidgetItem("-40")
  536. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  537. self.protect_table.setItem(46, 7, item)
  538. item = QtWidgets.QTableWidgetItem("电芯温差恢复回差阈值")
  539. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  540. self.protect_table.setItem(47, 0, item)
  541. item = QtWidgets.QTableWidgetItem("℃")
  542. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  543. self.protect_table.setItem(47, 2, item)
  544. item = QtWidgets.QTableWidgetItem("0.1")
  545. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  546. self.protect_table.setItem(47, 6, item)
  547. item = QtWidgets.QTableWidgetItem("-40")
  548. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  549. self.protect_table.setItem(47, 7, item)
  550. item = QtWidgets.QTableWidgetItem("MOS高温三级告警")
  551. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  552. self.protect_table.setItem(48, 0, item)
  553. item = QtWidgets.QTableWidgetItem("℃")
  554. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  555. self.protect_table.setItem(48, 2, item)
  556. item = QtWidgets.QTableWidgetItem("0.1")
  557. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  558. self.protect_table.setItem(48, 6, item)
  559. item = QtWidgets.QTableWidgetItem("-40")
  560. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  561. self.protect_table.setItem(48, 7, item)
  562. item = QtWidgets.QTableWidgetItem("MOS高温二级告警")
  563. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  564. self.protect_table.setItem(49, 0, item)
  565. item = QtWidgets.QTableWidgetItem("℃")
  566. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  567. self.protect_table.setItem(49, 2, item)
  568. item = QtWidgets.QTableWidgetItem("0.1")
  569. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  570. self.protect_table.setItem(49, 6, item)
  571. item = QtWidgets.QTableWidgetItem("-40")
  572. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  573. self.protect_table.setItem(49, 7, item)
  574. item = QtWidgets.QTableWidgetItem("MOS高温一级告警")
  575. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  576. self.protect_table.setItem(50, 0, item)
  577. item = QtWidgets.QTableWidgetItem("℃")
  578. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  579. self.protect_table.setItem(50, 2, item)
  580. item = QtWidgets.QTableWidgetItem("0.1")
  581. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  582. self.protect_table.setItem(50, 6, item)
  583. item = QtWidgets.QTableWidgetItem("-40")
  584. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  585. self.protect_table.setItem(50, 7, item)
  586. item = QtWidgets.QTableWidgetItem("MOS高温恢复回差阈值")
  587. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  588. self.protect_table.setItem(51, 0, item)
  589. item = QtWidgets.QTableWidgetItem("℃")
  590. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  591. self.protect_table.setItem(51, 2, item)
  592. item = QtWidgets.QTableWidgetItem("0.1")
  593. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  594. self.protect_table.setItem(51, 6, item)
  595. item = QtWidgets.QTableWidgetItem("-40")
  596. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  597. self.protect_table.setItem(51, 7, item)
  598. item = QtWidgets.QTableWidgetItem("MOS高温三级告警")
  599. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  600. self.protect_table.setItem(52, 0, item)
  601. item = QtWidgets.QTableWidgetItem("℃")
  602. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  603. self.protect_table.setItem(52, 2, item)
  604. item = QtWidgets.QTableWidgetItem("0.1")
  605. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  606. self.protect_table.setItem(52, 6, item)
  607. item = QtWidgets.QTableWidgetItem("-40")
  608. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  609. self.protect_table.setItem(52, 7, item)
  610. item = QtWidgets.QTableWidgetItem("MOS高温二级告警")
  611. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  612. self.protect_table.setItem(53, 0, item)
  613. item = QtWidgets.QTableWidgetItem("℃")
  614. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  615. self.protect_table.setItem(53, 2, item)
  616. item = QtWidgets.QTableWidgetItem("0.1")
  617. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  618. self.protect_table.setItem(53, 6, item)
  619. item = QtWidgets.QTableWidgetItem("-40")
  620. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  621. self.protect_table.setItem(53, 7, item)
  622. item = QtWidgets.QTableWidgetItem("MOS高温一级告警")
  623. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  624. self.protect_table.setItem(54, 0, item)
  625. item = QtWidgets.QTableWidgetItem("℃")
  626. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  627. self.protect_table.setItem(54, 2, item)
  628. item = QtWidgets.QTableWidgetItem("0.1")
  629. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  630. self.protect_table.setItem(54, 6, item)
  631. item = QtWidgets.QTableWidgetItem("-40")
  632. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  633. self.protect_table.setItem(54, 7, item)
  634. item = QtWidgets.QTableWidgetItem("MOS高温恢复回差阈值")
  635. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  636. self.protect_table.setItem(55, 0, item)
  637. item = QtWidgets.QTableWidgetItem("℃")
  638. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  639. self.protect_table.setItem(55, 2, item)
  640. item = QtWidgets.QTableWidgetItem("0.1")
  641. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  642. self.protect_table.setItem(55, 6, item)
  643. item = QtWidgets.QTableWidgetItem("-40")
  644. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  645. self.protect_table.setItem(55, 7, item)
  646. item = QtWidgets.QTableWidgetItem("绝缘过低三级告警")
  647. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  648. self.protect_table.setItem(56, 0, item)
  649. item = QtWidgets.QTableWidgetItem("KΩ")
  650. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  651. self.protect_table.setItem(56, 2, item)
  652. item = QtWidgets.QTableWidgetItem("1")
  653. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  654. self.protect_table.setItem(56, 6, item)
  655. item = QtWidgets.QTableWidgetItem("绝缘过低二级告警")
  656. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  657. self.protect_table.setItem(57, 0, item)
  658. item = QtWidgets.QTableWidgetItem("KΩ")
  659. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  660. self.protect_table.setItem(57, 2, item)
  661. item = QtWidgets.QTableWidgetItem("1")
  662. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  663. self.protect_table.setItem(57, 6, item)
  664. item = QtWidgets.QTableWidgetItem("绝缘过低一级告警")
  665. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  666. self.protect_table.setItem(58, 0, item)
  667. item = QtWidgets.QTableWidgetItem("KΩ")
  668. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  669. self.protect_table.setItem(58, 2, item)
  670. item = QtWidgets.QTableWidgetItem("1")
  671. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  672. self.protect_table.setItem(58, 6, item)
  673. item = QtWidgets.QTableWidgetItem("绝缘过低回差阈值")
  674. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  675. self.protect_table.setItem(59, 0, item)
  676. item = QtWidgets.QTableWidgetItem("KΩ")
  677. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  678. self.protect_table.setItem(59, 2, item)
  679. item = QtWidgets.QTableWidgetItem("1")
  680. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  681. self.protect_table.setItem(59, 6, item)
  682. item = QtWidgets.QTableWidgetItem("均衡开启电压")
  683. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  684. self.protect_table.setItem(60, 0, item)
  685. item = QtWidgets.QTableWidgetItem("mV")
  686. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  687. self.protect_table.setItem(60, 2, item)
  688. item = QtWidgets.QTableWidgetItem("1")
  689. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  690. self.protect_table.setItem(60, 6, item)
  691. item = QtWidgets.QTableWidgetItem("均衡关闭电压")
  692. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  693. self.protect_table.setItem(61, 0, item)
  694. item = QtWidgets.QTableWidgetItem("mV")
  695. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  696. self.protect_table.setItem(61, 2, item)
  697. item = QtWidgets.QTableWidgetItem("1")
  698. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  699. self.protect_table.setItem(61, 6, item)
  700. item = QtWidgets.QTableWidgetItem("均衡开启压差")
  701. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  702. self.protect_table.setItem(62, 0, item)
  703. item = QtWidgets.QTableWidgetItem("mV")
  704. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  705. self.protect_table.setItem(62, 2, item)
  706. item = QtWidgets.QTableWidgetItem("1")
  707. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  708. self.protect_table.setItem(62, 6, item)
  709. item = QtWidgets.QTableWidgetItem("均衡关闭压差")
  710. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  711. self.protect_table.setItem(63, 0, item)
  712. item = QtWidgets.QTableWidgetItem("mV")
  713. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  714. self.protect_table.setItem(63, 2, item)
  715. item = QtWidgets.QTableWidgetItem("1")
  716. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  717. self.protect_table.setItem(63, 6, item)
  718. item = QtWidgets.QTableWidgetItem("单次均衡开启时长")
  719. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  720. self.protect_table.setItem(64, 0, item)
  721. item = QtWidgets.QTableWidgetItem("s")
  722. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  723. self.protect_table.setItem(64, 2, item)
  724. item = QtWidgets.QTableWidgetItem("0.1")
  725. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  726. self.protect_table.setItem(64, 6, item)
  727. item = QtWidgets.QTableWidgetItem("告警判定延时")
  728. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  729. self.protect_table.setItem(65, 0, item)
  730. item = QtWidgets.QTableWidgetItem("s")
  731. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  732. self.protect_table.setItem(65, 2, item)
  733. item = QtWidgets.QTableWidgetItem("0.1")
  734. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  735. self.protect_table.setItem(65, 6, item)
  736. item = QtWidgets.QTableWidgetItem("告警恢复延时")
  737. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  738. self.protect_table.setItem(66, 0, item)
  739. item = QtWidgets.QTableWidgetItem("s")
  740. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  741. self.protect_table.setItem(66, 2, item)
  742. item = QtWidgets.QTableWidgetItem("0.1")
  743. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  744. self.protect_table.setItem(66, 6, item)
  745. item = QtWidgets.QTableWidgetItem("当前允许最大充电功率")
  746. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  747. self.protect_table.setItem(67, 0, item)
  748. item = QtWidgets.QTableWidgetItem("kW")
  749. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  750. self.protect_table.setItem(67, 2, item)
  751. item = QtWidgets.QTableWidgetItem("0.1")
  752. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  753. self.protect_table.setItem(67, 6, item)
  754. item = QtWidgets.QTableWidgetItem("当前允许最大放电功率")
  755. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  756. self.protect_table.setItem(68, 0, item)
  757. item = QtWidgets.QTableWidgetItem("kW")
  758. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  759. self.protect_table.setItem(68, 2, item)
  760. item = QtWidgets.QTableWidgetItem("0.1")
  761. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  762. self.protect_table.setItem(68, 6, item)
  763. item = QtWidgets.QTableWidgetItem("当前允许最大充电电压")
  764. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  765. self.protect_table.setItem(69, 0, item)
  766. item = QtWidgets.QTableWidgetItem("V")
  767. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  768. self.protect_table.setItem(69, 2, item)
  769. item = QtWidgets.QTableWidgetItem("0.1")
  770. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  771. self.protect_table.setItem(69, 6, item)
  772. item = QtWidgets.QTableWidgetItem("当前允许最大充电电流")
  773. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  774. self.protect_table.setItem(70, 0, item)
  775. item = QtWidgets.QTableWidgetItem("A")
  776. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  777. self.protect_table.setItem(70, 2, item)
  778. item = QtWidgets.QTableWidgetItem("0.1")
  779. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  780. self.protect_table.setItem(70, 6, item)
  781. item = QtWidgets.QTableWidgetItem("当前允许最大放电电流")
  782. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  783. self.protect_table.setItem(71, 0, item)
  784. item = QtWidgets.QTableWidgetItem("A")
  785. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  786. self.protect_table.setItem(71, 2, item)
  787. item = QtWidgets.QTableWidgetItem("0.1")
  788. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  789. self.protect_table.setItem(71, 6, item)
  790. item = QtWidgets.QTableWidgetItem("标称容量配置")
  791. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  792. self.protect_table.setItem(72, 0, item)
  793. item = QtWidgets.QTableWidgetItem("Ah")
  794. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  795. self.protect_table.setItem(72, 2, item)
  796. item = QtWidgets.QTableWidgetItem("0.1")
  797. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  798. self.protect_table.setItem(72, 6, item)
  799. item = QtWidgets.QTableWidgetItem("SOH配置")
  800. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  801. self.protect_table.setItem(73, 0, item)
  802. item = QtWidgets.QTableWidgetItem("")
  803. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  804. self.protect_table.setItem(73, 2, item)
  805. item = QtWidgets.QTableWidgetItem("0.01")
  806. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  807. self.protect_table.setItem(73, 6, item)
  808. item = QtWidgets.QTableWidgetItem("SOC配置")
  809. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  810. self.protect_table.setItem(74, 0, item)
  811. item = QtWidgets.QTableWidgetItem("")
  812. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  813. self.protect_table.setItem(74, 2, item)
  814. item = QtWidgets.QTableWidgetItem("0.01")
  815. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  816. self.protect_table.setItem(74, 6, item)
  817. item = QtWidgets.QTableWidgetItem("累计充电电量")
  818. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  819. self.protect_table.setItem(75, 0, item)
  820. item = QtWidgets.QTableWidgetItem("kWh")
  821. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  822. self.protect_table.setItem(75, 2, item)
  823. item = QtWidgets.QTableWidgetItem("0.1")
  824. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  825. self.protect_table.setItem(75, 6, item)
  826. item = QtWidgets.QTableWidgetItem("累计放电电量")
  827. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  828. self.protect_table.setItem(76, 0, item)
  829. item = QtWidgets.QTableWidgetItem("kWh")
  830. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  831. self.protect_table.setItem(76, 2, item)
  832. item = QtWidgets.QTableWidgetItem("0.1")
  833. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  834. self.protect_table.setItem(76, 6, item)
  835. item = QtWidgets.QTableWidgetItem("当前允许放电限制电压")
  836. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  837. self.protect_table.setItem(77, 0, item)
  838. item = QtWidgets.QTableWidgetItem("V")
  839. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  840. self.protect_table.setItem(77, 2, item)
  841. item = QtWidgets.QTableWidgetItem("0.1")
  842. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  843. self.protect_table.setItem(77, 6, item)
  844. item = QtWidgets.QTableWidgetItem("AFE高温三级告警")
  845. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  846. self.protect_table.setItem(78, 0, item)
  847. item = QtWidgets.QTableWidgetItem("℃")
  848. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  849. self.protect_table.setItem(78, 2, item)
  850. item = QtWidgets.QTableWidgetItem("0.1")
  851. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  852. self.protect_table.setItem(78, 6, item)
  853. item = QtWidgets.QTableWidgetItem("-40")
  854. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  855. self.protect_table.setItem(78, 7, item)
  856. item = QtWidgets.QTableWidgetItem("AFE高温二级告警")
  857. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  858. self.protect_table.setItem(79, 0, item)
  859. item = QtWidgets.QTableWidgetItem("℃")
  860. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  861. self.protect_table.setItem(79, 2, item)
  862. item = QtWidgets.QTableWidgetItem("0.1")
  863. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  864. self.protect_table.setItem(79, 6, item)
  865. item = QtWidgets.QTableWidgetItem("-40")
  866. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  867. self.protect_table.setItem(79, 7, item)
  868. item = QtWidgets.QTableWidgetItem("AFE高温一级告警")
  869. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  870. self.protect_table.setItem(80, 0, item)
  871. item = QtWidgets.QTableWidgetItem("℃")
  872. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  873. self.protect_table.setItem(80, 2, item)
  874. item = QtWidgets.QTableWidgetItem("0.1")
  875. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  876. self.protect_table.setItem(80, 6, item)
  877. item = QtWidgets.QTableWidgetItem("-40")
  878. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  879. self.protect_table.setItem(80, 7, item)
  880. item = QtWidgets.QTableWidgetItem("AFE高温恢复回差阈值")
  881. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  882. self.protect_table.setItem(81, 0, item)
  883. item = QtWidgets.QTableWidgetItem("℃")
  884. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  885. self.protect_table.setItem(81, 2, item)
  886. item = QtWidgets.QTableWidgetItem("0.1")
  887. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  888. self.protect_table.setItem(81, 6, item)
  889. item = QtWidgets.QTableWidgetItem("-40")
  890. item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  891. self.protect_table.setItem(81, 7, item)
  892. # item = QtWidgets.QTableWidgetItem("单体过压三级告警")
  893. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  894. # self.protect_table.setItem(0, 0, item)
  895. # item = QtWidgets.QTableWidgetItem("N/A")
  896. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  897. # self.protect_table.setItem(0, 2, item)
  898. # item = QtWidgets.QTableWidgetItem("mV")
  899. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  900. # self.protect_table.setItem(0, 2, item)
  901. # item = QtWidgets.QTableWidgetItem("A000")
  902. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  903. # self.protect_table.setItem(0, 5, item)
  904. # item = QtWidgets.QTableWidgetItem("uint16")
  905. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  906. # self.protect_table.setItem(0, 5, item)
  907. # item = QtWidgets.QTableWidgetItem("2")
  908. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  909. # self.protect_table.setItem(0, 6, item)
  910. # item = QtWidgets.QTableWidgetItem("1")
  911. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  912. # self.protect_table.setItem(0, 7, item)
  913. # item = QtWidgets.QTableWidgetItem("0")
  914. # item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
  915. # self.protect_table.setItem(0, 8, item)
  916. self.protect_table.resizeColumnsToContents()
  917. self.protect_left_groupbox_layout.addWidget(self.protect_table)
  918. self.btn_read_param = QtWidgets.QPushButton("读取参数")
  919. self.protect_left_groupbox_layout.addWidget(self.btn_read_param)
  920. self.protect_layout.addWidget(self.protect_left_groupbox, 8)
  921. self.protect_right_groupbox = QtWidgets.QGroupBox(self.protect)
  922. self.protect_right_groupbox.setTitle("修改参数")
  923. self.protect_right_groupbox_layout = QtWidgets.QGridLayout(self.protect_right_groupbox)
  924. self.lb_name = QtWidgets.QLabel("参数名称")
  925. self.protect_right_groupbox_layout.addWidget(self.lb_name, 1, 0, 1, 1)
  926. self.qline_name = QtWidgets.QLineEdit(self.protect_right_groupbox)
  927. self.qline_name.setAlignment(Qt.AlignCenter)
  928. self.qline_name.setReadOnly(True)
  929. self.protect_right_groupbox_layout.addWidget(self.qline_name, 1, 1, 1, 1)
  930. self.lb_addr = QtWidgets.QLabel("参数地址")
  931. self.protect_right_groupbox_layout.addWidget(self.lb_addr, 2, 0, 1, 1)
  932. self.qline_addr = QtWidgets.QLineEdit(self.protect_right_groupbox)
  933. self.qline_addr.setAlignment(Qt.AlignCenter)
  934. self.qline_addr.setReadOnly(True)
  935. self.protect_right_groupbox_layout.addWidget(self.qline_addr, 2, 1, 1, 1)
  936. self.lb_data_long = QtWidgets.QLabel("数据长度")
  937. self.protect_right_groupbox_layout.addWidget(self.lb_data_long, 3, 0, 1, 1)
  938. self.qline_data_long = QtWidgets.QLineEdit(self.protect_right_groupbox)
  939. self.qline_data_long.setAlignment(Qt.AlignCenter)
  940. self.qline_data_long.setReadOnly(True)
  941. self.protect_right_groupbox_layout.addWidget(self.qline_data_long, 3, 1, 1, 1)
  942. self.lb_fbl = QtWidgets.QLabel("分辨率")
  943. self.protect_right_groupbox_layout.addWidget(self.lb_fbl, 4, 0, 1, 1)
  944. self.qline_fbl = QtWidgets.QLineEdit(self.protect_right_groupbox)
  945. self.qline_fbl.setAlignment(Qt.AlignCenter)
  946. self.qline_fbl.setReadOnly(True)
  947. self.protect_right_groupbox_layout.addWidget(self.qline_fbl, 4, 1, 1, 1)
  948. self.lb_offset = QtWidgets.QLabel("偏移量")
  949. self.protect_right_groupbox_layout.addWidget(self.lb_offset, 5, 0, 1, 1)
  950. self.qline_offset = QtWidgets.QLineEdit(self.protect_right_groupbox)
  951. self.qline_offset.setAlignment(Qt.AlignCenter)
  952. self.qline_offset.setReadOnly(True)
  953. self.protect_right_groupbox_layout.addWidget(self.qline_offset, 5, 1, 1, 1)
  954. self.lb_dw = QtWidgets.QLabel("数据单位")
  955. self.protect_right_groupbox_layout.addWidget(self.lb_dw, 6, 0, 1, 1)
  956. self.qline_dw = QtWidgets.QLineEdit(self.protect_right_groupbox)
  957. self.qline_dw.setAlignment(Qt.AlignCenter)
  958. self.qline_dw.setReadOnly(True)
  959. self.protect_right_groupbox_layout.addWidget(self.qline_dw, 6, 1, 1, 1)
  960. self.lb_data = QtWidgets.QLabel("原始值")
  961. self.protect_right_groupbox_layout.addWidget(self.lb_data, 7, 0, 1, 1)
  962. self.qline_data = QtWidgets.QLineEdit(self.protect_right_groupbox)
  963. self.qline_data.setAlignment(Qt.AlignCenter)
  964. self.qline_data.setReadOnly(True)
  965. self.protect_right_groupbox_layout.addWidget(self.qline_data, 7, 1, 1, 1)
  966. self.lb_data_set = QtWidgets.QLabel("物理值")
  967. self.protect_right_groupbox_layout.addWidget(self.lb_data_set, 8, 0, 1, 1)
  968. self.qline_data_set = QtWidgets.QLineEdit(self.protect_right_groupbox)
  969. self.qline_data_set.setAlignment(Qt.AlignCenter)
  970. self.qline_data_set.setValidator(self.validator)
  971. self.protect_right_groupbox_layout.addWidget(self.qline_data_set, 8, 1, 1, 1)
  972. self.btn_write_param = QtWidgets.QPushButton("写入参数")
  973. self.protect_right_groupbox_layout.addWidget(self.btn_write_param, 9, 0, 1, 2)
  974. self.btn_exit_param = QtWidgets.QPushButton("退出参数标定")
  975. self.protect_right_groupbox_layout.addWidget(self.btn_exit_param, 10, 0, 1, 2)
  976. self.btn_reset_param = QtWidgets.QPushButton("参数复位")
  977. self.protect_right_groupbox_layout.addWidget(self.btn_reset_param, 11, 0, 1, 2)
  978. self.protect_layout.addWidget(self.protect_right_groupbox, 2)
  979. QtCore.QMetaObject.connectSlotsByName(Protect)