SercherOnGD.cs 25 KB

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