SercherOnGD.cs 24 KB

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