UIK050110.cs 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Collections;
  10. using CoreFS.CA06;
  11. namespace Core.LZMes.Client.UIK
  12. {
  13. public partial class UIK050110 : FrmBase
  14. {
  15. public UIK050110()
  16. {
  17. InitializeComponent();
  18. }
  19. public override void ToolBar_Click(object sender, string ToolbarKey)
  20. {
  21. switch (ToolbarKey)
  22. {
  23. case "Query":
  24. this.DoQuery();
  25. break;
  26. }
  27. }
  28. private void DoQuery()
  29. {
  30. try
  31. {
  32. this.dataSet1.Tables[0].Clear();
  33. DataTable dt = new DataTable();
  34. CoreClientParam ccp = new CoreClientParam();
  35. ccp.ServerName = "UIK.UIK05.UIK050110";
  36. ccp.MethodName = "Query_ICCoil";
  37. ccp.SourceDataTable = dt;
  38. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  39. // MessageBox.Show("数据行:" + dt.Rows.Count);
  40. for (int i = 0; i < dt.Rows.Count; i++)
  41. {
  42. this.text_coil1.Text = dt.Rows[i]["COIL_ID1"].ToString();
  43. if (this.text_coil1.Text != "" && this.text_coil1.Text.Length == 13 && this.text_coil1.Text.Contains("R"))
  44. {
  45. this.label_color1.BackColor = Color.Green;
  46. }
  47. else
  48. {
  49. this.label_color1.BackColor = Color.Chocolate;
  50. }
  51. this.text_coil2.Text = dt.Rows[i]["COIL_ID2"].ToString();
  52. if (this.text_coil2.Text != "" && this.text_coil2.Text.Length == 13 && this.text_coil2.Text.Contains("R"))
  53. {
  54. this.label_color2.BackColor = Color.Green;
  55. }
  56. else
  57. {
  58. this.label_color2.BackColor = Color.Chocolate;
  59. }
  60. this.text_coil3.Text = dt.Rows[i]["COIL_ID3"].ToString();
  61. if (this.text_coil3.Text != "" && this.text_coil3.Text.Length == 13 && this.text_coil3.Text.Contains("R"))
  62. {
  63. this.label_color3.BackColor = Color.Green;
  64. }
  65. else
  66. {
  67. this.label_color3.BackColor = Color.Chocolate;
  68. }
  69. this.text_coil4.Text = dt.Rows[i]["COIL_ID4"].ToString();
  70. if (this.text_coil4.Text != "" && this.text_coil4.Text.Length == 13 && this.text_coil4.Text.Contains("R"))
  71. {
  72. this.label_color4.BackColor = Color.Green;
  73. }
  74. else
  75. {
  76. this.label_color4.BackColor = Color.Chocolate;
  77. }
  78. this.text_coil5.Text = dt.Rows[i]["COIL_ID5"].ToString();
  79. if (this.text_coil5.Text != "" && this.text_coil5.Text.Length == 13 && this.text_coil5.Text.Contains("R"))
  80. {
  81. this.label_color5.BackColor = Color.Green;
  82. }
  83. else
  84. {
  85. this.label_color5.BackColor = Color.Chocolate;
  86. }
  87. this.text_coil6.Text = dt.Rows[i]["COIL_ID6"].ToString();
  88. if (this.text_coil6.Text != "" && this.text_coil6.Text.Length == 13 && this.text_coil6.Text.Contains("R"))
  89. {
  90. this.label_color6.BackColor = Color.Green;
  91. }
  92. else
  93. {
  94. this.label_color6.BackColor = Color.Chocolate;
  95. }
  96. this.text_coil7.Text = dt.Rows[i]["COIL_ID7"].ToString();
  97. if (this.text_coil7.Text != "" && this.text_coil7.Text.Length == 13 && this.text_coil7.Text.Contains("R"))
  98. {
  99. this.label_color7.BackColor = Color.Green;
  100. }
  101. else
  102. {
  103. this.label_color7.BackColor = Color.Chocolate;
  104. }
  105. this.text_coil8.Text = dt.Rows[i]["COIL_ID8"].ToString();
  106. if (this.text_coil8.Text != "" && this.text_coil8.Text.Length == 13 && this.text_coil8.Text.Contains("R"))
  107. {
  108. this.label_color8.BackColor = Color.Green;
  109. }
  110. else
  111. {
  112. this.label_color8.BackColor = Color.Chocolate;
  113. }
  114. this.text_coil9.Text = dt.Rows[i]["COIL_ID9"].ToString();
  115. if (this.text_coil9.Text != "" && this.text_coil9.Text.Length == 13 && this.text_coil9.Text.Contains("R"))
  116. {
  117. this.label_color9.BackColor = Color.Green;
  118. }
  119. else
  120. {
  121. this.label_color9.BackColor = Color.Chocolate;
  122. }
  123. this.text_coil10.Text = dt.Rows[i]["COIL_ID10"].ToString();
  124. if (this.text_coil10.Text != "" && this.text_coil10.Text.Length == 13 && this.text_coil10.Text.Contains("R"))
  125. {
  126. this.label_color10.BackColor = Color.Green;
  127. }
  128. else
  129. {
  130. this.label_color10.BackColor = Color.Chocolate;
  131. }
  132. this.text_coil11.Text = dt.Rows[i]["COIL_ID11"].ToString();
  133. if (this.text_coil11.Text != "" && this.text_coil11.Text.Length == 13 && this.text_coil11.Text.Contains("R"))
  134. {
  135. this.label_color11.BackColor = Color.Green;
  136. }
  137. else
  138. {
  139. this.label_color11.BackColor = Color.Chocolate;
  140. }
  141. this.text_coil12.Text = dt.Rows[i]["COIL_ID12"].ToString();
  142. if (this.text_coil12.Text != "" && this.text_coil12.Text.Length == 13 && this.text_coil12.Text.Contains("R"))
  143. {
  144. this.label_color12.BackColor = Color.Green;
  145. }
  146. else
  147. {
  148. this.label_color12.BackColor = Color.Chocolate;
  149. }
  150. this.text_coil13.Text = dt.Rows[i]["COIL_ID13"].ToString();
  151. if (this.text_coil13.Text != "" && this.text_coil13.Text.Length == 13 && this.text_coil13.Text.Contains("R"))
  152. {
  153. this.label_color13.BackColor = Color.Green;
  154. }
  155. else
  156. {
  157. this.label_color13.BackColor = Color.Chocolate;
  158. }
  159. //this.text_coil12.Text = dt.Rows[i]["COIL_ID12"].ToString();
  160. //if (this.text_coil12.Text != "")
  161. //{
  162. // this.label_color12.BackColor = Color.Green;
  163. //}
  164. this.text_coil14.Text = dt.Rows[i]["COIL_ID14"].ToString();
  165. if (this.text_coil14.Text != "" && this.text_coil14.Text.Length == 13 && this.text_coil14.Text.Contains("R"))
  166. {
  167. this.label_color14.BackColor = Color.Green;
  168. }
  169. else
  170. {
  171. this.label_color14.BackColor = Color.Chocolate;
  172. }
  173. this.text_coil15.Text = dt.Rows[i]["COIL_ID15"].ToString();
  174. if (this.text_coil15.Text != "" && this.text_coil15.Text.Length == 13 && this.text_coil15.Text.Contains("R"))
  175. {
  176. this.label_color15.BackColor = Color.Green;
  177. }
  178. else
  179. {
  180. this.label_color15.BackColor = Color.Chocolate;
  181. }
  182. this.text_coil16.Text = dt.Rows[i]["COIL_ID16"].ToString();
  183. if (this.text_coil16.Text != "" && this.text_coil16.Text.Length == 13 && this.text_coil16.Text.Contains("R"))
  184. {
  185. this.label_color16.BackColor = Color.Green;
  186. }
  187. else
  188. {
  189. this.label_color16.BackColor = Color.Chocolate;
  190. }
  191. this.text_coil17.Text = dt.Rows[i]["COIL_ID17"].ToString();
  192. if (this.text_coil17.Text != "" && this.text_coil17.Text.Length == 13 && this.text_coil17.Text.Contains("R"))
  193. {
  194. this.label_color17.BackColor = Color.Green;
  195. }
  196. else
  197. {
  198. this.label_color17.BackColor = Color.Chocolate;
  199. }
  200. this.text_coil18.Text = dt.Rows[i]["COIL_ID18"].ToString();
  201. if (this.text_coil18.Text != "" && this.text_coil18.Text.Length == 13 && this.text_coil18.Text.Contains("R"))
  202. {
  203. this.label_color18.BackColor = Color.Green;
  204. }
  205. else
  206. {
  207. this.label_color18.BackColor = Color.Chocolate;
  208. }
  209. this.text_coil19.Text = dt.Rows[i]["COIL_ID19"].ToString();
  210. if (this.text_coil19.Text != "" && this.text_coil19.Text.Length == 13 && this.text_coil19.Text.Contains("R"))
  211. {
  212. this.label_color19.BackColor = Color.Green;
  213. }
  214. else
  215. {
  216. this.label_color19.BackColor = Color.Chocolate;
  217. }
  218. this.text_coil20.Text = dt.Rows[i]["COIL_ID20"].ToString();
  219. if (this.text_coil20.Text != "" && this.text_coil20.Text.Length == 13 && this.text_coil20.Text.Contains("R"))
  220. {
  221. this.label_color20.BackColor = Color.Green;
  222. }
  223. else
  224. {
  225. this.label_color20.BackColor = Color.Chocolate;
  226. }
  227. this.text_coil21.Text = dt.Rows[i]["COIL_ID21"].ToString();
  228. if (this.text_coil21.Text != "" && this.text_coil21.Text.Length == 13 && this.text_coil21.Text.Contains("R"))
  229. {
  230. this.label_color21.BackColor = Color.Green;
  231. }
  232. else
  233. {
  234. this.label_color21.BackColor = Color.Chocolate;
  235. }
  236. this.text_coil22.Text = dt.Rows[i]["COIL_ID22"].ToString();
  237. if (this.text_coil22.Text != "" && this.text_coil22.Text.Length == 13 && this.text_coil22.Text.Contains("R"))
  238. {
  239. this.label_color22.BackColor = Color.Green;
  240. }
  241. else
  242. {
  243. this.label_color22.BackColor = Color.Chocolate;
  244. }
  245. this.text_coil23.Text = dt.Rows[i]["COIL_ID23"].ToString();
  246. if (this.text_coil23.Text != "" && this.text_coil23.Text.Length == 13 && this.text_coil23.Text.Contains("R"))
  247. {
  248. this.label_color23.BackColor = Color.Green;
  249. }
  250. else
  251. {
  252. this.label_color23.BackColor = Color.Chocolate;
  253. }
  254. this.text_coil24.Text = dt.Rows[i]["COIL_ID24"].ToString();
  255. if (this.text_coil24.Text != "" && this.text_coil24.Text.Length == 13 && this.text_coil24.Text.Contains("R"))
  256. {
  257. this.label_color24.BackColor = Color.Green;
  258. }
  259. else
  260. {
  261. this.label_color24.BackColor = Color.Chocolate;
  262. }
  263. this.text_coil25.Text = dt.Rows[i]["COIL_ID25"].ToString();
  264. if (this.text_coil25.Text != "" && this.text_coil25.Text.Length == 13 && this.text_coil25.Text.Contains("R"))
  265. {
  266. this.label_color25.BackColor = Color.Green;
  267. }
  268. else
  269. {
  270. this.label_color25.BackColor = Color.Chocolate;
  271. }
  272. this.text_coil26.Text = dt.Rows[i]["COIL_ID26"].ToString();
  273. if (this.text_coil26.Text != "" && this.text_coil26.Text.Length == 13 && this.text_coil26.Text.Contains("R"))
  274. {
  275. this.label_color26.BackColor = Color.Green;
  276. }
  277. else
  278. {
  279. this.label_color26.BackColor = Color.Chocolate;
  280. }
  281. this.text_coil27.Text = dt.Rows[i]["COIL_ID27"].ToString();
  282. if (this.text_coil27.Text != "" && this.text_coil27.Text.Length == 13 && this.text_coil27.Text.Contains("R"))
  283. {
  284. this.label_color27.BackColor = Color.Green;
  285. }
  286. else
  287. {
  288. this.label_color27.BackColor = Color.Chocolate;
  289. }
  290. this.text_coil28.Text = dt.Rows[i]["COIL_ID28"].ToString();
  291. if (this.text_coil28.Text != "" && this.text_coil28.Text.Length == 13 && this.text_coil28.Text.Contains("R"))
  292. {
  293. this.label_color28.BackColor = Color.Green;
  294. }
  295. else
  296. {
  297. this.label_color28.BackColor = Color.Chocolate;
  298. }
  299. this.text_coil29.Text = dt.Rows[i]["COIL_ID29"].ToString();
  300. if (this.text_coil29.Text != "" && this.text_coil29.Text.Length == 13 && this.text_coil29.Text.Contains("R"))
  301. {
  302. this.label_color29.BackColor = Color.Green;
  303. }
  304. else
  305. {
  306. this.label_color29.BackColor = Color.Chocolate;
  307. }
  308. this.text_coil30.Text = dt.Rows[i]["COIL_ID30"].ToString();
  309. if (this.text_coil30.Text != "" && this.text_coil30.Text.Length == 13 && this.text_coil30.Text.Contains("R"))
  310. {
  311. this.label_color30.BackColor = Color.Green;
  312. }
  313. else
  314. {
  315. this.label_color30.BackColor = Color.Chocolate;
  316. }
  317. this.text_coil31.Text = dt.Rows[i]["COIL_ID31"].ToString();
  318. if (this.text_coil31.Text != "" && this.text_coil31.Text.Length == 13 && this.text_coil31.Text.Contains("R"))
  319. {
  320. this.label_color31.BackColor = Color.Green;
  321. }
  322. else
  323. {
  324. this.label_color31.BackColor = Color.Chocolate;
  325. }
  326. this.text_coil32.Text = dt.Rows[i]["COIL_ID32"].ToString();
  327. if (this.text_coil32.Text != "" && this.text_coil32.Text.Length == 13 && this.text_coil32.Text.Contains("R"))
  328. {
  329. this.label_color32.BackColor = Color.Green;
  330. }
  331. else
  332. {
  333. this.label_color32.BackColor = Color.Chocolate;
  334. }
  335. this.text_coil33.Text = dt.Rows[i]["COIL_ID33"].ToString();
  336. if (this.text_coil33.Text != "" && this.text_coil33.Text.Length == 13 && this.text_coil33.Text.Contains("R"))
  337. {
  338. this.label_color33.BackColor = Color.Green;
  339. }
  340. else
  341. {
  342. this.label_color33.BackColor = Color.Chocolate;
  343. }
  344. this.text_coil34.Text = dt.Rows[i]["COIL_ID34"].ToString();
  345. if (this.text_coil34.Text != "" && this.text_coil34.Text.Length == 13 && this.text_coil34.Text.Contains("R"))
  346. {
  347. this.label_color34.BackColor = Color.Green;
  348. }
  349. else
  350. {
  351. this.label_color34.BackColor = Color.Chocolate;
  352. }
  353. this.text_coil35.Text = dt.Rows[i]["COIL_ID35"].ToString();
  354. if (this.text_coil35.Text != "" && this.text_coil35.Text.Length == 13 && this.text_coil35.Text.Contains("R"))
  355. {
  356. this.label_color35.BackColor = Color.Green;
  357. }
  358. else
  359. {
  360. this.label_color35.BackColor = Color.Chocolate;
  361. }
  362. this.text_coil36.Text = dt.Rows[i]["COIL_ID36"].ToString();
  363. if (this.text_coil36.Text != "" && this.text_coil36.Text.Length == 13 && this.text_coil36.Text.Contains("R"))
  364. {
  365. this.label_color36.BackColor = Color.Green;
  366. }
  367. else
  368. {
  369. this.label_color36.BackColor = Color.Chocolate;
  370. }
  371. this.text_coil37.Text = dt.Rows[i]["COIL_ID37"].ToString();
  372. if (this.text_coil37.Text != "" && this.text_coil37.Text.Length == 13 && this.text_coil37.Text.Contains("R"))
  373. {
  374. this.label_color37.BackColor = Color.Green;
  375. }
  376. else
  377. {
  378. this.label_color37.BackColor = Color.Chocolate;
  379. }
  380. this.text_coil40.Text = dt.Rows[i]["COIL_ID40"].ToString();
  381. if (this.text_coil40.Text != "" && this.text_coil40.Text.Length == 13 && this.text_coil40.Text.Contains("R"))
  382. {
  383. this.label_color40.BackColor = Color.Green;
  384. }
  385. else
  386. {
  387. this.label_color40.BackColor = Color.Chocolate;
  388. }
  389. this.text_coil38.Text = dt.Rows[i]["COIL_ID38"].ToString();
  390. if (this.text_coil38.Text != "" && this.text_coil38.Text.Length == 13 && this.text_coil38.Text.Contains("R"))
  391. {
  392. this.label_color38.BackColor = Color.Green;
  393. }
  394. else
  395. {
  396. this.label_color38.BackColor = Color.Chocolate;
  397. }
  398. this.text_coil39.Text = dt.Rows[i]["COIL_ID39"].ToString();
  399. if (this.text_coil39.Text != "" && this.text_coil39.Text.Length == 13 && this.text_coil39.Text.Contains("R"))
  400. {
  401. this.label_color39.BackColor = Color.Green;
  402. }
  403. else
  404. {
  405. this.label_color39.BackColor = Color.Chocolate;
  406. }
  407. this.text_coil41.Text = dt.Rows[i]["COIL_ID41"].ToString();
  408. if (this.text_coil41.Text != "" && this.text_coil41.Text.Length == 13 && this.text_coil41.Text.Contains("R"))
  409. {
  410. this.label_color41.BackColor = Color.Green;
  411. }
  412. else
  413. {
  414. this.label_color41.BackColor = Color.Chocolate;
  415. }
  416. this.text_coil42.Text = dt.Rows[i]["COIL_ID42"].ToString();
  417. if (this.text_coil42.Text != "" && this.text_coil42.Text.Length == 13 && this.text_coil42.Text.Contains("R"))
  418. {
  419. this.label_color42.BackColor = Color.Green;
  420. }
  421. else
  422. {
  423. this.label_color42.BackColor = Color.Chocolate;
  424. }
  425. this.text_coil43.Text = dt.Rows[i]["COIL_ID43"].ToString();
  426. if (this.text_coil43.Text != "" && this.text_coil43.Text.Length == 13 && this.text_coil43.Text.Contains("R"))
  427. {
  428. this.label_color43.BackColor = Color.Green;
  429. }
  430. else
  431. {
  432. this.label_color43.BackColor = Color.Chocolate;
  433. }
  434. this.text_coil44.Text = dt.Rows[i]["COIL_ID44"].ToString();
  435. if (this.text_coil44.Text != "" && this.text_coil44.Text.Length == 13 && this.text_coil44.Text.Contains("R"))
  436. {
  437. this.label_color44.BackColor = Color.Green;
  438. }
  439. else
  440. {
  441. this.label_color44.BackColor = Color.Chocolate;
  442. }
  443. this.text_coil45.Text = dt.Rows[i]["COIL_ID45"].ToString();
  444. if (this.text_coil45.Text != "" && this.text_coil45.Text.Length == 13 && this.text_coil45.Text.Contains("R"))
  445. {
  446. this.label_color45.BackColor = Color.Green;
  447. }
  448. else
  449. {
  450. this.label_color45.BackColor = Color.Chocolate;
  451. }
  452. this.text_coil46.Text = dt.Rows[i]["COIL_ID46"].ToString();
  453. if (this.text_coil46.Text != "" && this.text_coil46.Text.Length == 13 && this.text_coil46.Text.Contains("R"))
  454. {
  455. this.label_color46.BackColor = Color.Green;
  456. }
  457. else
  458. {
  459. this.label_color46.BackColor = Color.Chocolate;
  460. }
  461. this.text_coil47.Text = dt.Rows[i]["COIL_ID47"].ToString();
  462. if (this.text_coil47.Text != "" && this.text_coil47.Text.Length == 13 && this.text_coil47.Text.Contains("R"))
  463. {
  464. this.label_color47.BackColor = Color.Green;
  465. }
  466. else
  467. {
  468. this.label_color47.BackColor = Color.Chocolate;
  469. }
  470. this.text_coil48.Text = dt.Rows[i]["COIL_ID48"].ToString();
  471. if (this.text_coil48.Text != "" && this.text_coil48.Text.Length == 13 && this.text_coil48.Text.Contains("R"))
  472. {
  473. this.label_color48.BackColor = Color.Green;
  474. }
  475. else
  476. {
  477. this.label_color48.BackColor = Color.Chocolate;
  478. }
  479. this.text_coil49.Text = dt.Rows[i]["COIL_ID49"].ToString();
  480. if (this.text_coil49.Text != "" && this.text_coil49.Text.Length == 13 && this.text_coil49.Text.Contains("R"))
  481. {
  482. this.label_color49.BackColor = Color.Green;
  483. }
  484. else
  485. {
  486. this.label_color49.BackColor = Color.Chocolate;
  487. }
  488. this.text_coil50.Text = dt.Rows[i]["COIL_ID50"].ToString();
  489. if (this.text_coil50.Text != "" && this.text_coil50.Text.Length == 13 && this.text_coil50.Text.Contains("R"))
  490. {
  491. this.label_color50.BackColor = Color.Green;
  492. }
  493. else
  494. {
  495. this.label_color50.BackColor = Color.Chocolate;
  496. }
  497. this.text_coil51.Text = dt.Rows[i]["COIL_ID51"].ToString();
  498. if (this.text_coil51.Text != "" && this.text_coil51.Text.Length == 13 && this.text_coil51.Text.Contains("R"))
  499. {
  500. this.label_color51.BackColor = Color.Green;
  501. }
  502. else
  503. {
  504. this.label_color51.BackColor = Color.Chocolate;
  505. }
  506. this.text_coil52.Text = dt.Rows[i]["COIL_ID52"].ToString();
  507. if (this.text_coil52.Text != "" && this.text_coil52.Text.Length == 13 && this.text_coil52.Text.Contains("R"))
  508. {
  509. this.label_color52.BackColor = Color.Green;
  510. }
  511. else
  512. {
  513. this.label_color52.BackColor = Color.Chocolate;
  514. }
  515. this.text_coil53.Text = dt.Rows[i]["COIL_ID53"].ToString();
  516. if (this.text_coil53.Text != "" && this.text_coil53.Text.Length == 13 && this.text_coil53.Text.Contains("R"))
  517. {
  518. this.label_color53.BackColor = Color.Green;
  519. }
  520. else
  521. {
  522. this.label_color53.BackColor = Color.Chocolate;
  523. }
  524. this.text_coil54.Text = dt.Rows[i]["COIL_ID54"].ToString();
  525. if (this.text_coil54.Text != "" && this.text_coil54.Text.Length == 13 && this.text_coil54.Text.Contains("R"))
  526. {
  527. this.label_color54.BackColor = Color.Green;
  528. }
  529. else
  530. {
  531. this.label_color54.BackColor = Color.Chocolate;
  532. }
  533. this.text_coil55.Text = dt.Rows[i]["COIL_ID55"].ToString();
  534. if (this.text_coil55.Text != "" && this.text_coil55.Text.Length == 13 && this.text_coil55.Text.Contains("R"))
  535. {
  536. this.label_color55.BackColor = Color.Green;
  537. }
  538. else
  539. {
  540. this.label_color55.BackColor = Color.Chocolate;
  541. }
  542. this.text_coil56.Text = dt.Rows[i]["COIL_ID56"].ToString();
  543. if (this.text_coil56.Text != "" && this.text_coil56.Text.Length == 13 && this.text_coil56.Text.Contains("R"))
  544. {
  545. this.label_color56.BackColor = Color.Green;
  546. }
  547. else
  548. {
  549. this.label_color56.BackColor = Color.Chocolate;
  550. }
  551. this.text_coil57.Text = dt.Rows[i]["COIL_ID57"].ToString();
  552. if (this.text_coil57.Text != "" && this.text_coil57.Text.Length == 13 && this.text_coil57.Text.Contains("R"))
  553. {
  554. this.label_color57.BackColor = Color.Green;
  555. }
  556. else
  557. {
  558. this.label_color57.BackColor = Color.Chocolate;
  559. }
  560. this.text_coil58.Text = dt.Rows[i]["COIL_ID58"].ToString();
  561. if (this.text_coil58.Text != "" && this.text_coil58.Text.Length == 13 && this.text_coil58.Text.Contains("R"))
  562. {
  563. this.label_color58.BackColor = Color.Green;
  564. }
  565. else
  566. {
  567. this.label_color58.BackColor = Color.Chocolate;
  568. }
  569. this.text_coil59.Text = dt.Rows[i]["COIL_ID59"].ToString();
  570. if (this.text_coil59.Text != "" && this.text_coil59.Text.Length == 13 && this.text_coil59.Text.Contains("R"))
  571. {
  572. this.label_color59.BackColor = Color.Green;
  573. }
  574. else
  575. {
  576. this.label_color59.BackColor = Color.Chocolate;
  577. }
  578. this.text_coil60.Text = dt.Rows[i]["COIL_ID60"].ToString();
  579. if (this.text_coil60.Text != "" && this.text_coil60.Text.Length == 13 && this.text_coil60.Text.Contains("R"))
  580. {
  581. this.label_color60.BackColor = Color.Green;
  582. }
  583. else
  584. {
  585. this.label_color60.BackColor = Color.Chocolate;
  586. }
  587. this.text_coil61.Text = dt.Rows[i]["COIL_ID61"].ToString();
  588. if (this.text_coil61.Text != "" && this.text_coil61.Text.Length == 13 && this.text_coil61.Text.Contains("R"))
  589. {
  590. this.label_color61.BackColor = Color.Green;
  591. }
  592. else
  593. {
  594. this.label_color61.BackColor = Color.Chocolate;
  595. }
  596. this.text_coil62.Text = dt.Rows[i]["COIL_ID62"].ToString();
  597. if (this.text_coil62.Text != "" && this.text_coil62.Text.Length == 13 && this.text_coil62.Text.Contains("R"))
  598. {
  599. this.label_color62.BackColor = Color.Green;
  600. }
  601. else
  602. {
  603. this.label_color62.BackColor = Color.Chocolate;
  604. }
  605. this.text_coil63.Text = dt.Rows[i]["COIL_ID63"].ToString();
  606. if (this.text_coil63.Text != "" && this.text_coil63.Text.Length == 13 && this.text_coil63.Text.Contains("R"))
  607. {
  608. this.label_color63.BackColor = Color.Green;
  609. }
  610. else
  611. {
  612. this.label_color63.BackColor = Color.Chocolate;
  613. }
  614. this.text_coil64.Text = dt.Rows[i]["COIL_ID64"].ToString();
  615. if (this.text_coil64.Text != "" && this.text_coil64.Text.Length == 13 && this.text_coil64.Text.Contains("R"))
  616. {
  617. this.label_color64.BackColor = Color.Green;
  618. }
  619. else
  620. {
  621. this.label_color64.BackColor = Color.Chocolate;
  622. }
  623. this.text_coil65.Text = dt.Rows[i]["COIL_ID65"].ToString();
  624. if (this.text_coil65.Text != "" && this.text_coil65.Text.Length == 13 && this.text_coil65.Text.Contains("R"))
  625. {
  626. this.label_color65.BackColor = Color.Green;
  627. }
  628. else
  629. {
  630. this.label_color65.BackColor = Color.Chocolate;
  631. }
  632. this.text_coil66.Text = dt.Rows[i]["COIL_ID66"].ToString();
  633. if (this.text_coil66.Text != "" && this.text_coil66.Text.Length == 13 && this.text_coil66.Text.Contains("R"))
  634. {
  635. this.label_color66.BackColor = Color.Green;
  636. }
  637. else
  638. {
  639. this.label_color66.BackColor = Color.Chocolate;
  640. }
  641. this.text_coil67.Text = dt.Rows[i]["COIL_ID67"].ToString();
  642. if (this.text_coil67.Text != "" && this.text_coil67.Text.Length == 13 && this.text_coil67.Text.Contains("R"))
  643. {
  644. this.label_color67.BackColor = Color.Green;
  645. }
  646. else
  647. {
  648. this.label_color67.BackColor = Color.Chocolate;
  649. }
  650. this.text_coil68.Text = dt.Rows[i]["COIL_ID68"].ToString();
  651. if (this.text_coil68.Text != "" && this.text_coil68.Text.Length == 13 && this.text_coil68.Text.Contains("R"))
  652. {
  653. this.label_color68.BackColor = Color.Green;
  654. }
  655. else
  656. {
  657. this.label_color68.BackColor = Color.Chocolate;
  658. }
  659. this.text_coil69.Text = dt.Rows[i]["COIL_ID69"].ToString();
  660. if (this.text_coil69.Text != "" && this.text_coil69.Text.Length == 13 && this.text_coil69.Text.Contains("R"))
  661. {
  662. this.label_color69.BackColor = Color.Green;
  663. }
  664. else
  665. {
  666. this.label_color69.BackColor = Color.Chocolate;
  667. }
  668. this.text_coil70.Text = dt.Rows[i]["COIL_ID70"].ToString();
  669. if (this.text_coil70.Text != "" && this.text_coil70.Text.Length == 13 && this.text_coil70.Text.Contains("R"))
  670. {
  671. this.label_color70.BackColor = Color.Green;
  672. }
  673. else
  674. {
  675. this.label_color70.BackColor = Color.Chocolate;
  676. }
  677. this.text_coil73.Text = dt.Rows[i]["COIL_ID73"].ToString();
  678. if (this.text_coil73.Text != "" && this.text_coil73.Text.Length == 13 && this.text_coil73.Text.Contains("R"))
  679. {
  680. this.label_color73.BackColor = Color.Green;
  681. }
  682. else
  683. {
  684. this.label_color73.BackColor = Color.Chocolate;
  685. }
  686. this.text_coil74.Text = dt.Rows[i]["COIL_ID74"].ToString();
  687. if (this.text_coil74.Text != "" && this.text_coil74.Text.Length == 13 && this.text_coil74.Text.Contains("R"))
  688. {
  689. this.label_color74.BackColor = Color.Green;
  690. }
  691. else
  692. {
  693. this.label_color74.BackColor = Color.Chocolate;
  694. }
  695. this.text_coil75.Text = dt.Rows[i]["COIL_ID75"].ToString();
  696. if (this.text_coil75.Text != "" && this.text_coil75.Text.Length == 13 && this.text_coil75.Text.Contains("R"))
  697. {
  698. this.label_color75.BackColor = Color.Green;
  699. }
  700. else
  701. {
  702. this.label_color75.BackColor = Color.Chocolate;
  703. }
  704. this.text_coil76.Text = dt.Rows[i]["COIL_ID76"].ToString();
  705. if (this.text_coil76.Text != "" && this.text_coil76.Text.Length == 13 && this.text_coil76.Text.Contains("R"))
  706. {
  707. this.label_color76.BackColor = Color.Green;
  708. }
  709. else
  710. {
  711. this.label_color76.BackColor = Color.Chocolate;
  712. }
  713. this.text_coil77.Text = dt.Rows[i]["COIL_ID77"].ToString();
  714. if (this.text_coil77.Text != "" && this.text_coil77.Text.Length == 13 && this.text_coil77.Text.Contains("R"))
  715. {
  716. this.label_color77.BackColor = Color.Green;
  717. }
  718. else
  719. {
  720. this.label_color77.BackColor = Color.Chocolate;
  721. }
  722. this.text_coil78.Text = dt.Rows[i]["COIL_ID78"].ToString();
  723. if (this.text_coil78.Text != "" && this.text_coil78.Text.Length == 13 && this.text_coil78.Text.Contains("R"))
  724. {
  725. this.label_color78.BackColor = Color.Green;
  726. }
  727. else
  728. {
  729. this.label_color78.BackColor = Color.Chocolate;
  730. }
  731. this.text_coil79.Text = dt.Rows[i]["COIL_ID79"].ToString();
  732. if (this.text_coil79.Text != "" && this.text_coil79.Text.Length == 13 && this.text_coil79.Text.Contains("R"))
  733. {
  734. this.label_color79.BackColor = Color.Green;
  735. }
  736. else
  737. {
  738. this.label_color79.BackColor = Color.Chocolate;
  739. }
  740. this.text_coil80.Text = dt.Rows[i]["COIL_ID80"].ToString();
  741. if (this.text_coil80.Text != "" && this.text_coil80.Text.Length == 13 && this.text_coil80.Text.Contains("R"))
  742. {
  743. this.label_color80.BackColor = Color.Green;
  744. }
  745. else
  746. {
  747. this.label_color80.BackColor = Color.Chocolate;
  748. }
  749. this.text_coil81.Text = dt.Rows[i]["COIL_ID81"].ToString();
  750. if (this.text_coil81.Text != "" && this.text_coil81.Text.Length == 13 && this.text_coil81.Text.Contains("R"))
  751. {
  752. this.label_color81.BackColor = Color.Green;
  753. }
  754. else
  755. {
  756. this.label_color81.BackColor = Color.Chocolate;
  757. }
  758. this.text_coil82.Text = dt.Rows[i]["COIL_ID82"].ToString();
  759. if (this.text_coil82.Text != "" && this.text_coil82.Text.Length == 13 && this.text_coil82.Text.Contains("R"))
  760. {
  761. this.label_color82.BackColor = Color.Green;
  762. }
  763. else
  764. {
  765. this.label_color82.BackColor = Color.Chocolate;
  766. }
  767. this.text_coil83.Text = dt.Rows[i]["COIL_ID83"].ToString();
  768. if (this.text_coil83.Text != "" && this.text_coil83.Text.Length == 13 && this.text_coil83.Text.Contains("R"))
  769. {
  770. this.label_color83.BackColor = Color.Green;
  771. }
  772. else
  773. {
  774. this.label_color83.BackColor = Color.Chocolate;
  775. }
  776. this.text_coil84.Text = dt.Rows[i]["COIL_ID84"].ToString();
  777. if (this.text_coil84.Text != "" && this.text_coil84.Text.Length == 13 && this.text_coil84.Text.Contains("R"))
  778. {
  779. this.label_color84.BackColor = Color.Green;
  780. }
  781. else
  782. {
  783. this.label_color84.BackColor = Color.Chocolate;
  784. }
  785. this.text_coil85.Text = dt.Rows[i]["COIL_ID85"].ToString();
  786. if (this.text_coil85.Text != "" && this.text_coil85.Text.Length == 13 && this.text_coil85.Text.Contains("R"))
  787. {
  788. this.label_color85.BackColor = Color.Green;
  789. }
  790. else
  791. {
  792. this.label_color85.BackColor = Color.Chocolate;
  793. }
  794. this.text_coil86.Text = dt.Rows[i]["COIL_ID86"].ToString();
  795. if (this.text_coil86.Text != "" && this.text_coil86.Text.Length == 13 && this.text_coil86.Text.Contains("R"))
  796. {
  797. this.label_color86.BackColor = Color.Green;
  798. }
  799. else
  800. {
  801. this.label_color86.BackColor = Color.Chocolate;
  802. }
  803. this.text_coil87.Text = dt.Rows[i]["COIL_ID87"].ToString();
  804. if (this.text_coil87.Text != "" && this.text_coil87.Text.Length == 13 && this.text_coil87.Text.Contains("R"))
  805. {
  806. this.label_color87.BackColor = Color.Green;
  807. }
  808. else
  809. {
  810. this.label_color87.BackColor = Color.Chocolate;
  811. }
  812. this.text_coil88.Text = dt.Rows[i]["COIL_ID88"].ToString();
  813. if (this.text_coil88.Text != "" && this.text_coil88.Text.Length == 13 && this.text_coil88.Text.Contains("R"))
  814. {
  815. this.label_color88.BackColor = Color.Green;
  816. }
  817. else
  818. {
  819. this.label_color88.BackColor = Color.Chocolate;
  820. }
  821. this.text_coil89.Text = dt.Rows[i]["COIL_ID89"].ToString();
  822. if (this.text_coil89.Text != "" && this.text_coil89.Text.Length == 13 && this.text_coil89.Text.Contains("R"))
  823. {
  824. this.label_color89.BackColor = Color.Green;
  825. }
  826. else
  827. {
  828. this.label_color89.BackColor = Color.Chocolate;
  829. }
  830. this.text_coil90.Text = dt.Rows[i]["COIL_ID90"].ToString();
  831. if (this.text_coil90.Text != "" && this.text_coil90.Text.Length == 13 && this.text_coil90.Text.Contains("R"))
  832. {
  833. this.label_color90.BackColor = Color.Green;
  834. }
  835. else
  836. {
  837. this.label_color90.BackColor = Color.Chocolate;
  838. }
  839. this.text_coil91.Text = dt.Rows[i]["COIL_ID91"].ToString();
  840. if (this.text_coil91.Text != "" && this.text_coil91.Text.Length == 13 && this.text_coil91.Text.Contains("R"))
  841. {
  842. this.label_color91.BackColor = Color.Green;
  843. }
  844. else
  845. {
  846. this.label_color91.BackColor = Color.Chocolate;
  847. }
  848. this.text_coil92.Text = dt.Rows[i]["COIL_ID92"].ToString();
  849. if (this.text_coil92.Text != "" && this.text_coil92.Text.Length == 13 && this.text_coil92.Text.Contains("R"))
  850. {
  851. this.label_color92.BackColor = Color.Green;
  852. }
  853. else
  854. {
  855. this.label_color92.BackColor = Color.Chocolate;
  856. }
  857. this.text_coil93.Text = dt.Rows[i]["COIL_ID93"].ToString();
  858. if (this.text_coil93.Text != "" && this.text_coil93.Text.Length == 13 && this.text_coil93.Text.Contains("R"))
  859. {
  860. this.label_color93.BackColor = Color.Green;
  861. }
  862. else
  863. {
  864. this.label_color93.BackColor = Color.Chocolate;
  865. }
  866. this.text_coil94.Text = dt.Rows[i]["COIL_ID94"].ToString();
  867. if (this.text_coil94.Text != "" && this.text_coil94.Text.Length == 13 && this.text_coil94.Text.Contains("R"))
  868. {
  869. this.label_color94.BackColor = Color.Green;
  870. }
  871. else
  872. {
  873. this.label_color94.BackColor = Color.Chocolate;
  874. }
  875. this.text_coil95.Text = dt.Rows[i]["COIL_ID95"].ToString();
  876. if (this.text_coil95.Text != "" && this.text_coil95.Text.Length == 13 && this.text_coil95.Text.Contains("R"))
  877. {
  878. this.label_color95.BackColor = Color.Green;
  879. }
  880. else
  881. {
  882. this.label_color95.BackColor = Color.Chocolate;
  883. }
  884. this.text_coil96.Text = dt.Rows[i]["COIL_ID96"].ToString();
  885. if (this.text_coil96.Text != "" && this.text_coil96.Text.Length == 13 && this.text_coil96.Text.Contains("R"))
  886. {
  887. this.label_color96.BackColor = Color.Green;
  888. }
  889. else
  890. {
  891. this.label_color96.BackColor = Color.Chocolate;
  892. }
  893. this.text_coil97.Text = dt.Rows[i]["COIL_ID97"].ToString();
  894. if (this.text_coil97.Text != "" && this.text_coil97.Text.Length == 13 && this.text_coil97.Text.Contains("R"))
  895. {
  896. this.label_color97.BackColor = Color.Green;
  897. }
  898. else
  899. {
  900. this.label_color97.BackColor = Color.Chocolate;
  901. }
  902. this.text_coil98.Text = dt.Rows[i]["COIL_ID98"].ToString();
  903. if (this.text_coil98.Text != "" && this.text_coil98.Text.Length == 13 && this.text_coil98.Text.Contains("R"))
  904. {
  905. this.label_color98.BackColor = Color.Green;
  906. }
  907. else
  908. {
  909. this.label_color98.BackColor = Color.Chocolate;
  910. }
  911. }
  912. return;
  913. }
  914. catch (Exception ex)
  915. {
  916. MessageBox.Show("系统更新,请重启系统!");
  917. return;
  918. }
  919. }
  920. private void UIK050110_Load(object sender, EventArgs e)
  921. {
  922. this.label_color1.BackColor = Color.Chocolate;
  923. this.label_color2.BackColor = Color.Chocolate;
  924. this.label_color3.BackColor = Color.Chocolate;
  925. this.label_color4.BackColor = Color.Chocolate;
  926. this.label_color5.BackColor = Color.Chocolate;
  927. this.label_color6.BackColor = Color.Chocolate;
  928. this.label_color7.BackColor = Color.Chocolate;
  929. this.label_color8.BackColor = Color.Chocolate;
  930. this.label_color9.BackColor = Color.Chocolate;
  931. this.label_color10.BackColor = Color.Chocolate;
  932. this.label_color11.BackColor = Color.Chocolate;
  933. this.label_color12.BackColor = Color.Chocolate;
  934. this.label_color13.BackColor = Color.Chocolate;
  935. this.label_color14.BackColor = Color.Chocolate;
  936. this.label_color15.BackColor = Color.Chocolate;
  937. this.label_color16.BackColor = Color.Chocolate;
  938. this.label_color17.BackColor = Color.Chocolate;
  939. this.label_color18.BackColor = Color.Chocolate;
  940. this.label_color19.BackColor = Color.Chocolate;
  941. this.label_color20.BackColor = Color.Chocolate;
  942. this.label_color22.BackColor = Color.Chocolate;
  943. this.label_color23.BackColor = Color.Chocolate;
  944. this.label_color24.BackColor = Color.Chocolate;
  945. this.label_color25.BackColor = Color.Chocolate;
  946. this.label_color26.BackColor = Color.Chocolate;
  947. this.label_color27.BackColor = Color.Chocolate;
  948. this.label_color28.BackColor = Color.Chocolate;
  949. this.label_color29.BackColor = Color.Chocolate;
  950. this.label_color21.BackColor = Color.Chocolate;
  951. this.label_color30.BackColor = Color.Chocolate;
  952. this.label_color31.BackColor = Color.Chocolate;
  953. this.label_color32.BackColor = Color.Chocolate;
  954. this.label_color33.BackColor = Color.Chocolate;
  955. this.label_color34.BackColor = Color.Chocolate;
  956. this.label_color35.BackColor = Color.Chocolate;
  957. this.label_color36.BackColor = Color.Chocolate;
  958. this.label_color37.BackColor = Color.Chocolate;
  959. this.label_color38.BackColor = Color.Chocolate;
  960. this.label_color39.BackColor = Color.Chocolate;
  961. this.label_color41.BackColor = Color.Chocolate;
  962. this.label_color40.BackColor = Color.Chocolate;
  963. this.label_color42.BackColor = Color.Chocolate;
  964. this.label_color43.BackColor = Color.Chocolate;
  965. this.label_color44.BackColor = Color.Chocolate;
  966. this.label_color47.BackColor = Color.Chocolate;
  967. this.label_color45.BackColor = Color.Chocolate;
  968. this.label_color46.BackColor = Color.Chocolate;
  969. this.label_color48.BackColor = Color.Chocolate;
  970. this.label_color49.BackColor = Color.Chocolate;
  971. this.label_color50.BackColor = Color.Chocolate;
  972. this.label_color51.BackColor = Color.Chocolate;
  973. this.label_color52.BackColor = Color.Chocolate;
  974. this.label_color53.BackColor = Color.Chocolate;
  975. this.label_color54.BackColor = Color.Chocolate;
  976. this.label_color55.BackColor = Color.Chocolate;
  977. this.label_color56.BackColor = Color.Chocolate;
  978. this.label_color57.BackColor = Color.Chocolate;
  979. this.label_color58.BackColor = Color.Chocolate;
  980. this.label_color59.BackColor = Color.Chocolate;
  981. this.label_color60.BackColor = Color.Chocolate;
  982. this.label_color61.BackColor = Color.Chocolate;
  983. this.label_color62.BackColor = Color.Chocolate;
  984. this.label_color63.BackColor = Color.Chocolate;
  985. this.label_color64.BackColor = Color.Chocolate;
  986. this.label_color65.BackColor = Color.Chocolate;
  987. this.label_color66.BackColor = Color.Chocolate;
  988. this.label_color67.BackColor = Color.Chocolate;
  989. this.label_color68.BackColor = Color.Chocolate;
  990. this.label_color69.BackColor = Color.Chocolate;
  991. this.label_color70.BackColor = Color.Chocolate;
  992. this.label_color81.BackColor = Color.Chocolate;
  993. this.label_color82.BackColor = Color.Chocolate;
  994. this.label_color73.BackColor = Color.Chocolate;
  995. this.label_color74.BackColor = Color.Chocolate;
  996. this.label_color75.BackColor = Color.Chocolate;
  997. this.label_color76.BackColor = Color.Chocolate;
  998. this.label_color77.BackColor = Color.Chocolate;
  999. this.label_color78.BackColor = Color.Chocolate;
  1000. this.label_color79.BackColor = Color.Chocolate;
  1001. this.label_color83.BackColor = Color.Chocolate;
  1002. this.label_color80.BackColor = Color.Chocolate;
  1003. this.label_color84.BackColor = Color.Chocolate;
  1004. this.label_color85.BackColor = Color.Chocolate;
  1005. this.label_color86.BackColor = Color.Chocolate;
  1006. this.label_color87.BackColor = Color.Chocolate;
  1007. this.label_color88.BackColor = Color.Chocolate;
  1008. this.label_color89.BackColor = Color.Chocolate;
  1009. this.label_color90.BackColor = Color.Chocolate;
  1010. this.label_color91.BackColor = Color.Chocolate;
  1011. this.label_color92.BackColor = Color.Chocolate;
  1012. this.label_color93.BackColor = Color.Chocolate;
  1013. this.label_color94.BackColor = Color.Chocolate;
  1014. this.label_color95.BackColor = Color.Chocolate;
  1015. this.label_color96.BackColor = Color.Chocolate;
  1016. this.label_color97.BackColor = Color.Chocolate;
  1017. this.label_color98.BackColor = Color.Chocolate;
  1018. }
  1019. }
  1020. }