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; namespace WWPipeLine.MapTools.Conditions.Statistics { public class GXStatistics : ConditionPanel { public GXStatistics() : base() { this.ConditionPanelName = "按照管线的组合统计"; this.SetSize(460, 585); InitializeComponent(); } private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.CheckedListBox clbgj; 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.UIRadioButtonGroup uiRadioButtonGroup1; private Sunny.UI.UIRadioButton uiRadioButton2; private Sunny.UI.UIRadioButton uiRadioButton1; private System.Windows.Forms.CheckedListBox clbCZ; protected override void OnLoad(EventArgs e) { if (!ComsStatic.HasField(ComsStatic.dvJSLK, "cz") || !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"); } public override object Do(DockPanel dockPanel = null) { if (clbCZ.CheckedItems.Count == 0 || clbgj.CheckedItems.Count == 0) { Sunny.UI.UIMessageTip.ShowError("请先选择需要统计的分类数据"); return false; } List czList = new List(); foreach (string str in clbCZ.CheckedItems) { czList.Add(str); } List gjList = new List(); foreach (string str in clbgj.CheckedItems) { gjList.Add(str); } DataTable dt = new DataTable(); DataColumn dataColumn = new DataColumn { ColumnName = "zfl", Caption = "主分类字段" }; dt.Columns.Add(dataColumn); dataColumn = new DataColumn { ColumnName = "cfl", Caption = "次分类字段" }; dt.Columns.Add(dataColumn); dataColumn = new DataColumn { ColumnName = "cdm", Caption = "长度(米)", DataType = Type.GetType("System.Double") }; dt.Columns.Add(dataColumn); dataColumn = new DataColumn { ColumnName = "slg", Caption = "数量(根)", DataType = Type.GetType("System.Int32") }; dt.Columns.Add(dataColumn); Recordset rdc = null; DataRow dr; string zfl = string.Empty; string cfl = string.Empty; if (uiRadioButton1.Checked)//材质是主分类字段 { dt.Columns["zfl"].Caption = "主分类:材质"; dt.Columns["cfl"].Caption = "次分类:管径"; foreach (string ls in czList.ToArray()) { zfl = (ls == "未知" ? " cz is null " : string.Format(" cz='{0}' ", ls)); foreach (string lsc in gjList.ToArray()) { dr = dt.NewRow(); cfl = (lsc == "未知" ? string.Format("{0} AND gj is null", zfl) : string.Format("{0} AND gj='{1}'", zfl, lsc)); rdc = ComsStatic.QueryRecordset(ComsStatic.dvJSLK, cfl, new string[] { "cz", "cd", "gj" }); dr[0] = ls; dr[1] = lsc; dr[2] = ComsStatic.StringToDouble(rdc.Statistic("cd", StatisticMode.Sum), 0); dr[3] = rdc.RecordCount; dt.Rows.Add(dr); } string sql = ls == "未知" ? string.Format("zfl='{0}' AND cfl<>null ", ls) : string.Format("zfl='{0}' AND cfl<>null ", ls); object dtSum = dt.Compute(" SUM(cdm) ", string.Format("zfl='{0}'", ls)); object dtCount = dt.Compute(" SUM(slg) ", string.Format("zfl='{0}'", ls)); dr = dt.NewRow(); dr[0] = string.Format("\"{0}\" 合计", ls); dr[2] = ComsStatic.StringToDouble(dtSum, 0); dr[3] = dtCount; dt.Rows.Add(dr); } } if (uiRadioButton2.Checked)//管径是主分类字段 { dt.Columns["zfl"].Caption = "主分类:管径"; dt.Columns["cfl"].Caption = "次分类:材质"; foreach (string ls in gjList.ToArray()) { zfl = (ls == "未知" ? " gj is null " : string.Format(" gj='{0}' ", ls)); foreach (string lsc in czList.ToArray()) { dr = dt.NewRow(); cfl = (lsc == "未知" ? string.Format(" {0} AND cz is null ", zfl) : string.Format("{0} AND cz='{1}'", zfl, lsc)); rdc = ComsStatic.QueryRecordset(ComsStatic.dvJSLK, cfl, new string[] { "cz", "cd", "gj" }); dr[0] = ls; dr[1] = lsc; dr[2] = ComsStatic.StringToDouble(rdc.Statistic("cd", StatisticMode.Sum), 0); dr[3] = rdc.RecordCount; dt.Rows.Add(dr); } string sql = ls == "未知" ? string.Format("zfl='{0}' AND cfl<>null ", ls) : string.Format("zfl='{0}' AND cfl<>null ", ls); object dtSum = dt.Compute(" SUM(cdm) ", string.Format("zfl='{0}'", ls)); object dtCount = dt.Compute(" SUM(slg) ", string.Format("zfl='{0}'", ls)); dr = dt.NewRow(); dr[0] = string.Format("\"{0}\" 合计", ls); dr[2] = ComsStatic.StringToDouble(dtSum, 0); dr[3] = dtCount; dt.Rows.Add(dr); } } ComsStatic.RecordsetDispose(rdc); return dt; } #region 界面布局 private void InitializeComponent() { 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.clbgj = new System.Windows.Forms.CheckedListBox(); this.uiButton4 = new Sunny.UI.UIButton(); this.uiButton6 = new Sunny.UI.UIButton(); this.uiButton5 = new Sunny.UI.UIButton(); this.uiRadioButtonGroup1 = new Sunny.UI.UIRadioButtonGroup(); this.uiRadioButton2 = new Sunny.UI.UIRadioButton(); this.uiRadioButton1 = new Sunny.UI.UIRadioButton(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.uiRadioButtonGroup1.SuspendLayout(); this.SuspendLayout(); // // 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(179, 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(173, 412); 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(13, 455); 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(35, 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(75, 455); 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(35, 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(137, 455); 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(35, 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.uiButton4); this.groupBox3.Controls.Add(this.uiButton6); this.groupBox3.Controls.Add(this.uiButton5); this.groupBox3.Dock = System.Windows.Forms.DockStyle.Left; this.groupBox3.Location = new System.Drawing.Point(179, 0); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(179, 500); this.groupBox3.TabIndex = 15; this.groupBox3.TabStop = false; this.groupBox3.Text = "管径"; // // 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(173, 412); this.clbgj.TabIndex = 1; // // 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(134, 455); 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(35, 30); this.uiButton4.Style = Sunny.UI.UIStyle.Gray; this.uiButton4.TabIndex = 21; this.uiButton4.Text = "清空"; this.uiButton4.Click += new System.EventHandler(this.uiButton4_Click); // // 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(10, 455); 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(35, 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(72, 455); 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(35, 30); this.uiButton5.Style = Sunny.UI.UIStyle.Gray; this.uiButton5.TabIndex = 20; this.uiButton5.Text = "反选"; this.uiButton5.Click += new System.EventHandler(this.uiButton5_Click); // // uiRadioButtonGroup1 // this.uiRadioButtonGroup1.Controls.Add(this.uiRadioButton2); this.uiRadioButtonGroup1.Controls.Add(this.uiRadioButton1); this.uiRadioButtonGroup1.Dock = System.Windows.Forms.DockStyle.Top; this.uiRadioButtonGroup1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244))))); this.uiRadioButtonGroup1.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiRadioButtonGroup1.Location = new System.Drawing.Point(358, 0); this.uiRadioButtonGroup1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiRadioButtonGroup1.MinimumSize = new System.Drawing.Size(1, 1); this.uiRadioButtonGroup1.Name = "uiRadioButtonGroup1"; this.uiRadioButtonGroup1.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0); this.uiRadioButtonGroup1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiRadioButtonGroup1.Size = new System.Drawing.Size(102, 146); this.uiRadioButtonGroup1.Style = Sunny.UI.UIStyle.Gray; this.uiRadioButtonGroup1.TabIndex = 23; this.uiRadioButtonGroup1.Text = "主分类字段"; this.uiRadioButtonGroup1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; // // uiRadioButton2 // this.uiRadioButton2.Cursor = System.Windows.Forms.Cursors.Hand; this.uiRadioButton2.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiRadioButton2.Location = new System.Drawing.Point(13, 90); this.uiRadioButton2.MinimumSize = new System.Drawing.Size(1, 1); this.uiRadioButton2.Name = "uiRadioButton2"; this.uiRadioButton2.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0); this.uiRadioButton2.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiRadioButton2.Size = new System.Drawing.Size(83, 29); this.uiRadioButton2.Style = Sunny.UI.UIStyle.Gray; this.uiRadioButton2.TabIndex = 1; this.uiRadioButton2.Text = "管径"; // // uiRadioButton1 // this.uiRadioButton1.Checked = true; this.uiRadioButton1.Cursor = System.Windows.Forms.Cursors.Hand; this.uiRadioButton1.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiRadioButton1.Location = new System.Drawing.Point(13, 45); this.uiRadioButton1.MinimumSize = new System.Drawing.Size(1, 1); this.uiRadioButton1.Name = "uiRadioButton1"; this.uiRadioButton1.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0); this.uiRadioButton1.RadioButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.uiRadioButton1.Size = new System.Drawing.Size(104, 29); this.uiRadioButton1.Style = Sunny.UI.UIStyle.Gray; this.uiRadioButton1.TabIndex = 0; this.uiRadioButton1.Text = "材质"; // // GXStatistics // this.Controls.Add(this.uiRadioButtonGroup1); 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 = "GXStatistics"; this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.Size = new System.Drawing.Size(460, 500); this.Style = Sunny.UI.UIStyle.Gray; this.groupBox2.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.uiRadioButtonGroup1.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); } } }