GDStatistics.cs 24 KB

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