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 System.Text; using System.Windows.Forms; namespace WWPipeLine.MapTools.Conditions.Sercher { public class SercherOnGX : ConditionPanel { public SercherOnGX() : base() { this.ConditionPanelName = "按照管线组合查询"; this.SetSize(800, 585); InitializeComponent(); } private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.CheckedListBox clbzms; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.GroupBox groupBox3; 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 CheckedListBox clbgj; private System.Windows.Forms.CheckedListBox clbCZ; protected override void OnLoad(EventArgs e) { if (!ComsStatic.HasField(ComsStatic.dvJSLK, "cz") || !ComsStatic.HasField(ComsStatic.dvJSLK, "dzms") || !ComsStatic.HasField(ComsStatic.dvJSLK, "gj")) { Sunny.UI.UIMessageTip.ShowError("当前矢量数据集缺少查询信息"); this.ParentForm.Close(); return; } ComsStatic.BindDataTableOnCheckedListBox(ComsStatic.dvJSLK, clbgj, "gj"); ComsStatic.BindDataTableOnCheckedListBox(ComsStatic.dvJSLK, clbCZ, "cz"); ComsStatic.BindDataTableOnCheckedListBox(ComsStatic.dvJSLK, clbzms, "dzms"); } public override object Do(DockPanel dockPanel = null) { //StringBuilder sb = new StringBuilder(); sb.Append("1=1"); //sb.Append(ComsStatic.getSqlCheckListBox(clbCZ, "cz")); //sb.Append(ComsStatic.getSqlCheckListBox(clbgj, "gj")); //sb.Append(ComsStatic.getSqlCheckListBox(ckdzms, "dzms")); //return ComsStatic.QueryDataTable(ComsStatic.dvJSLK, sb.ToString(), ComsStatic.resultFieldsGX); Dictionary dic = new Dictionary(); dic.Add("gj", clbgj); dic.Add("dzms", clbzms); dic.Add("cz", clbCZ); return ComsStatic.QueryDataTable(ComsStatic.dvJSLK, ComsStatic.getSqlCheckListBox(dic), ComsStatic.resultFields); } #region 界面布局 private void InitializeComponent() { this.groupBox1 = new System.Windows.Forms.GroupBox(); this.uiButton7 = new Sunny.UI.UIButton(); this.clbzms = new System.Windows.Forms.CheckedListBox(); this.uiButton8 = new Sunny.UI.UIButton(); this.uiButton9 = new Sunny.UI.UIButton(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.clbCZ = new System.Windows.Forms.CheckedListBox(); this.uiButton1 = new Sunny.UI.UIButton(); this.uiButton2 = new Sunny.UI.UIButton(); this.uiButton3 = new Sunny.UI.UIButton(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.uiButton6 = new Sunny.UI.UIButton(); this.uiButton5 = new Sunny.UI.UIButton(); this.uiButton4 = new Sunny.UI.UIButton(); this.clbgj = new System.Windows.Forms.CheckedListBox(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.uiButton7); this.groupBox1.Controls.Add(this.clbzms); this.groupBox1.Controls.Add(this.uiButton8); this.groupBox1.Controls.Add(this.uiButton9); this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.groupBox1.Location = new System.Drawing.Point(400, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(400, 500); this.groupBox1.TabIndex = 13; this.groupBox1.TabStop = false; this.groupBox1.Text = "地址描述"; // // 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(231, 464); 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(40, 30); this.uiButton7.Style = Sunny.UI.UIStyle.Gray; this.uiButton7.TabIndex = 24; this.uiButton7.Text = "清空"; this.uiButton7.Click += new System.EventHandler(this.uiButton7_Click); // // clbzms // this.clbzms.CheckOnClick = true; this.clbzms.Dock = System.Windows.Forms.DockStyle.Top; this.clbzms.Location = new System.Drawing.Point(3, 25); this.clbzms.Name = "clbzms"; this.clbzms.Size = new System.Drawing.Size(394, 436); this.clbzms.TabIndex = 0; // // 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(169, 464); 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(40, 30); this.uiButton8.Style = Sunny.UI.UIStyle.Gray; this.uiButton8.TabIndex = 23; this.uiButton8.Text = "反选"; this.uiButton8.Click += new System.EventHandler(this.uiButton8_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(107, 464); 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(40, 30); this.uiButton9.Style = Sunny.UI.UIStyle.Gray; this.uiButton9.TabIndex = 22; this.uiButton9.Text = "全选"; this.uiButton9.Click += new System.EventHandler(this.uiButton9_Click); // // groupBox2 // this.groupBox2.Controls.Add(this.clbCZ); this.groupBox2.Controls.Add(this.uiButton1); this.groupBox2.Controls.Add(this.uiButton2); this.groupBox2.Controls.Add(this.uiButton3); this.groupBox2.Dock = System.Windows.Forms.DockStyle.Left; this.groupBox2.Location = new System.Drawing.Point(0, 0); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(200, 500); this.groupBox2.TabIndex = 14; this.groupBox2.TabStop = false; this.groupBox2.Text = "管线材质"; // // clbCZ // this.clbCZ.CheckOnClick = true; this.clbCZ.Dock = System.Windows.Forms.DockStyle.Top; this.clbCZ.Location = new System.Drawing.Point(3, 25); this.clbCZ.Name = "clbCZ"; this.clbCZ.Size = new System.Drawing.Size(194, 436); this.clbCZ.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(17, 464); 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(40, 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(79, 464); 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(40, 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(141, 464); 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(40, 30); this.uiButton3.Style = Sunny.UI.UIStyle.Gray; this.uiButton3.TabIndex = 18; this.uiButton3.Text = "清空"; this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click); // // groupBox3 // this.groupBox3.Controls.Add(this.clbgj); this.groupBox3.Controls.Add(this.uiButton6); this.groupBox3.Controls.Add(this.uiButton5); this.groupBox3.Controls.Add(this.uiButton4); this.groupBox3.Dock = System.Windows.Forms.DockStyle.Left; this.groupBox3.Location = new System.Drawing.Point(200, 0); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(200, 500); this.groupBox3.TabIndex = 15; this.groupBox3.TabStop = false; this.groupBox3.Text = "管径"; // // 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(18, 464); 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(40, 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(80, 464); 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(40, 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(142, 464); 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(40, 30); this.uiButton4.Style = Sunny.UI.UIStyle.Gray; this.uiButton4.TabIndex = 21; this.uiButton4.Text = "清空"; this.uiButton4.Click += new System.EventHandler(this.uiButton4_Click); // // clbgj // this.clbgj.CheckOnClick = true; this.clbgj.Dock = System.Windows.Forms.DockStyle.Top; this.clbgj.Location = new System.Drawing.Point(3, 25); this.clbgj.Name = "clbgj"; this.clbgj.Size = new System.Drawing.Size(194, 436); this.clbgj.TabIndex = 1; // // SercherOnGX // this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox3); this.Controls.Add(this.groupBox2); this.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244))))); this.Name = "SercherOnGX"; this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.Size = new System.Drawing.Size(800, 500); this.Style = Sunny.UI.UIStyle.Gray; this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.ResumeLayout(false); } #endregion private void uiButton3_Click(object sender, EventArgs e)//清空 { ComsStatic.CheckListBoxDo(clbCZ, 3); } private void uiButton2_Click(object sender, EventArgs e)//反选 { ComsStatic.CheckListBoxDo(clbCZ, 2); } private void uiButton1_Click(object sender, EventArgs e)//全选 { ComsStatic.CheckListBoxDo(clbCZ, 1); } private void uiButton4_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(clbgj, 3); } private void uiButton5_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(clbgj, 2); } private void uiButton6_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(clbgj, 1); } private void uiButton9_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(clbzms, 1); } private void uiButton8_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(clbzms, 2); } private void uiButton7_Click(object sender, EventArgs e) { ComsStatic.CheckListBoxDo(clbzms, 3); } } }