QCM030719.cs 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  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 CoreFS.CA06;
  10. using System.Collections;
  11. using Infragistics.Win.UltraWinGrid;
  12. using Core.LZMes.Client.QCM.QCM03;
  13. using System.Diagnostics;
  14. namespace Core.LZMes.Client.QCM
  15. {
  16. public partial class QCM030719 : FrmBase
  17. {
  18. private string judge_type = "";//用于区分1检测中心和2轧钢厂
  19. public QCM030719()
  20. {
  21. InitializeComponent();
  22. }
  23. public override void ToolBar_Click(object sender, string ToolbarKey)
  24. {
  25. switch (ToolbarKey)
  26. {
  27. case "Query":
  28. this.DoQuery();
  29. break;
  30. case "Exit":
  31. this.Close();
  32. break;
  33. case "Unlock":
  34. this.Judge();
  35. break;
  36. case "Export":
  37. this.DoExport();
  38. break;
  39. }
  40. }
  41. private void Judge()
  42. {
  43. if (this.ultraGrid9.Selected.Rows.Count == 0)
  44. this.ultraGrid9.ActiveRow.Selected = true;
  45. List<UltraGridRow> lists = new List<UltraGridRow>();
  46. if (comboBox1.Text.Trim().ToString() == "")
  47. {
  48. MessageBox.Show("请选择异常材处置放向!");
  49. return;
  50. }
  51. if (comboBox1.Text.Trim().ToString() == "放行")
  52. {
  53. if (MessageBox.Show(this, "是否放行处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  54. {
  55. return;
  56. }
  57. }
  58. else if (comboBox1.Text.Trim().ToString() == "复样")
  59. {
  60. if (MessageBox.Show(this, "是否复样处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  61. {
  62. return;
  63. }
  64. }
  65. else if (comboBox1.Text.Trim().ToString() == "修磨")
  66. {
  67. if (MessageBox.Show(this, "是否修磨处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  68. {
  69. return;
  70. }
  71. }
  72. else if (comboBox1.Text.Trim().ToString() == "改尺")
  73. {
  74. if (MessageBox.Show(this, "是否改尺处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  75. {
  76. return;
  77. }
  78. }
  79. else if (comboBox1.Text.Trim().ToString() == "判次")
  80. {
  81. if (MessageBox.Show(this, "是否判次处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  82. {
  83. return;
  84. }
  85. }
  86. else if (comboBox1.Text.Trim().ToString() == "判废")
  87. {
  88. if (MessageBox.Show(this, "是否判废处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  89. {
  90. return;
  91. }
  92. }
  93. else if (comboBox1.Text.Trim().ToString() == "脱单")
  94. {
  95. if (MessageBox.Show(this, "是否脱单处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  96. {
  97. return;
  98. }
  99. }
  100. else if (comboBox1.Text.Trim().ToString() == "件件取样")
  101. {
  102. if (MessageBox.Show(this, "是否件件取样处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  103. {
  104. return;
  105. }
  106. }
  107. else if (comboBox1.Text.Trim().ToString() == "解锁")
  108. {
  109. if (MessageBox.Show(this, "是否解锁处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  110. {
  111. return;
  112. }
  113. }
  114. else if (comboBox1.Text.Trim().ToString() == "待判")
  115. {
  116. if (MessageBox.Show(this, "是否待判处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  117. {
  118. return;
  119. }
  120. }
  121. else if (comboBox1.Text.Trim().ToString() == "改判")
  122. {
  123. if (textBox3.Text.ToString() == "")
  124. {
  125. MessageBox.Show("请选择改判订单!");
  126. return;
  127. }
  128. if (MessageBox.Show(this, "是否改判处置?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
  129. {
  130. return;
  131. }
  132. }
  133. foreach (UltraGridRow ugr in this.ultraGrid9.Rows)
  134. {
  135. if (ugr.Cells["CHECK"].Text.ToString() == "True")
  136. {
  137. ArrayList al = new ArrayList();
  138. if (comboBox1.Text.Trim().ToString() != "改判")
  139. {
  140. string material = ugr.Cells["MATERIAL_NO"].Value.ToString();
  141. string lock_seq = ugr.Cells["LOCK_SEQ"].Value.ToString();
  142. string lock_type_code = ugr.Cells["LOCK_TYPE_CODE"].Value.ToString();
  143. string prodline = ugr.Cells["PLINE_CODE"].Value.ToString();
  144. string unlock_type_code = "";
  145. if (lock_type_code == "C" || lock_type_code == "P")
  146. {
  147. if (comboBox1.Text.Trim().ToString() == "放行")
  148. {
  149. unlock_type_code = "0";
  150. }
  151. else if (comboBox1.Text.Trim().ToString() == "复样")
  152. {
  153. unlock_type_code = "1";
  154. }
  155. else if (comboBox1.Text.Trim().ToString() == "判次")
  156. {
  157. unlock_type_code = "4";
  158. }
  159. else if (comboBox1.Text.Trim().ToString() == "判废")
  160. {
  161. unlock_type_code = "5";
  162. }
  163. else if (comboBox1.Text.Trim().ToString() == "脱单")
  164. {
  165. unlock_type_code = "6";
  166. }
  167. else if (comboBox1.Text.Trim().ToString() == "件件取样")
  168. {
  169. unlock_type_code = "8";
  170. }
  171. else if (comboBox1.Text.Trim().ToString() == "解锁")
  172. {
  173. unlock_type_code = "9";
  174. }
  175. else if (comboBox1.Text.Trim().ToString() == "待判")
  176. {
  177. unlock_type_code = "10";
  178. }
  179. string unlock_memo = textBox2.Text.Trim().ToString();
  180. string username = this.UserInfo.GetUserName();
  181. string lock_id = ugr.Cells["LOCK_ID"].Value.ToString();
  182. al.Add(material);
  183. al.Add(lock_seq);
  184. al.Add(lock_type_code);
  185. al.Add(unlock_type_code);
  186. al.Add(unlock_memo);
  187. al.Add(username);
  188. al.Add(lock_id);
  189. if (ultraCombo1.Text.ToString() == "")
  190. { al.Add(""); }
  191. else
  192. {
  193. al.Add(ultraCombo1.Value.ToString());
  194. }
  195. al.Add(prodline);
  196. CoreClientParam ccp = new CoreClientParam();
  197. ccp.ServerName = "QCM.QCM03.QCM0307.QcmRejudgeApplyServiceImpl";
  198. ccp.MethodName = "doInformationSure";
  199. ccp.ServerParams = new object[] { al };
  200. ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  201. if (ccp.ReturnCode == -1)
  202. {
  203. return;
  204. }
  205. lists.Add(ugr);
  206. }
  207. else
  208. {
  209. if (comboBox1.Text.Trim().ToString() == "放行")
  210. {
  211. unlock_type_code = "0";
  212. }
  213. else if (comboBox1.Text.Trim().ToString() == "修磨")
  214. {
  215. unlock_type_code = "2";
  216. }
  217. else if (comboBox1.Text.Trim().ToString() == "改尺")
  218. {
  219. unlock_type_code = "3";
  220. }
  221. else if (comboBox1.Text.Trim().ToString() == "判次")
  222. {
  223. unlock_type_code = "4";
  224. }
  225. else if (comboBox1.Text.Trim().ToString() == "判废")
  226. {
  227. unlock_type_code = "5";
  228. }
  229. else if (comboBox1.Text.Trim().ToString() == "脱单")
  230. {
  231. unlock_type_code = "6";
  232. }
  233. else if (comboBox1.Text.Trim().ToString() == "解锁")
  234. {
  235. unlock_type_code = "9";
  236. }
  237. else if (comboBox1.Text.Trim().ToString() == "待判")
  238. {
  239. unlock_type_code = "10";
  240. }
  241. string unlock_memo = textBox2.Text.Trim().ToString();
  242. string username = this.UserInfo.GetUserName();
  243. string lock_id = ugr.Cells["LOCK_ID"].Value.ToString();
  244. al.Add(material);
  245. al.Add(lock_seq);
  246. al.Add(lock_type_code);
  247. al.Add(unlock_type_code);
  248. al.Add(unlock_memo);
  249. al.Add(username);
  250. al.Add(lock_id);
  251. if (ultraCombo1.Text.ToString() == "")
  252. { al.Add(""); }
  253. else
  254. {
  255. al.Add(ultraCombo1.Value.ToString());
  256. }
  257. CoreClientParam ccp = new CoreClientParam();
  258. ccp.ServerName = "QCM.QCM03.QCM0307.QcmRejudgeApplyServiceImpl";
  259. ccp.MethodName = "doInformationSureH";
  260. ccp.ServerParams = new object[] { al };
  261. ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  262. if (ccp.ReturnCode == -1)
  263. {
  264. return;
  265. }
  266. lists.Add(ugr);
  267. }
  268. }
  269. else
  270. {
  271. string material = ugr.Cells["MATERIAL_NO"].Value.ToString();
  272. string lock_seq = ugr.Cells["LOCK_SEQ"].Value.ToString();
  273. string lock_type_code = ugr.Cells["LOCK_TYPE_CODE"].Value.ToString();
  274. string unlock_type_code = "7";
  275. string unlock_memo = textBox2.Text.Trim().ToString();
  276. string username = this.UserInfo.GetUserName();
  277. string lock_id = ugr.Cells["LOCK_ID"].Value.ToString();
  278. al.Add(material);
  279. al.Add(lock_seq);
  280. al.Add(lock_type_code);
  281. al.Add(unlock_type_code);
  282. al.Add(unlock_memo);
  283. al.Add(username);
  284. al.Add(lock_id);
  285. al.Add(textBox3.Text.ToString());
  286. if (ultraCombo1.Text.ToString() == "")
  287. { al.Add(""); }
  288. else
  289. {
  290. al.Add(ultraCombo1.Value.ToString());
  291. }
  292. al.Add(txt_gp_tradeno.Text.ToString());
  293. CoreClientParam ccp = new CoreClientParam();
  294. ccp.ServerName = "QCM.QCM03.QCM0307.QcmRejudgeApplyServiceImpl";
  295. ccp.MethodName = "doInformationGp";
  296. ccp.ServerParams = new object[] { al };
  297. ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  298. if (ccp.ReturnCode == -1)
  299. {
  300. return;
  301. }
  302. lists.Add(ugr);
  303. }
  304. }
  305. }
  306. for (int i = 0; i < lists.Count; i++)
  307. {
  308. lists[i].Delete(false);
  309. }
  310. MessageBox.Show("异常处置成功!");
  311. }
  312. private void DoQuery()
  313. {
  314. if (this.ultraTabControl1.Tabs[0].Selected) //待判信息
  315. {
  316. DoQueryMe();
  317. }
  318. }
  319. private void DoQueryMe()
  320. {
  321. try
  322. {
  323. this.dataSet1.Clear();
  324. this.dataSet8.Clear();
  325. string ebatchno = "";
  326. string sbatchno = BatchNo.Text.Trim();
  327. if (textBox2.Text.ToString() == "")
  328. {
  329. ebatchno = this.BatchNo.Text.Trim();
  330. }
  331. else
  332. {
  333. ebatchno = BatchNo1.Text.Trim();
  334. }
  335. string orderno = this.OrderNo.Text.Trim();
  336. string psc = this.PscDesc.Text.Trim();
  337. string prodline = this.comboBox3.Text.ToString();
  338. CoreClientParam ccp = new CoreClientParam();
  339. ccp.ServerName = "QCM.QCM03.QCM0307.QcmRejudgeApplyServiceImpl";
  340. if (String.IsNullOrEmpty(judge_type))
  341. {
  342. ccp.MethodName = "getInformation";
  343. ccp.ServerParams = new object[] { this.dateTimePicker1.Value.ToString("yyyyMMdd"), this.dateTimePicker2.Value.ToString("yyyyMMdd"), sbatchno, ebatchno, orderno, psc, "0", prodline };
  344. }
  345. else
  346. {
  347. ccp.MethodName = "getInformation2";
  348. ccp.ServerParams = new object[] { this.dateTimePicker1.Value.ToString("yyyyMMdd"), this.dateTimePicker2.Value.ToString("yyyyMMdd"), sbatchno, ebatchno, orderno, psc, "0", prodline, judge_type };
  349. }
  350. ccp.SourceDataTable = this.dataSet1.Tables[0];
  351. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  352. ccp = new CoreClientParam();
  353. ccp.ServerName = "QCM.QCM03.QCM0305.QcmJudgeSurfaceServiceImpl";
  354. ccp.MethodName = "findFlawDataJ";
  355. ccp.ServerParams = new object[] { prodline };
  356. ccp.SourceDataTable = this.dataSet8.Tables[0];
  357. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  358. this.ultraCombo1.DataSource = ccp.SourceDataTable;
  359. }
  360. catch (Exception ex)
  361. {
  362. System.Diagnostics.Debug.WriteLine(ex.ToString());
  363. MessageBox.Show("系统出错,请联系管理人员", "警告");
  364. }
  365. }
  366. private void label1_Click(object sender, EventArgs e)
  367. {
  368. }
  369. private void panel4_Paint(object sender, PaintEventArgs e)
  370. {
  371. }
  372. private void panel2_Paint(object sender, PaintEventArgs e)
  373. {
  374. }
  375. private void DoQueryC()
  376. {
  377. try
  378. {
  379. UltraGridRow ugr = this.ultraGrid9.ActiveRow;
  380. if (ugr == null)
  381. return;
  382. this.dataSet4.Clear();
  383. string design_key = ugr.Cells["design_key"].Value.ToString();
  384. string smp_no = ugr.Cells["smp_no"].Value.ToString();
  385. CoreClientParam ccp = new CoreClientParam();
  386. ccp.ServerName = "QCM.QCM03.QCM0301.QcmJhyElementsServiceImpl";
  387. ccp.MethodName = "GetChemeInfo";
  388. ccp.ServerParams = new object[] { design_key, smp_no};
  389. ccp.SourceDataTable = this.dataSet4.Tables[0];
  390. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  391. }
  392. catch (Exception ex)
  393. {
  394. System.Diagnostics.Debug.WriteLine(ex.ToString());
  395. MessageBox.Show("系统出错,请联系管理人员", "警告");
  396. }
  397. }
  398. private void ultraGrid9_DoubleClickCell(object sender, DoubleClickCellEventArgs e)
  399. {
  400. UltraGridRow ugr = e.Cell.Row;
  401. string lock_id = ugr.Cells["LOCK_ID"].Value.ToString();
  402. if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "F")
  403. {
  404. QCM030705 dlg = new QCM030705();
  405. dlg.lock_id = lock_id;
  406. dlg.ob = this.ob;
  407. dlg.ShowDialog();
  408. }
  409. else if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "D")
  410. {
  411. QCM030704 dlg = new QCM030704();
  412. dlg.lock_id = lock_id;
  413. dlg.ob = this.ob;
  414. dlg.ShowDialog();
  415. }
  416. else if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "C")
  417. {
  418. QCM030701 dlg = new QCM030701();
  419. dlg.lock_id = lock_id;
  420. dlg.ob = this.ob;
  421. dlg.ShowDialog();
  422. }
  423. else if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "P")
  424. {
  425. QCM030702 dlg = new QCM030702();
  426. dlg.lock_id = lock_id;
  427. dlg.ob = this.ob;
  428. dlg.ShowDialog();
  429. }
  430. else if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "S")
  431. {
  432. QCM030716 dlg = new QCM030716();
  433. dlg.lock_id = lock_id;
  434. dlg.ob = this.ob;
  435. dlg.ShowDialog();
  436. }
  437. }
  438. private void button1_Click(object sender, EventArgs e)
  439. {
  440. UltraGridRow ugr = this.ultraGrid9.ActiveRow;
  441. if (ugr == null)
  442. return;
  443. string material_no = ugr.Cells["MATERIAL_NO"].Text.ToString();
  444. string std_code = ugr.Cells["STD_CODE"].Text.ToString();
  445. string steel_code = ugr.Cells["STEEL_CODE"].Text.ToString();
  446. string delivery_state_code = ugr.Cells["DELIVERY_STATE_DESC"].Text.ToString();
  447. string thick = ugr.Cells["THICK"].Text.ToString();
  448. string PSC = ugr.Cells["PSC"].Text.ToString();
  449. string WIDTH = ugr.Cells["WIDTH"].Text.ToString();
  450. string LENGTH = ugr.Cells["LENGTH"].Text.ToString();
  451. string PRODLINE = ugr.Cells["PLINE_CODE"].Text.ToString();
  452. QCM030709 dlg = new QCM030709();
  453. dlg.MATERIAL_NO = material_no;
  454. dlg.STD_CODE = std_code;
  455. dlg.STEELCODE = steel_code;
  456. dlg.DELIVERY_STATE_CODE = delivery_state_code;
  457. dlg.HEIGHT = thick;
  458. dlg.PSC = PSC;
  459. dlg.WIDTH = WIDTH;
  460. dlg.LENGTH = LENGTH;
  461. dlg.PROD_LINE = PRODLINE;
  462. dlg.ob = this.ob;
  463. dlg.ShowDialog();
  464. this.textBox3.Text = dlg.orderno;
  465. this.txt_gp_tradeno.Text = dlg.gp_tradeno;
  466. }
  467. private void QCM0307_Load(object sender, EventArgs e)
  468. {
  469. this.comboBox3.SelectedIndex = 0;
  470. this.ultraGrid9.DisplayLayout.Override.FilterUIType = FilterUIType.HeaderIcons;
  471. this.dateTimePicker1.Value = System.DateTime.Now.AddDays(-7);
  472. judge_type = String.IsNullOrEmpty(this.CustomInfo) ? "" : this.CustomInfo;
  473. DoQuery();
  474. }
  475. private void ultraGrid2_DoubleClickCell(object sender, DoubleClickCellEventArgs e)
  476. {
  477. UltraGridRow ugr = e.Cell.Row;
  478. string lock_id = ugr.Cells["LOCK_ID"].Value.ToString();
  479. if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "F")
  480. {
  481. QCM030705 dlg = new QCM030705();
  482. dlg.lock_id = lock_id;
  483. dlg.ob = this.ob;
  484. dlg.ShowDialog();
  485. }
  486. else if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "D")
  487. {
  488. QCM030704 dlg = new QCM030704();
  489. dlg.lock_id = lock_id;
  490. dlg.ob = this.ob;
  491. dlg.ShowDialog();
  492. }
  493. else if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "C")
  494. {
  495. QCM030701 dlg = new QCM030701();
  496. dlg.lock_id = lock_id;
  497. dlg.ob = this.ob;
  498. dlg.ShowDialog();
  499. }
  500. else if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "P")
  501. {
  502. QCM030702 dlg = new QCM030702();
  503. dlg.lock_id = lock_id;
  504. dlg.ob = this.ob;
  505. dlg.ShowDialog();
  506. }
  507. else if (ugr.Cells["LOCK_TYPE_CODE"].Value.ToString() == "S")
  508. {
  509. QCM030703 dlg = new QCM030703();
  510. dlg.lock_id = lock_id;
  511. dlg.ob = this.ob;
  512. dlg.ShowDialog();
  513. }
  514. }
  515. private void ultraTabControl1_Click(object sender, EventArgs e)
  516. {
  517. if (this.ultraTabControl1.Tabs[1].Selected) //判定记录
  518. {
  519. this.label9.Text = "处置时间";
  520. }
  521. if (this.ultraTabControl1.Tabs[0].Selected) //判定记录
  522. {
  523. this.label9.Text = "封锁时间";
  524. }
  525. }
  526. private void DoExport()
  527. {
  528. try
  529. {
  530. if (this.ultraGrid9.Rows.Count == 0)
  531. {
  532. MessageBox.Show("没有可以导出的数据", "提示");
  533. return;
  534. }
  535. if (this.saveFileDialog1.ShowDialog(this) == DialogResult.OK)
  536. {
  537. string fName = this.saveFileDialog1.FileName;
  538. this.ultraGridExcelExporter1.Export(this.ultraGrid9, fName);
  539. Process.Start(fName);
  540. }
  541. }
  542. catch (Exception ex)
  543. {
  544. System.Diagnostics.Debug.WriteLine(ex.ToString());
  545. }
  546. }
  547. private void label11_Click(object sender, EventArgs e)
  548. {
  549. //获取勾选的批次
  550. ultraGrid9.UpdateData();
  551. DataRow[] rows = dataTable1.Copy().Select("CHECK = 'True'");
  552. if (this.ultraGrid9.Rows.Count == 0 || rows.Length == 0)
  553. {
  554. return;
  555. }
  556. DataRow[] rows2 = rows.CopyToDataTable().Select("BATCH_NO = '" + rows[0]["BATCH_NO"].ToString() + "'");
  557. if (rows2.Length != rows.Length)
  558. {
  559. MessageBox.Show("选择了多个批次信息!");
  560. return;
  561. }
  562. foreach (UltraGridRow ugr in this.ultraGrid9.Rows)
  563. {
  564. if (ugr.Cells["BATCH_NO"].Text.ToString() == rows[0]["BATCH_NO"].ToString())
  565. {
  566. ugr.Cells["CHECK"].Value = "True";
  567. }
  568. }
  569. }
  570. private void checkBox2_CheckedChanged(object sender, EventArgs e)
  571. {
  572. foreach (UltraGridRow ugr in this.ultraGrid9.Rows.Where(p => p.IsFilteredOut == false).ToList())
  573. {
  574. if (checkBox2.Checked)
  575. {
  576. ugr.Cells["CHECK"].Value = "True";
  577. }
  578. else
  579. {
  580. ugr.Cells["CHECK"].Value = "False";
  581. }
  582. }
  583. }
  584. }
  585. }