| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466 |
- 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;
- namespace WWPipeLine.MapTools.Conditions.Statistics
- {
- public class GDStatistics : ConditionPanel
- {
- public GDStatistics() : base()
- {
- this.ConditionPanelName = "按照管点组合统计";
- this.SetSize(500, 585);
- InitializeComponent();
- }
- 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 CheckedListBox clbfsw;
- private LayerWithDataListPanel LayerPanel;
- private UIRadioButtonGroup uiRadioButtonGroup1;
- private UIRadioButton uiRadioButton2;
- private UIRadioButton uiRadioButton1;
- private UIButton uiButton10;
- private GroupBox groupBoxLayer;
- DatasetVector dv = null;
- protected override void OnLoad(EventArgs e)
- {
- LayerPanel = new LayerWithDataListPanel();
- LayerPanel.LoadToVector(false, false);
- groupBoxLayer.Controls.Add(LayerPanel);
- }
- public override object Do(DockPanel dockPanel = null)
- {
- if (dv is null)
- {
- Sunny.UI.UIMessageTip.ShowError("请先选择需要查询的管点类型,并点击获取管点信息"); return false;
- }
- if (cltz.CheckedItems.Count == 0 || clbfsw.CheckedItems.Count == 0)
- {
- Sunny.UI.UIMessageTip.ShowError("请先选择需要统计的分类数据"); return false;
- }
- List<string> tzList = new List<string>();
- foreach (string str in cltz.CheckedItems)
- {
- tzList.Add(str);
- }
- List<string> fswList = new List<string>();
- foreach (string str in clbfsw.CheckedItems)
- {
- fswList.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 = "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 fswList.ToArray())
- {
- zfl = (ls == "未知" ? " fsw is null " : string.Format(" fsw='{0}' ", ls));
- foreach (string lsc in tzList.ToArray())
- {
- dr = dt.NewRow();
- cfl = (lsc == "未知" ? string.Format(" {0} AND tz is null ", zfl) : string.Format("{0} AND tz='{1}'", zfl, lsc));
- rdc = ComsStatic.QueryRecordset(dv, cfl, new string[] { "fsw", "tz" });
- dr[0] = ls; dr[1] = lsc; dr[2] = 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(slg) ", string.Format("zfl='{0}'", ls));
- dr = dt.NewRow();
- dr[0] = string.Format("\"{0}\" 合计", ls); dr[2] = dtSum;
- dt.Rows.Add(dr);
- }
- }
- if (uiRadioButton2.Checked)//特征是主分类字段
- {
- dt.Columns["zfl"].Caption = "主分类:特征"; dt.Columns["cfl"].Caption = "次分类:附属物";
- foreach (string ls in tzList.ToArray())
- {
- zfl = (ls == "未知" ? " tz is null " : string.Format(" tz='{0}' ", ls));
- foreach (string lsc in fswList.ToArray())
- {
- dr = dt.NewRow();
- //cfl = string.Format("{0} AND fsw='{1}'", zfl, lsc);
- cfl = (lsc == "未知" ? string.Format(" {0} AND fsw is null ", zfl) : string.Format("{0} AND fsw='{1}'", zfl, lsc));
- rdc = ComsStatic.QueryRecordset(dv, cfl, new string[] { "fsw", "tz" });
- dr[0] = ls; dr[1] = lsc; dr[2] = 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(slg) ", string.Format("zfl='{0}'", ls));
- dr = dt.NewRow();
- dr[0] = string.Format("\"{0}\" 合计", ls); dr[2] = dtSum;
- dt.Rows.Add(dr);
- }
- }
- ComsStatic.RecordsetDispose(rdc);
- return dt;
- }
- private void uiButton10_Click(object sender, EventArgs e)
- {
- if (LayerPanel.SelectLayers.Count != 1)
- {
- Sunny.UI.UIMessageTip.ShowError("请先选择需要统计的图层"); return;
- }
- dv = LayerPanel.SelectLayers[0].Dataset as DatasetVector;
- if (!ComsStatic.HasField(dv, "fsw") || !ComsStatic.HasField(dv, "tz"))
- {
- Sunny.UI.UIMessageTip.ShowError("当前矢量数据集缺少统计信息"); return;
- }
- ComsStatic.BindDataTableOnCheckedListBox(dv, cltz, "tz");
- ComsStatic.BindDataTableOnCheckedListBox(dv, clbfsw, "fsw");
- }
- #region 界面布局
- private void InitializeComponent()
- {
- 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.uiButton4 = 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.uiButton10 = new Sunny.UI.UIButton();
- this.groupBoxLayer = new System.Windows.Forms.GroupBox();
- this.groupBoxfsw.SuspendLayout();
- this.groupBoxtz.SuspendLayout();
- this.uiRadioButtonGroup1.SuspendLayout();
- this.groupBoxLayer.SuspendLayout();
- this.SuspendLayout();
- //
- // 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(328, 0);
- this.groupBoxfsw.Name = "groupBoxfsw";
- this.groupBoxfsw.Size = new System.Drawing.Size(164, 500);
- this.groupBoxfsw.TabIndex = 14;
- this.groupBoxfsw.TabStop = false;
- this.groupBoxfsw.Text = "附属物";
- //
- // clbfsw
- //
- 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(158, 436);
- 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(18, 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(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(69, 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(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(120, 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(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);
- //
- // groupBoxtz
- //
- this.groupBoxtz.Controls.Add(this.cltz);
- this.groupBoxtz.Controls.Add(this.uiButton6);
- this.groupBoxtz.Controls.Add(this.uiButton4);
- this.groupBoxtz.Controls.Add(this.uiButton5);
- this.groupBoxtz.Dock = System.Windows.Forms.DockStyle.Left;
- this.groupBoxtz.Location = new System.Drawing.Point(164, 0);
- this.groupBoxtz.Name = "groupBoxtz";
- this.groupBoxtz.Size = new System.Drawing.Size(164, 500);
- this.groupBoxtz.TabIndex = 15;
- this.groupBoxtz.TabStop = false;
- this.groupBoxtz.Text = "特征";
- //
- // cltz
- //
- 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(158, 436);
- 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(11, 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(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);
- //
- // 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(115, 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(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);
- //
- // 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(63, 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(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(492, 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(108, 153);
- this.uiRadioButtonGroup1.Style = Sunny.UI.UIStyle.Gray;
- this.uiRadioButtonGroup1.TabIndex = 26;
- 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, 98);
- 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(9, 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(92, 29);
- this.uiRadioButton1.Style = Sunny.UI.UIStyle.Gray;
- this.uiRadioButton1.TabIndex = 0;
- this.uiRadioButton1.Text = "附属物";
- //
- // uiButton10
- //
- this.uiButton10.Cursor = System.Windows.Forms.Cursors.Hand;
- this.uiButton10.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.uiButton10.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
- this.uiButton10.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
- this.uiButton10.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
- this.uiButton10.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
- this.uiButton10.Font = new System.Drawing.Font("微软雅黑", 12F);
- this.uiButton10.Location = new System.Drawing.Point(3, 467);
- this.uiButton10.MinimumSize = new System.Drawing.Size(1, 1);
- this.uiButton10.Name = "uiButton10";
- this.uiButton10.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
- this.uiButton10.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(160)))), ((int)(((byte)(165)))));
- this.uiButton10.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
- this.uiButton10.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(123)))), ((int)(((byte)(129)))));
- this.uiButton10.Size = new System.Drawing.Size(158, 30);
- this.uiButton10.Style = Sunny.UI.UIStyle.Gray;
- this.uiButton10.TabIndex = 0;
- this.uiButton10.Text = "获取管点信息";
- this.uiButton10.Click += new System.EventHandler(this.uiButton10_Click);
- //
- // groupBoxLayer
- //
- this.groupBoxLayer.Controls.Add(this.uiButton10);
- 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(164, 500);
- this.groupBoxLayer.TabIndex = 25;
- this.groupBoxLayer.TabStop = false;
- this.groupBoxLayer.Text = "管点类型";
- //
- // GDStatistics
- //
- this.Controls.Add(this.uiRadioButtonGroup1);
- this.Controls.Add(this.groupBoxfsw);
- this.Controls.Add(this.groupBoxtz);
- this.Controls.Add(this.groupBoxLayer);
- this.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(244)))));
- this.Name = "GDStatistics";
- this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
- this.Size = new System.Drawing.Size(600, 500);
- this.Style = Sunny.UI.UIStyle.Gray;
- this.groupBoxfsw.ResumeLayout(false);
- this.groupBoxtz.ResumeLayout(false);
- this.uiRadioButtonGroup1.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);
- }
- }
- }
|