GXStatistics.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. using SuperMap.Data;
  2. using SuperMap.Mapping;
  3. using SuperMap.UI;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Data;
  7. using System.Drawing;
  8. using WeifenLuo.WinFormsUI.Docking;
  9. using WWPipeLine.MapBasic.Conditions;
  10. using WWPipeLine.MapBasic;
  11. namespace WWPipeLine.MapTools.Conditions.Statistics
  12. {
  13. public class GXStatistics : ConditionPanel
  14. {
  15. public GXStatistics() : base()
  16. {
  17. this.ConditionPanelName = "按照管线的组合统计";
  18. this.SetSize(460, 585);
  19. InitializeComponent();
  20. }
  21. private System.Windows.Forms.GroupBox groupBox2;
  22. private System.Windows.Forms.GroupBox groupBox3;
  23. private System.Windows.Forms.CheckedListBox clbgj;
  24. private Sunny.UI.UIButton uiButton1;
  25. private Sunny.UI.UIButton uiButton2;
  26. private Sunny.UI.UIButton uiButton3;
  27. private Sunny.UI.UIButton uiButton6;
  28. private Sunny.UI.UIButton uiButton5;
  29. private Sunny.UI.UIButton uiButton4;
  30. private Sunny.UI.UIRadioButtonGroup uiRadioButtonGroup1;
  31. private Sunny.UI.UIRadioButton uiRadioButton2;
  32. private Sunny.UI.UIRadioButton uiRadioButton1;
  33. private System.Windows.Forms.CheckedListBox clbCZ;
  34. protected override void OnLoad(EventArgs e)
  35. {
  36. if (!ComsStatic.HasField(ComsStatic.dvJSLK, "cz") || !ComsStatic.HasField(ComsStatic.dvJSLK, "gj"))
  37. {
  38. Sunny.UI.UIMessageTip.ShowError("当前矢量数据集缺少统计信息");
  39. this.ParentForm.Close();
  40. return;
  41. }
  42. ComsStatic.BindDataTableOnCheckedListBox(ComsStatic.dvJSLK, clbgj, "gj");
  43. ComsStatic.BindDataTableOnCheckedListBox(ComsStatic.dvJSLK, clbCZ, "cz");
  44. }
  45. public override object Do(DockPanel dockPanel = null)
  46. {
  47. if (clbCZ.CheckedItems.Count == 0 || clbgj.CheckedItems.Count == 0)
  48. {
  49. Sunny.UI.UIMessageTip.ShowError("请先选择需要统计的分类数据"); return false;
  50. }
  51. List<string> czList = new List<string>();
  52. foreach (string str in clbCZ.CheckedItems)
  53. {
  54. czList.Add(str);
  55. }
  56. List<string> gjList = new List<string>();
  57. foreach (string str in clbgj.CheckedItems)
  58. {
  59. gjList.Add(str);
  60. }
  61. DataTable dt = new DataTable();
  62. DataColumn dataColumn = new DataColumn { ColumnName = "zfl", Caption = "主分类字段" }; dt.Columns.Add(dataColumn);
  63. dataColumn = new DataColumn { ColumnName = "cfl", Caption = "次分类字段" }; dt.Columns.Add(dataColumn);
  64. dataColumn = new DataColumn { ColumnName = "cdm", Caption = "长度(米)", DataType = Type.GetType("System.Double") }; dt.Columns.Add(dataColumn);
  65. dataColumn = new DataColumn { ColumnName = "slg", Caption = "数量(根)", DataType = Type.GetType("System.Int32") }; dt.Columns.Add(dataColumn);
  66. Recordset rdc = null;
  67. DataRow dr;
  68. string zfl = string.Empty;
  69. string cfl = string.Empty;
  70. if (uiRadioButton1.Checked)//材质是主分类字段
  71. {
  72. dt.Columns["zfl"].Caption = "主分类:材质"; dt.Columns["cfl"].Caption = "次分类:管径";
  73. foreach (string ls in czList.ToArray())
  74. {
  75. zfl = (ls == "未知" ? " cz is null " : string.Format(" cz='{0}' ", ls));
  76. foreach (string lsc in gjList.ToArray())
  77. {
  78. dr = dt.NewRow();
  79. cfl = (lsc == "未知" ? string.Format("{0} AND gj is null", zfl) : string.Format("{0} AND gj='{1}'", zfl, lsc));
  80. rdc = ComsStatic.QueryRecordset(ComsStatic.dvJSLK, cfl, new string[] { "cz", "cd", "gj" });
  81. dr[0] = ls; dr[1] = lsc;
  82. dr[2] = ComsStatic.StringToDouble(rdc.Statistic("cd", StatisticMode.Sum), 0); dr[3] = rdc.RecordCount;
  83. dt.Rows.Add(dr);
  84. }
  85. string sql = ls == "未知" ? string.Format("zfl='{0}' AND cfl<>null ", ls) : string.Format("zfl='{0}' AND cfl<>null ", ls);
  86. object dtSum = dt.Compute(" SUM(cdm) ", string.Format("zfl='{0}'", ls));
  87. object dtCount = dt.Compute(" SUM(slg) ", string.Format("zfl='{0}'", ls));
  88. dr = dt.NewRow();
  89. dr[0] = string.Format("\"{0}\" 合计", ls); dr[2] = ComsStatic.StringToDouble(dtSum, 0); dr[3] = dtCount;
  90. dt.Rows.Add(dr);
  91. }
  92. }
  93. if (uiRadioButton2.Checked)//管径是主分类字段
  94. {
  95. dt.Columns["zfl"].Caption = "主分类:管径"; dt.Columns["cfl"].Caption = "次分类:材质";
  96. foreach (string ls in gjList.ToArray())
  97. {
  98. zfl = (ls == "未知" ? " gj is null " : string.Format(" gj='{0}' ", ls));
  99. foreach (string lsc in czList.ToArray())
  100. {
  101. dr = dt.NewRow();
  102. cfl = (lsc == "未知" ? string.Format(" {0} AND cz is null ", zfl) : string.Format("{0} AND cz='{1}'", zfl, lsc));
  103. rdc = ComsStatic.QueryRecordset(ComsStatic.dvJSLK, cfl, new string[] { "cz", "cd", "gj" });
  104. dr[0] = ls; dr[1] = lsc;
  105. dr[2] = ComsStatic.StringToDouble(rdc.Statistic("cd", StatisticMode.Sum), 0); dr[3] = rdc.RecordCount;
  106. dt.Rows.Add(dr);
  107. }
  108. string sql = ls == "未知" ? string.Format("zfl='{0}' AND cfl<>null ", ls) : string.Format("zfl='{0}' AND cfl<>null ", ls);
  109. object dtSum = dt.Compute(" SUM(cdm) ", string.Format("zfl='{0}'", ls));
  110. object dtCount = dt.Compute(" SUM(slg) ", string.Format("zfl='{0}'", ls));
  111. dr = dt.NewRow();
  112. dr[0] = string.Format("\"{0}\" 合计", ls); dr[2] = ComsStatic.StringToDouble(dtSum, 0); dr[3] = dtCount;
  113. dt.Rows.Add(dr);
  114. }
  115. }
  116. ComsStatic.RecordsetDispose(rdc);
  117. return dt;
  118. }
  119. #region 界面布局
  120. private void InitializeComponent()
  121. {
  122. this.groupBox2 = new System.Windows.Forms.GroupBox();
  123. this.clbCZ = new System.Windows.Forms.CheckedListBox();
  124. this.uiButton1 = new Sunny.UI.UIButton();
  125. this.uiButton2 = new Sunny.UI.UIButton();
  126. this.uiButton3 = new Sunny.UI.UIButton();
  127. this.groupBox3 = new System.Windows.Forms.GroupBox();
  128. this.clbgj = new System.Windows.Forms.CheckedListBox();
  129. this.uiButton4 = new Sunny.UI.UIButton();
  130. this.uiButton6 = new Sunny.UI.UIButton();
  131. this.uiButton5 = new Sunny.UI.UIButton();
  132. this.uiRadioButtonGroup1 = new Sunny.UI.UIRadioButtonGroup();
  133. this.uiRadioButton2 = new Sunny.UI.UIRadioButton();
  134. this.uiRadioButton1 = new Sunny.UI.UIRadioButton();
  135. this.groupBox2.SuspendLayout();
  136. this.groupBox3.SuspendLayout();
  137. this.uiRadioButtonGroup1.SuspendLayout();
  138. this.SuspendLayout();
  139. //
  140. // groupBox2
  141. //
  142. this.groupBox2.Controls.Add(this.clbCZ);
  143. this.groupBox2.Controls.Add(this.uiButton1);
  144. this.groupBox2.Controls.Add(this.uiButton2);
  145. this.groupBox2.Controls.Add(this.uiButton3);
  146. this.groupBox2.Dock = System.Windows.Forms.DockStyle.Left;
  147. this.groupBox2.Location = new System.Drawing.Point(0, 0);
  148. this.groupBox2.Name = "groupBox2";
  149. this.groupBox2.Size = new System.Drawing.Size(179, 500);
  150. this.groupBox2.TabIndex = 14;
  151. this.groupBox2.TabStop = false;
  152. this.groupBox2.Text = "管线材质";
  153. //
  154. // clbCZ
  155. //
  156. this.clbCZ.CheckOnClick = true;
  157. this.clbCZ.Dock = System.Windows.Forms.DockStyle.Top;
  158. this.clbCZ.Location = new System.Drawing.Point(3, 25);
  159. this.clbCZ.Name = "clbCZ";
  160. this.clbCZ.Size = new System.Drawing.Size(173, 412);
  161. this.clbCZ.TabIndex = 0;
  162. //
  163. // uiButton1
  164. //
  165. this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand;
  166. this.uiButton1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  167. this.uiButton1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  168. this.uiButton1.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  169. this.uiButton1.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  170. this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 12F);
  171. this.uiButton1.Location = new System.Drawing.Point(13, 455);
  172. this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1);
  173. this.uiButton1.Name = "uiButton1";
  174. this.uiButton1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  175. this.uiButton1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  176. this.uiButton1.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  177. this.uiButton1.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  178. this.uiButton1.Size = new System.Drawing.Size(35, 30);
  179. this.uiButton1.Style = Sunny.UI.UIStyle.Gray;
  180. this.uiButton1.TabIndex = 16;
  181. this.uiButton1.Text = "全选";
  182. this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click);
  183. //
  184. // uiButton2
  185. //
  186. this.uiButton2.Cursor = System.Windows.Forms.Cursors.Hand;
  187. this.uiButton2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  188. this.uiButton2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  189. this.uiButton2.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  190. this.uiButton2.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  191. this.uiButton2.Font = new System.Drawing.Font("微软雅黑", 12F);
  192. this.uiButton2.Location = new System.Drawing.Point(75, 455);
  193. this.uiButton2.MinimumSize = new System.Drawing.Size(1, 1);
  194. this.uiButton2.Name = "uiButton2";
  195. this.uiButton2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  196. this.uiButton2.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  197. this.uiButton2.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  198. this.uiButton2.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  199. this.uiButton2.Size = new System.Drawing.Size(35, 30);
  200. this.uiButton2.Style = Sunny.UI.UIStyle.Gray;
  201. this.uiButton2.TabIndex = 17;
  202. this.uiButton2.Text = "反选";
  203. this.uiButton2.Click += new System.EventHandler(this.uiButton2_Click);
  204. //
  205. // uiButton3
  206. //
  207. this.uiButton3.Cursor = System.Windows.Forms.Cursors.Hand;
  208. this.uiButton3.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  209. this.uiButton3.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  210. this.uiButton3.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  211. this.uiButton3.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  212. this.uiButton3.Font = new System.Drawing.Font("微软雅黑", 12F);
  213. this.uiButton3.Location = new System.Drawing.Point(137, 455);
  214. this.uiButton3.MinimumSize = new System.Drawing.Size(1, 1);
  215. this.uiButton3.Name = "uiButton3";
  216. this.uiButton3.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  217. this.uiButton3.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  218. this.uiButton3.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  219. this.uiButton3.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  220. this.uiButton3.Size = new System.Drawing.Size(35, 30);
  221. this.uiButton3.Style = Sunny.UI.UIStyle.Gray;
  222. this.uiButton3.TabIndex = 18;
  223. this.uiButton3.Text = "清空";
  224. this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click);
  225. //
  226. // groupBox3
  227. //
  228. this.groupBox3.Controls.Add(this.clbgj);
  229. this.groupBox3.Controls.Add(this.uiButton4);
  230. this.groupBox3.Controls.Add(this.uiButton6);
  231. this.groupBox3.Controls.Add(this.uiButton5);
  232. this.groupBox3.Dock = System.Windows.Forms.DockStyle.Left;
  233. this.groupBox3.Location = new System.Drawing.Point(179, 0);
  234. this.groupBox3.Name = "groupBox3";
  235. this.groupBox3.Size = new System.Drawing.Size(179, 500);
  236. this.groupBox3.TabIndex = 15;
  237. this.groupBox3.TabStop = false;
  238. this.groupBox3.Text = "管径";
  239. //
  240. // clbgj
  241. //
  242. this.clbgj.CheckOnClick = true;
  243. this.clbgj.Dock = System.Windows.Forms.DockStyle.Top;
  244. this.clbgj.Location = new System.Drawing.Point(3, 25);
  245. this.clbgj.Name = "clbgj";
  246. this.clbgj.Size = new System.Drawing.Size(173, 412);
  247. this.clbgj.TabIndex = 1;
  248. //
  249. // uiButton4
  250. //
  251. this.uiButton4.Cursor = System.Windows.Forms.Cursors.Hand;
  252. this.uiButton4.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  253. this.uiButton4.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  254. this.uiButton4.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  255. this.uiButton4.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  256. this.uiButton4.Font = new System.Drawing.Font("微软雅黑", 12F);
  257. this.uiButton4.Location = new System.Drawing.Point(134, 455);
  258. this.uiButton4.MinimumSize = new System.Drawing.Size(1, 1);
  259. this.uiButton4.Name = "uiButton4";
  260. this.uiButton4.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  261. this.uiButton4.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  262. this.uiButton4.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  263. this.uiButton4.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  264. this.uiButton4.Size = new System.Drawing.Size(35, 30);
  265. this.uiButton4.Style = Sunny.UI.UIStyle.Gray;
  266. this.uiButton4.TabIndex = 21;
  267. this.uiButton4.Text = "清空";
  268. this.uiButton4.Click += new System.EventHandler(this.uiButton4_Click);
  269. //
  270. // uiButton6
  271. //
  272. this.uiButton6.Cursor = System.Windows.Forms.Cursors.Hand;
  273. this.uiButton6.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  274. this.uiButton6.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  275. this.uiButton6.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  276. this.uiButton6.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  277. this.uiButton6.Font = new System.Drawing.Font("微软雅黑", 12F);
  278. this.uiButton6.Location = new System.Drawing.Point(10, 455);
  279. this.uiButton6.MinimumSize = new System.Drawing.Size(1, 1);
  280. this.uiButton6.Name = "uiButton6";
  281. this.uiButton6.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  282. this.uiButton6.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  283. this.uiButton6.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  284. this.uiButton6.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  285. this.uiButton6.Size = new System.Drawing.Size(35, 30);
  286. this.uiButton6.Style = Sunny.UI.UIStyle.Gray;
  287. this.uiButton6.TabIndex = 19;
  288. this.uiButton6.Text = "全选";
  289. this.uiButton6.Click += new System.EventHandler(this.uiButton6_Click);
  290. //
  291. // uiButton5
  292. //
  293. this.uiButton5.Cursor = System.Windows.Forms.Cursors.Hand;
  294. this.uiButton5.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  295. this.uiButton5.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  296. this.uiButton5.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  297. this.uiButton5.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  298. this.uiButton5.Font = new System.Drawing.Font("微软雅黑", 12F);
  299. this.uiButton5.Location = new System.Drawing.Point(72, 455);
  300. this.uiButton5.MinimumSize = new System.Drawing.Size(1, 1);
  301. this.uiButton5.Name = "uiButton5";
  302. this.uiButton5.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  303. this.uiButton5.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  304. this.uiButton5.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  305. this.uiButton5.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  306. this.uiButton5.Size = new System.Drawing.Size(35, 30);
  307. this.uiButton5.Style = Sunny.UI.UIStyle.Gray;
  308. this.uiButton5.TabIndex = 20;
  309. this.uiButton5.Text = "反选";
  310. this.uiButton5.Click += new System.EventHandler(this.uiButton5_Click);
  311. //
  312. // uiRadioButtonGroup1
  313. //
  314. this.uiRadioButtonGroup1.Controls.Add(this.uiRadioButton2);
  315. this.uiRadioButtonGroup1.Controls.Add(this.uiRadioButton1);
  316. this.uiRadioButtonGroup1.Dock = System.Windows.Forms.DockStyle.Top;
  317. this.uiRadioButtonGroup1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244)))));
  318. this.uiRadioButtonGroup1.Font = new System.Drawing.Font("微软雅黑", 12F);
  319. this.uiRadioButtonGroup1.Location = new System.Drawing.Point(358, 0);
  320. this.uiRadioButtonGroup1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
  321. this.uiRadioButtonGroup1.MinimumSize = new System.Drawing.Size(1, 1);
  322. this.uiRadioButtonGroup1.Name = "uiRadioButtonGroup1";
  323. this.uiRadioButtonGroup1.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
  324. this.uiRadioButtonGroup1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  325. this.uiRadioButtonGroup1.Size = new System.Drawing.Size(102, 146);
  326. this.uiRadioButtonGroup1.Style = Sunny.UI.UIStyle.Gray;
  327. this.uiRadioButtonGroup1.TabIndex = 23;
  328. this.uiRadioButtonGroup1.Text = "主分类字段";
  329. this.uiRadioButtonGroup1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
  330. //
  331. // uiRadioButton2
  332. //
  333. this.uiRadioButton2.Cursor = System.Windows.Forms.Cursors.Hand;
  334. this.uiRadioButton2.Font = new System.Drawing.Font("微软雅黑", 12F);
  335. this.uiRadioButton2.Location = new System.Drawing.Point(13, 90);
  336. this.uiRadioButton2.MinimumSize = new System.Drawing.Size(1, 1);
  337. this.uiRadioButton2.Name = "uiRadioButton2";
  338. this.uiRadioButton2.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0);
  339. this.uiRadioButton2.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  340. this.uiRadioButton2.Size = new System.Drawing.Size(83, 29);
  341. this.uiRadioButton2.Style = Sunny.UI.UIStyle.Gray;
  342. this.uiRadioButton2.TabIndex = 1;
  343. this.uiRadioButton2.Text = "管径";
  344. //
  345. // uiRadioButton1
  346. //
  347. this.uiRadioButton1.Checked = true;
  348. this.uiRadioButton1.Cursor = System.Windows.Forms.Cursors.Hand;
  349. this.uiRadioButton1.Font = new System.Drawing.Font("微软雅黑", 12F);
  350. this.uiRadioButton1.Location = new System.Drawing.Point(13, 45);
  351. this.uiRadioButton1.MinimumSize = new System.Drawing.Size(1, 1);
  352. this.uiRadioButton1.Name = "uiRadioButton1";
  353. this.uiRadioButton1.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0);
  354. this.uiRadioButton1.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  355. this.uiRadioButton1.Size = new System.Drawing.Size(104, 29);
  356. this.uiRadioButton1.Style = Sunny.UI.UIStyle.Gray;
  357. this.uiRadioButton1.TabIndex = 0;
  358. this.uiRadioButton1.Text = "材质";
  359. //
  360. // GXStatistics
  361. //
  362. this.Controls.Add(this.uiRadioButtonGroup1);
  363. this.Controls.Add(this.groupBox3);
  364. this.Controls.Add(this.groupBox2);
  365. this.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244)))));
  366. this.Name = "GXStatistics";
  367. this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  368. this.Size = new System.Drawing.Size(460, 500);
  369. this.Style = Sunny.UI.UIStyle.Gray;
  370. this.groupBox2.ResumeLayout(false);
  371. this.groupBox3.ResumeLayout(false);
  372. this.uiRadioButtonGroup1.ResumeLayout(false);
  373. this.ResumeLayout(false);
  374. }
  375. #endregion
  376. private void uiButton3_Click(object sender, EventArgs e)//清空
  377. {
  378. ComsStatic.CheckListBoxDo(clbCZ, 3);
  379. }
  380. private void uiButton2_Click(object sender, EventArgs e)//反选
  381. {
  382. ComsStatic.CheckListBoxDo(clbCZ, 2);
  383. }
  384. private void uiButton1_Click(object sender, EventArgs e)//全选
  385. {
  386. ComsStatic.CheckListBoxDo(clbCZ, 1);
  387. }
  388. private void uiButton4_Click(object sender, EventArgs e)
  389. {
  390. ComsStatic.CheckListBoxDo(clbgj, 3);
  391. }
  392. private void uiButton5_Click(object sender, EventArgs e)
  393. {
  394. ComsStatic.CheckListBoxDo(clbgj, 2);
  395. }
  396. private void uiButton6_Click(object sender, EventArgs e)
  397. {
  398. ComsStatic.CheckListBoxDo(clbgj, 1);
  399. }
  400. }
  401. }