using SuperMap.Data; using SuperMap.Mapping; using SuperMap.UI; using System; using System.Collections.Generic; using System.Data; using System.Drawing; using WeifenLuo.WinFormsUI.Docking; using WWPipeLine.MapBasic.Conditions; using WWPipeLine.MapBasic; using Sunny.UI; using System.Windows.Forms; using System.Text; namespace WWPipeLine.MapTools.Conditions.Sercher { public class SercherOnGD : ConditionPanel { public SercherOnGD() : base() { this.ConditionPanelName = "按照管点组合查询"; this.SetSize(635, 500); InitializeComponent(); } private GroupBox groupBoxgg; private CheckedListBox ckgg; private GroupBox groupBoxfsw; private GroupBox groupBoxtz; private CheckedListBox cltz; private Sunny.UI.UIButton uiButton1; private Sunny.UI.UIButton uiButton2; private Sunny.UI.UIButton uiButton3; private Sunny.UI.UIButton uiButton6; private Sunny.UI.UIButton uiButton5; private Sunny.UI.UIButton uiButton4; private Sunny.UI.UIButton uiButton9; private Sunny.UI.UIButton uiButton8; private Sunny.UI.UIButton uiButton7; private GroupBox groupBoxLayer; private CheckedListBox clbfsw; private UIComboBox uicbxLayer; private UILabel uiLabel2; private UIRadioButton uirbtAll; private UIRadioButton uirbtView; private UIRadioButton uirbtZdy; private UILabel uiLabel1; DatasetVector dv = null; protected override void OnLoad(EventArgs e) { ComsStatic.BindUICombox(uicbxLayer, false); } public override object Do(DockPanel dockPanel = null) { if (dv is null) { Sunny.UI.UIMessageTip.ShowError("请先选择需要查询的管点类型,并点击获取管点信息"); return false; } Dictionary dic = new Dictionary(); dic.Add("fsw", clbfsw); dic.Add("tz", cltz); dic.Add("gg", ckgg); string sqlWhere = ComsStatic.getSqlCheckListBox(dic); QueryParameter queryParameter = new QueryParameter { AttributeFilter = sqlWhere, ResultFields = ComsStatic.resultFieldsGD, CursorType = CursorType.Static }; if (uirbtAll.Checked) { } if (uirbtView.Checked) { queryParameter.SpatialQueryMode = SpatialQueryMode.Contain; queryParameter.SpatialQueryObject = MapControl.Map.ViewBounds; } if (uirbtZdy.Checked) { int index = MapControl.Map.TrackingLayer.IndexOf(ComsStatic.ControlToolsTrackingName); if (index == -1) { Sunny.UI.UIMessageTip.ShowError("请先绘制区域"); return false; } GeoRegion geo = MapControl.Map.TrackingLayer.Get(index) as GeoRegion; queryParameter.SpatialQueryMode = SpatialQueryMode.Contain; queryParameter.SpatialQueryObject = geo; } return ComsStatic.RecordsetToDataTable(dv.Query(queryParameter)); } private void uicbxLayer_SelectedIndexChanged(object sender, EventArgs e) { DoListItem item = (DoListItem)uicbxLayer.SelectedItem; dv = ComsStatic.Datasource.Datasets[item.Key] as DatasetVector; if (dv is null) { UIMessageTip.ShowError("当前选择的图层没有匹配的数据源"); return; } ComsStatic.BindDataTableOnCheckedListBox(dv, cltz, "tz"); ComsStatic.BindDataTableOnCheckedListBox(dv, clbfsw, "fsw"); ComsStatic.BindDataTableOnCheckedListBox(dv, ckgg, "gg"); } #region 界面布局 private void InitializeComponent() { this.groupBoxgg = new System.Windows.Forms.GroupBox(); this.ckgg = new System.Windows.Forms.CheckedListBox(); this.uiButton7 = new Sunny.UI.UIButton(); this.uiButton9 = new Sunny.UI.UIButton(); this.uiButton8 = new Sunny.UI.UIButton(); this.groupBoxfsw = new System.Windows.Forms.GroupBox(); this.clbfsw = new System.Windows.Forms.CheckedListBox(); this.uiButton1 = new Sunny.UI.UIButton(); this.uiButton2 = new Sunny.UI.UIButton(); this.uiButton3 = new Sunny.UI.UIButton(); this.groupBoxtz = new System.Windows.Forms.GroupBox(); this.cltz = new System.Windows.Forms.CheckedListBox(); this.uiButton6 = new Sunny.UI.UIButton(); this.uiButton5 = new Sunny.UI.UIButton(); this.uiButton4 = new Sunny.UI.UIButton(); this.groupBoxLayer = new System.Windows.Forms.GroupBox(); this.uiLabel1 = new Sunny.UI.UILabel(); this.uirbtView = new Sunny.UI.UIRadioButton(); this.uirbtZdy = new Sunny.UI.UIRadioButton(); this.uirbtAll = new Sunny.UI.UIRadioButton(); this.uicbxLayer = new Sunny.UI.UIComboBox(); this.uiLabel2 = new Sunny.UI.UILabel(); this.groupBoxgg.SuspendLayout(); this.groupBoxfsw.SuspendLayout(); this.groupBoxtz.SuspendLayout(); this.groupBoxLayer.SuspendLayout(); this.SuspendLayout(); // // groupBoxgg // this.groupBoxgg.Controls.Add(this.ckgg); this.groupBoxgg.Controls.Add(this.uiButton7); this.groupBoxgg.Controls.Add(this.uiButton9); this.groupBoxgg.Controls.Add(this.uiButton8); this.groupBoxgg.Dock = System.Windows.Forms.DockStyle.Left; this.groupBoxgg.Location = new System.Drawing.Point(316, 0); this.groupBoxgg.Name = "groupBoxgg"; this.groupBoxgg.Size = new System.Drawing.Size(158, 415); this.groupBoxgg.TabIndex = 13; this.groupBoxgg.TabStop = false; this.groupBoxgg.Text = "规格"; // // ckgg // this.ckgg.BorderStyle = System.Windows.Forms.BorderStyle.None; this.ckgg.CheckOnClick = true; this.ckgg.Dock = System.Windows.Forms.DockStyle.Top; this.ckgg.Location = new System.Drawing.Point(3, 25); this.ckgg.Name = "ckgg"; this.ckgg.Size = new System.Drawing.Size(152, 336); this.ckgg.TabIndex = 0; // // uiButton7 // this.uiButton7.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton7.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton7.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton7.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton7.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton7.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton7.Location = new System.Drawing.Point(111, 379); this.uiButton7.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton7.Name = "uiButton7"; this.uiButton7.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton7.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton7.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton7.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton7.Size = new System.Drawing.Size(41, 30); this.uiButton7.Style = Sunny.UI.UIStyle.Gray; this.uiButton7.TabIndex = 24; this.uiButton7.Text = "清空"; this.uiButton7.Click += new System.EventHandler(this.uiButton7_Click); // // uiButton9 // this.uiButton9.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton9.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton9.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton9.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton9.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton9.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton9.Location = new System.Drawing.Point(12, 379); this.uiButton9.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton9.Name = "uiButton9"; this.uiButton9.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton9.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton9.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton9.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton9.Size = new System.Drawing.Size(41, 30); this.uiButton9.Style = Sunny.UI.UIStyle.Gray; this.uiButton9.TabIndex = 22; this.uiButton9.Text = "全选"; this.uiButton9.Click += new System.EventHandler(this.uiButton9_Click); // // uiButton8 // this.uiButton8.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton8.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton8.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton8.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton8.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton8.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton8.Location = new System.Drawing.Point(62, 379); this.uiButton8.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton8.Name = "uiButton8"; this.uiButton8.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton8.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton8.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton8.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton8.Size = new System.Drawing.Size(41, 30); this.uiButton8.Style = Sunny.UI.UIStyle.Gray; this.uiButton8.TabIndex = 23; this.uiButton8.Text = "反选"; this.uiButton8.Click += new System.EventHandler(this.uiButton8_Click); // // groupBoxfsw // this.groupBoxfsw.Controls.Add(this.clbfsw); this.groupBoxfsw.Controls.Add(this.uiButton1); this.groupBoxfsw.Controls.Add(this.uiButton2); this.groupBoxfsw.Controls.Add(this.uiButton3); this.groupBoxfsw.Dock = System.Windows.Forms.DockStyle.Left; this.groupBoxfsw.Location = new System.Drawing.Point(158, 0); this.groupBoxfsw.Name = "groupBoxfsw"; this.groupBoxfsw.Size = new System.Drawing.Size(158, 415); this.groupBoxfsw.TabIndex = 14; this.groupBoxfsw.TabStop = false; this.groupBoxfsw.Text = "附属物"; // // clbfsw // this.clbfsw.BorderStyle = System.Windows.Forms.BorderStyle.None; this.clbfsw.CheckOnClick = true; this.clbfsw.Dock = System.Windows.Forms.DockStyle.Top; this.clbfsw.Location = new System.Drawing.Point(3, 25); this.clbfsw.Name = "clbfsw"; this.clbfsw.Size = new System.Drawing.Size(152, 336); this.clbfsw.TabIndex = 0; // // uiButton1 // this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton1.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton1.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton1.Location = new System.Drawing.Point(10, 379); this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton1.Name = "uiButton1"; this.uiButton1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton1.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton1.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton1.Size = new System.Drawing.Size(41, 30); this.uiButton1.Style = Sunny.UI.UIStyle.Gray; this.uiButton1.TabIndex = 16; this.uiButton1.Text = "全选"; this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click); // // uiButton2 // this.uiButton2.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton2.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton2.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton2.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton2.Location = new System.Drawing.Point(60, 379); this.uiButton2.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton2.Name = "uiButton2"; this.uiButton2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton2.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton2.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton2.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton2.Size = new System.Drawing.Size(41, 30); this.uiButton2.Style = Sunny.UI.UIStyle.Gray; this.uiButton2.TabIndex = 17; this.uiButton2.Text = "反选"; this.uiButton2.Click += new System.EventHandler(this.uiButton2_Click); // // uiButton3 // this.uiButton3.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton3.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton3.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton3.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton3.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton3.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton3.Location = new System.Drawing.Point(109, 379); this.uiButton3.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton3.Name = "uiButton3"; this.uiButton3.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton3.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton3.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton3.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton3.Size = new System.Drawing.Size(41, 30); this.uiButton3.Style = Sunny.UI.UIStyle.Gray; this.uiButton3.TabIndex = 18; this.uiButton3.Text = "清空"; this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click); // // groupBoxtz // this.groupBoxtz.Controls.Add(this.cltz); this.groupBoxtz.Controls.Add(this.uiButton6); this.groupBoxtz.Controls.Add(this.uiButton5); this.groupBoxtz.Controls.Add(this.uiButton4); this.groupBoxtz.Dock = System.Windows.Forms.DockStyle.Left; this.groupBoxtz.Location = new System.Drawing.Point(474, 0); this.groupBoxtz.Name = "groupBoxtz"; this.groupBoxtz.Size = new System.Drawing.Size(158, 415); this.groupBoxtz.TabIndex = 15; this.groupBoxtz.TabStop = false; this.groupBoxtz.Text = "特征"; // // cltz // this.cltz.BorderStyle = System.Windows.Forms.BorderStyle.None; this.cltz.CheckOnClick = true; this.cltz.Dock = System.Windows.Forms.DockStyle.Top; this.cltz.Location = new System.Drawing.Point(3, 25); this.cltz.Name = "cltz"; this.cltz.Size = new System.Drawing.Size(152, 336); this.cltz.TabIndex = 1; // // uiButton6 // this.uiButton6.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton6.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton6.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton6.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton6.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton6.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton6.Location = new System.Drawing.Point(6, 379); this.uiButton6.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton6.Name = "uiButton6"; this.uiButton6.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton6.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton6.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton6.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton6.Size = new System.Drawing.Size(41, 30); this.uiButton6.Style = Sunny.UI.UIStyle.Gray; this.uiButton6.TabIndex = 19; this.uiButton6.Text = "全选"; this.uiButton6.Click += new System.EventHandler(this.uiButton6_Click); // // uiButton5 // this.uiButton5.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton5.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton5.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton5.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton5.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton5.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton5.Location = new System.Drawing.Point(55, 379); this.uiButton5.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton5.Name = "uiButton5"; this.uiButton5.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton5.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton5.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton5.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton5.Size = new System.Drawing.Size(41, 30); this.uiButton5.Style = Sunny.UI.UIStyle.Gray; this.uiButton5.TabIndex = 20; this.uiButton5.Text = "反选"; this.uiButton5.Click += new System.EventHandler(this.uiButton5_Click); // // uiButton4 // this.uiButton4.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton4.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton4.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton4.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton4.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton4.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton4.Location = new System.Drawing.Point(105, 379); this.uiButton4.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton4.Name = "uiButton4"; this.uiButton4.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiButton4.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165))))); this.uiButton4.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton4.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129))))); this.uiButton4.Size = new System.Drawing.Size(41, 30); this.uiButton4.Style = Sunny.UI.UIStyle.Gray; this.uiButton4.TabIndex = 21; this.uiButton4.Text = "清空"; this.uiButton4.Click += new System.EventHandler(this.uiButton4_Click); // // groupBoxLayer // this.groupBoxLayer.Controls.Add(this.uiLabel1); this.groupBoxLayer.Controls.Add(this.uirbtView); this.groupBoxLayer.Controls.Add(this.uirbtZdy); this.groupBoxLayer.Controls.Add(this.uirbtAll); this.groupBoxLayer.Controls.Add(this.uicbxLayer); this.groupBoxLayer.Controls.Add(this.uiLabel2); this.groupBoxLayer.Dock = System.Windows.Forms.DockStyle.Left; this.groupBoxLayer.Location = new System.Drawing.Point(0, 0); this.groupBoxLayer.Name = "groupBoxLayer"; this.groupBoxLayer.Size = new System.Drawing.Size(158, 415); this.groupBoxLayer.TabIndex = 25; this.groupBoxLayer.TabStop = false; // // uiLabel1 // this.uiLabel1.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiLabel1.Location = new System.Drawing.Point(6, 137); this.uiLabel1.Name = "uiLabel1"; this.uiLabel1.Size = new System.Drawing.Size(156, 23); this.uiLabel1.Style = Sunny.UI.UIStyle.Gray; this.uiLabel1.TabIndex = 10; this.uiLabel1.Text = "查询范围:"; this.uiLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // uirbtView // this.uirbtView.Cursor = System.Windows.Forms.Cursors.Hand; this.uirbtView.Font = new System.Drawing.Font("微软雅黑", 12F); this.uirbtView.Location = new System.Drawing.Point(20, 198); this.uirbtView.MinimumSize = new System.Drawing.Size(1, 1); this.uirbtView.Name = "uirbtView"; this.uirbtView.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0); this.uirbtView.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uirbtView.Size = new System.Drawing.Size(135, 29); this.uirbtView.Style = Sunny.UI.UIStyle.Gray; this.uirbtView.TabIndex = 9; this.uirbtView.Text = "当前视图"; // // uirbtZdy // this.uirbtZdy.Cursor = System.Windows.Forms.Cursors.Hand; this.uirbtZdy.Font = new System.Drawing.Font("微软雅黑", 12F); this.uirbtZdy.Location = new System.Drawing.Point(20, 233); this.uirbtZdy.MinimumSize = new System.Drawing.Size(1, 1); this.uirbtZdy.Name = "uirbtZdy"; this.uirbtZdy.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0); this.uirbtZdy.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uirbtZdy.Size = new System.Drawing.Size(135, 29); this.uirbtZdy.Style = Sunny.UI.UIStyle.Gray; this.uirbtZdy.TabIndex = 8; this.uirbtZdy.Text = "自定义范围"; // // uirbtAll // this.uirbtAll.Checked = true; this.uirbtAll.Cursor = System.Windows.Forms.Cursors.Hand; this.uirbtAll.Font = new System.Drawing.Font("微软雅黑", 12F); this.uirbtAll.Location = new System.Drawing.Point(20, 163); this.uirbtAll.MinimumSize = new System.Drawing.Size(1, 1); this.uirbtAll.Name = "uirbtAll"; this.uirbtAll.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0); this.uirbtAll.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uirbtAll.Size = new System.Drawing.Size(135, 29); this.uirbtAll.Style = Sunny.UI.UIStyle.Gray; this.uirbtAll.TabIndex = 7; this.uirbtAll.Text = "全部数据"; // // uicbxLayer // this.uicbxLayer.DataSource = null; this.uicbxLayer.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; this.uicbxLayer.FillColor = System.Drawing.Color.White; this.uicbxLayer.Font = new System.Drawing.Font("微软雅黑", 12F); this.uicbxLayer.Location = new System.Drawing.Point(12, 68); this.uicbxLayer.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uicbxLayer.MinimumSize = new System.Drawing.Size(63, 0); this.uicbxLayer.Name = "uicbxLayer"; this.uicbxLayer.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2); this.uicbxLayer.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uicbxLayer.Size = new System.Drawing.Size(140, 28); this.uicbxLayer.Style = Sunny.UI.UIStyle.Gray; this.uicbxLayer.TabIndex = 6; this.uicbxLayer.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; this.uicbxLayer.SelectedIndexChanged += new System.EventHandler(this.uicbxLayer_SelectedIndexChanged); // // uiLabel2 // this.uiLabel2.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiLabel2.Location = new System.Drawing.Point(6, 40); this.uiLabel2.Name = "uiLabel2"; this.uiLabel2.Size = new System.Drawing.Size(80, 23); this.uiLabel2.Style = Sunny.UI.UIStyle.Gray; this.uiLabel2.TabIndex = 5; this.uiLabel2.Text = "查询图层:"; this.uiLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // SercherOnGD // this.Controls.Add(this.groupBoxtz); this.Controls.Add(this.groupBoxgg); this.Controls.Add(this.groupBoxfsw); this.Controls.Add(this.groupBoxLayer); this.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244))))); this.Name = "SercherOnGD"; this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.Size = new System.Drawing.Size(635, 415); this.Style = Sunny.UI.UIStyle.Gray; this.groupBoxgg.ResumeLayout(false); this.groupBoxfsw.ResumeLayout(false); this.groupBoxtz.ResumeLayout(false); this.groupBoxLayer.ResumeLayout(false); this.ResumeLayout(false); } #endregion private void uiButton3_Click(object sender, EventArgs e)//清空 { ComsStatic.CheckListBoxDo(clbfsw, 3); } private void uiButton2_Click(object sender, EventArgs e)//反选 { ComsStatic.CheckListBoxDo(clbfsw, 2); } private void uiButton1_Click(object sender, EventArgs e)//全选 { ComsStatic.CheckListBoxDo(clbfsw, 1); } private void uiButton4_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(cltz, 3); } private void uiButton5_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(cltz, 2); } private void uiButton6_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(cltz, 1); } private void uiButton9_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(ckgg, 1); } private void uiButton8_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(ckgg, 2); } private void uiButton7_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(ckgg, 3); } } }