SercherOnGD.cs 28 KB

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