EChart_ParticlesComposition.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. using DevExpress.Utils;
  2. using DevExpress.XtraCharts;
  3. using NPOI.Util;
  4. using OTSIncAReportApp.OTSRstMgrFunction;
  5. using OTSIncAReportApp.OTSSampleReportInfo;
  6. using OTSIncAReportApp.SysMgrTools;
  7. using OTSIncAReportGrids;
  8. using System;
  9. using System.Collections;
  10. using System.Collections.Generic;
  11. using System.Data;
  12. using System.Linq;
  13. using System.Windows.Forms;
  14. namespace OTSIncAReportApp.Control_ECharts
  15. {
  16. /// <summary>
  17. /// 各图char相关模块
  18. /// </summary>
  19. public partial class EChart_ParticlesComposition : UserControl
  20. {
  21. Hashtable table;
  22. #region 图表相关变量
  23. //y轴名称
  24. public string m_str_AxisY { get; set; }
  25. //数据图类型:常用夹杂物分类CommonlyUsedClassify ,颗粒成分PComponent,元素成分EComponent,颗粒尺寸分布PSize
  26. string ComSel { get; set; }
  27. public bool Report { get; set; }
  28. frmReportApp m_ReportApp;
  29. private frmReportConditionChoose m_conditionChoose;
  30. private ResultDataMgr m_DataMgr;
  31. private List<DataTable> prListData = new List<DataTable>();
  32. private List<string> prListString = new List<string>();
  33. #endregion
  34. #region 窗体加载及构造函数
  35. public EChart_ParticlesComposition(frmReportApp ReportApp, string comsel)
  36. {
  37. ComSel = comsel;
  38. m_ReportApp = ReportApp;
  39. m_conditionChoose = ReportApp.m_conditionChoose;
  40. m_DataMgr = ReportApp.m_rstDataMgr;
  41. InitializeComponent();
  42. //国际化
  43. Language lan = new Language();
  44. table = lan.GetNameTable("CompositionDistributionGrid");
  45. }
  46. private void EChart_ParticlesComposition_Load(object sender, EventArgs e)
  47. {
  48. string sou = "";
  49. int sel = 0;//选择颗粒范围(0为全部颗粒1为选择颗粒)
  50. if (Report)
  51. {
  52. sou = m_DataMgr.ResultFilesList[m_DataMgr.GetWorkingResultId()].anotherFileName.ToString();
  53. sel = 0;
  54. }
  55. else
  56. {
  57. sou = m_conditionChoose.m_conditionData.GetPropItemDisplayValueByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE).ToString();
  58. sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
  59. }
  60. Report = false;
  61. if (m_ReportApp.more)
  62. {
  63. m_ReportApp.trans = false;
  64. }
  65. else
  66. {
  67. m_ReportApp.trans = true;
  68. }
  69. m_ReportApp.more = true;
  70. List<DataTable> list_dt = GetListJsonStr();
  71. prListData = list_dt.Copy();
  72. prListString.Clear();
  73. for (int i = 0; i < list_dt.Count; i++)
  74. {
  75. ResultFile resultFile = m_DataMgr.ResultFilesList.Find(s => s.anotherFileName == sou.Split('+')[i]);
  76. string str = resultFile.anotherFileName;
  77. prListString.Add(str);
  78. // 假设你已经有一个 ChartControl 实例,并且已经添加了一个饼图 Series
  79. Series series = new Series(str, ViewType.Bar);
  80. for (int a = 0; a < list_dt[i].Rows.Count; a++)
  81. {
  82. string name = list_dt[i].Rows[a]["name"].ToString();
  83. string Cunt = list_dt[i].Rows[a]["Cunt"].ToString();
  84. series.Points.Add(new SeriesPoint(name, Cunt));
  85. }
  86. series.LabelsVisibility = DefaultBoolean.True;
  87. series.Label.TextPattern = "{V}";
  88. chartControl1.Series.Add(series);
  89. }
  90. chartControl1.Legend.Visibility = DefaultBoolean.False;
  91. chartControl1.Refresh();
  92. panel1.Dock = DockStyle.Fill;
  93. chartControl1.Dock = DockStyle.Fill;
  94. }
  95. #endregion
  96. #region 获取单数据源
  97. private DataTable ClassificationIntegration(string path, int sel)
  98. {
  99. //------------------加载模块,获取数据-------------------------------------------------
  100. ResultGrid ls_resultgrid = new ResultGrid(m_ReportApp);
  101. Dictionary<string, string> keyValues_ResultGrid = ls_resultgrid.GetData_ResultGrid_Report();
  102. //------------------加载模块,获取数据结束----------------------------------------------
  103. Dictionary<string, string>.Enumerator en = keyValues_ResultGrid.GetEnumerator();
  104. string str_SCZS = "";
  105. keyValues_ResultGrid.TryGetValue(ls_resultgrid.table["col5"].ToString(), out str_SCZS);//视场总数
  106. DataOperation.DataAccess.ParticleData particledata = new DataOperation.DataAccess.ParticleData(path);
  107. DataTable data = new DataTable();
  108. data = particledata.GetAreaByAllIncA("");//获取所有分类面积和数量信息
  109. if (data.Rows.Count == 0)
  110. {
  111. return data;
  112. }
  113. DataTable AreaInformationOfAllElements = ConSolidateInvalid(data);
  114. DataTable AllAnalysisDetails = new DataTable();
  115. AllAnalysisDetails.Columns.Add("Name");
  116. AllAnalysisDetails.Columns.Add("TypeId");
  117. AllAnalysisDetails.Columns.Add("Area", typeof(double));
  118. AllAnalysisDetails.Columns.Add("Class");
  119. AllAnalysisDetails.Columns.Add("Cunt", typeof(double));
  120. for (int i = 0; i < AreaInformationOfAllElements.Rows.Count; i++)
  121. {
  122. DataRow dr2 = AllAnalysisDetails.NewRow();
  123. dr2["Name"] = AreaInformationOfAllElements.Rows[i]["TypeName"].ToString();
  124. dr2["Area"] = Convert.ToDouble(AreaInformationOfAllElements.Rows[i]["ar"]);
  125. dr2["TypeId"] = AreaInformationOfAllElements.Rows[i]["TypeId"].ToString();
  126. dr2["Cunt"] = Convert.ToDouble(AreaInformationOfAllElements.Rows[i]["con"]);
  127. dr2["Class"] = AreaInformationOfAllElements.Rows[i]["GroupName"].ToString();
  128. AllAnalysisDetails.Rows.Add(dr2);
  129. }
  130. //按照list列表进行物质类排序,物质类中的元素分类按照面积的大小进行排序
  131. List<string> ClassName = new List<string>();
  132. DataTable getClass_dt = particledata.GetAllClass();
  133. for (int i = 0; i < getClass_dt.Rows.Count; i++)
  134. {
  135. ClassName.Add(getClass_dt.Rows[i]["GroupName"].ToString());
  136. }
  137. DataTable AreaRatio = new DataTable();
  138. AreaRatio.TableName = "InclusionAreaRatio";
  139. AreaRatio.Columns.Add("e1");
  140. AreaRatio.Columns.Add("e2");
  141. AreaRatio.Columns.Add("e3", typeof(double));
  142. AreaRatio.Columns.Add("e4");
  143. AreaRatio.Columns.Add("e5");
  144. AreaRatio.Columns.Add("Cunt", typeof(int));
  145. //获取夹杂物的总面积用于计算夹杂物类别的占比(gridview最后一个固定是未识别颗粒,要排除未识别颗粒所以for循环至grid view长度减一)
  146. double totalInclusionArea = 0;
  147. totalInclusionArea = Convert.ToDouble(decimal.Parse(AllAnalysisDetails.Compute("sum(Area)", "").ToString()));
  148. for (int i = 0; i < AllAnalysisDetails.Rows.Count; i++)
  149. {
  150. DataRow dr2 = AreaRatio.NewRow();
  151. dr2["e1"] = AllAnalysisDetails.Rows[i]["Class"].ToString();
  152. dr2["e2"] = AllAnalysisDetails.Rows[i]["Name"].ToString();
  153. dr2["e3"] = Convert.ToDouble(AllAnalysisDetails.Rows[i]["Area"]);
  154. dr2["e4"] = Math.Round((Convert.ToDouble(AllAnalysisDetails.Rows[i]["Area"]) / totalInclusionArea) * 100, 2);
  155. dr2["e5"] = Math.Round((Convert.ToDouble(AllAnalysisDetails.Rows[i]["Area"]) / Convert.ToDouble(str_SCZS)) * 100, 4);
  156. dr2["Cunt"] = AllAnalysisDetails.Rows[i]["Cunt"].ToString();
  157. AreaRatio.Rows.Add(dr2);
  158. }
  159. DataTable AreaRatio_dt = AreaRatio.Copy();
  160. AreaRatio_dt.Clear();
  161. for (int i = 0; i < ClassName.Count(); i++)
  162. {
  163. DataTable dt = AreaRatio.Copy();
  164. dt.Clear();
  165. for (int a = 0; a < AreaRatio.Rows.Count; a++)
  166. {
  167. if (AreaRatio.Rows[a]["e1"].ToString() == ClassName[i].ToString())
  168. {
  169. dt.Rows.Add(AreaRatio.Rows[a].ItemArray);
  170. }
  171. }
  172. DataView dv = dt.DefaultView;
  173. dv.Sort = "e3 DESC";
  174. DataTable dt_Element = dv.ToTable();
  175. for (int a = 0; a < dt_Element.Rows.Count; a++)
  176. {
  177. AreaRatio_dt.Rows.Add(dt_Element.Rows[a].ItemArray);
  178. }
  179. }
  180. DataTable AllAnalysisDetails1 = AreaRatio_dt.Copy();
  181. AllAnalysisDetails1.Clear();
  182. for (int i = 0; i < ClassName.Count; i++)
  183. {
  184. DataTable dt = AreaRatio_dt.Copy();
  185. dt.Clear();
  186. for (int a = 0; a < AreaRatio_dt.Rows.Count; a++)
  187. {
  188. if (AreaRatio_dt.Rows[a]["e1"].ToString() == ClassName[i].ToString())
  189. {
  190. dt.Rows.Add(AreaRatio_dt.Rows[a].ItemArray);
  191. }
  192. }
  193. if (dt.Rows.Count > 0)
  194. {
  195. double totalInclusionArea2 = Convert.ToDouble(decimal.Parse(AreaRatio_dt.Compute("sum(e3)", "").ToString()));
  196. double Area = Convert.ToDouble(decimal.Parse(dt.Compute("sum(e3)", "").ToString()));
  197. int cunt = Convert.ToInt32(decimal.Parse(dt.Compute("sum(Cunt)", "").ToString()));
  198. DataRow dr3 = AllAnalysisDetails1.NewRow();
  199. dr3["e1"] = ClassName[i].ToString();
  200. dr3["e3"] = Math.Round(Area, 2);
  201. dr3["e4"] = Math.Round((Convert.ToDouble(dt.Rows[0]["e3"]) / totalInclusionArea2) * 100, 2);
  202. dr3["e5"] = Math.Round((Convert.ToDouble(dt.Rows[0]["e3"]) / Convert.ToDouble(str_SCZS)) * 100, 4);
  203. dr3["Cunt"] = cunt;
  204. AllAnalysisDetails1.Rows.Add(dr3);
  205. }
  206. }
  207. return AllAnalysisDetails1;
  208. }
  209. private DataTable ConSolidateInvalid(DataTable dt)
  210. {
  211. DataTable dt_invalid = dt.Clone();
  212. DataTable dt_no_invalid = dt.Clone();
  213. for (int i = 0; i < dt.Rows.Count; i++)
  214. {
  215. if (dt.Rows[i]["TypeName"].ToString() == "Invalid")
  216. {
  217. dt_invalid.Rows.Add(dt.Rows[i].ItemArray);
  218. }
  219. else
  220. {
  221. dt_no_invalid.Rows.Add(dt.Rows[i].ItemArray);
  222. }
  223. }
  224. return dt_no_invalid;
  225. }
  226. private string getWhere(string max, string min, string col)
  227. {
  228. return col + ">=" + min + " and " + col + "<" + max;
  229. }
  230. #endregion
  231. #region echarts
  232. /// <summary>
  233. /// 通过m_list_chartstruct,组合json数据格式
  234. /// </summary>
  235. /// <returns></returns>
  236. private List<DataTable> GetListJsonStr()
  237. {
  238. int sel = m_conditionChoose.m_conditionData.ProItemProIndex();
  239. string filedAndParticl = "";
  240. DataOperation.DataAccess.ParticleData particledata = null;
  241. DataTable dt = new DataTable();
  242. List<DataTable> ListData = new List<DataTable>();
  243. string sou = m_conditionChoose.m_conditionData.GetPropItemDisplayValueByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE).ToString();
  244. for (int i = 0; i < sou.Split('+').Length; i++)
  245. {
  246. ResultFile resultFile = m_DataMgr.ResultFilesList.Find(s => s.anotherFileName == sou.Split('+')[i]);
  247. if (resultFile == null)
  248. {
  249. continue;
  250. }
  251. particledata = new DataOperation.DataAccess.ParticleData(resultFile.FilePath);
  252. switch (ComSel)
  253. {
  254. case "InclusionareaRatio":
  255. dt = particledata.GetAreaByAllIncA("");
  256. DataTable dtInclusionareaRatio = new DataTable();
  257. dtInclusionareaRatio.Columns.Add("name");
  258. dtInclusionareaRatio.Columns.Add("Cunt");
  259. for (int k = 0; k < dt.Rows.Count; k++)
  260. {
  261. string str = dt.Rows[k]["ar"].ToString();
  262. string name = dt.Rows[k]["TypeName"].ToString();
  263. if (Convert.ToInt32(dt.Rows[k]["TypeId"]) < 100)
  264. {
  265. continue;
  266. }
  267. DataRow dr = dtInclusionareaRatio.NewRow();
  268. dr["name"] = name;
  269. dr["Cunt"] = decimal.Round(decimal.Parse(dt.Rows[k]["ar"].ToString()), 2).ToString();
  270. dtInclusionareaRatio.Rows.Add(dr);
  271. }
  272. ListData.Add(dtInclusionareaRatio);
  273. break;
  274. case "CommonlyUsedClassify":
  275. //计算分类整个表的数据
  276. dt = ClassificationIntegration(resultFile.FilePath, sel);
  277. DataTable data = new DataTable();
  278. data.Columns.Add("name");
  279. data.Columns.Add("Cunt");
  280. for (int a = 0; a < dt.Rows.Count; a++)
  281. {
  282. DataRow dr = data.NewRow();
  283. dr["name"] = dt.Rows[a]["e1"].ToString();
  284. dr["Cunt"] = dt.Rows[a]["Cunt"].ToString();
  285. data.Rows.Add(dr);
  286. }
  287. ListData.Add(data);
  288. break;
  289. case "PComponent":
  290. //创建新的图形数据源
  291. dt = particledata.GetParticleListByIncA("area");
  292. DataTable dtPComponent = new DataTable();
  293. dtPComponent.Columns.Add("name");
  294. dtPComponent.Columns.Add("Cunt");
  295. for (int a = 0; a < dt.Rows.Count; a++)
  296. {
  297. if (Convert.ToInt32(dt.Rows[a]["TypeId"]) < 100)
  298. {
  299. continue;
  300. }
  301. DataRow dr = dtPComponent.NewRow();
  302. dr["name"] = dt.Rows[a]["TypeName"].ToString();
  303. dr["Cunt"] = dt.Rows[a]["con"].ToString();
  304. dtPComponent.Rows.Add(dr);
  305. }
  306. ListData.Add(dtPComponent);
  307. break;
  308. case "EComponent":
  309. //创建新的图形数据源
  310. dt = particledata.GetElementForArea(filedAndParticl);
  311. DataTable dtEComponent = new DataTable();
  312. dtEComponent.Columns.Add("name");
  313. dtEComponent.Columns.Add("Cunt");
  314. for (int k = 0; k < dt.Rows.Count; k++)
  315. {
  316. string str = dt.Rows[k]["earea"].ToString();
  317. try
  318. {
  319. DataRow dr = dtEComponent.NewRow();
  320. dr["name"] = dt.Rows[k]["name"].ToString();
  321. dr["Cunt"] = decimal.Round(decimal.Parse(str), 2).ToString();
  322. dtEComponent.Rows.Add(dr);
  323. }
  324. catch
  325. {
  326. DataRow dr = dtEComponent.NewRow();
  327. dr["name"] = dt.Rows[k]["name"].ToString();
  328. dr["Cunt"] = str;
  329. dtEComponent.Rows.Add(dr);
  330. }
  331. }
  332. ListData.Add(dtEComponent);
  333. break;
  334. case "PSize":
  335. //获取粒级表
  336. string pathe = m_DataMgr.m_RptConfigFile.PartSizeFileFolder + m_DataMgr.m_RptConfigFile.PartSizeFile;
  337. DataSet ds = DataOperation.DataAccess.XMLoperate.GetXml(pathe);
  338. string sizestr = ds.Tables[0].Rows[0]["Sizes"].ToString();
  339. List<string> temp = new List<string>();
  340. for (int j = 0; j < sizestr.Split(',').Length - 1; j++)
  341. {
  342. if (sizestr.Split(',')[j].Length > 0)
  343. {
  344. double d1 = Convert.ToDouble(sizestr.Split(',')[j]);
  345. double d2 = Convert.ToDouble(sizestr.Split(',')[j + 1]);
  346. string name = d1.ToString() + "~" + d2.ToString();
  347. temp.Add(name);
  348. }
  349. }
  350. double d = Convert.ToDouble(sizestr.Split(',')[sizestr.Split(',').Length - 1]);
  351. string name1 = d.ToString() + "~MAX";
  352. temp.Add(name1);
  353. string con = m_conditionChoose.m_conditionData.GetPropItemDisplayValueByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE).ToString();
  354. string po = "";
  355. switch (con)
  356. {
  357. case "DMAX":
  358. po = "DMAX";
  359. break;
  360. case "DMIN":
  361. po = "DMIN";
  362. break;
  363. case "ECD":
  364. po = "Area";
  365. break;
  366. case "FERET":
  367. po = "DFERET";
  368. break;
  369. }
  370. DataTable dtp = particledata.GetParticleAll(filedAndParticl);
  371. DataTable dtPSize = new DataTable();
  372. dtPSize.Columns.Add("name");
  373. dtPSize.Columns.Add("Cunt");
  374. for (int k = 0; k < temp.Count; k++)
  375. {
  376. string str = temp[k];
  377. string d1 = str.Split('~')[0];
  378. string d2 = str.Split('~')[1];
  379. if (d2 == "MAX")
  380. {
  381. d2 = "999";
  382. }
  383. DataRow[] datas = dtp.Select(getWhere(d2, d1, po));
  384. DataRow dr = dtPSize.NewRow();
  385. dr["name"] = str;
  386. dr["Cunt"] = datas.Count().ToString();
  387. dtPSize.Rows.Add(dr);
  388. }
  389. ListData.Add(dtPSize);
  390. break;
  391. }
  392. }
  393. return ListData;
  394. }
  395. #endregion
  396. /// <summary>
  397. /// 折线图
  398. /// </summary>
  399. /// <param name="sender"></param>
  400. /// <param name="e"></param>
  401. private void checkButton2_CheckedChanged(object sender, EventArgs e)
  402. {
  403. if(checkButton2.Checked)
  404. {
  405. checkButton1.Checked = false;
  406. checkButton3.Checked = false;
  407. chartControl1.Series.Clear();
  408. for (int i=0;i< prListData.Count;i++)
  409. {
  410. string str = prListString[i];
  411. // 假设你已经有一个 ChartControl 实例,并且已经添加了一个饼图 Series
  412. Series series = new Series(str, ViewType.Line);
  413. for (int a = 0; a < prListData[i].Rows.Count; a++)
  414. {
  415. string name = prListData[i].Rows[a]["name"].ToString();
  416. string Cunt = prListData[i].Rows[a]["Cunt"].ToString();
  417. series.Points.Add(new SeriesPoint(name, Cunt));
  418. }
  419. series.LabelsVisibility = DefaultBoolean.True;
  420. series.Label.TextPattern = "{V}";
  421. chartControl1.Series.Add(series);
  422. }
  423. chartControl1.Legend.Visibility = DefaultBoolean.False;
  424. chartControl1.Refresh();
  425. }
  426. else
  427. {
  428. if (!checkButton1.Checked && !checkButton3.Checked)
  429. {
  430. checkButton2.Checked = false;
  431. }
  432. }
  433. }
  434. /// <summary>
  435. /// 柱状图
  436. /// </summary>
  437. /// <param name="sender"></param>
  438. /// <param name="e"></param>
  439. private void checkButton1_CheckedChanged(object sender, EventArgs e)
  440. {
  441. if (checkButton1.Checked)
  442. {
  443. checkButton2.Checked = false;
  444. checkButton3.Checked = false;
  445. chartControl1.Series.Clear();
  446. for (int i = 0; i < prListData.Count; i++)
  447. {
  448. string str = prListString[i];
  449. // 假设你已经有一个 ChartControl 实例,并且已经添加了一个饼图 Series
  450. Series series = new Series(str, ViewType.Bar);
  451. for (int a = 0; a < prListData[i].Rows.Count; a++)
  452. {
  453. string name = prListData[i].Rows[a]["name"].ToString();
  454. string Cunt = prListData[i].Rows[a]["Cunt"].ToString();
  455. series.Points.Add(new SeriesPoint(name, Cunt));
  456. }
  457. series.LabelsVisibility = DefaultBoolean.True;
  458. series.Label.TextPattern = "{V}";
  459. chartControl1.Series.Add(series);
  460. }
  461. chartControl1.Legend.Visibility = DefaultBoolean.False;
  462. chartControl1.Refresh();
  463. }
  464. else
  465. {
  466. if (!checkButton2.Checked && !checkButton3.Checked)
  467. {
  468. checkButton1.Checked = true;
  469. }
  470. }
  471. }
  472. private void checkButton3_CheckedChanged(object sender, EventArgs e)
  473. {
  474. if (checkButton3.Checked)
  475. {
  476. checkButton1.Checked = false;
  477. checkButton2.Checked = false;
  478. chartControl1.Series.Clear();
  479. for (int i = 0; i < prListData.Count; i++)
  480. {
  481. string str = prListString[i];
  482. Series series = new Series(str, ViewType.Pie);
  483. for (int a = 0; a < prListData[i].Rows.Count; a++)
  484. {
  485. string name = prListData[i].Rows[a]["name"].ToString();
  486. int Cunt = Convert.ToInt16(prListData[i].Rows[a]["Cunt"]);
  487. series.Points.Add(new SeriesPoint(name, Cunt));
  488. }
  489. series.LabelsVisibility = DefaultBoolean.True;
  490. series.Label.TextPattern = "{A}";
  491. chartControl1.Series.Add(series);
  492. }
  493. chartControl1.Legend.Visibility = DefaultBoolean.False;
  494. chartControl1.Refresh();
  495. }
  496. else
  497. {
  498. if (!checkButton1.Checked && !checkButton2.Checked)
  499. {
  500. checkButton3.Checked = true;
  501. }
  502. }
  503. }
  504. }
  505. }