GDStatistics.cs 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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, 500);
  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 UIRadioButtonGroup uiRadioButtonGroup1;
  34. private UIRadioButton uiRadioButton2;
  35. private UIRadioButton uiRadioButton1;
  36. private GroupBox groupBoxLayer;
  37. private UIRadioButton uirbtView;
  38. private UIRadioButton uirbtZdy;
  39. private UIRadioButton uirbtAll;
  40. private UIComboBox uicbxLayer;
  41. private UIGroupBox uiGroupBox1;
  42. private UIGroupBox uiGroupBox2;
  43. DatasetVector dv = null;
  44. protected override void OnLoad(EventArgs e)
  45. {
  46. ComsStatic.BindUICombox(uicbxLayer, false);
  47. }
  48. public override object Do(DockPanel dockPanel = null)
  49. {
  50. if (cltz.CheckedItems.Count == 0 || clbfsw.CheckedItems.Count == 0)
  51. {
  52. Sunny.UI.UIMessageTip.ShowError("请先选择需要统计的分类数据"); return false;
  53. }
  54. QueryParameter queryParameter = new QueryParameter
  55. {
  56. ResultFields = new string[] { "fsw", "tz" },
  57. CursorType = CursorType.Static
  58. };
  59. if (uirbtAll.Checked)
  60. {
  61. }
  62. if (uirbtView.Checked)
  63. {
  64. queryParameter.SpatialQueryMode = SpatialQueryMode.Contain;
  65. queryParameter.SpatialQueryObject = MapControl.Map.ViewBounds;
  66. }
  67. if (uirbtZdy.Checked)
  68. {
  69. int index = MapControl.Map.TrackingLayer.IndexOf(ComsStatic.ControlToolsTrackingName);
  70. if (index == -1)
  71. {
  72. Sunny.UI.UIMessageTip.ShowError("请先绘制区域"); return false;
  73. }
  74. GeoRegion geo = MapControl.Map.TrackingLayer.Get(index) as GeoRegion;
  75. if (geo is null || geo.PartCount != 1)
  76. {
  77. Sunny.UI.UIMessageTip.ShowError("绘制区域PartCount参数发生错误"); return false;
  78. }
  79. queryParameter.SpatialQueryMode = SpatialQueryMode.Contain;
  80. queryParameter.SpatialQueryObject = geo;
  81. }
  82. List<string> tzList = new List<string>();
  83. foreach (string str in cltz.CheckedItems)
  84. {
  85. tzList.Add(str);
  86. }
  87. List<string> fswList = new List<string>();
  88. foreach (string str in clbfsw.CheckedItems)
  89. {
  90. fswList.Add(str);
  91. }
  92. DataTable dt = new DataTable();
  93. DataColumn dataColumn = new DataColumn { ColumnName = "zfl", Caption = "主分类字段" }; dt.Columns.Add(dataColumn);
  94. dataColumn = new DataColumn { ColumnName = "cfl", Caption = "次分类字段" }; dt.Columns.Add(dataColumn);
  95. dataColumn = new DataColumn { ColumnName = "slg", Caption = "数量", DataType = Type.GetType("System.Int32") }; dt.Columns.Add(dataColumn);
  96. Recordset rdc = null;
  97. DataRow dr;
  98. string zfl = string.Empty;
  99. string cfl = string.Empty;
  100. if (uiRadioButton1.Checked)//附属物是主分类字段
  101. {
  102. dt.Columns["zfl"].Caption = "主分类:附属物"; dt.Columns["cfl"].Caption = "次分类:特征";
  103. foreach (string ls in fswList.ToArray())
  104. {
  105. zfl = (ls == "未知" ? " fsw is null " : string.Format(" fsw='{0}' ", ls));
  106. foreach (string lsc in tzList.ToArray())
  107. {
  108. dr = dt.NewRow();
  109. cfl = (lsc == "未知" ? string.Format(" {0} AND tz is null ", zfl) : string.Format("{0} AND tz='{1}'", zfl, lsc));
  110. //rdc = ComsStatic.QueryRecordset(dv, cfl, new string[] { "fsw", "tz" });
  111. queryParameter.AttributeFilter = cfl;
  112. rdc = dv.Query(queryParameter);
  113. dr[0] = ls; dr[1] = lsc; dr[2] = rdc.RecordCount;
  114. dt.Rows.Add(dr);
  115. }
  116. string sql = ls == "未知" ? string.Format("zfl='{0}' AND cfl<>null ", ls) : string.Format("zfl='{0}' AND cfl<>null ", ls);
  117. object dtSum = dt.Compute(" SUM(slg) ", string.Format("zfl='{0}'", ls));
  118. dr = dt.NewRow();
  119. dr[0] = string.Format("\"{0}\" 合计", ls); dr[2] = dtSum;
  120. dt.Rows.Add(dr);
  121. }
  122. }
  123. if (uiRadioButton2.Checked)//特征是主分类字段
  124. {
  125. dt.Columns["zfl"].Caption = "主分类:特征"; dt.Columns["cfl"].Caption = "次分类:附属物";
  126. foreach (string ls in tzList.ToArray())
  127. {
  128. zfl = (ls == "未知" ? " tz is null " : string.Format(" tz='{0}' ", ls));
  129. foreach (string lsc in fswList.ToArray())
  130. {
  131. dr = dt.NewRow();
  132. //cfl = string.Format("{0} AND fsw='{1}'", zfl, lsc);
  133. cfl = (lsc == "未知" ? string.Format(" {0} AND fsw is null ", zfl) : string.Format("{0} AND fsw='{1}'", zfl, lsc));
  134. //rdc = ComsStatic.QueryRecordset(dv, cfl, new string[] { "fsw", "tz" });
  135. queryParameter.AttributeFilter = cfl;
  136. rdc = dv.Query(queryParameter);
  137. dr[0] = ls; dr[1] = lsc; dr[2] = rdc.RecordCount;
  138. dt.Rows.Add(dr);
  139. }
  140. string sql = ls == "未知" ? string.Format("zfl='{0}' AND cfl<>null ", ls) : string.Format("zfl='{0}' AND cfl<>null ", ls);
  141. object dtSum = dt.Compute(" SUM(slg) ", string.Format("zfl='{0}'", ls));
  142. dr = dt.NewRow();
  143. dr[0] = string.Format("\"{0}\" 合计", ls); dr[2] = dtSum;
  144. dt.Rows.Add(dr);
  145. }
  146. }
  147. ComsStatic.RecordsetDispose(rdc);
  148. return dt;
  149. }
  150. private void uicbxLayer_SelectedIndexChanged(object sender, EventArgs e)
  151. {
  152. DoListItem item = (DoListItem)uicbxLayer.SelectedItem;
  153. dv = ComsStatic.Datasource.Datasets[item.Key] as DatasetVector;
  154. if (dv is null) { UIMessageTip.ShowError("当前选择的图层没有匹配的数据源"); return; }
  155. ComsStatic.BindDataTableOnCheckedListBox(dv, cltz, "tz");
  156. ComsStatic.BindDataTableOnCheckedListBox(dv, clbfsw, "fsw");
  157. }
  158. #region 界面布局
  159. private void InitializeComponent()
  160. {
  161. this.groupBoxfsw = new System.Windows.Forms.GroupBox();
  162. this.clbfsw = new System.Windows.Forms.CheckedListBox();
  163. this.uiButton1 = new Sunny.UI.UIButton();
  164. this.uiButton2 = new Sunny.UI.UIButton();
  165. this.uiButton3 = new Sunny.UI.UIButton();
  166. this.groupBoxtz = new System.Windows.Forms.GroupBox();
  167. this.cltz = new System.Windows.Forms.CheckedListBox();
  168. this.uiButton6 = new Sunny.UI.UIButton();
  169. this.uiButton4 = new Sunny.UI.UIButton();
  170. this.uiButton5 = new Sunny.UI.UIButton();
  171. this.uiRadioButtonGroup1 = new Sunny.UI.UIRadioButtonGroup();
  172. this.uiRadioButton2 = new Sunny.UI.UIRadioButton();
  173. this.uiRadioButton1 = new Sunny.UI.UIRadioButton();
  174. this.groupBoxLayer = new System.Windows.Forms.GroupBox();
  175. this.uiGroupBox2 = new Sunny.UI.UIGroupBox();
  176. this.uirbtAll = new Sunny.UI.UIRadioButton();
  177. this.uirbtZdy = new Sunny.UI.UIRadioButton();
  178. this.uirbtView = new Sunny.UI.UIRadioButton();
  179. this.uiGroupBox1 = new Sunny.UI.UIGroupBox();
  180. this.uicbxLayer = new Sunny.UI.UIComboBox();
  181. this.groupBoxfsw.SuspendLayout();
  182. this.groupBoxtz.SuspendLayout();
  183. this.uiRadioButtonGroup1.SuspendLayout();
  184. this.groupBoxLayer.SuspendLayout();
  185. this.uiGroupBox2.SuspendLayout();
  186. this.uiGroupBox1.SuspendLayout();
  187. this.SuspendLayout();
  188. //
  189. // groupBoxfsw
  190. //
  191. this.groupBoxfsw.Controls.Add(this.clbfsw);
  192. this.groupBoxfsw.Controls.Add(this.uiButton1);
  193. this.groupBoxfsw.Controls.Add(this.uiButton2);
  194. this.groupBoxfsw.Controls.Add(this.uiButton3);
  195. this.groupBoxfsw.Dock = System.Windows.Forms.DockStyle.Left;
  196. this.groupBoxfsw.Location = new System.Drawing.Point(330, 0);
  197. this.groupBoxfsw.Name = "groupBoxfsw";
  198. this.groupBoxfsw.Size = new System.Drawing.Size(165, 415);
  199. this.groupBoxfsw.TabIndex = 14;
  200. this.groupBoxfsw.TabStop = false;
  201. this.groupBoxfsw.Text = "附属物";
  202. //
  203. // clbfsw
  204. //
  205. this.clbfsw.Dock = System.Windows.Forms.DockStyle.Top;
  206. this.clbfsw.Location = new System.Drawing.Point(3, 25);
  207. this.clbfsw.Name = "clbfsw";
  208. this.clbfsw.Size = new System.Drawing.Size(159, 340);
  209. this.clbfsw.TabIndex = 0;
  210. //
  211. // uiButton1
  212. //
  213. this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand;
  214. this.uiButton1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  215. this.uiButton1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  216. this.uiButton1.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  217. this.uiButton1.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  218. this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 12F);
  219. this.uiButton1.Location = new System.Drawing.Point(17, 379);
  220. this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1);
  221. this.uiButton1.Name = "uiButton1";
  222. this.uiButton1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  223. this.uiButton1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  224. this.uiButton1.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  225. this.uiButton1.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  226. this.uiButton1.Size = new System.Drawing.Size(35, 30);
  227. this.uiButton1.Style = Sunny.UI.UIStyle.Gray;
  228. this.uiButton1.TabIndex = 16;
  229. this.uiButton1.Text = "全选";
  230. this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click);
  231. //
  232. // uiButton2
  233. //
  234. this.uiButton2.Cursor = System.Windows.Forms.Cursors.Hand;
  235. this.uiButton2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  236. this.uiButton2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  237. this.uiButton2.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  238. this.uiButton2.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  239. this.uiButton2.Font = new System.Drawing.Font("微软雅黑", 12F);
  240. this.uiButton2.Location = new System.Drawing.Point(68, 379);
  241. this.uiButton2.MinimumSize = new System.Drawing.Size(1, 1);
  242. this.uiButton2.Name = "uiButton2";
  243. this.uiButton2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  244. this.uiButton2.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  245. this.uiButton2.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  246. this.uiButton2.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  247. this.uiButton2.Size = new System.Drawing.Size(35, 30);
  248. this.uiButton2.Style = Sunny.UI.UIStyle.Gray;
  249. this.uiButton2.TabIndex = 17;
  250. this.uiButton2.Text = "反选";
  251. this.uiButton2.Click += new System.EventHandler(this.uiButton2_Click);
  252. //
  253. // uiButton3
  254. //
  255. this.uiButton3.Cursor = System.Windows.Forms.Cursors.Hand;
  256. this.uiButton3.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  257. this.uiButton3.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  258. this.uiButton3.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  259. this.uiButton3.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  260. this.uiButton3.Font = new System.Drawing.Font("微软雅黑", 12F);
  261. this.uiButton3.Location = new System.Drawing.Point(119, 379);
  262. this.uiButton3.MinimumSize = new System.Drawing.Size(1, 1);
  263. this.uiButton3.Name = "uiButton3";
  264. this.uiButton3.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  265. this.uiButton3.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  266. this.uiButton3.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  267. this.uiButton3.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  268. this.uiButton3.Size = new System.Drawing.Size(35, 30);
  269. this.uiButton3.Style = Sunny.UI.UIStyle.Gray;
  270. this.uiButton3.TabIndex = 18;
  271. this.uiButton3.Text = "清空";
  272. this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click);
  273. //
  274. // groupBoxtz
  275. //
  276. this.groupBoxtz.Controls.Add(this.cltz);
  277. this.groupBoxtz.Controls.Add(this.uiButton6);
  278. this.groupBoxtz.Controls.Add(this.uiButton4);
  279. this.groupBoxtz.Controls.Add(this.uiButton5);
  280. this.groupBoxtz.Dock = System.Windows.Forms.DockStyle.Left;
  281. this.groupBoxtz.Location = new System.Drawing.Point(165, 0);
  282. this.groupBoxtz.Name = "groupBoxtz";
  283. this.groupBoxtz.Size = new System.Drawing.Size(165, 415);
  284. this.groupBoxtz.TabIndex = 15;
  285. this.groupBoxtz.TabStop = false;
  286. this.groupBoxtz.Text = "特征";
  287. //
  288. // cltz
  289. //
  290. this.cltz.Dock = System.Windows.Forms.DockStyle.Top;
  291. this.cltz.Location = new System.Drawing.Point(3, 25);
  292. this.cltz.Name = "cltz";
  293. this.cltz.Size = new System.Drawing.Size(159, 340);
  294. this.cltz.TabIndex = 1;
  295. //
  296. // uiButton6
  297. //
  298. this.uiButton6.Cursor = System.Windows.Forms.Cursors.Hand;
  299. this.uiButton6.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  300. this.uiButton6.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  301. this.uiButton6.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  302. this.uiButton6.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  303. this.uiButton6.Font = new System.Drawing.Font("微软雅黑", 12F);
  304. this.uiButton6.Location = new System.Drawing.Point(6, 379);
  305. this.uiButton6.MinimumSize = new System.Drawing.Size(1, 1);
  306. this.uiButton6.Name = "uiButton6";
  307. this.uiButton6.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  308. this.uiButton6.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  309. this.uiButton6.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  310. this.uiButton6.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  311. this.uiButton6.Size = new System.Drawing.Size(35, 30);
  312. this.uiButton6.Style = Sunny.UI.UIStyle.Gray;
  313. this.uiButton6.TabIndex = 19;
  314. this.uiButton6.Text = "全选";
  315. this.uiButton6.Click += new System.EventHandler(this.uiButton6_Click);
  316. //
  317. // uiButton4
  318. //
  319. this.uiButton4.Cursor = System.Windows.Forms.Cursors.Hand;
  320. this.uiButton4.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  321. this.uiButton4.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  322. this.uiButton4.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  323. this.uiButton4.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  324. this.uiButton4.Font = new System.Drawing.Font("微软雅黑", 12F);
  325. this.uiButton4.Location = new System.Drawing.Point(110, 379);
  326. this.uiButton4.MinimumSize = new System.Drawing.Size(1, 1);
  327. this.uiButton4.Name = "uiButton4";
  328. this.uiButton4.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  329. this.uiButton4.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  330. this.uiButton4.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  331. this.uiButton4.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  332. this.uiButton4.Size = new System.Drawing.Size(35, 30);
  333. this.uiButton4.Style = Sunny.UI.UIStyle.Gray;
  334. this.uiButton4.TabIndex = 21;
  335. this.uiButton4.Text = "清空";
  336. this.uiButton4.Click += new System.EventHandler(this.uiButton4_Click);
  337. //
  338. // uiButton5
  339. //
  340. this.uiButton5.Cursor = System.Windows.Forms.Cursors.Hand;
  341. this.uiButton5.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  342. this.uiButton5.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  343. this.uiButton5.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  344. this.uiButton5.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  345. this.uiButton5.Font = new System.Drawing.Font("微软雅黑", 12F);
  346. this.uiButton5.Location = new System.Drawing.Point(58, 379);
  347. this.uiButton5.MinimumSize = new System.Drawing.Size(1, 1);
  348. this.uiButton5.Name = "uiButton5";
  349. this.uiButton5.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  350. this.uiButton5.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
  351. this.uiButton5.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  352. this.uiButton5.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
  353. this.uiButton5.Size = new System.Drawing.Size(35, 30);
  354. this.uiButton5.Style = Sunny.UI.UIStyle.Gray;
  355. this.uiButton5.TabIndex = 20;
  356. this.uiButton5.Text = "反选";
  357. this.uiButton5.Click += new System.EventHandler(this.uiButton5_Click);
  358. //
  359. // uiRadioButtonGroup1
  360. //
  361. this.uiRadioButtonGroup1.Controls.Add(this.uiRadioButton2);
  362. this.uiRadioButtonGroup1.Controls.Add(this.uiRadioButton1);
  363. this.uiRadioButtonGroup1.Dock = System.Windows.Forms.DockStyle.Top;
  364. this.uiRadioButtonGroup1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244)))));
  365. this.uiRadioButtonGroup1.Font = new System.Drawing.Font("微软雅黑", 12F);
  366. this.uiRadioButtonGroup1.Location = new System.Drawing.Point(3, 256);
  367. this.uiRadioButtonGroup1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
  368. this.uiRadioButtonGroup1.MinimumSize = new System.Drawing.Size(1, 1);
  369. this.uiRadioButtonGroup1.Name = "uiRadioButtonGroup1";
  370. this.uiRadioButtonGroup1.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
  371. this.uiRadioButtonGroup1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  372. this.uiRadioButtonGroup1.Size = new System.Drawing.Size(159, 115);
  373. this.uiRadioButtonGroup1.Style = Sunny.UI.UIStyle.Gray;
  374. this.uiRadioButtonGroup1.TabIndex = 26;
  375. this.uiRadioButtonGroup1.Text = "主分类字段";
  376. this.uiRadioButtonGroup1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
  377. //
  378. // uiRadioButton2
  379. //
  380. this.uiRadioButton2.Cursor = System.Windows.Forms.Cursors.Hand;
  381. this.uiRadioButton2.Font = new System.Drawing.Font("微软雅黑", 12F);
  382. this.uiRadioButton2.Location = new System.Drawing.Point(13, 70);
  383. this.uiRadioButton2.MinimumSize = new System.Drawing.Size(1, 1);
  384. this.uiRadioButton2.Name = "uiRadioButton2";
  385. this.uiRadioButton2.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0);
  386. this.uiRadioButton2.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  387. this.uiRadioButton2.Size = new System.Drawing.Size(83, 29);
  388. this.uiRadioButton2.Style = Sunny.UI.UIStyle.Gray;
  389. this.uiRadioButton2.TabIndex = 1;
  390. this.uiRadioButton2.Text = "特征";
  391. //
  392. // uiRadioButton1
  393. //
  394. this.uiRadioButton1.Checked = true;
  395. this.uiRadioButton1.Cursor = System.Windows.Forms.Cursors.Hand;
  396. this.uiRadioButton1.Font = new System.Drawing.Font("微软雅黑", 12F);
  397. this.uiRadioButton1.Location = new System.Drawing.Point(13, 35);
  398. this.uiRadioButton1.MinimumSize = new System.Drawing.Size(1, 1);
  399. this.uiRadioButton1.Name = "uiRadioButton1";
  400. this.uiRadioButton1.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0);
  401. this.uiRadioButton1.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  402. this.uiRadioButton1.Size = new System.Drawing.Size(92, 29);
  403. this.uiRadioButton1.Style = Sunny.UI.UIStyle.Gray;
  404. this.uiRadioButton1.TabIndex = 0;
  405. this.uiRadioButton1.Text = "附属物";
  406. //
  407. // groupBoxLayer
  408. //
  409. this.groupBoxLayer.Controls.Add(this.uiRadioButtonGroup1);
  410. this.groupBoxLayer.Controls.Add(this.uiGroupBox2);
  411. this.groupBoxLayer.Controls.Add(this.uiGroupBox1);
  412. this.groupBoxLayer.Dock = System.Windows.Forms.DockStyle.Left;
  413. this.groupBoxLayer.Location = new System.Drawing.Point(0, 0);
  414. this.groupBoxLayer.Name = "groupBoxLayer";
  415. this.groupBoxLayer.Size = new System.Drawing.Size(165, 415);
  416. this.groupBoxLayer.TabIndex = 25;
  417. this.groupBoxLayer.TabStop = false;
  418. //
  419. // uiGroupBox2
  420. //
  421. this.uiGroupBox2.Controls.Add(this.uirbtAll);
  422. this.uiGroupBox2.Controls.Add(this.uirbtZdy);
  423. this.uiGroupBox2.Controls.Add(this.uirbtView);
  424. this.uiGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
  425. this.uiGroupBox2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244)))));
  426. this.uiGroupBox2.Font = new System.Drawing.Font("微软雅黑", 12F);
  427. this.uiGroupBox2.Location = new System.Drawing.Point(3, 103);
  428. this.uiGroupBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
  429. this.uiGroupBox2.MinimumSize = new System.Drawing.Size(1, 1);
  430. this.uiGroupBox2.Name = "uiGroupBox2";
  431. this.uiGroupBox2.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
  432. this.uiGroupBox2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  433. this.uiGroupBox2.Size = new System.Drawing.Size(159, 153);
  434. this.uiGroupBox2.Style = Sunny.UI.UIStyle.Gray;
  435. this.uiGroupBox2.TabIndex = 27;
  436. this.uiGroupBox2.Text = "查询范围";
  437. this.uiGroupBox2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
  438. //
  439. // uirbtAll
  440. //
  441. this.uirbtAll.Checked = true;
  442. this.uirbtAll.Cursor = System.Windows.Forms.Cursors.Hand;
  443. this.uirbtAll.Font = new System.Drawing.Font("微软雅黑", 12F);
  444. this.uirbtAll.Location = new System.Drawing.Point(13, 35);
  445. this.uirbtAll.MinimumSize = new System.Drawing.Size(1, 1);
  446. this.uirbtAll.Name = "uirbtAll";
  447. this.uirbtAll.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0);
  448. this.uirbtAll.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  449. this.uirbtAll.Size = new System.Drawing.Size(135, 29);
  450. this.uirbtAll.Style = Sunny.UI.UIStyle.Gray;
  451. this.uirbtAll.TabIndex = 29;
  452. this.uirbtAll.Text = "全部数据";
  453. //
  454. // uirbtZdy
  455. //
  456. this.uirbtZdy.Cursor = System.Windows.Forms.Cursors.Hand;
  457. this.uirbtZdy.Font = new System.Drawing.Font("微软雅黑", 12F);
  458. this.uirbtZdy.Location = new System.Drawing.Point(13, 105);
  459. this.uirbtZdy.MinimumSize = new System.Drawing.Size(1, 1);
  460. this.uirbtZdy.Name = "uirbtZdy";
  461. this.uirbtZdy.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0);
  462. this.uirbtZdy.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  463. this.uirbtZdy.Size = new System.Drawing.Size(135, 29);
  464. this.uirbtZdy.Style = Sunny.UI.UIStyle.Gray;
  465. this.uirbtZdy.TabIndex = 30;
  466. this.uirbtZdy.Text = "自定义范围";
  467. //
  468. // uirbtView
  469. //
  470. this.uirbtView.Cursor = System.Windows.Forms.Cursors.Hand;
  471. this.uirbtView.Font = new System.Drawing.Font("微软雅黑", 12F);
  472. this.uirbtView.Location = new System.Drawing.Point(13, 70);
  473. this.uirbtView.MinimumSize = new System.Drawing.Size(1, 1);
  474. this.uirbtView.Name = "uirbtView";
  475. this.uirbtView.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0);
  476. this.uirbtView.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  477. this.uirbtView.Size = new System.Drawing.Size(135, 29);
  478. this.uirbtView.Style = Sunny.UI.UIStyle.Gray;
  479. this.uirbtView.TabIndex = 31;
  480. this.uirbtView.Text = "当前视图";
  481. //
  482. // uiGroupBox1
  483. //
  484. this.uiGroupBox1.Controls.Add(this.uicbxLayer);
  485. this.uiGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
  486. this.uiGroupBox1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244)))));
  487. this.uiGroupBox1.Font = new System.Drawing.Font("微软雅黑", 12F);
  488. this.uiGroupBox1.Location = new System.Drawing.Point(3, 25);
  489. this.uiGroupBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
  490. this.uiGroupBox1.MinimumSize = new System.Drawing.Size(1, 1);
  491. this.uiGroupBox1.Name = "uiGroupBox1";
  492. this.uiGroupBox1.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
  493. this.uiGroupBox1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  494. this.uiGroupBox1.Size = new System.Drawing.Size(159, 78);
  495. this.uiGroupBox1.Style = Sunny.UI.UIStyle.Gray;
  496. this.uiGroupBox1.TabIndex = 32;
  497. this.uiGroupBox1.Text = "统计图层";
  498. this.uiGroupBox1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
  499. //
  500. // uicbxLayer
  501. //
  502. this.uicbxLayer.DataSource = null;
  503. this.uicbxLayer.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList;
  504. this.uicbxLayer.FillColor = System.Drawing.Color.White;
  505. this.uicbxLayer.Font = new System.Drawing.Font("微软雅黑", 12F);
  506. this.uicbxLayer.Location = new System.Drawing.Point(7, 37);
  507. this.uicbxLayer.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
  508. this.uicbxLayer.MinimumSize = new System.Drawing.Size(63, 0);
  509. this.uicbxLayer.Name = "uicbxLayer";
  510. this.uicbxLayer.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2);
  511. this.uicbxLayer.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  512. this.uicbxLayer.Size = new System.Drawing.Size(140, 28);
  513. this.uicbxLayer.Style = Sunny.UI.UIStyle.Gray;
  514. this.uicbxLayer.TabIndex = 28;
  515. this.uicbxLayer.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
  516. this.uicbxLayer.SelectedIndexChanged += new System.EventHandler(this.uicbxLayer_SelectedIndexChanged);
  517. //
  518. // GDStatistics
  519. //
  520. this.Controls.Add(this.groupBoxfsw);
  521. this.Controls.Add(this.groupBoxtz);
  522. this.Controls.Add(this.groupBoxLayer);
  523. this.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244)))));
  524. this.Name = "GDStatistics";
  525. this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
  526. this.Size = new System.Drawing.Size(500, 415);
  527. this.Style = Sunny.UI.UIStyle.Gray;
  528. this.groupBoxfsw.ResumeLayout(false);
  529. this.groupBoxtz.ResumeLayout(false);
  530. this.uiRadioButtonGroup1.ResumeLayout(false);
  531. this.groupBoxLayer.ResumeLayout(false);
  532. this.uiGroupBox2.ResumeLayout(false);
  533. this.uiGroupBox1.ResumeLayout(false);
  534. this.ResumeLayout(false);
  535. }
  536. #endregion
  537. private void uiButton3_Click(object sender, EventArgs e)//清空
  538. {
  539. ComsStatic.CheckListBoxDo(clbfsw, 3);
  540. }
  541. private void uiButton2_Click(object sender, EventArgs e)//反选
  542. {
  543. ComsStatic.CheckListBoxDo(clbfsw, 2);
  544. }
  545. private void uiButton1_Click(object sender, EventArgs e)//全选
  546. {
  547. ComsStatic.CheckListBoxDo(clbfsw, 1);
  548. }
  549. private void uiButton4_Click(object sender, EventArgs e)
  550. {
  551. ComsStatic.CheckListBoxDo(cltz, 3);
  552. }
  553. private void uiButton5_Click(object sender, EventArgs e)
  554. {
  555. ComsStatic.CheckListBoxDo(cltz, 2);
  556. }
  557. private void uiButton6_Click(object sender, EventArgs e)
  558. {
  559. ComsStatic.CheckListBoxDo(cltz, 1);
  560. }
  561. }
  562. }