GXStatistics.cs 28 KB

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