diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/MainFrm.cs b/MainFrm.cs index e3ce4bd..438bafa 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -13563,6 +13563,11 @@ } } + private void ribbonBar5_ItemClick(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/MainFrm.cs b/MainFrm.cs index e3ce4bd..438bafa 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -13563,6 +13563,11 @@ } } + private void ribbonBar5_ItemClick(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 0462e02..532bca8 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -82,7 +82,6 @@ this.sideBar1 = new DevComponents.DotNetBar.SideBar(); this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); this.layerSensorTree = new System.Windows.Forms.TreeView(); - this.layerTree = new Cyberpipe.MyTreeView(); this.sideBarPanelItem3 = new DevComponents.DotNetBar.SideBarPanelItem(); this.controlContainerItem3 = new DevComponents.DotNetBar.ControlContainerItem(); this.sideBarPanelItem4 = new DevComponents.DotNetBar.SideBarPanelItem(); @@ -611,6 +610,7 @@ this.buttonItem84 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem75 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem76 = new DevComponents.DotNetBar.ButtonItem(); + this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -1047,16 +1047,6 @@ this.layerSensorTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerMarkerTree_AfterCheck); this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); // - // layerTree - // - this.layerTree.CheckBoxes = true; - this.layerTree.ItemHeight = 18; - this.layerTree.Location = new System.Drawing.Point(30, 78); - this.layerTree.Name = "layerTree"; - this.layerTree.Size = new System.Drawing.Size(121, 97); - this.layerTree.TabIndex = 1; - this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); - // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2907,7 +2897,7 @@ this.水平面积ToolStripMenuItem1, this.地表面积ToolStripMenuItem1}); this.量算ToolStripMenuItem.Name = "量算ToolStripMenuItem"; - this.量算ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.量算ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.量算ToolStripMenuItem.Text = "量算"; // // 水平距离ToolStripMenuItem1 @@ -2970,7 +2960,7 @@ this.前进ToolStripMenuItem, this.删除模型ToolStripMenuItem}); this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem"; - this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.编辑ToolStripMenuItem.Text = "编辑"; // // 平移对象ToolStripMenuItem @@ -3046,7 +3036,7 @@ this.绕中心点飞行ToolStripMenuItem, this.绕眼睛飞行ToolStripMenuItem}); this.飞行ToolStripMenuItem.Name = "飞行ToolStripMenuItem"; - this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.飞行ToolStripMenuItem.Text = "飞行"; // // 自定义飞行ToolStripMenuItem @@ -3092,7 +3082,7 @@ this.红线工具ToolStripMenuItem, this.标注管理ToolStripMenuItem}); this.标注ToolStripMenuItem.Name = "标注ToolStripMenuItem"; - this.标注ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.标注ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.标注ToolStripMenuItem.Text = "标注"; // // 标高标注ToolStripMenuItem @@ -3187,7 +3177,7 @@ this.关键字查询ToolStripMenuItem, this.附属物查询ToolStripMenuItem}); this.查询ToolStripMenuItem.Name = "查询ToolStripMenuItem"; - this.查询ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.查询ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.查询ToolStripMenuItem.Text = "查询"; // // 空间查询ToolStripMenuItem @@ -3274,7 +3264,7 @@ this.标识器分类统计ToolStripMenuItem, this.标识器街道统计ToolStripMenuItem}); this.全区域统计ToolStripMenuItem.Name = "全区域统计ToolStripMenuItem"; - this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.全区域统计ToolStripMenuItem.Text = "全区域统计"; // // 管线长度统计ToolStripMenuItem @@ -3361,7 +3351,7 @@ this.标识器分类统计ToolStripMenuItem1, this.标识器街道统计ToolStripMenuItem1}); this.绘制区域统计ToolStripMenuItem.Name = "绘制区域统计ToolStripMenuItem"; - this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.绘制区域统计ToolStripMenuItem.Text = "绘制区域统计"; // // 管线长度统计ToolStripMenuItem1 @@ -3442,7 +3432,7 @@ this.道路断面分析ToolStripMenuItem, this.基线剖面分析ToolStripMenuItem}); this.断面分析ToolStripMenuItem.Name = "断面分析ToolStripMenuItem"; - this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.断面分析ToolStripMenuItem.Text = "断面分析"; // // 横断面分析ToolStripMenuItem @@ -3484,7 +3474,7 @@ this.连通分析ToolStripMenuItem, this.爆管分析ToolStripMenuItem}); this.拓扑分析ToolStripMenuItem.Name = "拓扑分析ToolStripMenuItem"; - this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.拓扑分析ToolStripMenuItem.Text = "拓扑分析"; // // 创建拓扑ToolStripMenuItem @@ -3546,7 +3536,7 @@ this.隐藏隧道ToolStripMenuItem, this.删除隧道ToolStripMenuItem}); this.开挖分析ToolStripMenuItem.Name = "开挖分析ToolStripMenuItem"; - this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.开挖分析ToolStripMenuItem.Text = "开挖分析"; // // 多边形开挖ToolStripMenuItem @@ -3598,7 +3588,7 @@ this.可视域分析ToolStripMenuItem, this.可视包络分析ToolStripMenuItem}); this.视域分析ToolStripMenuItem.Name = "视域分析ToolStripMenuItem"; - this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.视域分析ToolStripMenuItem.Text = "视域分析"; // // 通视分析ToolStripMenuItem @@ -3629,7 +3619,7 @@ this.附属物分析ToolStripMenuItem, this.无源淹没分析ToolStripMenuItem}); this.区域分析ToolStripMenuItem.Name = "区域分析ToolStripMenuItem"; - this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.区域分析ToolStripMenuItem.Text = "区域分析"; // // 缓冲区分析ToolStripMenuItem @@ -3656,7 +3646,7 @@ // 清除分析ToolStripMenuItem // this.清除分析ToolStripMenuItem.Name = "清除分析ToolStripMenuItem"; - this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.清除分析ToolStripMenuItem.Text = "清除分析"; this.清除分析ToolStripMenuItem.Click += new System.EventHandler(this.buttonItemClear_Click); // @@ -4124,12 +4114,12 @@ // this.ribbonControl1.BackgroundStyle.Class = ""; this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonControl1.Controls.Add(this.ribbonPanel15); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel7); this.ribbonControl1.Controls.Add(this.ribbonPanel1); - this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel8); - this.ribbonControl1.Controls.Add(this.ribbonPanel2); - this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -4175,10 +4165,10 @@ this.ribbonPanel7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel7.Controls.Add(this.ribbonBar5); this.ribbonPanel7.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel7.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel7.Location = new System.Drawing.Point(0, 0); this.ribbonPanel7.Name = "ribbonPanel7"; this.ribbonPanel7.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel7.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel7.Size = new System.Drawing.Size(1328, 95); // // // @@ -4195,6 +4185,7 @@ this.ribbonPanel7.StyleMouseOver.Class = ""; this.ribbonPanel7.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel7.TabIndex = 41; + this.ribbonPanel7.Visible = false; // // ribbonBar5 // @@ -4216,7 +4207,7 @@ this.slider4ground}); this.ribbonBar5.Location = new System.Drawing.Point(3, 0); this.ribbonBar5.Name = "ribbonBar5"; - this.ribbonBar5.Size = new System.Drawing.Size(427, 59); + this.ribbonBar5.Size = new System.Drawing.Size(418, 92); this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar5.TabIndex = 0; // @@ -4230,6 +4221,7 @@ this.ribbonBar5.TitleStyleMouseOver.Class = ""; this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonBar5.TitleVisible = false; + this.ribbonBar5.ItemClick += new System.EventHandler(this.ribbonBar5_ItemClick); // // btn_flag // @@ -4255,10 +4247,10 @@ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel1.Controls.Add(this.ribbonBar21); this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel1.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel1.Location = new System.Drawing.Point(0, 0); this.ribbonPanel1.Name = "ribbonPanel1"; this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95); // // // @@ -4304,7 +4296,7 @@ this.buttonItem89}); this.ribbonBar21.Location = new System.Drawing.Point(3, 0); this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(737, 59); + this.ribbonBar21.Size = new System.Drawing.Size(653, 92); this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar21.TabIndex = 2; this.ribbonBar21.Text = "浏览模式"; @@ -4390,10 +4382,10 @@ this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel3.Controls.Add(this.ribbonBar3); this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel3.Location = new System.Drawing.Point(0, 0); this.ribbonPanel3.Name = "ribbonPanel3"; this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel3.Size = new System.Drawing.Size(1328, 95); // // // @@ -4434,7 +4426,7 @@ this.buttonItem9}); this.ribbonBar3.Location = new System.Drawing.Point(3, 0); this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(296, 59); + this.ribbonBar3.Size = new System.Drawing.Size(378, 92); this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar3.TabIndex = 0; // @@ -4492,10 +4484,10 @@ this.ribbonPanel8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel8.Controls.Add(this.ribbonBar_UserInfo); this.ribbonPanel8.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel8.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel8.Location = new System.Drawing.Point(0, 0); this.ribbonPanel8.Name = "ribbonPanel8"; this.ribbonPanel8.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel8.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel8.Size = new System.Drawing.Size(1328, 95); // // // @@ -4539,7 +4531,7 @@ this.btn_reset_password}); this.ribbonBar_UserInfo.Location = new System.Drawing.Point(3, 0); this.ribbonBar_UserInfo.Name = "ribbonBar_UserInfo"; - this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 59); + this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 92); this.ribbonBar_UserInfo.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar_UserInfo.TabIndex = 0; // @@ -4616,10 +4608,10 @@ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel2.Controls.Add(this.ribbonBar4); this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel2.Location = new System.Drawing.Point(0, 0); this.ribbonPanel2.Name = "ribbonPanel2"; this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95); // // // @@ -4659,7 +4651,7 @@ this.buttonItem_Event}); this.ribbonBar4.Location = new System.Drawing.Point(3, 0); this.ribbonBar4.Name = "ribbonBar4"; - this.ribbonBar4.Size = new System.Drawing.Size(211, 59); + this.ribbonBar4.Size = new System.Drawing.Size(299, 92); this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar4.TabIndex = 0; this.ribbonBar4.Text = "ribbonBar4"; @@ -4727,7 +4719,6 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; - this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -4759,7 +4750,7 @@ this.buttonItemBZ}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(791, 59); + this.ribbonBar20.Size = new System.Drawing.Size(835, 59); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -6026,6 +6017,7 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_08_hover; this.ribbonTabItem14.Image = global::Cyberpipe.Properties.Resources._24x24icon_08; this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -6054,7 +6046,6 @@ // ribbonTabItem7 // this.ribbonTabItem7.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem7.Checked = true; this.ribbonTabItem7.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_04_hover1; this.ribbonTabItem7.Image = global::Cyberpipe.Properties.Resources._24x24icon_041; this.ribbonTabItem7.Name = "ribbonTabItem7"; @@ -6399,6 +6390,16 @@ this.buttonItem76.SubItemsExpandWidth = 14; this.buttonItem76.Text = "坐标标注"; // + // layerTree + // + this.layerTree.CheckBoxes = true; + this.layerTree.ItemHeight = 18; + this.layerTree.Location = new System.Drawing.Point(30, 78); + this.layerTree.Name = "layerTree"; + this.layerTree.Size = new System.Drawing.Size(121, 97); + this.layerTree.TabIndex = 1; + this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); + // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/MainFrm.cs b/MainFrm.cs index e3ce4bd..438bafa 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -13563,6 +13563,11 @@ } } + private void ribbonBar5_ItemClick(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 0462e02..532bca8 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -82,7 +82,6 @@ this.sideBar1 = new DevComponents.DotNetBar.SideBar(); this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); this.layerSensorTree = new System.Windows.Forms.TreeView(); - this.layerTree = new Cyberpipe.MyTreeView(); this.sideBarPanelItem3 = new DevComponents.DotNetBar.SideBarPanelItem(); this.controlContainerItem3 = new DevComponents.DotNetBar.ControlContainerItem(); this.sideBarPanelItem4 = new DevComponents.DotNetBar.SideBarPanelItem(); @@ -611,6 +610,7 @@ this.buttonItem84 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem75 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem76 = new DevComponents.DotNetBar.ButtonItem(); + this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -1047,16 +1047,6 @@ this.layerSensorTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerMarkerTree_AfterCheck); this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); // - // layerTree - // - this.layerTree.CheckBoxes = true; - this.layerTree.ItemHeight = 18; - this.layerTree.Location = new System.Drawing.Point(30, 78); - this.layerTree.Name = "layerTree"; - this.layerTree.Size = new System.Drawing.Size(121, 97); - this.layerTree.TabIndex = 1; - this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); - // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2907,7 +2897,7 @@ this.水平面积ToolStripMenuItem1, this.地表面积ToolStripMenuItem1}); this.量算ToolStripMenuItem.Name = "量算ToolStripMenuItem"; - this.量算ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.量算ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.量算ToolStripMenuItem.Text = "量算"; // // 水平距离ToolStripMenuItem1 @@ -2970,7 +2960,7 @@ this.前进ToolStripMenuItem, this.删除模型ToolStripMenuItem}); this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem"; - this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.编辑ToolStripMenuItem.Text = "编辑"; // // 平移对象ToolStripMenuItem @@ -3046,7 +3036,7 @@ this.绕中心点飞行ToolStripMenuItem, this.绕眼睛飞行ToolStripMenuItem}); this.飞行ToolStripMenuItem.Name = "飞行ToolStripMenuItem"; - this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.飞行ToolStripMenuItem.Text = "飞行"; // // 自定义飞行ToolStripMenuItem @@ -3092,7 +3082,7 @@ this.红线工具ToolStripMenuItem, this.标注管理ToolStripMenuItem}); this.标注ToolStripMenuItem.Name = "标注ToolStripMenuItem"; - this.标注ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.标注ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.标注ToolStripMenuItem.Text = "标注"; // // 标高标注ToolStripMenuItem @@ -3187,7 +3177,7 @@ this.关键字查询ToolStripMenuItem, this.附属物查询ToolStripMenuItem}); this.查询ToolStripMenuItem.Name = "查询ToolStripMenuItem"; - this.查询ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.查询ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.查询ToolStripMenuItem.Text = "查询"; // // 空间查询ToolStripMenuItem @@ -3274,7 +3264,7 @@ this.标识器分类统计ToolStripMenuItem, this.标识器街道统计ToolStripMenuItem}); this.全区域统计ToolStripMenuItem.Name = "全区域统计ToolStripMenuItem"; - this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.全区域统计ToolStripMenuItem.Text = "全区域统计"; // // 管线长度统计ToolStripMenuItem @@ -3361,7 +3351,7 @@ this.标识器分类统计ToolStripMenuItem1, this.标识器街道统计ToolStripMenuItem1}); this.绘制区域统计ToolStripMenuItem.Name = "绘制区域统计ToolStripMenuItem"; - this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.绘制区域统计ToolStripMenuItem.Text = "绘制区域统计"; // // 管线长度统计ToolStripMenuItem1 @@ -3442,7 +3432,7 @@ this.道路断面分析ToolStripMenuItem, this.基线剖面分析ToolStripMenuItem}); this.断面分析ToolStripMenuItem.Name = "断面分析ToolStripMenuItem"; - this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.断面分析ToolStripMenuItem.Text = "断面分析"; // // 横断面分析ToolStripMenuItem @@ -3484,7 +3474,7 @@ this.连通分析ToolStripMenuItem, this.爆管分析ToolStripMenuItem}); this.拓扑分析ToolStripMenuItem.Name = "拓扑分析ToolStripMenuItem"; - this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.拓扑分析ToolStripMenuItem.Text = "拓扑分析"; // // 创建拓扑ToolStripMenuItem @@ -3546,7 +3536,7 @@ this.隐藏隧道ToolStripMenuItem, this.删除隧道ToolStripMenuItem}); this.开挖分析ToolStripMenuItem.Name = "开挖分析ToolStripMenuItem"; - this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.开挖分析ToolStripMenuItem.Text = "开挖分析"; // // 多边形开挖ToolStripMenuItem @@ -3598,7 +3588,7 @@ this.可视域分析ToolStripMenuItem, this.可视包络分析ToolStripMenuItem}); this.视域分析ToolStripMenuItem.Name = "视域分析ToolStripMenuItem"; - this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.视域分析ToolStripMenuItem.Text = "视域分析"; // // 通视分析ToolStripMenuItem @@ -3629,7 +3619,7 @@ this.附属物分析ToolStripMenuItem, this.无源淹没分析ToolStripMenuItem}); this.区域分析ToolStripMenuItem.Name = "区域分析ToolStripMenuItem"; - this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.区域分析ToolStripMenuItem.Text = "区域分析"; // // 缓冲区分析ToolStripMenuItem @@ -3656,7 +3646,7 @@ // 清除分析ToolStripMenuItem // this.清除分析ToolStripMenuItem.Name = "清除分析ToolStripMenuItem"; - this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.清除分析ToolStripMenuItem.Text = "清除分析"; this.清除分析ToolStripMenuItem.Click += new System.EventHandler(this.buttonItemClear_Click); // @@ -4124,12 +4114,12 @@ // this.ribbonControl1.BackgroundStyle.Class = ""; this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonControl1.Controls.Add(this.ribbonPanel15); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel7); this.ribbonControl1.Controls.Add(this.ribbonPanel1); - this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel8); - this.ribbonControl1.Controls.Add(this.ribbonPanel2); - this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -4175,10 +4165,10 @@ this.ribbonPanel7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel7.Controls.Add(this.ribbonBar5); this.ribbonPanel7.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel7.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel7.Location = new System.Drawing.Point(0, 0); this.ribbonPanel7.Name = "ribbonPanel7"; this.ribbonPanel7.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel7.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel7.Size = new System.Drawing.Size(1328, 95); // // // @@ -4195,6 +4185,7 @@ this.ribbonPanel7.StyleMouseOver.Class = ""; this.ribbonPanel7.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel7.TabIndex = 41; + this.ribbonPanel7.Visible = false; // // ribbonBar5 // @@ -4216,7 +4207,7 @@ this.slider4ground}); this.ribbonBar5.Location = new System.Drawing.Point(3, 0); this.ribbonBar5.Name = "ribbonBar5"; - this.ribbonBar5.Size = new System.Drawing.Size(427, 59); + this.ribbonBar5.Size = new System.Drawing.Size(418, 92); this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar5.TabIndex = 0; // @@ -4230,6 +4221,7 @@ this.ribbonBar5.TitleStyleMouseOver.Class = ""; this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonBar5.TitleVisible = false; + this.ribbonBar5.ItemClick += new System.EventHandler(this.ribbonBar5_ItemClick); // // btn_flag // @@ -4255,10 +4247,10 @@ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel1.Controls.Add(this.ribbonBar21); this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel1.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel1.Location = new System.Drawing.Point(0, 0); this.ribbonPanel1.Name = "ribbonPanel1"; this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95); // // // @@ -4304,7 +4296,7 @@ this.buttonItem89}); this.ribbonBar21.Location = new System.Drawing.Point(3, 0); this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(737, 59); + this.ribbonBar21.Size = new System.Drawing.Size(653, 92); this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar21.TabIndex = 2; this.ribbonBar21.Text = "浏览模式"; @@ -4390,10 +4382,10 @@ this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel3.Controls.Add(this.ribbonBar3); this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel3.Location = new System.Drawing.Point(0, 0); this.ribbonPanel3.Name = "ribbonPanel3"; this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel3.Size = new System.Drawing.Size(1328, 95); // // // @@ -4434,7 +4426,7 @@ this.buttonItem9}); this.ribbonBar3.Location = new System.Drawing.Point(3, 0); this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(296, 59); + this.ribbonBar3.Size = new System.Drawing.Size(378, 92); this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar3.TabIndex = 0; // @@ -4492,10 +4484,10 @@ this.ribbonPanel8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel8.Controls.Add(this.ribbonBar_UserInfo); this.ribbonPanel8.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel8.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel8.Location = new System.Drawing.Point(0, 0); this.ribbonPanel8.Name = "ribbonPanel8"; this.ribbonPanel8.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel8.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel8.Size = new System.Drawing.Size(1328, 95); // // // @@ -4539,7 +4531,7 @@ this.btn_reset_password}); this.ribbonBar_UserInfo.Location = new System.Drawing.Point(3, 0); this.ribbonBar_UserInfo.Name = "ribbonBar_UserInfo"; - this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 59); + this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 92); this.ribbonBar_UserInfo.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar_UserInfo.TabIndex = 0; // @@ -4616,10 +4608,10 @@ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel2.Controls.Add(this.ribbonBar4); this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel2.Location = new System.Drawing.Point(0, 0); this.ribbonPanel2.Name = "ribbonPanel2"; this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95); // // // @@ -4659,7 +4651,7 @@ this.buttonItem_Event}); this.ribbonBar4.Location = new System.Drawing.Point(3, 0); this.ribbonBar4.Name = "ribbonBar4"; - this.ribbonBar4.Size = new System.Drawing.Size(211, 59); + this.ribbonBar4.Size = new System.Drawing.Size(299, 92); this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar4.TabIndex = 0; this.ribbonBar4.Text = "ribbonBar4"; @@ -4727,7 +4719,6 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; - this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -4759,7 +4750,7 @@ this.buttonItemBZ}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(791, 59); + this.ribbonBar20.Size = new System.Drawing.Size(835, 59); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -6026,6 +6017,7 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_08_hover; this.ribbonTabItem14.Image = global::Cyberpipe.Properties.Resources._24x24icon_08; this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -6054,7 +6046,6 @@ // ribbonTabItem7 // this.ribbonTabItem7.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem7.Checked = true; this.ribbonTabItem7.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_04_hover1; this.ribbonTabItem7.Image = global::Cyberpipe.Properties.Resources._24x24icon_041; this.ribbonTabItem7.Name = "ribbonTabItem7"; @@ -6399,6 +6390,16 @@ this.buttonItem76.SubItemsExpandWidth = 14; this.buttonItem76.Text = "坐标标注"; // + // layerTree + // + this.layerTree.CheckBoxes = true; + this.layerTree.ItemHeight = 18; + this.layerTree.Location = new System.Drawing.Point(30, 78); + this.layerTree.Name = "layerTree"; + this.layerTree.Size = new System.Drawing.Size(121, 97); + this.layerTree.TabIndex = 1; + this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); + // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; diff --git a/MainFrm.resx b/MainFrm.resx index 9d1d787..dcfc26a 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -2094,7 +2094,7 @@ - 166 + 121 diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/MainFrm.cs b/MainFrm.cs index e3ce4bd..438bafa 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -13563,6 +13563,11 @@ } } + private void ribbonBar5_ItemClick(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 0462e02..532bca8 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -82,7 +82,6 @@ this.sideBar1 = new DevComponents.DotNetBar.SideBar(); this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); this.layerSensorTree = new System.Windows.Forms.TreeView(); - this.layerTree = new Cyberpipe.MyTreeView(); this.sideBarPanelItem3 = new DevComponents.DotNetBar.SideBarPanelItem(); this.controlContainerItem3 = new DevComponents.DotNetBar.ControlContainerItem(); this.sideBarPanelItem4 = new DevComponents.DotNetBar.SideBarPanelItem(); @@ -611,6 +610,7 @@ this.buttonItem84 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem75 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem76 = new DevComponents.DotNetBar.ButtonItem(); + this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -1047,16 +1047,6 @@ this.layerSensorTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerMarkerTree_AfterCheck); this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); // - // layerTree - // - this.layerTree.CheckBoxes = true; - this.layerTree.ItemHeight = 18; - this.layerTree.Location = new System.Drawing.Point(30, 78); - this.layerTree.Name = "layerTree"; - this.layerTree.Size = new System.Drawing.Size(121, 97); - this.layerTree.TabIndex = 1; - this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); - // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2907,7 +2897,7 @@ this.水平面积ToolStripMenuItem1, this.地表面积ToolStripMenuItem1}); this.量算ToolStripMenuItem.Name = "量算ToolStripMenuItem"; - this.量算ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.量算ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.量算ToolStripMenuItem.Text = "量算"; // // 水平距离ToolStripMenuItem1 @@ -2970,7 +2960,7 @@ this.前进ToolStripMenuItem, this.删除模型ToolStripMenuItem}); this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem"; - this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.编辑ToolStripMenuItem.Text = "编辑"; // // 平移对象ToolStripMenuItem @@ -3046,7 +3036,7 @@ this.绕中心点飞行ToolStripMenuItem, this.绕眼睛飞行ToolStripMenuItem}); this.飞行ToolStripMenuItem.Name = "飞行ToolStripMenuItem"; - this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.飞行ToolStripMenuItem.Text = "飞行"; // // 自定义飞行ToolStripMenuItem @@ -3092,7 +3082,7 @@ this.红线工具ToolStripMenuItem, this.标注管理ToolStripMenuItem}); this.标注ToolStripMenuItem.Name = "标注ToolStripMenuItem"; - this.标注ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.标注ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.标注ToolStripMenuItem.Text = "标注"; // // 标高标注ToolStripMenuItem @@ -3187,7 +3177,7 @@ this.关键字查询ToolStripMenuItem, this.附属物查询ToolStripMenuItem}); this.查询ToolStripMenuItem.Name = "查询ToolStripMenuItem"; - this.查询ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.查询ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.查询ToolStripMenuItem.Text = "查询"; // // 空间查询ToolStripMenuItem @@ -3274,7 +3264,7 @@ this.标识器分类统计ToolStripMenuItem, this.标识器街道统计ToolStripMenuItem}); this.全区域统计ToolStripMenuItem.Name = "全区域统计ToolStripMenuItem"; - this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.全区域统计ToolStripMenuItem.Text = "全区域统计"; // // 管线长度统计ToolStripMenuItem @@ -3361,7 +3351,7 @@ this.标识器分类统计ToolStripMenuItem1, this.标识器街道统计ToolStripMenuItem1}); this.绘制区域统计ToolStripMenuItem.Name = "绘制区域统计ToolStripMenuItem"; - this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.绘制区域统计ToolStripMenuItem.Text = "绘制区域统计"; // // 管线长度统计ToolStripMenuItem1 @@ -3442,7 +3432,7 @@ this.道路断面分析ToolStripMenuItem, this.基线剖面分析ToolStripMenuItem}); this.断面分析ToolStripMenuItem.Name = "断面分析ToolStripMenuItem"; - this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.断面分析ToolStripMenuItem.Text = "断面分析"; // // 横断面分析ToolStripMenuItem @@ -3484,7 +3474,7 @@ this.连通分析ToolStripMenuItem, this.爆管分析ToolStripMenuItem}); this.拓扑分析ToolStripMenuItem.Name = "拓扑分析ToolStripMenuItem"; - this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.拓扑分析ToolStripMenuItem.Text = "拓扑分析"; // // 创建拓扑ToolStripMenuItem @@ -3546,7 +3536,7 @@ this.隐藏隧道ToolStripMenuItem, this.删除隧道ToolStripMenuItem}); this.开挖分析ToolStripMenuItem.Name = "开挖分析ToolStripMenuItem"; - this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.开挖分析ToolStripMenuItem.Text = "开挖分析"; // // 多边形开挖ToolStripMenuItem @@ -3598,7 +3588,7 @@ this.可视域分析ToolStripMenuItem, this.可视包络分析ToolStripMenuItem}); this.视域分析ToolStripMenuItem.Name = "视域分析ToolStripMenuItem"; - this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.视域分析ToolStripMenuItem.Text = "视域分析"; // // 通视分析ToolStripMenuItem @@ -3629,7 +3619,7 @@ this.附属物分析ToolStripMenuItem, this.无源淹没分析ToolStripMenuItem}); this.区域分析ToolStripMenuItem.Name = "区域分析ToolStripMenuItem"; - this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.区域分析ToolStripMenuItem.Text = "区域分析"; // // 缓冲区分析ToolStripMenuItem @@ -3656,7 +3646,7 @@ // 清除分析ToolStripMenuItem // this.清除分析ToolStripMenuItem.Name = "清除分析ToolStripMenuItem"; - this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.清除分析ToolStripMenuItem.Text = "清除分析"; this.清除分析ToolStripMenuItem.Click += new System.EventHandler(this.buttonItemClear_Click); // @@ -4124,12 +4114,12 @@ // this.ribbonControl1.BackgroundStyle.Class = ""; this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonControl1.Controls.Add(this.ribbonPanel15); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel7); this.ribbonControl1.Controls.Add(this.ribbonPanel1); - this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel8); - this.ribbonControl1.Controls.Add(this.ribbonPanel2); - this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -4175,10 +4165,10 @@ this.ribbonPanel7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel7.Controls.Add(this.ribbonBar5); this.ribbonPanel7.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel7.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel7.Location = new System.Drawing.Point(0, 0); this.ribbonPanel7.Name = "ribbonPanel7"; this.ribbonPanel7.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel7.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel7.Size = new System.Drawing.Size(1328, 95); // // // @@ -4195,6 +4185,7 @@ this.ribbonPanel7.StyleMouseOver.Class = ""; this.ribbonPanel7.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel7.TabIndex = 41; + this.ribbonPanel7.Visible = false; // // ribbonBar5 // @@ -4216,7 +4207,7 @@ this.slider4ground}); this.ribbonBar5.Location = new System.Drawing.Point(3, 0); this.ribbonBar5.Name = "ribbonBar5"; - this.ribbonBar5.Size = new System.Drawing.Size(427, 59); + this.ribbonBar5.Size = new System.Drawing.Size(418, 92); this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar5.TabIndex = 0; // @@ -4230,6 +4221,7 @@ this.ribbonBar5.TitleStyleMouseOver.Class = ""; this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonBar5.TitleVisible = false; + this.ribbonBar5.ItemClick += new System.EventHandler(this.ribbonBar5_ItemClick); // // btn_flag // @@ -4255,10 +4247,10 @@ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel1.Controls.Add(this.ribbonBar21); this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel1.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel1.Location = new System.Drawing.Point(0, 0); this.ribbonPanel1.Name = "ribbonPanel1"; this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95); // // // @@ -4304,7 +4296,7 @@ this.buttonItem89}); this.ribbonBar21.Location = new System.Drawing.Point(3, 0); this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(737, 59); + this.ribbonBar21.Size = new System.Drawing.Size(653, 92); this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar21.TabIndex = 2; this.ribbonBar21.Text = "浏览模式"; @@ -4390,10 +4382,10 @@ this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel3.Controls.Add(this.ribbonBar3); this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel3.Location = new System.Drawing.Point(0, 0); this.ribbonPanel3.Name = "ribbonPanel3"; this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel3.Size = new System.Drawing.Size(1328, 95); // // // @@ -4434,7 +4426,7 @@ this.buttonItem9}); this.ribbonBar3.Location = new System.Drawing.Point(3, 0); this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(296, 59); + this.ribbonBar3.Size = new System.Drawing.Size(378, 92); this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar3.TabIndex = 0; // @@ -4492,10 +4484,10 @@ this.ribbonPanel8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel8.Controls.Add(this.ribbonBar_UserInfo); this.ribbonPanel8.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel8.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel8.Location = new System.Drawing.Point(0, 0); this.ribbonPanel8.Name = "ribbonPanel8"; this.ribbonPanel8.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel8.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel8.Size = new System.Drawing.Size(1328, 95); // // // @@ -4539,7 +4531,7 @@ this.btn_reset_password}); this.ribbonBar_UserInfo.Location = new System.Drawing.Point(3, 0); this.ribbonBar_UserInfo.Name = "ribbonBar_UserInfo"; - this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 59); + this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 92); this.ribbonBar_UserInfo.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar_UserInfo.TabIndex = 0; // @@ -4616,10 +4608,10 @@ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel2.Controls.Add(this.ribbonBar4); this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel2.Location = new System.Drawing.Point(0, 0); this.ribbonPanel2.Name = "ribbonPanel2"; this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95); // // // @@ -4659,7 +4651,7 @@ this.buttonItem_Event}); this.ribbonBar4.Location = new System.Drawing.Point(3, 0); this.ribbonBar4.Name = "ribbonBar4"; - this.ribbonBar4.Size = new System.Drawing.Size(211, 59); + this.ribbonBar4.Size = new System.Drawing.Size(299, 92); this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar4.TabIndex = 0; this.ribbonBar4.Text = "ribbonBar4"; @@ -4727,7 +4719,6 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; - this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -4759,7 +4750,7 @@ this.buttonItemBZ}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(791, 59); + this.ribbonBar20.Size = new System.Drawing.Size(835, 59); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -6026,6 +6017,7 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_08_hover; this.ribbonTabItem14.Image = global::Cyberpipe.Properties.Resources._24x24icon_08; this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -6054,7 +6046,6 @@ // ribbonTabItem7 // this.ribbonTabItem7.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem7.Checked = true; this.ribbonTabItem7.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_04_hover1; this.ribbonTabItem7.Image = global::Cyberpipe.Properties.Resources._24x24icon_041; this.ribbonTabItem7.Name = "ribbonTabItem7"; @@ -6399,6 +6390,16 @@ this.buttonItem76.SubItemsExpandWidth = 14; this.buttonItem76.Text = "坐标标注"; // + // layerTree + // + this.layerTree.CheckBoxes = true; + this.layerTree.ItemHeight = 18; + this.layerTree.Location = new System.Drawing.Point(30, 78); + this.layerTree.Name = "layerTree"; + this.layerTree.Size = new System.Drawing.Size(121, 97); + this.layerTree.TabIndex = 1; + this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); + // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; diff --git a/MainFrm.resx b/MainFrm.resx index 9d1d787..dcfc26a 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -2094,7 +2094,7 @@ - 166 + 121 diff --git a/Program.cs b/Program.cs index a5c9d17..1ff0987 100644 --- a/Program.cs +++ b/Program.cs @@ -11,6 +11,7 @@ static class Program { static string ent = "C:\\EMSCyberPipe"; + /// /// The main entry point for the application. /// @@ -30,7 +31,9 @@ String newVersionCode = getVersionCode(configUrl, currentVersionCode); if (newVersionCode != currentVersionCode) { - if (MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + if ( + MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, + MessageBoxIcon.Question) == DialogResult.Yes) { remoteUpDate(); @@ -38,7 +41,7 @@ string programUrl = getProgramUrl(localConfigPath, "programurl"); if (programUrl != "") { - + //FrmDownloadProgress frmdownload = FrmDownloadProgress.getForm(programUrl); Process.Start(ent + "/UpDateProgress.exe").WaitForExit(); return; @@ -58,7 +61,8 @@ } } } - + + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmLogin frm = new FrmLogin(); @@ -74,6 +78,7 @@ return; } } + } private static void remoteUpDate() diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/MainFrm.cs b/MainFrm.cs index e3ce4bd..438bafa 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -13563,6 +13563,11 @@ } } + private void ribbonBar5_ItemClick(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 0462e02..532bca8 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -82,7 +82,6 @@ this.sideBar1 = new DevComponents.DotNetBar.SideBar(); this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); this.layerSensorTree = new System.Windows.Forms.TreeView(); - this.layerTree = new Cyberpipe.MyTreeView(); this.sideBarPanelItem3 = new DevComponents.DotNetBar.SideBarPanelItem(); this.controlContainerItem3 = new DevComponents.DotNetBar.ControlContainerItem(); this.sideBarPanelItem4 = new DevComponents.DotNetBar.SideBarPanelItem(); @@ -611,6 +610,7 @@ this.buttonItem84 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem75 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem76 = new DevComponents.DotNetBar.ButtonItem(); + this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -1047,16 +1047,6 @@ this.layerSensorTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerMarkerTree_AfterCheck); this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); // - // layerTree - // - this.layerTree.CheckBoxes = true; - this.layerTree.ItemHeight = 18; - this.layerTree.Location = new System.Drawing.Point(30, 78); - this.layerTree.Name = "layerTree"; - this.layerTree.Size = new System.Drawing.Size(121, 97); - this.layerTree.TabIndex = 1; - this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); - // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2907,7 +2897,7 @@ this.水平面积ToolStripMenuItem1, this.地表面积ToolStripMenuItem1}); this.量算ToolStripMenuItem.Name = "量算ToolStripMenuItem"; - this.量算ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.量算ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.量算ToolStripMenuItem.Text = "量算"; // // 水平距离ToolStripMenuItem1 @@ -2970,7 +2960,7 @@ this.前进ToolStripMenuItem, this.删除模型ToolStripMenuItem}); this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem"; - this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.编辑ToolStripMenuItem.Text = "编辑"; // // 平移对象ToolStripMenuItem @@ -3046,7 +3036,7 @@ this.绕中心点飞行ToolStripMenuItem, this.绕眼睛飞行ToolStripMenuItem}); this.飞行ToolStripMenuItem.Name = "飞行ToolStripMenuItem"; - this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.飞行ToolStripMenuItem.Text = "飞行"; // // 自定义飞行ToolStripMenuItem @@ -3092,7 +3082,7 @@ this.红线工具ToolStripMenuItem, this.标注管理ToolStripMenuItem}); this.标注ToolStripMenuItem.Name = "标注ToolStripMenuItem"; - this.标注ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.标注ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.标注ToolStripMenuItem.Text = "标注"; // // 标高标注ToolStripMenuItem @@ -3187,7 +3177,7 @@ this.关键字查询ToolStripMenuItem, this.附属物查询ToolStripMenuItem}); this.查询ToolStripMenuItem.Name = "查询ToolStripMenuItem"; - this.查询ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.查询ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.查询ToolStripMenuItem.Text = "查询"; // // 空间查询ToolStripMenuItem @@ -3274,7 +3264,7 @@ this.标识器分类统计ToolStripMenuItem, this.标识器街道统计ToolStripMenuItem}); this.全区域统计ToolStripMenuItem.Name = "全区域统计ToolStripMenuItem"; - this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.全区域统计ToolStripMenuItem.Text = "全区域统计"; // // 管线长度统计ToolStripMenuItem @@ -3361,7 +3351,7 @@ this.标识器分类统计ToolStripMenuItem1, this.标识器街道统计ToolStripMenuItem1}); this.绘制区域统计ToolStripMenuItem.Name = "绘制区域统计ToolStripMenuItem"; - this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.绘制区域统计ToolStripMenuItem.Text = "绘制区域统计"; // // 管线长度统计ToolStripMenuItem1 @@ -3442,7 +3432,7 @@ this.道路断面分析ToolStripMenuItem, this.基线剖面分析ToolStripMenuItem}); this.断面分析ToolStripMenuItem.Name = "断面分析ToolStripMenuItem"; - this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.断面分析ToolStripMenuItem.Text = "断面分析"; // // 横断面分析ToolStripMenuItem @@ -3484,7 +3474,7 @@ this.连通分析ToolStripMenuItem, this.爆管分析ToolStripMenuItem}); this.拓扑分析ToolStripMenuItem.Name = "拓扑分析ToolStripMenuItem"; - this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.拓扑分析ToolStripMenuItem.Text = "拓扑分析"; // // 创建拓扑ToolStripMenuItem @@ -3546,7 +3536,7 @@ this.隐藏隧道ToolStripMenuItem, this.删除隧道ToolStripMenuItem}); this.开挖分析ToolStripMenuItem.Name = "开挖分析ToolStripMenuItem"; - this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.开挖分析ToolStripMenuItem.Text = "开挖分析"; // // 多边形开挖ToolStripMenuItem @@ -3598,7 +3588,7 @@ this.可视域分析ToolStripMenuItem, this.可视包络分析ToolStripMenuItem}); this.视域分析ToolStripMenuItem.Name = "视域分析ToolStripMenuItem"; - this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.视域分析ToolStripMenuItem.Text = "视域分析"; // // 通视分析ToolStripMenuItem @@ -3629,7 +3619,7 @@ this.附属物分析ToolStripMenuItem, this.无源淹没分析ToolStripMenuItem}); this.区域分析ToolStripMenuItem.Name = "区域分析ToolStripMenuItem"; - this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.区域分析ToolStripMenuItem.Text = "区域分析"; // // 缓冲区分析ToolStripMenuItem @@ -3656,7 +3646,7 @@ // 清除分析ToolStripMenuItem // this.清除分析ToolStripMenuItem.Name = "清除分析ToolStripMenuItem"; - this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.清除分析ToolStripMenuItem.Text = "清除分析"; this.清除分析ToolStripMenuItem.Click += new System.EventHandler(this.buttonItemClear_Click); // @@ -4124,12 +4114,12 @@ // this.ribbonControl1.BackgroundStyle.Class = ""; this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonControl1.Controls.Add(this.ribbonPanel15); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel7); this.ribbonControl1.Controls.Add(this.ribbonPanel1); - this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel8); - this.ribbonControl1.Controls.Add(this.ribbonPanel2); - this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -4175,10 +4165,10 @@ this.ribbonPanel7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel7.Controls.Add(this.ribbonBar5); this.ribbonPanel7.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel7.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel7.Location = new System.Drawing.Point(0, 0); this.ribbonPanel7.Name = "ribbonPanel7"; this.ribbonPanel7.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel7.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel7.Size = new System.Drawing.Size(1328, 95); // // // @@ -4195,6 +4185,7 @@ this.ribbonPanel7.StyleMouseOver.Class = ""; this.ribbonPanel7.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel7.TabIndex = 41; + this.ribbonPanel7.Visible = false; // // ribbonBar5 // @@ -4216,7 +4207,7 @@ this.slider4ground}); this.ribbonBar5.Location = new System.Drawing.Point(3, 0); this.ribbonBar5.Name = "ribbonBar5"; - this.ribbonBar5.Size = new System.Drawing.Size(427, 59); + this.ribbonBar5.Size = new System.Drawing.Size(418, 92); this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar5.TabIndex = 0; // @@ -4230,6 +4221,7 @@ this.ribbonBar5.TitleStyleMouseOver.Class = ""; this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonBar5.TitleVisible = false; + this.ribbonBar5.ItemClick += new System.EventHandler(this.ribbonBar5_ItemClick); // // btn_flag // @@ -4255,10 +4247,10 @@ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel1.Controls.Add(this.ribbonBar21); this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel1.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel1.Location = new System.Drawing.Point(0, 0); this.ribbonPanel1.Name = "ribbonPanel1"; this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95); // // // @@ -4304,7 +4296,7 @@ this.buttonItem89}); this.ribbonBar21.Location = new System.Drawing.Point(3, 0); this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(737, 59); + this.ribbonBar21.Size = new System.Drawing.Size(653, 92); this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar21.TabIndex = 2; this.ribbonBar21.Text = "浏览模式"; @@ -4390,10 +4382,10 @@ this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel3.Controls.Add(this.ribbonBar3); this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel3.Location = new System.Drawing.Point(0, 0); this.ribbonPanel3.Name = "ribbonPanel3"; this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel3.Size = new System.Drawing.Size(1328, 95); // // // @@ -4434,7 +4426,7 @@ this.buttonItem9}); this.ribbonBar3.Location = new System.Drawing.Point(3, 0); this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(296, 59); + this.ribbonBar3.Size = new System.Drawing.Size(378, 92); this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar3.TabIndex = 0; // @@ -4492,10 +4484,10 @@ this.ribbonPanel8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel8.Controls.Add(this.ribbonBar_UserInfo); this.ribbonPanel8.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel8.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel8.Location = new System.Drawing.Point(0, 0); this.ribbonPanel8.Name = "ribbonPanel8"; this.ribbonPanel8.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel8.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel8.Size = new System.Drawing.Size(1328, 95); // // // @@ -4539,7 +4531,7 @@ this.btn_reset_password}); this.ribbonBar_UserInfo.Location = new System.Drawing.Point(3, 0); this.ribbonBar_UserInfo.Name = "ribbonBar_UserInfo"; - this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 59); + this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 92); this.ribbonBar_UserInfo.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar_UserInfo.TabIndex = 0; // @@ -4616,10 +4608,10 @@ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel2.Controls.Add(this.ribbonBar4); this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel2.Location = new System.Drawing.Point(0, 0); this.ribbonPanel2.Name = "ribbonPanel2"; this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95); // // // @@ -4659,7 +4651,7 @@ this.buttonItem_Event}); this.ribbonBar4.Location = new System.Drawing.Point(3, 0); this.ribbonBar4.Name = "ribbonBar4"; - this.ribbonBar4.Size = new System.Drawing.Size(211, 59); + this.ribbonBar4.Size = new System.Drawing.Size(299, 92); this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar4.TabIndex = 0; this.ribbonBar4.Text = "ribbonBar4"; @@ -4727,7 +4719,6 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; - this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -4759,7 +4750,7 @@ this.buttonItemBZ}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(791, 59); + this.ribbonBar20.Size = new System.Drawing.Size(835, 59); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -6026,6 +6017,7 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_08_hover; this.ribbonTabItem14.Image = global::Cyberpipe.Properties.Resources._24x24icon_08; this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -6054,7 +6046,6 @@ // ribbonTabItem7 // this.ribbonTabItem7.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem7.Checked = true; this.ribbonTabItem7.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_04_hover1; this.ribbonTabItem7.Image = global::Cyberpipe.Properties.Resources._24x24icon_041; this.ribbonTabItem7.Name = "ribbonTabItem7"; @@ -6399,6 +6390,16 @@ this.buttonItem76.SubItemsExpandWidth = 14; this.buttonItem76.Text = "坐标标注"; // + // layerTree + // + this.layerTree.CheckBoxes = true; + this.layerTree.ItemHeight = 18; + this.layerTree.Location = new System.Drawing.Point(30, 78); + this.layerTree.Name = "layerTree"; + this.layerTree.Size = new System.Drawing.Size(121, 97); + this.layerTree.TabIndex = 1; + this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); + // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; diff --git a/MainFrm.resx b/MainFrm.resx index 9d1d787..dcfc26a 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -2094,7 +2094,7 @@ - 166 + 121 diff --git a/Program.cs b/Program.cs index a5c9d17..1ff0987 100644 --- a/Program.cs +++ b/Program.cs @@ -11,6 +11,7 @@ static class Program { static string ent = "C:\\EMSCyberPipe"; + /// /// The main entry point for the application. /// @@ -30,7 +31,9 @@ String newVersionCode = getVersionCode(configUrl, currentVersionCode); if (newVersionCode != currentVersionCode) { - if (MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + if ( + MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, + MessageBoxIcon.Question) == DialogResult.Yes) { remoteUpDate(); @@ -38,7 +41,7 @@ string programUrl = getProgramUrl(localConfigPath, "programurl"); if (programUrl != "") { - + //FrmDownloadProgress frmdownload = FrmDownloadProgress.getForm(programUrl); Process.Start(ent + "/UpDateProgress.exe").WaitForExit(); return; @@ -58,7 +61,8 @@ } } } - + + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmLogin frm = new FrmLogin(); @@ -74,6 +78,7 @@ return; } } + } private static void remoteUpDate() diff --git a/Utility.cs b/Utility.cs index eb39366..0e929aa 100644 --- a/Utility.cs +++ b/Utility.cs @@ -87,6 +87,8 @@ public static string AppId; public static string SysnameVersion ="智慧太湖新城管网电子标识系统"; + //public static bool isNeedLogin = false; + public static void SetBallons(GSOBalloon featureTooltip, GSOBalloonEx balloonEx) { featureTooltip.CacheFilePath = Application.StartupPath + "/GeoScene/Globe/Temp"; diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/MainFrm.cs b/MainFrm.cs index e3ce4bd..438bafa 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -13563,6 +13563,11 @@ } } + private void ribbonBar5_ItemClick(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 0462e02..532bca8 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -82,7 +82,6 @@ this.sideBar1 = new DevComponents.DotNetBar.SideBar(); this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); this.layerSensorTree = new System.Windows.Forms.TreeView(); - this.layerTree = new Cyberpipe.MyTreeView(); this.sideBarPanelItem3 = new DevComponents.DotNetBar.SideBarPanelItem(); this.controlContainerItem3 = new DevComponents.DotNetBar.ControlContainerItem(); this.sideBarPanelItem4 = new DevComponents.DotNetBar.SideBarPanelItem(); @@ -611,6 +610,7 @@ this.buttonItem84 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem75 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem76 = new DevComponents.DotNetBar.ButtonItem(); + this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -1047,16 +1047,6 @@ this.layerSensorTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerMarkerTree_AfterCheck); this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); // - // layerTree - // - this.layerTree.CheckBoxes = true; - this.layerTree.ItemHeight = 18; - this.layerTree.Location = new System.Drawing.Point(30, 78); - this.layerTree.Name = "layerTree"; - this.layerTree.Size = new System.Drawing.Size(121, 97); - this.layerTree.TabIndex = 1; - this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); - // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2907,7 +2897,7 @@ this.水平面积ToolStripMenuItem1, this.地表面积ToolStripMenuItem1}); this.量算ToolStripMenuItem.Name = "量算ToolStripMenuItem"; - this.量算ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.量算ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.量算ToolStripMenuItem.Text = "量算"; // // 水平距离ToolStripMenuItem1 @@ -2970,7 +2960,7 @@ this.前进ToolStripMenuItem, this.删除模型ToolStripMenuItem}); this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem"; - this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.编辑ToolStripMenuItem.Text = "编辑"; // // 平移对象ToolStripMenuItem @@ -3046,7 +3036,7 @@ this.绕中心点飞行ToolStripMenuItem, this.绕眼睛飞行ToolStripMenuItem}); this.飞行ToolStripMenuItem.Name = "飞行ToolStripMenuItem"; - this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.飞行ToolStripMenuItem.Text = "飞行"; // // 自定义飞行ToolStripMenuItem @@ -3092,7 +3082,7 @@ this.红线工具ToolStripMenuItem, this.标注管理ToolStripMenuItem}); this.标注ToolStripMenuItem.Name = "标注ToolStripMenuItem"; - this.标注ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.标注ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.标注ToolStripMenuItem.Text = "标注"; // // 标高标注ToolStripMenuItem @@ -3187,7 +3177,7 @@ this.关键字查询ToolStripMenuItem, this.附属物查询ToolStripMenuItem}); this.查询ToolStripMenuItem.Name = "查询ToolStripMenuItem"; - this.查询ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.查询ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.查询ToolStripMenuItem.Text = "查询"; // // 空间查询ToolStripMenuItem @@ -3274,7 +3264,7 @@ this.标识器分类统计ToolStripMenuItem, this.标识器街道统计ToolStripMenuItem}); this.全区域统计ToolStripMenuItem.Name = "全区域统计ToolStripMenuItem"; - this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.全区域统计ToolStripMenuItem.Text = "全区域统计"; // // 管线长度统计ToolStripMenuItem @@ -3361,7 +3351,7 @@ this.标识器分类统计ToolStripMenuItem1, this.标识器街道统计ToolStripMenuItem1}); this.绘制区域统计ToolStripMenuItem.Name = "绘制区域统计ToolStripMenuItem"; - this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.绘制区域统计ToolStripMenuItem.Text = "绘制区域统计"; // // 管线长度统计ToolStripMenuItem1 @@ -3442,7 +3432,7 @@ this.道路断面分析ToolStripMenuItem, this.基线剖面分析ToolStripMenuItem}); this.断面分析ToolStripMenuItem.Name = "断面分析ToolStripMenuItem"; - this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.断面分析ToolStripMenuItem.Text = "断面分析"; // // 横断面分析ToolStripMenuItem @@ -3484,7 +3474,7 @@ this.连通分析ToolStripMenuItem, this.爆管分析ToolStripMenuItem}); this.拓扑分析ToolStripMenuItem.Name = "拓扑分析ToolStripMenuItem"; - this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.拓扑分析ToolStripMenuItem.Text = "拓扑分析"; // // 创建拓扑ToolStripMenuItem @@ -3546,7 +3536,7 @@ this.隐藏隧道ToolStripMenuItem, this.删除隧道ToolStripMenuItem}); this.开挖分析ToolStripMenuItem.Name = "开挖分析ToolStripMenuItem"; - this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.开挖分析ToolStripMenuItem.Text = "开挖分析"; // // 多边形开挖ToolStripMenuItem @@ -3598,7 +3588,7 @@ this.可视域分析ToolStripMenuItem, this.可视包络分析ToolStripMenuItem}); this.视域分析ToolStripMenuItem.Name = "视域分析ToolStripMenuItem"; - this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.视域分析ToolStripMenuItem.Text = "视域分析"; // // 通视分析ToolStripMenuItem @@ -3629,7 +3619,7 @@ this.附属物分析ToolStripMenuItem, this.无源淹没分析ToolStripMenuItem}); this.区域分析ToolStripMenuItem.Name = "区域分析ToolStripMenuItem"; - this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.区域分析ToolStripMenuItem.Text = "区域分析"; // // 缓冲区分析ToolStripMenuItem @@ -3656,7 +3646,7 @@ // 清除分析ToolStripMenuItem // this.清除分析ToolStripMenuItem.Name = "清除分析ToolStripMenuItem"; - this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.清除分析ToolStripMenuItem.Text = "清除分析"; this.清除分析ToolStripMenuItem.Click += new System.EventHandler(this.buttonItemClear_Click); // @@ -4124,12 +4114,12 @@ // this.ribbonControl1.BackgroundStyle.Class = ""; this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonControl1.Controls.Add(this.ribbonPanel15); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel7); this.ribbonControl1.Controls.Add(this.ribbonPanel1); - this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel8); - this.ribbonControl1.Controls.Add(this.ribbonPanel2); - this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -4175,10 +4165,10 @@ this.ribbonPanel7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel7.Controls.Add(this.ribbonBar5); this.ribbonPanel7.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel7.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel7.Location = new System.Drawing.Point(0, 0); this.ribbonPanel7.Name = "ribbonPanel7"; this.ribbonPanel7.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel7.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel7.Size = new System.Drawing.Size(1328, 95); // // // @@ -4195,6 +4185,7 @@ this.ribbonPanel7.StyleMouseOver.Class = ""; this.ribbonPanel7.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel7.TabIndex = 41; + this.ribbonPanel7.Visible = false; // // ribbonBar5 // @@ -4216,7 +4207,7 @@ this.slider4ground}); this.ribbonBar5.Location = new System.Drawing.Point(3, 0); this.ribbonBar5.Name = "ribbonBar5"; - this.ribbonBar5.Size = new System.Drawing.Size(427, 59); + this.ribbonBar5.Size = new System.Drawing.Size(418, 92); this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar5.TabIndex = 0; // @@ -4230,6 +4221,7 @@ this.ribbonBar5.TitleStyleMouseOver.Class = ""; this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonBar5.TitleVisible = false; + this.ribbonBar5.ItemClick += new System.EventHandler(this.ribbonBar5_ItemClick); // // btn_flag // @@ -4255,10 +4247,10 @@ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel1.Controls.Add(this.ribbonBar21); this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel1.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel1.Location = new System.Drawing.Point(0, 0); this.ribbonPanel1.Name = "ribbonPanel1"; this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95); // // // @@ -4304,7 +4296,7 @@ this.buttonItem89}); this.ribbonBar21.Location = new System.Drawing.Point(3, 0); this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(737, 59); + this.ribbonBar21.Size = new System.Drawing.Size(653, 92); this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar21.TabIndex = 2; this.ribbonBar21.Text = "浏览模式"; @@ -4390,10 +4382,10 @@ this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel3.Controls.Add(this.ribbonBar3); this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel3.Location = new System.Drawing.Point(0, 0); this.ribbonPanel3.Name = "ribbonPanel3"; this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel3.Size = new System.Drawing.Size(1328, 95); // // // @@ -4434,7 +4426,7 @@ this.buttonItem9}); this.ribbonBar3.Location = new System.Drawing.Point(3, 0); this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(296, 59); + this.ribbonBar3.Size = new System.Drawing.Size(378, 92); this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar3.TabIndex = 0; // @@ -4492,10 +4484,10 @@ this.ribbonPanel8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel8.Controls.Add(this.ribbonBar_UserInfo); this.ribbonPanel8.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel8.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel8.Location = new System.Drawing.Point(0, 0); this.ribbonPanel8.Name = "ribbonPanel8"; this.ribbonPanel8.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel8.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel8.Size = new System.Drawing.Size(1328, 95); // // // @@ -4539,7 +4531,7 @@ this.btn_reset_password}); this.ribbonBar_UserInfo.Location = new System.Drawing.Point(3, 0); this.ribbonBar_UserInfo.Name = "ribbonBar_UserInfo"; - this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 59); + this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 92); this.ribbonBar_UserInfo.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar_UserInfo.TabIndex = 0; // @@ -4616,10 +4608,10 @@ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel2.Controls.Add(this.ribbonBar4); this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel2.Location = new System.Drawing.Point(0, 0); this.ribbonPanel2.Name = "ribbonPanel2"; this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95); // // // @@ -4659,7 +4651,7 @@ this.buttonItem_Event}); this.ribbonBar4.Location = new System.Drawing.Point(3, 0); this.ribbonBar4.Name = "ribbonBar4"; - this.ribbonBar4.Size = new System.Drawing.Size(211, 59); + this.ribbonBar4.Size = new System.Drawing.Size(299, 92); this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar4.TabIndex = 0; this.ribbonBar4.Text = "ribbonBar4"; @@ -4727,7 +4719,6 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; - this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -4759,7 +4750,7 @@ this.buttonItemBZ}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(791, 59); + this.ribbonBar20.Size = new System.Drawing.Size(835, 59); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -6026,6 +6017,7 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_08_hover; this.ribbonTabItem14.Image = global::Cyberpipe.Properties.Resources._24x24icon_08; this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -6054,7 +6046,6 @@ // ribbonTabItem7 // this.ribbonTabItem7.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem7.Checked = true; this.ribbonTabItem7.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_04_hover1; this.ribbonTabItem7.Image = global::Cyberpipe.Properties.Resources._24x24icon_041; this.ribbonTabItem7.Name = "ribbonTabItem7"; @@ -6399,6 +6390,16 @@ this.buttonItem76.SubItemsExpandWidth = 14; this.buttonItem76.Text = "坐标标注"; // + // layerTree + // + this.layerTree.CheckBoxes = true; + this.layerTree.ItemHeight = 18; + this.layerTree.Location = new System.Drawing.Point(30, 78); + this.layerTree.Name = "layerTree"; + this.layerTree.Size = new System.Drawing.Size(121, 97); + this.layerTree.TabIndex = 1; + this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); + // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; diff --git a/MainFrm.resx b/MainFrm.resx index 9d1d787..dcfc26a 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -2094,7 +2094,7 @@ - 166 + 121 diff --git a/Program.cs b/Program.cs index a5c9d17..1ff0987 100644 --- a/Program.cs +++ b/Program.cs @@ -11,6 +11,7 @@ static class Program { static string ent = "C:\\EMSCyberPipe"; + /// /// The main entry point for the application. /// @@ -30,7 +31,9 @@ String newVersionCode = getVersionCode(configUrl, currentVersionCode); if (newVersionCode != currentVersionCode) { - if (MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + if ( + MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, + MessageBoxIcon.Question) == DialogResult.Yes) { remoteUpDate(); @@ -38,7 +41,7 @@ string programUrl = getProgramUrl(localConfigPath, "programurl"); if (programUrl != "") { - + //FrmDownloadProgress frmdownload = FrmDownloadProgress.getForm(programUrl); Process.Start(ent + "/UpDateProgress.exe").WaitForExit(); return; @@ -58,7 +61,8 @@ } } } - + + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmLogin frm = new FrmLogin(); @@ -74,6 +78,7 @@ return; } } + } private static void remoteUpDate() diff --git a/Utility.cs b/Utility.cs index eb39366..0e929aa 100644 --- a/Utility.cs +++ b/Utility.cs @@ -87,6 +87,8 @@ public static string AppId; public static string SysnameVersion ="智慧太湖新城管网电子标识系统"; + //public static bool isNeedLogin = false; + public static void SetBallons(GSOBalloon featureTooltip, GSOBalloonEx balloonEx) { featureTooltip.CacheFilePath = Application.StartupPath + "/GeoScene/Globe/Temp"; diff --git a/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml b/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml deleted file mode 100644 index aa192db..0000000 --- a/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml +++ /dev/null @@ -1,6921 +0,0 @@ - - - - Microsoft.Office.Tools.Excel.v4.0.Utilities - - - - Provides the base class for chart sheet host items in document-level Office projects for Microsoft Office Excel. - - - - - - - - - - Makes the current the active chart. - - - Occurs when the is activated. - - - Gets an that represents the Microsoft Office Excel application. - An that represents the Microsoft Office Excel application. - - - Applies a standard or custom chart template to the chart. - The file name for a chart template. - - - Applies a standard or custom chart type to a . - A standard chart type. - The name of the custom chart type if specifies a custom chart gallery. - - - Applies data labels to a point, a series, or all the series in a . - The type of data label to apply. - true to show the legend key next to the point. The default value is false. - true if the object automatically generates appropriate text based on content. - For the and objects, true if the series has leader lines. - The series name for the data label. - The category name for the data label. - The value for the data label. - The percentage for the data label. - The bubble size for the data label. - The separator for the data label. - - - Applies the specified layout to the chart. - An integer from 1 through 10 that specifies the type of layout to apply to the chart. - One of the values. - - - - - - Gets a that represents the area chart group on a 3-D . - A that represents the area chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single area chart group (a object) or a collection of the area chart groups (a collection). - The chart group number. - - - - - - - Gets a value that indicates whether Microsoft Office Excel scales a 3-D so that it is closer in size to the equivalent 2-D chart - true if Microsoft Office Excel scales a 3-D so that it is closer in size to the equivalent 2-D chart. - - - Gets an object that represents either a single axis or a collection of the axes on the chart. - Specifies the axis to return. Can be one of the following constants: , , or ( is valid only for 3-D charts). - Specifies the axis group. If this argument is omitted, the primary group is used. 3-D charts have only one axis group. - - - Gets an object that represents the back wall of a 3-D chart. - A object that represents the back wall of a 3-D chart. - - - Gets a that represents the bar chart group on a 3-D . - A that represents the bar chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single bar chart group (a object) or a collection of the bar chart groups (a collection). - Specifies the chart group. - - - Gets or sets the shape used with the 3-D bar or column . - One of the values. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs when the is double-clicked, before the default double-click action. - - - Occurs when the is right-clicked, before the default right-click action. - - - - - - - - - Occurs after the plots new or changed data. - - - Gets a that represents the complete chart area for the . - A that represents the complete chart area for the . - - - Gets an object that represents either a single chart group (a object) or a collection of all the chart groups in the chart (a object). - The chart group number. - - - Gets an object that represents either a single embedded chart (a object) or a collection of all the embedded charts (a object) on the sheet. - The name or number of the . This argument can be an array, to specify more than one chart. - - - Gets or sets the style of the chart. - An integer from 1 through 48 that represents the style of the chart. - - - Gets a that represents the title of the specified . - A that represents the title of the specified . - - - Gets or sets the type. - One of the values. - - - Modifies the properties of the given . - The range that contains the source data for the new chart. If this argument is omitted, Microsoft Office Excel edits the active chart sheet or the selected chart on the active worksheet. - The chart type. - The option number for the built-in autoformats. Can be a number from 1 through 10, depending on the gallery type. If this argument is omitted, Microsoft Office Excel chooses a default value based on the gallery type and data source. - Specifies whether the data for each series is in rows or columns. Can be one of the following constants: or . - An integer specifying the number of rows or columns within the source range that contain category labels. Legal values are from 0 (zero) through one less than the maximum number of the corresponding categories or series. - The number of rows or columns within the source range that contain series labels. Legal values are from 0 (zero) through one less than the maximum number of the corresponding categories or series. - true to include a legend. - The chart title text. - The category axis title text. - The value axis title text - The series axis title for 3-D charts or the second value axis title for 2-D charts. - - - - - - Checks the spelling of an . - A string that indicates the file name of the custom dictionary to be examined if the word is not found in the main dictionary. If this argument is omitted, the currently specified dictionary is used. - true to have Microsoft Office Excel ignore words that are all uppercase. false to have Microsoft Office Excel check words that are all uppercase. If this argument is omitted, the current setting will be used. - true to have Excel display a list of suggested alternate spellings when an incorrect spelling is found. false to have Excel wait for you to input the correct spelling. If this argument is omitted, the current setting will be used. - The language of the dictionary being used. Can be one of the values used by the property. - - - Clears the chart elements formatting to automatic. - - - - Gets a that represents the column chart group on a 3-D . - A that represents the column chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single column chart group (a object) or a collection of the column chart groups (a collection). - Specifies the chart group. - - - Copies the to another location in the workbook. - The sheet before which the copied sheet will be placed. You cannot specify if you specify . - The sheet after which the copied sheet will be placed. You cannot specify if you specify . - - - - Copies the to the Clipboard as a picture. - Specifies how the picture should be copied. - The format of the picture. - The size of the copied picture when the object is a chart on a chart sheet (not embedded on a worksheet). - - - Gets a object that represents the corners of a 3-D . - A object that represents the corners of a 3-D . - - - - - - - - - - - - Gets an code that indicates the application in which the was created. - One of the values. - - - - - Gets a object that represents the data table. - A object that represents the data table. - - - Occurs when the selection moves away from the , causing the to become deactivated. - - - Deletes the object. - - - Gets or sets the depth of a 3-D chart as a percentage of the width. - The depth of a 3-D chart as a percentage of the width (between 20 and 2000 percent) - - - Cancels the selection for the specified . - - - Gets or sets the way that blank cells are plotted on a . - One of the following constants: , , or . - - - Releases all resources used by the current instance of the class. - - - - On a 2-D , returns an object that represents either a single doughnut chart group (a object) or a collection of the doughnut chart groups (a collection). - Specifies the chart group. - - - - - - - - - - - - - - Gets or sets the elevation of the 3-D , in degrees. - The elevation of the 3-D , in degrees. - - - - Converts a Microsoft Office Excel name to an object or a value. - The name of the object, using the naming convention of Microsoft Office Excel. - - - Exports the in a graphic format. - The name of the exported file. - The language-independent name of the graphic filter as it appears in the registry. - true to display the dialog box that contains the filter-specific options. If this argument is false, Microsoft Office Excel uses the default values for the filter. The default value is false. - - - Saves the chart that is displayed on the in PDF or XPS format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the chart in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this parameter is omitted, exporting starts at the beginning. - The number of the last page to publish. If this parameter is omitted, publishing ends with the last page. - true to open the new file in the viewer immediately; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the chart to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - - Gets a object that represents the floor of the 3-D . - A object that represents the floor of the 3-D . - - - Gets or sets the distance between the data series in a 3-D , as a percentage of the marker width. - The distance between the data series in a 3-D , as a percentage of the marker width. The value of this property must be between 0 and 500. - - - - - - - - Gets information about the chart element at specified X and Y coordinates. - The X coordinate of the chart element. - The Y coordinate of the chart element. - When the method returns, this argument contains the value of the chart element at the specified coordinates. For more information, see the “Remarks” section. - When the method returns, this argument contains information related to the chart element. For more information, see the “Remarks” section. - When the method returns, this argument contains information related to the chart element. For more information, see the “Remarks” section. - - - - - - - - - Gets or sets a value indicating whether a specific axis exists on the . - true if the specified axis exists on the ; otherwise, false. - - - Gets or sets a value that indicates whether the has a data table. - true if the has a data table. - - - Gets or sets a value that indicates whether the has a legend. - true if the has a legend. - - - Gets or sets a value that indicates whether the PivotChart controls are displayed on the specified PivotChart report. - true if the PivotChart controls are displayed on the specified PivotChart report. The default value is true. - - - Gets or sets a value the indicates whether the has a visible title. - true if the has a visible title. - - - Gets or sets the height of a 3-D chart as a percentage of the width. - The height of a 3-D chart as a percentage of the width (between 5 and 500 percent). - - - - Gets a collection that represents the hyperlinks for the . - A collection that represents the hyperlinks for the . - - - Gets the index number of the . - The index number of the . - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - - - - - Gets a that represents the legend for the . - A that represents the legend for the . - - - Gets a that represents the line chart group on a 3-D . - A that represents the line chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single line chart group (a object) or a collection of the line chart groups (a collection). - Specifies the chart group. - - - - - - - - - Moves the to a new location. - One of the values that specify where to move the chart. - The name of the sheet where the chart will be embedded if is or the name of the new sheet if is . - - - Represents an e-mail header for a document. - One of the values. - - - - - - - - - - - - Occurs when a mouse button is pressed when the pointer is over a . - - - Occurs when the position of the mouse pointer changes over the . - - - Occurs when a mouse button is released when the pointer is over the . - - - Moves the to another location in the workbook. - The sheet before which the moved sheet will be placed. You cannot specify if you specify . - The sheet after which the moved sheet will be placed. You cannot specify if you specify . - - - Gets or sets the name of the . - The name of the . - - - Gets a object that represents the next sheet. - A object that represents the next sheet. - - - Gets an object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the chart or sheet. - The name or number of the OLE object. - - - - - - - - - - - - - - Gets a that contains all the page setup settings for the . - A that contains all the page setup settings for the . - - - Gets the parent object for the . - The parent object for the . - - - Pastes chart data from the Clipboard into the specified . - Specifies the information to paste if a chart is on the Clipboard. Can be one of the following constants: , , or . The default value is . If there is data other than a chart on the Clipboard, this argument cannot be used. - - - Gets or sets the perspective for the 3-D . - The perspective for the 3-D chart view. Must be between 0 and 100. - - - - - - Gets a that represents the pie chart group on a 3-D . - A that represents the pie chart group on a 3-D . - - - On a 2-D , returns an object that represents either a single pie chart group (a object) or a collection of the pie chart groups (a collection). - Specifies the chart group. - - - Gets a that represents the placement of fields in a PivotTable report and the placement of axes in a PivotChart report. - A that represents the placement of fields in a PivotTable report and the placement of axes in a PivotChart report. - - - Gets a object that represents the plot area of a . - A object that represents the plot area of a . - - - Gets or sets the way columns or rows are used as data series on the . - One of the following constants: or . - - - Gets or sets a value that indicates whether only visible cells are plotted. - true if only visible cells are plotted. false if both visible and hidden cells are plotted. - - - Gets a object that represents the previous sheet. - A object that represents the previous sheet. - - - Gets the number of comment pages that will be printed for the current chart sheet. This property can be used only in Excel 2010 projects. - The number of comment pages that will be printed for the current chart sheet. - This property is used in an Excel 2007 project. - - - Prints the . - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the chart that is displayed on the . - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - The name of the file to print to. This parameter is used only if is true. - - - Shows a preview of the as it would look when printed. - - - - Protects a so that it cannot be modified. - A string that specifies a case-sensitive password for the worksheet or workbook. If this argument is omitted, you can unprotect the worksheet or workbook without using a password. Otherwise, you must specify the password to unprotect the worksheet or workbook. If you forget the password, you cannot unprotect the worksheet or workbook. It is a good idea to keep a list of your passwords and their corresponding document names in a safe place. - true to protect shapes. The default value is false. - true to protect contents. For a chart, this protects the entire chart. For a worksheet, this protects the locked cells. The default value is true. - true to protect scenarios. This argument is valid only for worksheets. The default value is true. - true to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface. - - - Gets a value that indicates whether the contents of the are protected. - true if the contents of the are protected. - - - Gets or sets a value that indicates whether series formulas cannot be modified by the user. - true if series formulas cannot be modified by the user; otherwise, false. - - - Gets a value that indicates whether shapes are protected on the . - true if shapes are protected. - - - Gets or sets a value that indicates whether formatting cannot be modified by the user. - true if formatting cannot be modified by the user. - - - Gets or sets a value that indicates whether the user cannot modify chart data points with mouse actions. - true if the user cannot modify chart data points with mouse actions. - - - Gets or sets a value that indicates whether user-interface-only protection is turned on. - true if user-interface-only protection is turned on. - - - Gets or sets a value that indicates whether elements cannot be selected. - true if elements cannot be selected. - - - On a 2-D , returns an object that represents either a single radar chart group (a object) or a collection of the radar chart groups (a collection). - Specifies the chart group. - - - - - - Updates the cache of the . - - - Occurs when the size of the is changed. - - - Gets or sets a value that indicates whether the axes are at right angles, independent of chart rotation or elevation. - true if the axes are at right angles, independent of chart rotation or elevation. - - - Gets or sets the rotation of the 3-D . - The rotation of the 3-D (the rotation of the plot area around the z-axis, in degrees). The value of this property must be from 0 to 360, except for 3-D bar charts, where the value must be from 0 to 44. The default value is 20. - - - Saves changes to the in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - The file format to use when you save the file. For a list of valid choices, see the property. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings). false (default) saves files against the language of Visual Basic for Applications (which is typically US English unless the VBA project where Workbooks.Open is run from is an old internationalized XL5/95 VBA project). - - - Saves the chart on the as a custom template in the list of available chart templates. - The name of the new chart template. - - - Gets the collection, which contains objects representing blocks of script or code in the specified document when it is saved as a Web page. - The collection, which contains objects representing blocks of script or code in the specified document when it is saved as a Web page. - - - - - - Selects the . - The object to replace. - - - Occurs when the is selected. - - - Occurs when the value of a data point is changed. - - - Gets an object that represents either a single series (a object) or a collection of all the series (a collection) in the chart or chart group. - The name or number of the series. - - - - - - - - Sets the background graphic for a . - The name of the graphic file. - - - Specifies the name of the chart template that Microsoft Office Excel uses when creating new charts. - A string that indicates the name of the default chart template that will be used when creating new charts. This name can identify a chart in the gallery for a user-defined template, or it can be one of the values that specifies a built-in chart template. - - - Modifies an element on the chart that is displayed on the . - One of the Microsoft.Office.Core.MsoChartElementType values that specifies the type of element modification. - - - Sets the source data range for the . - The range that contains the source data. - Specifies the way the data is to be plotted. Can be either of the following constants: or . - - - Gets a object that represents all the shapes on the . - A object that represents all the shapes on the . - - - Gets or sets whether to display all field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display all field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display axis field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display axis field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets a value that indicates whether to show the data labels when the value is greater than the maximum value on the value axis. - true to show the data labels when the value is greater than the maximum value on the value axis; otherwise, false. - - - Gets or sets whether to display legend field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display all legend field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display the report filter field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display the report filter field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display the value field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display the value field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Occurs when the application domain for the assembly is about to unload. - - - Gets an object that represents the side wall of a 3-D chart. - A object that represents the side wall of a 3-D chart. - - - - - - - Occurs after the document is running and all the initialization code in the assembly has been run. - - - - Gets a object that represents the surface chart group of a 3-D . - A object that represents the surface chart group of a 3-D . - - - Gets a object for a . - A object for a . - - - Gets or sets the object that contains data about the . - The object that contains data about the . - - - - - - - Removes protection from a . This method has no effect if the sheet or workbook is not protected. - The case-sensitive password to use to unprotect the sheet or workbook. If the sheet or workbook is not protected with a password, this argument is ignored. If you omit this argument for a sheet that is protected with a password, you will be prompted for the password. If you omit this argument for a workbook that is protected with a password, the method fails. - - - Determines whether the object is visible. - - - Gets a object that represents the walls of the 3-D . - A object that represents the walls of the 3-D . - - - Gets or sets a value that indicates whether gridlines are drawn two-dimensionally on a 3-D . - true if gridlines are drawn two-dimensionally on a 3-D ; otherwise, false. - - - On a 2-D , returns an object that represents either a single scatter chart group (a object) or a collection of the scatter chart groups (a collection). - Specifies the chart group. - - - Provides extension methods you can use to add Windows Forms controls to Excel worksheets that have been customized by using the Office development tools in Visual Studio. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the location for the control. - The name of the control that can be used to index the control in the instance. - - - Adds a new control to the document in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the document. - The distance in points between the top edge of the control and the top edge of the document. - The width of the control in points. - The height of the control in points. - The name of the control that can be used to index the control in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - - - Provides the base class for the ThisWorkbook class in document-level projects for Microsoft Office Excel. - - - - - - - - - - - Accepts all changes in the shared workbook. - One of the values that specifies when the changes to be accepted were made. - A string that identifies who made the changes to be accepted. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the location of the changes to be accepted. - - - Gets or sets a value that indicates whether labels can be used in worksheet formulas. - true if labels can be used in worksheet formulas. The default value is false. - - - Specifies whether certain worksheet functions use the latest accuracy algorithms to calculate their results. This property can be used only in Excel 2010 projects. - A value that specifies whether certain worksheet functions use the latest accuracy algorithms to calculate their results. - This property is used in an Excel 2007 project. - - - Activates the first window associated with the workbook. - - - Occurs when the workbook is activated. - - - Gets a object that represents the active chart (either an embedded chart or a chart sheet). An embedded chart is considered active when it is either selected or activated. When no chart is active, this property returns null. - A object that represents the active chart; null if no chart is active. - - - Gets the active sheet (the sheet on top). - The active sheet (the sheet on top); null if no sheet is active. - - - Gets an object that represents the active slicer in the active workbook or in the specified workbook. This property can be used only in Excel 2010 projects. - A that represents the active slicer in the active workbook or in the specified workbook. - This property is used in an Excel 2007 project. - - - Occurs when the workbook is installed as an add-in. - - - Occurs when the workbook is uninstalled as an add-in. - - - Adds a shortcut to the workbook to the Favorites folder. - - - Occurs after the workbook is saved. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after Microsoft Office Excel saves or exports data from the workbook to an XML data file. - - - Occurs after an existing XML data connection is refreshed or after new XML data is imported into the workbook. - - - Gets an that represents the creator of the workbook. - An that represents the creator of the workbook. - - - Applies the specified theme to the workbook. - The full file path of the theme to apply. - - - Gets or sets the author of the workbook. - The author of the workbook. - - - Gets or sets the number of minutes between automatic updates to the shared workbook. - The number of minutes between automatic updates to the shared workbook. - - - Gets or sets a value that indicates whether current changes to the shared workbook are posted to other users whenever the workbook is automatically updated. - true if current changes to the shared workbook are posted to other users whenever the workbook is automatically updated. false if changes are not posted (this workbook is still synchronized with changes made by other users). The default value is true. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs before the workbook closes. If the workbook has been changed, this event occurs before the user is asked to save changes. - - - Occurs before the workbook (or anything in it) is printed. - - - Occurs before the workbook is saved. - - - Occurs before Microsoft Office Excel saves or exports data from the workbook to an XML data file. - - - Occurs before an existing XML data connection is refreshed or before new XML data is imported into the workbook. - - - - - - Converts formulas linked to other Microsoft Office Excel sources or OLE sources to values. - The name of the link. - One of the values. The type of link. - - - Gets a Microsoft.Office.Core.DocumentProperties collection that represents all the built-in document properties for the workbook. - A Microsoft.Office.Core.DocumentProperties collection that represents all the built-in document properties for the workbook. - - - Gets a number that indicates the version of Excel that the workbook was last fully recalculated by. The rightmost four digits are the minor calculation engine version number, and the other digits (on the left) are the major version of Microsoft Office Excel. - A number that indicates the version of Excel that the workbook was last fully recalculated by. The rightmost four digits are the minor calculation engine version number, and the other digits (on the left) are the major version of Microsoft Office Excel. - - - Gets a value that indicates whether Microsoft Office Excel can check in the workbook to a server. - true if Microsoft Office Excel can check in the workbook to a server; otherwise, false. - - - Changes the access permissions for the workbook. This might require an updated version to be loaded from the disk. - One of the values. Specifies the new access mode. - Specifies the write-reserved password if the file is write reserved and is . Ignored if there is no password for the file or if is . - true to notify the user if the file cannot be immediately accessed. - - - Gets or sets the number of days shown in the shared workbook's change history. - The number of days shown in the shared workbook's change history. - - - Changes a link from one document to another. - The name of the Microsoft Office Excel or DDE/OLE link to be changed, as it was returned from the method. - The new name of the link. - One of the values that specifies the link type. - - - Gets a collection that represents all the chart sheets in the workbook. - A collection that represents all the chart sheets in the workbook. - - - Gets or sets a value that indicates whether to run the compatibility checker automatically when the workbook is saved. - true if the compatibility checker should be run automatically when the workbook is saved; otherwise, false. The default for Excel 97-2003 Binary (BIFF8) workbooks is true; the default for all other workbooks is false. - - - Returns a workbook from a local computer to a server, and sets the local workbook to read-only so that it cannot be edited locally. Calling this method closes the workbook. - true saves changes and checks in the document; false returns the document to a checked-in status without saving revisions. - Allows the user to enter check-in comments for the revision of the workbook being checked in (applies only if equals true). - true allows the user to publish the workbook after it has been checked in. This submits the workbook for the approval process, which can eventually result in a version of the workbook being published to users with read-only rights to the workbook (applies only if equals true). - - - Sends the workbook from the local computer to a server, and sets the local workbook to read-only so that it cannot be edited locally. Calling this method closes the workbook. - true to save changes and check in the document; false to return the document to a checked-in state without saving revisions. - true to enable check-in comments; false to check in the workbook without comments. This parameter applies only if is true. - true to enable the user to publish the workbook after it has been checked in. This submits the workbook for the approval process, which can eventually result in a version of the workbook being published to users with read-only rights to the workbook (applies only if equals true). - Specifies versioning information for the document. - - - Closes the workbook. - If there are no changes to the workbook, this argument is ignored. If there are changes to the workbook and the workbook appears in other open windows, this argument is ignored. If there are changes to the workbook but the workbook does not appear in any other open windows, this argument specifies whether changes should be saved, as shown in the following list.true. Saves the changes to the workbook. If there is not yet a file name associated with the workbook, then is used. If is omitted, the user is asked to supply a file name.false. Does not save the changes to the workbook.Omitted. Displays a dialog box asking the user whether or not to save changes. - Save changes under this file name. - If the workbook does not need to be routed to the next recipient (if it has no routing slip or has already been routed), this argument is ignored. Otherwise, Microsoft Office Excel routes the workbook as shown in the following list.true. Sends the workbook to the next recipient.false. Does not send the workbook.Omitted. Displays a dialog box asking the user whether the workbook should be sent. - - - - Gets or sets colors in the palette for the workbook. - An RGB color value in the color palette for the workbook, or an array that contains all 56 RGB color values in the color palette for the workbook. - - - Gets a Microsoft.Office.Core.CommandBars object that represents the Microsoft Office Excel command bars. - A Microsoft.Office.Core.CommandBars object that represents the Microsoft Office Excel command bars. - - - Gets or sets the comments attached to the workbook. - The comments attached to the workbook. - - - Gets or sets the way conflicts are to be resolved whenever a shared workbook is updated. - One of the values. - - - Gets the collection of connections between the workbook and a data source. - A Microsoft.Office.Interop.Excel.Connections collection that contains the connections between the workbook and a data source. - - - Gets a value that indicates whether to disable the external connections or links in the workbook. - true to disable the external connections or links in the workbook; otherwise, false. - - - Gets the object that represents the container application for the workbook. - The object that represents the container application for the workbook. - - - Gets a collection of properties that describe metadata that is stored in the workbook. - A Microsoft.Office.Core.MetaProperties collection that contains properties that describe metadata that is stored in the workbook. - - - Gets a value that indicates whether a backup file is created when this file is saved. - true if a backup file is created when this file is saved; otherwise, false. - - - Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - An object that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - - - Returns an array of objects to the method. - An array of objects. - - - Gets the application in which the workbook was created. - One of the values. - - - Gets a Microsoft.Office.Core.DocumentProperties collection that represents all the custom document properties for the workbook. - A Microsoft.Office.Core.DocumentProperties collection that represents all the custom document properties for the workbook. - - - Gets a collection that represents all the custom views for the workbook. - A collection that represents all the custom views for the workbook. - - - Gets the collection of custom XML parts in the workbook. - A Microsoft.Office.Core.CustomXMLParts collection that contains the custom XML parts in the workbook. - - - - - Gets or sets a value that indicates whether the workbook uses the 1904 date system. - true if the workbook uses the 1904 date system; otherwise, false. - - - Occurs when the workbook is deactivated. - - - Gets or sets the table style from the property that is used as the default style for PivotTable reports in the workbook. - The table style from the property that is used as the default style for PivotTable reports in the workbook. - - - - Gets or sets the table style from the property that is used as the default style for tables in the workbook. - The table style from the property that is used as the default style for tables in the workbook. - - - Deletes a custom number format from the workbook. - Names the number format to be deleted. - - - Included for backwards compatibility only. - - - Gets or sets how shapes are displayed. - One of the following values: , , or . - - - Gets or sets a value that indicates whether ink comments are displayed in the workbook. - true if ink comments are displayed in the workbook; otherwise, false. - - - Releases all resources used by the current instance of the class. - - - - Gets the collection of Document Inspector modules for the workbook. - A Microsoft.Office.Core.DocumentInspectors collection that contains the Document Inspector modules for the workbook. - - - Gets a Microsoft.Office.Core.DocumentLibraryVersions collection that represents the collection of versions of a shared workbook that has versioning enabled and that is stored in a document library on a server. - A Microsoft.Office.Core.DocumentLibraryVersions collection that represents the collection of versions of a shared workbook that has versioning enabled and that is stored in a document library on a server. - - - Gets or sets a value that indicates whether to prompt the user to convert the workbook if it contains features that are not supported by versions of Excel earlier than Excel 2007. - true to prompt the user to convert the workbook; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel saves changed files, of all formats, on a timed interval. - true if Excel saves changed files on a timed interval; otherwise, false. - - - Enables data connections within the workbook. - - - Gets the name of the algorithm encryption provider that Microsoft Office Excel uses when encrypting passwords for the workbook. - The name of the algorithm encryption provider that Excel uses when encrypting passwords for the workbook. - - - - Terminates a review of a file that has been sent for review using the method. - - - Gets or sets a value that indicates whether the e-mail composition header and the envelope toolbar are both visible. - true if the e-mail composition header and the envelope toolbar are both visible; otherwise, false. - - - Gets a collection that represents all the Microsoft Office Excel 4.0 international macro sheets in the workbook. - A collection that represents all the Microsoft Office Excel 4.0 international macro sheets in the workbook. - - - Gets a collection that represents all the Microsoft Office Excel 4.0 macro sheets in the workbook. - A collection that represents all the Microsoft Office Excel 4.0 macro sheets in the workbook. - - - Gets a value that indicates whether the workbook is in compatibility mode. - true if the workbook is in compatibility mode; otherwise, false. - - - Assigns the current user exclusive access to the workbook that is open as a shared list. - - - Saves a workbook in PDF or XPS format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the workbook in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this parameter is omitted, exporting starts at the beginning. - The number of the last page to export. If this parameter is omitted, exporting ends with the last page. - true to open the new file after exporting the workbook; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the workbook to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - Gets the file format and type of the workbook. - One of the values. - - - Gets or sets a value that indicates whether the workbook is final. - true if the workbook is final; otherwise, false. - - - - Displays a cached document, if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application. - The address of the target document. - The location within the target document. The default value is the empty string. - true to display the target application in a new window. The default value is false. - Not used. Reserved for future use. - A string or byte array that specifies additional information for HTTP to use to resolve the hyperlink. For example, you can use to specify the coordinates of an image map, the contents of a form, or a FAT file name. - Specifies the way is attached. Can be one of the following Microsoft.Office.Core.MsoExtraInfoMethod constants: Microsoft.Office.Core.MsoExtraInfoMethod.msoMethodGet or Microsoft.Office.Core.MsoExtraInfoMethod.msoMethodPost. - A string that specifies header information for the HTTP request. The default value is an empty string. - - - Gets or sets a value that indicates whether to force a full calculation of a workbook. - true to force a full calculation of a workbook; otherwise, false. - - - - Gets the name of the object, including its path on disk. - The name of the object, including its path on disk. - - - Gets the name of the object, including its path on disk. - The name of the object, including its path on disk. - - - - - - Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the workbook. - An object in a document-level customization that can be used by VBA code in the workbook. - - - - - - - - Returns the collection of workflow tasks for the workbook. - A Microsoft.Office.Core.WorkflowTasks collection that contains the workflow tasks for the workbook. - - - Returns the collection of workflow templates for the workbook. - A Microsoft.Office.Core.WorkflowTemplates collection that contains the workflow templates for the workbook. - - - - Gets a value that indicates whether the workbook has a protection password. - true if the workbook has a protection password; otherwise, false. - - - Gets or sets a value that indicates whether the workbook has a routing slip. - true if the workbook has a routing slip; otherwise, false. - - - Gets a value that indicates whether a workbook has an attached Microsoft Visual Basic for Applications (VBA) project. - true if the workbook has an attached VBA project; otherwise, false. - - - Gets or sets a value that indicates whether changes to the shared workbook are highlighted on screen. - true if changes to the shared workbook are highlighted on screen; otherwise, false. - - - Controls how changes are shown in a shared workbook. - The changes that are shown. Can be one of the following constants: , , or . - The user or users whose changes are shown. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the area to check for changes. - - - - Gets the Microsoft.Office.Core.HTMLProject in the workbook, which represents a top-level project branch. - The Microsoft.Office.Core.HTMLProject in the workbook, which represents a top-level project branch. - - - Gets the collection of built-in icon sets that can be used to apply a conditional formatting rule to a range in the workbook. - A Microsoft.Office.Interop.Excel.IconSets collection that contains the built-in icon set objects that can be used to apply a conditional formatting rule to a range. - - - Gets or sets a value that indicates whether list borders are visible when a list is not active. - true if the border is visible; otherwise, false. - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - Gets or sets a value that indicates whether the workbook is running as an add-in. - true if the workbook is running as an add-in; otherwise, false. - - - Gets a value that indicates whether the specified workbook is being edited in place - true if the specified workbook is being edited in place; false if the workbook has been opened in Microsoft Office Excel for editing. - - - - Gets or sets a value that indicates whether change tracking is enabled for the shared workbook. - true if change tracking is enabled for the shared workbook; otherwise, false. - - - Gets or sets the keywords attached to the workbook. - The keywords attached to the workbook. - - - Gets the link date and update status. - A value that indicates information about the link. If is , this method returns 1 if the link updates automatically, or 2 if the link must be updated manually. - The name of the link. - One of the values that specifies the type of information to return. - One of the values that specifies the type of link to return information for. - If the link is an edition, this parameter specifies the edition reference as a string in R1C1 style. is required if there is more than one publisher or subscriber with the same name in the workbook. - - - Returns an of links in the workbook. - An of link names in the workbook; null if the workbook does not contain any links of the specified . - One of the values specifying the type of links to return. - - - Gets or sets a value that indicates whether changes to the shared workbook are shown on a separate worksheet. - true if changes to the shared workbook are shown on a separate worksheet; otherwise, false. - - - Locks the workbook on the server to prevent modification. - - - - Merges changes from one workbook into an open shared workbook. - The file name of the workbook that contains the changes to be merged into the open workbook. - - - - - - - - - - - - - - - - - - - Included for backwards compatibility only. - - - Gets a value that indicates whether the workbook is open as a shared list. - true if the workbook is open as a shared list; otherwise, false. - - - Gets the name of the workbook. - The name of the workbook. - - - Gets a collection that represents all the names in the workbook (including all worksheet-specific names). - A collection that represents all the names in the workbook (including all worksheet-specific names). - - - Occurs when a new workbook is created. - - - Occurs when a new chart is created in the workbook. - - - Occurs when a new sheet is created in the workbook. - - - Creates a new window. - - - Included for backwards compatibility only. - - - Included for backwards compatibility only. - - - Included for backwards compatibility only. - - - - - Occurs when the workbook is opened. - - - Opens the supporting documents for a link or links. - The name of the Microsoft Office Excel or DDE/OLE link, as returned from the method. - true to open documents as read-only. The default value is false. - One of the values. The link type. - - - Gets the parent object for the workbook. - The parent object for the workbook. - - - Gets or sets the password that must be supplied to open the workbook. - The password that must be supplied to open the workbook. - - - Gets the algorithm that Microsoft Office Excel uses to encrypt passwords for the workbook. - The algorithm that Excel uses to encrypt passwords for the workbook. - - - Gets a value that indicates whether Microsoft Office Excel encrypts file properties for the specified password-protected workbook. - true if Excel encrypts file properties for the specified password-protected workbook; otherwise, false. - - - Gets the key length of the algorithm that Microsoft Office Excel uses when encrypting passwords for the workbook. - The key length of the algorithm that Excel uses when encrypting passwords for the workbook. - - - Gets the name of the algorithm encryption provider that Microsoft Office Excel uses when encrypting passwords for the workbook. - The name of the algorithm encryption provider that Excel uses when encrypting passwords for the workbook. - - - Gets the complete path to the application, excluding the final separator and name of the application. - The complete path to the application, excluding the final separator and name of the application. - - - Gets a Microsoft.Office.Core.Permission object that represents the permission settings in the workbook. - A Microsoft.Office.Core.Permission object that represents the permission settings in the workbook. - - - Gets or sets a value that indicates whether filter and sort settings for lists are included in the user's personal view of the shared workbook. - true if filter and sort settings for lists are included in the user's personal view of the shared workbook; otherwise, false. - - - Gets or sets a value that indicates whether print settings are included in the user's personal view of the shared workbook. - true if print settings are included in the user's personal view of the shared workbook; otherwise, false. - - - Gets a collection that represents all the PivotTable caches in the specified workbook. - A collection that represents all the PivotTable caches in the specified workbook. - - - Occurs after a PivotTable report closes the connection to its data source. - - - Occurs after a PivotTable report opens the connection to its data source. - - - Creates a object. - An value. The source of the report data. - The data for the new report. Can be a object, an array of ranges, or a text constant that represents the name of another report. For an external database, is an array of strings containing the SQL query string, where each element is up to 255 characters in length. You should use the argument to specify the ODBC connection string. For compatibility with earlier versions of Excel, can be a two-element array. The first element is the connection string specifying the ODBC source for the data. The second element is the SQL query string used to get the data. If you specify , you must also specify . If the active cell is inside the range, you must specify as well. - A object specifying where the report should be placed on the worksheet. If this argument is omitted, the report is placed at the active cell. - The name of the new report. - true to show grand totals for rows in the report. - true to show grand totals for columns in the report. - true to save data with the report; false to save only the report definition. - true to have Microsoft Office Excel automatically format the report when it is refreshed or when fields are moved. - Valid only if is . true to have Excel create a page field for the consolidation. If is false, you must create the page field or fields. - Not used by Excel. - true to have Excel perform queries for the report asynchronously (in the background). The default value is false. - true to optimize the PivotTable cache when it is constructed. The default value is false. - The order in which page fields are added to the PivotTable report’s layout. Can be one of the following constants: or . The default value is . - The number of page fields in each column or row in the PivotTable report. The default value is 0 (zero). - true to create a PivotTable cache that contains all records from the external database; this cache can be very large. If is false, you can set some of the fields as server-based page fields before the data is actually read. - A string that contains ODBC settings that allow Excel to connect to an ODBC data source. The connection string has the form "ODBC;<connection string>". This argument overrides any previous setting for the object’s property. - - - Posts the workbook to a public folder. This method works only with a Microsoft Exchange client connected to a Microsoft Exchange server. - This argument is ignored. The method prompts the user to specify the destination for the workbook. - - - Gets or sets a value that indicates whether calculations in this workbook will be done using only the precision of the numbers as they are displayed. - true if calculations in this workbook will be done using only the precision of the numbers as they are displayed; otherwise, false. - - - Prints the workbook. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the workbook. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - true to ignore print areas and print the entire workbook; otherwise, false. - - - Shows a preview of the object as it would look when printed. - true to allow changes to the margins and page setup while displaying the print preview; otherwise, false. - - - Protects a workbook so that it cannot be modified. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - true to protect the structure of the workbook (the relative position of the sheets). The default value is false. - true to protect the workbook windows. If this argument is omitted, the windows are not protected. - - - Called by the Visual Studio Tools for Office runtime so that you can reapply password protection to the workbook after the cached data has been saved. - - - Saves the workbook and protects it for sharing. - The name of the saved file. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened read-only. - true to display a message when the file is opened, recommending that the file be opened read-only. - true to create a backup file. - The password to be used to protect the file for sharing. - - - Saves the workbook and protects it for sharing. - The name of the saved file. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened read-only. - true to display a message when the file is opened, recommending that the file be opened read-only. - true to create a backup file. - The password to be used to protect the file for sharing. - A string that indicates the file format. - - - Gets a value that indicates whether the order of the sheets in the workbook is protected. - true if the order of the sheets in the workbook is protected; otherwise, false. - - - Gets a value that indicates whether the windows of the workbook are protected. - true if the windows of the workbook are protected; otherwise, false. - - - Gets the collection. - The collection. - - - Removes entries from the change log for the workbook. - The number of days that changes in the change log are to be retained. - The password that unprotects the workbook for sharing. If the workbook is protected for sharing with a password and this argument is omitted, the user is prompted for the password. - - - Gets a value that indicates whether the workbook has been opened as read-only. - true if the workbook has been opened as read-only; otherwise, false. - - - Gets or sets a value that indicates whether the workbook was saved as read-only recommended. - true if the workbook was saved as read-only recommended; otherwise, false. - - - Causes a foreground smart tag check to occur automatically annotating data that was not annotated before. - - - Refreshes all external data ranges and PivotTable reports in the workbook. - - - Rejects all changes in the shared workbook. - One of the values that specifies when the changes to be rejected were made. - A string that identifies who made the changes to be rejected. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the location of the changes to be rejected. - - - Reloads a workbook based on an HTML document, using the specified document encoding. - One of the Microsoft.Office.Core.MsoEncoding values. The encoding that is to be applied to the workbook. - - - Removes the customization that was created by using Office development tools in Visual Studio from the workbook. - The custom document properties or the cached data could not be removed from the workbook. - The document is protected. - - - Removes all information of the specified type from the workbook. - One of the Microsoft.Office.Interop.Excel.XlRemoveDocInfoType values that specifies the type of information to be removed. - - - Gets or sets a value that indicates whether personal information can be removed from the workbook. - true if personal information can be removed from the workbook; otherwise, false. The default value is false. - - - Disconnects the specified user from the shared workbook. - The user index. - - - - - Sends an e-mail message to the author of a workbook that has been sent out for review, notifying him or her that a reviewer has completed review of the workbook. - true to display the message; false to not display the message. - - - Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface in a document-level customization. - An object in your document-level customization that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - A that identifies the Microsoft.Office.Core.IRibbonExtensibility interface. - - - Gets an object that represents the research service for the workbook. - A Microsoft.Office.Interop.Excel.Research object that represents the research service for the workbook. - - - Resets the color palette to the default colors. - - - Gets the number of times the workbook has been saved while open as a shared list. If the workbook is open in exclusive mode, this property returns 0 (zero). - The number of times the workbook has been saved while open as a shared list. - - - Routes the workbook, using the workbook's current routing slip. - - - Gets a value that indicates whether the workbook has been routed to the next recipient. - true if the workbook has been routed to the next recipient; false if the workbook needs to be routed. - - - Gets a object that represents the routing slip for the workbook. - A object that represents the routing slip for the workbook. - - - Occurs when the user navigates through the recordset or invokes the rowset action on an OLAP PivotTable. - - - Runs the Auto_Open, Auto_Close, Auto_Activate, or Auto_Deactivate macro attached to the workbook. This method is included for backward compatibility. You should use the Open, Close, Activate and Deactivate events instead of these macros. - One of the values. - - - Saves changes to the workbook. - - - Saves changes to the workbook in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - One of the values that specifies the file format to use when you save the file. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - One of the values. - One of the values. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings). false (default) saves files against the language of Visual Basic for Applications (VBA). - - - Exports the data that has been mapped to the specified XML schema map to an XML data file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - - object. The schema map to apply to the data. - - - Saves a copy of the workbook to a file but does not modify the open workbook in memory. - Specifies the file name for the copy. - - - Gets or sets a value that indicates whether no changes have been made to the workbook since it was last saved. - true if no changes have been made to the workbook since it was last saved; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel saves external link values with the workbook. - true if Excel saves external link values with the workbook; otherwise, false. - - - - - - Sends the active sheet in the workbook as a fax to the specified recipients. - The fax numbers and e-mail addresses of the people to whom the fax will be sent. Separate multiple recipients with a semicolon. - The subject line for the faxed document. - true displays the fax message before sending it; false sends the fax without displaying the fax message. - - - Sends a workbook in an e-mail message for review to the specified recipients. - The people to whom to send the message. These can be unresolved names and aliases in an e-mail phone book or full e-mail addresses. Separate multiple recipients with a semicolon (;). If left blank and is false, you will receive an error message, and the message will not be sent. - The subject of the message. If left blank, the subject will be: Please review " ". - A value that indicates whether the message should be displayed when the method is executed. The default value is true. If set to false, the message is automatically sent to the recipients without first showing the message to the sender. - A value that indicates whether the message should include an attachment or a link to a server location. The default value is true. If set to false, the document must be stored at a shared location. - - - Sends the workbook by using the installed mail system. - Specifies the name of the recipient as text, or as an array of text strings if there are multiple recipients. At least one recipient must be specified, and all recipients are added as To recipients. - Specifies the subject of the message. If this argument is omitted, the document name is used. - true to request a return receipt. false to not request a return receipt. The default value is false. - - - - - - - Gets an object that represents a policy specified for a workbook that is stored on a server running Microsoft Office SharePoint Server. - A Microsoft.Office.Core.ServerPolicy object that represents a policy specified for a workbook that is stored on a server running SharePoint Server. - - - Gets an object that you can use to interact with the list of published objects in the workbook that are shown on a Microsoft Office SharePoint Server server. - A Microsoft.Office.Interop.Excel.ServerViewableItems object that you can use to interact with the list of published objects in the workbook that are shown on the server. - - - Use the property instead of this method. - - - - - Sets the name of a procedure that runs whenever a DDE link is updated. - The name of the DDE/OLE link, as returned from the method. - The name of the procedure to be run when the link is updated. This can be either a Microsoft Office Excel 4.0 macro or a Visual Basic procedure. Set this argument to an empty string ("") to indicate that no procedure should run when the link is updated. - - - Sets the options for encrypting the workbook using a password. - A case sensitive string of the encryption provider. - A case sensitive string of the algorithmic short name (i.e. "RC4"). - The encryption key length, which is a multiple of 8 (40 or greater). - true (default) to encrypt file properties. - - - Gets a Microsoft.Office.Core.SharedWorkspace that represents the Document Workspace in which the workbook is located. - A Microsoft.Office.Core.SharedWorkspace that represents the Document Workspace in which the workbook is located. - - - Included for backwards compatibility only. - - - Occurs when any worksheet is double-clicked, before the default double-click action. - - - Occurs when any worksheet is right-clicked, before the default right-click action. - - - Occurs after any worksheet is recalculated or after any changed data is plotted on a chart. - - - Occurs when cells in any worksheet are changed by the user or by an external link. - - - Included for backwards compatibility only. - - - Occurs when you click any hyperlink in a workbook. - - - Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas). This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are applied to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are committed against the OLAP data source for a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes to a PivotTable are discarded. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after changes to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after the sheet of a PivotTable report has been updated. - - - Gets a collection that represents all the sheets in the workbook. - A collection that represents all the sheets in the workbook. - - - Occurs when the selection changes on any worksheet. Does not occur if the selection is on a chart sheet. - - - Gets or sets a value that indicates whether the Conflict History worksheet is visible in the workbook that is open as a shared list. - true if the Conflict History worksheet is visible in the workbook that is open as a shared list; otherwise, false. - - - Gets or sets a value that indicates whether the PivotChart Filter Pane is visible. - true if the PivotChart Filter Pane is visible; otherwise, false. - - - Gets or sets a value that indicates whether the PivotTable field list can be shown. - true if the PivotTable field list can be shown; otherwise, false. The default is true. - - - Occurs when the workbook host item shuts down. - - - Gets the collection of digital signatures for the workbook. - A Microsoft.Office.Core.SignatureSet collection that contains the digital signatures for the workbook. - - - - Gets the object associated with the workbook. - A object associated with the workbook. - This property is used in an Excel 2007 project. - - - Gets a Microsoft.Office.Core.SmartDocument that represents the settings for a smart document solution. - A Microsoft.Office.Core.SmartDocument that represents the settings for a smart document solution. - - - Gets a object representing the options that can be performed with a smart tag. - A object representing the options that can be performed with a smart tag. - - - - Gets a collection that represents all the styles in the workbook. - A collection that represents all the styles in the workbook. - - - Gets or sets the subject for the mailer or routing slip. - The subject for the mailer or routing slip. - - - Gets a Microsoft.Office.Core.Sync object that provides access to the methods and properties of documents that are part of a Document Workspace. - A Microsoft.Office.Core.Sync object that provides access to the methods and properties of documents that are part of a Document Workspace. - - - Occurs when the local copy of a worksheet that is part of a Document Workspace is synchronized with the copy on the server. - - - Gets the collection of table styles that are used in the workbook. - A Microsoft.Office.Interop.Excel.TableStyles collection that contains the table styles that are used in the workbook. - - - Gets or sets the object that contains data about the workbook. - An object that contains data about the workbook. - - - Gets or sets a value that indicates whether external data references are removed when the workbook is saved as a template. - true if external data references are removed when the workbook is saved as a template; otherwise, false. - - - Gets the theme that is applied to the workbook. - A Microsoft.Office.Core.OfficeTheme that represents the theme that is applied to the workbook. - - - Gets or sets the title of the Web page when the workbook is saved as a Web page. - The title of the Web page when the workbook is saved as a Web page. - - - Toggles Microsoft Office Excel into and out of design mode. - - - Removes protection from the workbook. This method has no effect if the workbook is not protected. - The case-sensitive password to use to unprotect the workbook. If the workbook is not protected with a password, this parameter is ignored. If you omit this parameter for a workbook that is protected with a password, the method fails. - - - Called by the Visual Studio Tools for Office runtime so that you can remove password protection from the workbook and enable cached data to be saved. - - - Turns off protection for sharing and saves the workbook. - The workbook password. - - - Updates a read-only workbook from the saved disk version of the workbook if the disk version is more recent than the copy of the workbook that is loaded in memory. If the disk copy has not changed since the workbook was loaded, the in-memory copy of the workbook is not reloaded. - - - Updates a Microsoft Office Excel, DDE, or OLE link (or links). - The name of the Excel or DDE/OLE link to be updated, as returned from the method. - One of the values. - - - Gets or sets a value that indicates a workbook's setting for updating embedded OLE links. - One of the values. - - - Gets or sets a value that indicates whether Microsoft Office Excel updates remote references in the workbook. - true if Excel updates remote references in the workbook; otherwise, false. - - - Gets or sets a value that indicates whether the workbook or application was created or opened by the user. - true if the workbook or application was created or opened by the user; false if the workbook or application was created or opened programmatically from another Microsoft Office application with the method or the VBA.Interaction.CreateObject or VBA.Interaction.GetObject method. - - - Gets a 1-based, two-dimensional array that provides information about each user who has the workbook open as a shared list. - A 1-based, two-dimensional array that provides information about each user who has the workbook open as a shared list. - - - Gets a value that indicates whether the Visual Basic for Applications project for the workbook has been digitally signed. - true if the Visual Basic for Applications project for the workbook has been digitally signed; otherwise, false. - - - Gets the virtual Microsoft.Vbe.Interop.VBProject project that is in the workbook. - The virtual Microsoft.Vbe.Interop.VBProject project that is in the workbook. - - - Gets the associated with the workbook. - The associated with the workbook. - - - Gets the collection, which contains workbook-level attributes used by Microsoft Office Excel when you save a document as a Web page or open a Web page. - The collection, which contains workbook-level attributes used by Excel when you save a document as a Web page or open a Web page. - - - Displays a preview of the workbook as it would look if saved as a Web page. - - - Occurs when any workbook window is activated. - - - Occurs when any workbook window is deactivated. - - - Occurs when any workbook window is resized. - - - Gets a collection that represents all the windows in the workbook. - A collection that represents all the windows in the workbook. - - - Gets a collection that represents all the worksheets in the workbook. - A collection that represents all the worksheets in the workbook. - - - Gets or sets the write password of a workbook. - The write password of a workbook. - - - Gets a value that indicates whether the workbook is write-reserved. - true if the workbook is write-reserved; otherwise, false. - - - Gets the name of the user who currently has write permission for the workbook. - The name of the user who currently has write permission for the workbook. - - - Imports an XML data file into the current workbook. - One of the values. - A uniform resource locator (URL) or a uniform naming convention (UNC) path to an XML data file. - The schema map to apply when importing the file. - If a value is not specified for the parameter, then this parameter specifies whether or not to overwrite data that has been mapped to the schema map specified in the parameter. Set to true to overwrite the data or false to append the new data to the existing data. The default value is true. If a value is specified for the parameter, then this parameter specifies whether or not to overwrite existing data. Set to true to overwrite existing data or false to cancel the import if data would be overwritten. The default value is true. - The data will be imported into a new XML list at the specified. - - - Imports an XML data stream that has been previously loaded into memory. - One of the values. - The data to import. - The schema map to apply when importing the file. - If a value is not specified for the parameter, then this parameter specifies whether or not to overwrite data that has been mapped to the schema map specified in the parameter. Set to true to overwrite the data or false to append the new data to the existing data. The default value is true. If a value is specified for the parameter, then this parameter specifies whether or not to overwrite existing data. Set to true to overwrite existing data or false to cancel the import if data would be overwritten. The default value is true. - The data will be imported into a new XML list in the specified. - - - Gets an collection that represents the schema maps that have been added to the workbook. - An collection that represents the schema maps that have been added to the workbook. - - - Gets an collection that represents the XML namespaces contained in the workbook. - An collection that represents the XML namespaces contained in the workbook. - - - Provides the base class for the Sheetn classes in document-level projects for Microsoft Office Excel. - - - - - - - - - - - - Occurs when the worksheet is activated. - - - Gets a object that represents the Microsoft Office Excel application. - A that represents the Excel application. - - - - - - Gets a that provides information about filtered lists on the worksheet if filtering is enabled. Gets null if filtering is off. - A that provides information about filtered lists on the worksheet if filtering is enabled; otherwise, null. - - - Gets or sets a value that indicates whether filtering is currently enabled on the worksheet (that is, whether the filter drop-down arrows are currently displayed). - true if filtering is currently enabled on the worksheet; otherwise, false. - This property is set to true. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs when the worksheet is double-clicked, before the default double-click action. - - - Occurs when the worksheet is right-clicked, before the default right-click action. - - - - - - - - - Occurs after the worksheet is recalculated. - - - Calculates the formulas in the worksheet. - - - Gets a object that represents all the cells on the worksheet (not just the cells that are currently in use). - A object that represents all the cells on the worksheet (not just the cells that are currently in use). - - - Occurs when something changes in the cells. - - - Gets an object that represents either a single embedded chart (a ) or a collection of all the embedded charts (a ) on the worksheet. - An object that represents either a single embedded chart (a ) or a collection of all the embedded charts (a ) on the worksheet. - The name or number of the chart. This argument can be an array, to specify more than one chart. - - - - - - - - - - - - Circles invalid entries on the worksheet. - - - Gets a object that represents the range containing the first circular reference on the sheet, or gets null if there is no circular reference on the sheet. - A object that represents the range containing the first circular reference on the sheet; null if there is no circular reference on the sheet. - - - Clears the tracer arrows from the worksheet. Tracer arrows are added by using the auditing feature. - - - Clears circles from invalid entries on the worksheet. - - - - Gets a object that represents one or more columns on the worksheet. - A object that represents one or more columns on the worksheet. - - - Gets a collection that represents all the comments for the worksheet. - A collection that represents all the comments for the worksheet. - - - Gets the function code used for the current consolidation. - One of the values. - - - Gets a three-element of consolidation options. - A three-element of consolidation options. - - - Gets an of strings that name the source sheets and ranges for the worksheet's current consolidation. - An of string values that name the source sheets and ranges for the worksheet's current consolidation; null if there is no consolidation on the sheet. - - - Gets the collection of managed controls that are contained on the worksheet. - A that contains all the managed controls on the worksheet. - - - Copies the worksheet to another location in the workbook. - The sheet before which the copied sheet will be placed. You cannot specify if you specify . - The sheet after which the copied sheet will be placed. You cannot specify if you specify . - - - Gets a value that indicates the application in which the worksheet was created. - If the worksheet was created in Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. - - - Gets a object representing the identifier information associated with a worksheet. - A object representing the identifier information associated with a worksheet. - - - - - Occurs when the worksheet loses focus. - - - Deletes the underlying object, but does not delete the host item. It is highly recommended that this method not be used. - - - - Gets or sets a value that indicates whether page breaks (both automatic and manual) on the worksheet are displayed. - true if page breaks (both automatic and manual) on the worksheet are displayed; otherwise, false. - - - Gets or sets a value that indicates whether the worksheet is displayed from right to left instead of from left to right. - true if the worksheet is displayed from right to left instead of from left to right; false if the object is displayed from left to right. - - - Releases all resources used by the current instance of the class. - - - - - - - - - - - - - Gets or sets a value that indicates whether AutoFilter arrows are enabled when user-interface-only protection is turned on. - true if AutoFilter arrows are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or set a value that indicates whether Microsoft Office Excel automatically recalculates the worksheet when necessary. - true if Excel automatically recalculates the worksheet when necessary; otherwise, false. - - - Gets or sets a value that determines whether conditional formats will occur automatically. - true if evaluation of conditional formats will occur automatically; otherwise, false. The default is true. - - - Gets or sets a value that indicates whether outlining symbols are enabled when user-interface-only protection is turned on. - true if outlining symbols are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or sets a value that indicates whether PivotTable controls and actions are enabled when user-interface-only protection is turned on. - true if PivotTable controls and actions are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or sets a value indicating which cells can be selected on the sheet. - One of the values. - - - - Converts a Microsoft Office Excel name to an object or a value. - The name of the object, using the naming convention of Excel. - - - Exports to a file of the specified format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the workbook in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this argument is omitted, exporting starts at the first page. - The number of the last page to export. If this argument is omitted, exporting ends with the last page. - true to display the file in the viewer immediately; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the workbook to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - Gets a value that indicates whether the worksheet is actively filtering data. - true if the worksheet is actively filtering data; otherwise, false. - - - - Occurs when you click any hyperlink on a worksheet. - - - Gets a object that represents a cell or a range of cells. Use the property instead of this method. - A that represents a cell or a range of cells. - The name of the range in A1-style notation in the language of the application. It can include the range operator (a colon), the intersection operator (a space), or the union operator (a comma). It can also include dollar signs, but they are ignored. You can use a local defined name in any part of the range. If you use a name, the name is assumed to be in the language of the application. This parameter is required. - The cell in the lower-right corner of the range. Can be a that contains a single cell, an entire column, an entire row, or it can be a string that names a single cell in the language of the application. This parameter is optional. - - - Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the worksheet. - An object in a document-level customization that can be used by VBA code in the worksheet. - - - - - - - - - - Gets an collection that represents the horizontal page breaks on the sheet. - An collection that represents the horizontal page breaks on the sheet. - - - Gets a collection that represents the hyperlinks for the range or worksheet. - A collection that represents the hyperlinks for the range or worksheet. - - - Gets the index number of the worksheet within the collection of worksheets. - The index number of the worksheet within the collection of worksheets. - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - - - - - - - - - - - Gets a collection of objects in the worksheet. - The collection for the worksheet. - - - Gets an e-mail header for the worksheet. - An e-mail header for the worksheet. - - - - - - - - - - - - Moves the worksheet to another location in the workbook. - The sheet before which the moved sheet will be placed. You cannot specify if you specify . - The sheet after which the moved sheet will be placed. You cannot specify if you specify . - - - Gets or sets the name of the worksheet. - The name of the worksheet. - - - Gets a collection that represents all the worksheet-specific names (names defined with the "WorksheetName!" prefix). - A collection that represents all the worksheet-specific names (names defined with the "WorksheetName!" prefix). - - - Gets a that represents the next sheet. - A that represents the next sheet; null if the current worksheet is the last sheet in the workbook. - - - Gets an object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the worksheet. - An object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the worksheet. - The name or number of the OLE object. - - - - - - - - - - - - - - Gets an that represents the outline for the worksheet. - An that represents the outline for the worksheet. - - - - - - Gets a that contains all the page setup settings for the worksheet. - A that contains all the page setup settings for the worksheet. - - - Gets the parent object for the worksheet. - The parent object for the worksheet. - - - Pastes the contents of the Clipboard onto the worksheet. - A object that specifies where the Clipboard contents should be pasted. If this argument is omitted, the current selection is used. This argument can be specified only if the contents of the Clipboard can be pasted into a range. If this argument is specified, the argument cannot be used. - true to establish a link to the source of the pasted data. If this argument is specified, the argument cannot be used. The default value is false. - - - Pastes the contents of the Clipboard onto the worksheet, using a specified format. Use this method to paste data from other applications or to paste data in a specific format. - A string that specifies the Clipboard format of the data. Common format strings include "HTML", "Bitmap", "Hyperlink", "Unicode Text", and "Text". - true to establish a link to the source of the pasted data. If the source data is not suitable for linking or the source application does not support linking, this parameter is ignored. The default value is false. - true to display the pasted object as an icon. The default value is false. - The name of the file that contains the icon to use if is true. - The index number of the icon within the icon file. - The text label of the icon. - true to remove all formatting, hyperlinks, and images from HTML; false to paste HTML as is. The default value is false. - - - - - - Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas). This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are applied to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are committed against the OLAP data source for a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes to a PivotTable are discarded. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after changes to a PivotTable. This event can be used only in Excel 2010 projects. - This property is used in an Excel 2007 project. - - - Gets an object that represents either a single PivotTable report (a object) or a collection of all the PivotTable reports (a object) on a worksheet. - An object that represents either a single PivotTable report (a object) or a collection of all the PivotTable reports (a object) on a worksheet. - The name or number of the report. - - - Occurs after a PivotTable report is updated on a worksheet. - - - Creates a object. - The object. - An value. The source of the report data. - The data for the new report. Can be a object, an array of ranges, or a text constant that represents the name of another report. For an external database, is an array of strings containing the SQL query string, where each element is up to 255 characters in length. You should use the argument to specify the ODBC connection string. For compatibility with earlier versions of Excel, can be a two-element array. The first element is the connection string specifying the ODBC source for the data. The second element is the SQL query string used to get the data. If you specify , you must also specify . If the active cell is inside the range, you must specify as well. - A object specifying where the report should be placed on the worksheet. If this argument is omitted, the report is placed at the active cell. - The name of the new report. - true to show grand totals for rows in the report. - true to show grand totals for columns in the report. - true to save data with the report; false to save only the report definition. - true to have Microsoft Office Excel automatically format the report when it is refreshed or when fields are moved. - Valid only if is . true to have Excel create a page field for the consolidation. If is false, you must create the page field or fields. - Not used by Excel. - true to have Excel perform queries for the report asynchronously (in the background). The default value is false. - true to optimize the PivotTable cache when it is constructed. The default value is false. - The order in which page fields are added to the PivotTable report’s layout. Can be one of the following constants: or . The default value is . - The number of page fields in each column or row in the PivotTable report. The default value is 0 (zero). - true to create a PivotTable cache that contains all records from the external database; this cache can be very large. If is false, you can set some of the fields as server-based page fields before the data is actually read. - A string that contains ODBC settings that allow Excel to connect to an ODBC data source. The connection string has the form "ODBC;<connection string>". This argument overrides any previous setting for the object’s property. - - - Gets a that represents the previous sheet. - A that represents the previous sheet; null if the current worksheet is the first sheet in the workbook. - - - Gets the number of comment pages that will be printed for the current worksheet. This property can be used only in Excel 2010 projects. - The number of comment pages that will be printed for the current worksheet. - This property is used in an Excel 2007 project. - - - Prints the worksheet. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object; false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the worksheet. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - true to ignore print areas and print the entire workbook; otherwise, false. - - - Shows a preview of the worksheet as it would look when printed. - - - - Protects a worksheet so that it cannot be modified. - A case-sensitive password for the worksheet. If this argument is omitted, you can unprotect the worksheet without using a password. Otherwise, you must specify the password to unprotect the worksheet. If you forget the password, you cannot unprotect the worksheet. It is a good idea to keep a list of your passwords and their corresponding document names in a safe place. - true to protect shapes. The default value is false. - true to protect contents in the locked cells. The default value is true. - true to protect scenarios. The default value is true. - true to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface. - true allows the user to format any cell on a protected worksheet. The default value is false. - true allows the user to format any column on a protected worksheet. The default value is false. - true allows the user to format any row on a protected worksheet. The default value is false. - true allows the user to insert columns on the protected worksheet. The default value is false. - true allows the user to insert rows on the protected worksheet. The default value is false. - true allows the user to insert hyperlinks on the worksheet. The default value is false. - true allows the user to delete columns on the protected worksheet, where every cell in the column to be deleted is unlocked. The default value is false. - true allows the user to delete rows on the protected worksheet, where every cell in the row to be deleted is unlocked. The default value is false. - true allows the user to sort on the protected worksheet. Every cell in the sort range must be unlocked or unprotected. The default value is false. - true allows the user to set filters on the protected worksheet. Users can change filter criteria but can not enable or disable an autofilter. Users can set filters on an existing autofilter. The default value is false. - true allows the user to use pivot table reports on the protected worksheet. The default value is false. - - - Gets a value that indicates whether the contents of the worksheet (the individual cells) are protected. - true if the contents of the sheet are protected; otherwise, false. - - - Gets a value that indicates whether shapes are protected. - true if shapes are protected; otherwise, false. - - - Gets a object that represents the protection options of the worksheet. - A object that represents the protection options of the worksheet. - - - Gets a value that indicates whether user interface-only protection is turned on. - true if user interface-only protection is turned on; otherwise, false. - - - Gets a value that indicates whether worksheet scenarios are protected. - true if the worksheet scenarios are protected; otherwise, false. - - - Gets the collection that represents all the query tables on the worksheet. - The collection that represents all the query tables on the worksheet. - - - Gets a object that represents a cell or a range of cells. - A that represents a cell or a range of cells. - - - - - - Resets all page breaks on the specified worksheet. - - - Gets a object that represents one or more rows on the worksheet. - A object that represents one or more rows on the worksheet. - - - Saves changes to the worksheet in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - The file format to use when you save the file. For a list of valid choices, see the property. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings); false (default) saves files against the language of Visual Basic for Applications (VBA). - - - Gets an object that represents either a single scenario (a object) or a collection of scenarios (a object) on the worksheet. - An object that represents either a single scenario (a object) or a collection of scenarios (a object) on the worksheet. - The name or number of the scenario. Use an array to specify more than one scenario. - - - Gets the collection, which contains objects representing blocks of script or code in the worksheet when it is saved as a Web page. - The collection, which contains objects representing blocks of script or code in the worksheet when it is saved as a Web page. - - - Gets or sets the range where scrolling is allowed, as an A1-style range reference. - The range where scrolling is allowed, as an A1-style range reference. - - - - - - Selects the worksheet. - true to remove the current selection and select the worksheet instead; false to extend the current selection to include any previously selected objects and the worksheet. - - - Occurs when the selection changes on a worksheet. - - - Sets the background graphic for the worksheet. - The name of the graphic file. - - - Gets a object that represents all the shapes on the worksheet. - A object that represents all the shapes on the worksheet. - - - Makes all rows of the currently filtered list visible. If AutoFilter is in use, this method changes the arrows to "All." - - - Displays the data form associated with the worksheet. - - - Occurs when the worksheet host item shuts down. - - - - Gets a object representing the collection of smart tags for the worksheet. - A object representing the collection of smart tags for the worksheet. - - - Gets the sorted values in the current worksheet. - The sorted values in the current worksheet. - - - - - - Gets the standard (default) height of all the rows in the worksheet, in points. - The standard (default) height of all the rows in the worksheet, in points. - - - Gets or sets the standard (default) width of all the columns in the worksheet. - The standard (default) width of all the columns in the worksheet. - - - - Gets a for the worksheet. - A for the worksheet. - - - Gets or sets the object that contains data about the worksheet. - An object that contains data about the worksheet. - - - - - - Gets or sets a value that indicates whether Microsoft Office Excel uses Lotus 1-2-3 expression evaluation rules for the worksheet. - true if Excel uses Lotus 1-2-3 expression evaluation rules for the worksheet; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel uses Lotus 1-2-3 formula entry rules for the worksheet. - true if Excel uses Lotus 1-2-3 formula entry rules for the worksheet; otherwise, false. - - - Gets the worksheet type. - One of the values. - - - Removes protection from the worksheet. This method has no effect if the worksheet is not protected. - The case-sensitive password to use to unprotect the worksheet. If the worksheet is not protected with a password, this argument is ignored. If you omit this argument for a worksheet that is protected with a password, you will be prompted for the password. - - - Gets a object that represents all the cells that have contained a value at any time. - A object that represents all the cells that have contained a value at any time. - - - Gets or sets a value that determines whether the object is visible. - One of the values. - - - Gets a collection that represents the vertical page breaks on the sheet. - A collection that represents the vertical page breaks on the sheet. - - - Gets a object that represents the cells mapped to a particular XPath. Gets null if the specified XPath has not been mapped to the worksheet, or if the mapped range is empty. - A object that represents the cells mapped to a particular XPath; null if the specified XPath has not been mapped to the worksheet, or if the mapped range is empty. - The XPath to query for. - A space-delimited string that contains the namespaces referenced in the XPath parameter. A run-time error is generated if one of the specified namespaces cannot be resolved. - An . Specify an XML map if you want to query for the XPath within a specific map. - - - Gets a object that represents the cells mapped to a particular XPath. Gets null if the specified XPath has not been mapped to the worksheet. - A object that represents the cells mapped to a particular XPath; null if the specified XPath has not been mapped to the worksheet. - The XPath to query for. - A space-delimited string that contains the namespaces referenced in the XPath parameter. A run-time error is generated if one of the specified namespaces cannot be resolved. - An . Specify an XML map if you want to query for the XPath within a specific map. - - - Represents a Windows Forms button that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms check box that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - - - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - - object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Processes Windows messages. - The Windows to process. - - - Gets the z-order position of the . - The z-order position of the . - - - Provides methods you can use to extend Microsoft Office Excel list objects by generating host controls for objects and by testing for the existence of the generated host controls. - - - Returns a host control that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host control that extends the functionality of the current object. - The native list object to extend. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host control that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host control that extends the functionality of the current object. - The native list object to extend. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host control has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host control has been created for the current object; otherwise, false. - The native list object to test. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host control has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host control has been created for the current object; otherwise, false. - The native list object to test. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Provides methods you can use to extend Microsoft Office Excel workbooks by generating host items for objects and by testing for the existence of the generated host items. - - - Returns a host item that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native workbook object to extend. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host item that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native workbook object to extend. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native workbook object to test. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native workbook object to test. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Provides methods you can use to extend Microsoft Office Excel worksheets by generating host items for objects and by testing for the existence of the generated host items. - - - Returns a host item that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native worksheet object to extend. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host item that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native worksheet object to extend. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native worksheet object to test. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native worksheet object to test. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - \ No newline at end of file diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/MainFrm.cs b/MainFrm.cs index e3ce4bd..438bafa 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -13563,6 +13563,11 @@ } } + private void ribbonBar5_ItemClick(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 0462e02..532bca8 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -82,7 +82,6 @@ this.sideBar1 = new DevComponents.DotNetBar.SideBar(); this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); this.layerSensorTree = new System.Windows.Forms.TreeView(); - this.layerTree = new Cyberpipe.MyTreeView(); this.sideBarPanelItem3 = new DevComponents.DotNetBar.SideBarPanelItem(); this.controlContainerItem3 = new DevComponents.DotNetBar.ControlContainerItem(); this.sideBarPanelItem4 = new DevComponents.DotNetBar.SideBarPanelItem(); @@ -611,6 +610,7 @@ this.buttonItem84 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem75 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem76 = new DevComponents.DotNetBar.ButtonItem(); + this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -1047,16 +1047,6 @@ this.layerSensorTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerMarkerTree_AfterCheck); this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); // - // layerTree - // - this.layerTree.CheckBoxes = true; - this.layerTree.ItemHeight = 18; - this.layerTree.Location = new System.Drawing.Point(30, 78); - this.layerTree.Name = "layerTree"; - this.layerTree.Size = new System.Drawing.Size(121, 97); - this.layerTree.TabIndex = 1; - this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); - // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2907,7 +2897,7 @@ this.水平面积ToolStripMenuItem1, this.地表面积ToolStripMenuItem1}); this.量算ToolStripMenuItem.Name = "量算ToolStripMenuItem"; - this.量算ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.量算ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.量算ToolStripMenuItem.Text = "量算"; // // 水平距离ToolStripMenuItem1 @@ -2970,7 +2960,7 @@ this.前进ToolStripMenuItem, this.删除模型ToolStripMenuItem}); this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem"; - this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.编辑ToolStripMenuItem.Text = "编辑"; // // 平移对象ToolStripMenuItem @@ -3046,7 +3036,7 @@ this.绕中心点飞行ToolStripMenuItem, this.绕眼睛飞行ToolStripMenuItem}); this.飞行ToolStripMenuItem.Name = "飞行ToolStripMenuItem"; - this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.飞行ToolStripMenuItem.Text = "飞行"; // // 自定义飞行ToolStripMenuItem @@ -3092,7 +3082,7 @@ this.红线工具ToolStripMenuItem, this.标注管理ToolStripMenuItem}); this.标注ToolStripMenuItem.Name = "标注ToolStripMenuItem"; - this.标注ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.标注ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.标注ToolStripMenuItem.Text = "标注"; // // 标高标注ToolStripMenuItem @@ -3187,7 +3177,7 @@ this.关键字查询ToolStripMenuItem, this.附属物查询ToolStripMenuItem}); this.查询ToolStripMenuItem.Name = "查询ToolStripMenuItem"; - this.查询ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.查询ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.查询ToolStripMenuItem.Text = "查询"; // // 空间查询ToolStripMenuItem @@ -3274,7 +3264,7 @@ this.标识器分类统计ToolStripMenuItem, this.标识器街道统计ToolStripMenuItem}); this.全区域统计ToolStripMenuItem.Name = "全区域统计ToolStripMenuItem"; - this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.全区域统计ToolStripMenuItem.Text = "全区域统计"; // // 管线长度统计ToolStripMenuItem @@ -3361,7 +3351,7 @@ this.标识器分类统计ToolStripMenuItem1, this.标识器街道统计ToolStripMenuItem1}); this.绘制区域统计ToolStripMenuItem.Name = "绘制区域统计ToolStripMenuItem"; - this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.绘制区域统计ToolStripMenuItem.Text = "绘制区域统计"; // // 管线长度统计ToolStripMenuItem1 @@ -3442,7 +3432,7 @@ this.道路断面分析ToolStripMenuItem, this.基线剖面分析ToolStripMenuItem}); this.断面分析ToolStripMenuItem.Name = "断面分析ToolStripMenuItem"; - this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.断面分析ToolStripMenuItem.Text = "断面分析"; // // 横断面分析ToolStripMenuItem @@ -3484,7 +3474,7 @@ this.连通分析ToolStripMenuItem, this.爆管分析ToolStripMenuItem}); this.拓扑分析ToolStripMenuItem.Name = "拓扑分析ToolStripMenuItem"; - this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.拓扑分析ToolStripMenuItem.Text = "拓扑分析"; // // 创建拓扑ToolStripMenuItem @@ -3546,7 +3536,7 @@ this.隐藏隧道ToolStripMenuItem, this.删除隧道ToolStripMenuItem}); this.开挖分析ToolStripMenuItem.Name = "开挖分析ToolStripMenuItem"; - this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.开挖分析ToolStripMenuItem.Text = "开挖分析"; // // 多边形开挖ToolStripMenuItem @@ -3598,7 +3588,7 @@ this.可视域分析ToolStripMenuItem, this.可视包络分析ToolStripMenuItem}); this.视域分析ToolStripMenuItem.Name = "视域分析ToolStripMenuItem"; - this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.视域分析ToolStripMenuItem.Text = "视域分析"; // // 通视分析ToolStripMenuItem @@ -3629,7 +3619,7 @@ this.附属物分析ToolStripMenuItem, this.无源淹没分析ToolStripMenuItem}); this.区域分析ToolStripMenuItem.Name = "区域分析ToolStripMenuItem"; - this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.区域分析ToolStripMenuItem.Text = "区域分析"; // // 缓冲区分析ToolStripMenuItem @@ -3656,7 +3646,7 @@ // 清除分析ToolStripMenuItem // this.清除分析ToolStripMenuItem.Name = "清除分析ToolStripMenuItem"; - this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.清除分析ToolStripMenuItem.Text = "清除分析"; this.清除分析ToolStripMenuItem.Click += new System.EventHandler(this.buttonItemClear_Click); // @@ -4124,12 +4114,12 @@ // this.ribbonControl1.BackgroundStyle.Class = ""; this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonControl1.Controls.Add(this.ribbonPanel15); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel7); this.ribbonControl1.Controls.Add(this.ribbonPanel1); - this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel8); - this.ribbonControl1.Controls.Add(this.ribbonPanel2); - this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -4175,10 +4165,10 @@ this.ribbonPanel7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel7.Controls.Add(this.ribbonBar5); this.ribbonPanel7.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel7.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel7.Location = new System.Drawing.Point(0, 0); this.ribbonPanel7.Name = "ribbonPanel7"; this.ribbonPanel7.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel7.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel7.Size = new System.Drawing.Size(1328, 95); // // // @@ -4195,6 +4185,7 @@ this.ribbonPanel7.StyleMouseOver.Class = ""; this.ribbonPanel7.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel7.TabIndex = 41; + this.ribbonPanel7.Visible = false; // // ribbonBar5 // @@ -4216,7 +4207,7 @@ this.slider4ground}); this.ribbonBar5.Location = new System.Drawing.Point(3, 0); this.ribbonBar5.Name = "ribbonBar5"; - this.ribbonBar5.Size = new System.Drawing.Size(427, 59); + this.ribbonBar5.Size = new System.Drawing.Size(418, 92); this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar5.TabIndex = 0; // @@ -4230,6 +4221,7 @@ this.ribbonBar5.TitleStyleMouseOver.Class = ""; this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonBar5.TitleVisible = false; + this.ribbonBar5.ItemClick += new System.EventHandler(this.ribbonBar5_ItemClick); // // btn_flag // @@ -4255,10 +4247,10 @@ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel1.Controls.Add(this.ribbonBar21); this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel1.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel1.Location = new System.Drawing.Point(0, 0); this.ribbonPanel1.Name = "ribbonPanel1"; this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95); // // // @@ -4304,7 +4296,7 @@ this.buttonItem89}); this.ribbonBar21.Location = new System.Drawing.Point(3, 0); this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(737, 59); + this.ribbonBar21.Size = new System.Drawing.Size(653, 92); this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar21.TabIndex = 2; this.ribbonBar21.Text = "浏览模式"; @@ -4390,10 +4382,10 @@ this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel3.Controls.Add(this.ribbonBar3); this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel3.Location = new System.Drawing.Point(0, 0); this.ribbonPanel3.Name = "ribbonPanel3"; this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel3.Size = new System.Drawing.Size(1328, 95); // // // @@ -4434,7 +4426,7 @@ this.buttonItem9}); this.ribbonBar3.Location = new System.Drawing.Point(3, 0); this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(296, 59); + this.ribbonBar3.Size = new System.Drawing.Size(378, 92); this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar3.TabIndex = 0; // @@ -4492,10 +4484,10 @@ this.ribbonPanel8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel8.Controls.Add(this.ribbonBar_UserInfo); this.ribbonPanel8.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel8.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel8.Location = new System.Drawing.Point(0, 0); this.ribbonPanel8.Name = "ribbonPanel8"; this.ribbonPanel8.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel8.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel8.Size = new System.Drawing.Size(1328, 95); // // // @@ -4539,7 +4531,7 @@ this.btn_reset_password}); this.ribbonBar_UserInfo.Location = new System.Drawing.Point(3, 0); this.ribbonBar_UserInfo.Name = "ribbonBar_UserInfo"; - this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 59); + this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 92); this.ribbonBar_UserInfo.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar_UserInfo.TabIndex = 0; // @@ -4616,10 +4608,10 @@ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel2.Controls.Add(this.ribbonBar4); this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel2.Location = new System.Drawing.Point(0, 0); this.ribbonPanel2.Name = "ribbonPanel2"; this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95); // // // @@ -4659,7 +4651,7 @@ this.buttonItem_Event}); this.ribbonBar4.Location = new System.Drawing.Point(3, 0); this.ribbonBar4.Name = "ribbonBar4"; - this.ribbonBar4.Size = new System.Drawing.Size(211, 59); + this.ribbonBar4.Size = new System.Drawing.Size(299, 92); this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar4.TabIndex = 0; this.ribbonBar4.Text = "ribbonBar4"; @@ -4727,7 +4719,6 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; - this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -4759,7 +4750,7 @@ this.buttonItemBZ}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(791, 59); + this.ribbonBar20.Size = new System.Drawing.Size(835, 59); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -6026,6 +6017,7 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_08_hover; this.ribbonTabItem14.Image = global::Cyberpipe.Properties.Resources._24x24icon_08; this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -6054,7 +6046,6 @@ // ribbonTabItem7 // this.ribbonTabItem7.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem7.Checked = true; this.ribbonTabItem7.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_04_hover1; this.ribbonTabItem7.Image = global::Cyberpipe.Properties.Resources._24x24icon_041; this.ribbonTabItem7.Name = "ribbonTabItem7"; @@ -6399,6 +6390,16 @@ this.buttonItem76.SubItemsExpandWidth = 14; this.buttonItem76.Text = "坐标标注"; // + // layerTree + // + this.layerTree.CheckBoxes = true; + this.layerTree.ItemHeight = 18; + this.layerTree.Location = new System.Drawing.Point(30, 78); + this.layerTree.Name = "layerTree"; + this.layerTree.Size = new System.Drawing.Size(121, 97); + this.layerTree.TabIndex = 1; + this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); + // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; diff --git a/MainFrm.resx b/MainFrm.resx index 9d1d787..dcfc26a 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -2094,7 +2094,7 @@ - 166 + 121 diff --git a/Program.cs b/Program.cs index a5c9d17..1ff0987 100644 --- a/Program.cs +++ b/Program.cs @@ -11,6 +11,7 @@ static class Program { static string ent = "C:\\EMSCyberPipe"; + /// /// The main entry point for the application. /// @@ -30,7 +31,9 @@ String newVersionCode = getVersionCode(configUrl, currentVersionCode); if (newVersionCode != currentVersionCode) { - if (MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + if ( + MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, + MessageBoxIcon.Question) == DialogResult.Yes) { remoteUpDate(); @@ -38,7 +41,7 @@ string programUrl = getProgramUrl(localConfigPath, "programurl"); if (programUrl != "") { - + //FrmDownloadProgress frmdownload = FrmDownloadProgress.getForm(programUrl); Process.Start(ent + "/UpDateProgress.exe").WaitForExit(); return; @@ -58,7 +61,8 @@ } } } - + + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmLogin frm = new FrmLogin(); @@ -74,6 +78,7 @@ return; } } + } private static void remoteUpDate() diff --git a/Utility.cs b/Utility.cs index eb39366..0e929aa 100644 --- a/Utility.cs +++ b/Utility.cs @@ -87,6 +87,8 @@ public static string AppId; public static string SysnameVersion ="智慧太湖新城管网电子标识系统"; + //public static bool isNeedLogin = false; + public static void SetBallons(GSOBalloon featureTooltip, GSOBalloonEx balloonEx) { featureTooltip.CacheFilePath = Application.StartupPath + "/GeoScene/Globe/Temp"; diff --git a/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml b/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml deleted file mode 100644 index aa192db..0000000 --- a/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml +++ /dev/null @@ -1,6921 +0,0 @@ - - - - Microsoft.Office.Tools.Excel.v4.0.Utilities - - - - Provides the base class for chart sheet host items in document-level Office projects for Microsoft Office Excel. - - - - - - - - - - Makes the current the active chart. - - - Occurs when the is activated. - - - Gets an that represents the Microsoft Office Excel application. - An that represents the Microsoft Office Excel application. - - - Applies a standard or custom chart template to the chart. - The file name for a chart template. - - - Applies a standard or custom chart type to a . - A standard chart type. - The name of the custom chart type if specifies a custom chart gallery. - - - Applies data labels to a point, a series, or all the series in a . - The type of data label to apply. - true to show the legend key next to the point. The default value is false. - true if the object automatically generates appropriate text based on content. - For the and objects, true if the series has leader lines. - The series name for the data label. - The category name for the data label. - The value for the data label. - The percentage for the data label. - The bubble size for the data label. - The separator for the data label. - - - Applies the specified layout to the chart. - An integer from 1 through 10 that specifies the type of layout to apply to the chart. - One of the values. - - - - - - Gets a that represents the area chart group on a 3-D . - A that represents the area chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single area chart group (a object) or a collection of the area chart groups (a collection). - The chart group number. - - - - - - - Gets a value that indicates whether Microsoft Office Excel scales a 3-D so that it is closer in size to the equivalent 2-D chart - true if Microsoft Office Excel scales a 3-D so that it is closer in size to the equivalent 2-D chart. - - - Gets an object that represents either a single axis or a collection of the axes on the chart. - Specifies the axis to return. Can be one of the following constants: , , or ( is valid only for 3-D charts). - Specifies the axis group. If this argument is omitted, the primary group is used. 3-D charts have only one axis group. - - - Gets an object that represents the back wall of a 3-D chart. - A object that represents the back wall of a 3-D chart. - - - Gets a that represents the bar chart group on a 3-D . - A that represents the bar chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single bar chart group (a object) or a collection of the bar chart groups (a collection). - Specifies the chart group. - - - Gets or sets the shape used with the 3-D bar or column . - One of the values. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs when the is double-clicked, before the default double-click action. - - - Occurs when the is right-clicked, before the default right-click action. - - - - - - - - - Occurs after the plots new or changed data. - - - Gets a that represents the complete chart area for the . - A that represents the complete chart area for the . - - - Gets an object that represents either a single chart group (a object) or a collection of all the chart groups in the chart (a object). - The chart group number. - - - Gets an object that represents either a single embedded chart (a object) or a collection of all the embedded charts (a object) on the sheet. - The name or number of the . This argument can be an array, to specify more than one chart. - - - Gets or sets the style of the chart. - An integer from 1 through 48 that represents the style of the chart. - - - Gets a that represents the title of the specified . - A that represents the title of the specified . - - - Gets or sets the type. - One of the values. - - - Modifies the properties of the given . - The range that contains the source data for the new chart. If this argument is omitted, Microsoft Office Excel edits the active chart sheet or the selected chart on the active worksheet. - The chart type. - The option number for the built-in autoformats. Can be a number from 1 through 10, depending on the gallery type. If this argument is omitted, Microsoft Office Excel chooses a default value based on the gallery type and data source. - Specifies whether the data for each series is in rows or columns. Can be one of the following constants: or . - An integer specifying the number of rows or columns within the source range that contain category labels. Legal values are from 0 (zero) through one less than the maximum number of the corresponding categories or series. - The number of rows or columns within the source range that contain series labels. Legal values are from 0 (zero) through one less than the maximum number of the corresponding categories or series. - true to include a legend. - The chart title text. - The category axis title text. - The value axis title text - The series axis title for 3-D charts or the second value axis title for 2-D charts. - - - - - - Checks the spelling of an . - A string that indicates the file name of the custom dictionary to be examined if the word is not found in the main dictionary. If this argument is omitted, the currently specified dictionary is used. - true to have Microsoft Office Excel ignore words that are all uppercase. false to have Microsoft Office Excel check words that are all uppercase. If this argument is omitted, the current setting will be used. - true to have Excel display a list of suggested alternate spellings when an incorrect spelling is found. false to have Excel wait for you to input the correct spelling. If this argument is omitted, the current setting will be used. - The language of the dictionary being used. Can be one of the values used by the property. - - - Clears the chart elements formatting to automatic. - - - - Gets a that represents the column chart group on a 3-D . - A that represents the column chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single column chart group (a object) or a collection of the column chart groups (a collection). - Specifies the chart group. - - - Copies the to another location in the workbook. - The sheet before which the copied sheet will be placed. You cannot specify if you specify . - The sheet after which the copied sheet will be placed. You cannot specify if you specify . - - - - Copies the to the Clipboard as a picture. - Specifies how the picture should be copied. - The format of the picture. - The size of the copied picture when the object is a chart on a chart sheet (not embedded on a worksheet). - - - Gets a object that represents the corners of a 3-D . - A object that represents the corners of a 3-D . - - - - - - - - - - - - Gets an code that indicates the application in which the was created. - One of the values. - - - - - Gets a object that represents the data table. - A object that represents the data table. - - - Occurs when the selection moves away from the , causing the to become deactivated. - - - Deletes the object. - - - Gets or sets the depth of a 3-D chart as a percentage of the width. - The depth of a 3-D chart as a percentage of the width (between 20 and 2000 percent) - - - Cancels the selection for the specified . - - - Gets or sets the way that blank cells are plotted on a . - One of the following constants: , , or . - - - Releases all resources used by the current instance of the class. - - - - On a 2-D , returns an object that represents either a single doughnut chart group (a object) or a collection of the doughnut chart groups (a collection). - Specifies the chart group. - - - - - - - - - - - - - - Gets or sets the elevation of the 3-D , in degrees. - The elevation of the 3-D , in degrees. - - - - Converts a Microsoft Office Excel name to an object or a value. - The name of the object, using the naming convention of Microsoft Office Excel. - - - Exports the in a graphic format. - The name of the exported file. - The language-independent name of the graphic filter as it appears in the registry. - true to display the dialog box that contains the filter-specific options. If this argument is false, Microsoft Office Excel uses the default values for the filter. The default value is false. - - - Saves the chart that is displayed on the in PDF or XPS format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the chart in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this parameter is omitted, exporting starts at the beginning. - The number of the last page to publish. If this parameter is omitted, publishing ends with the last page. - true to open the new file in the viewer immediately; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the chart to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - - Gets a object that represents the floor of the 3-D . - A object that represents the floor of the 3-D . - - - Gets or sets the distance between the data series in a 3-D , as a percentage of the marker width. - The distance between the data series in a 3-D , as a percentage of the marker width. The value of this property must be between 0 and 500. - - - - - - - - Gets information about the chart element at specified X and Y coordinates. - The X coordinate of the chart element. - The Y coordinate of the chart element. - When the method returns, this argument contains the value of the chart element at the specified coordinates. For more information, see the “Remarks” section. - When the method returns, this argument contains information related to the chart element. For more information, see the “Remarks” section. - When the method returns, this argument contains information related to the chart element. For more information, see the “Remarks” section. - - - - - - - - - Gets or sets a value indicating whether a specific axis exists on the . - true if the specified axis exists on the ; otherwise, false. - - - Gets or sets a value that indicates whether the has a data table. - true if the has a data table. - - - Gets or sets a value that indicates whether the has a legend. - true if the has a legend. - - - Gets or sets a value that indicates whether the PivotChart controls are displayed on the specified PivotChart report. - true if the PivotChart controls are displayed on the specified PivotChart report. The default value is true. - - - Gets or sets a value the indicates whether the has a visible title. - true if the has a visible title. - - - Gets or sets the height of a 3-D chart as a percentage of the width. - The height of a 3-D chart as a percentage of the width (between 5 and 500 percent). - - - - Gets a collection that represents the hyperlinks for the . - A collection that represents the hyperlinks for the . - - - Gets the index number of the . - The index number of the . - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - - - - - Gets a that represents the legend for the . - A that represents the legend for the . - - - Gets a that represents the line chart group on a 3-D . - A that represents the line chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single line chart group (a object) or a collection of the line chart groups (a collection). - Specifies the chart group. - - - - - - - - - Moves the to a new location. - One of the values that specify where to move the chart. - The name of the sheet where the chart will be embedded if is or the name of the new sheet if is . - - - Represents an e-mail header for a document. - One of the values. - - - - - - - - - - - - Occurs when a mouse button is pressed when the pointer is over a . - - - Occurs when the position of the mouse pointer changes over the . - - - Occurs when a mouse button is released when the pointer is over the . - - - Moves the to another location in the workbook. - The sheet before which the moved sheet will be placed. You cannot specify if you specify . - The sheet after which the moved sheet will be placed. You cannot specify if you specify . - - - Gets or sets the name of the . - The name of the . - - - Gets a object that represents the next sheet. - A object that represents the next sheet. - - - Gets an object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the chart or sheet. - The name or number of the OLE object. - - - - - - - - - - - - - - Gets a that contains all the page setup settings for the . - A that contains all the page setup settings for the . - - - Gets the parent object for the . - The parent object for the . - - - Pastes chart data from the Clipboard into the specified . - Specifies the information to paste if a chart is on the Clipboard. Can be one of the following constants: , , or . The default value is . If there is data other than a chart on the Clipboard, this argument cannot be used. - - - Gets or sets the perspective for the 3-D . - The perspective for the 3-D chart view. Must be between 0 and 100. - - - - - - Gets a that represents the pie chart group on a 3-D . - A that represents the pie chart group on a 3-D . - - - On a 2-D , returns an object that represents either a single pie chart group (a object) or a collection of the pie chart groups (a collection). - Specifies the chart group. - - - Gets a that represents the placement of fields in a PivotTable report and the placement of axes in a PivotChart report. - A that represents the placement of fields in a PivotTable report and the placement of axes in a PivotChart report. - - - Gets a object that represents the plot area of a . - A object that represents the plot area of a . - - - Gets or sets the way columns or rows are used as data series on the . - One of the following constants: or . - - - Gets or sets a value that indicates whether only visible cells are plotted. - true if only visible cells are plotted. false if both visible and hidden cells are plotted. - - - Gets a object that represents the previous sheet. - A object that represents the previous sheet. - - - Gets the number of comment pages that will be printed for the current chart sheet. This property can be used only in Excel 2010 projects. - The number of comment pages that will be printed for the current chart sheet. - This property is used in an Excel 2007 project. - - - Prints the . - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the chart that is displayed on the . - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - The name of the file to print to. This parameter is used only if is true. - - - Shows a preview of the as it would look when printed. - - - - Protects a so that it cannot be modified. - A string that specifies a case-sensitive password for the worksheet or workbook. If this argument is omitted, you can unprotect the worksheet or workbook without using a password. Otherwise, you must specify the password to unprotect the worksheet or workbook. If you forget the password, you cannot unprotect the worksheet or workbook. It is a good idea to keep a list of your passwords and their corresponding document names in a safe place. - true to protect shapes. The default value is false. - true to protect contents. For a chart, this protects the entire chart. For a worksheet, this protects the locked cells. The default value is true. - true to protect scenarios. This argument is valid only for worksheets. The default value is true. - true to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface. - - - Gets a value that indicates whether the contents of the are protected. - true if the contents of the are protected. - - - Gets or sets a value that indicates whether series formulas cannot be modified by the user. - true if series formulas cannot be modified by the user; otherwise, false. - - - Gets a value that indicates whether shapes are protected on the . - true if shapes are protected. - - - Gets or sets a value that indicates whether formatting cannot be modified by the user. - true if formatting cannot be modified by the user. - - - Gets or sets a value that indicates whether the user cannot modify chart data points with mouse actions. - true if the user cannot modify chart data points with mouse actions. - - - Gets or sets a value that indicates whether user-interface-only protection is turned on. - true if user-interface-only protection is turned on. - - - Gets or sets a value that indicates whether elements cannot be selected. - true if elements cannot be selected. - - - On a 2-D , returns an object that represents either a single radar chart group (a object) or a collection of the radar chart groups (a collection). - Specifies the chart group. - - - - - - Updates the cache of the . - - - Occurs when the size of the is changed. - - - Gets or sets a value that indicates whether the axes are at right angles, independent of chart rotation or elevation. - true if the axes are at right angles, independent of chart rotation or elevation. - - - Gets or sets the rotation of the 3-D . - The rotation of the 3-D (the rotation of the plot area around the z-axis, in degrees). The value of this property must be from 0 to 360, except for 3-D bar charts, where the value must be from 0 to 44. The default value is 20. - - - Saves changes to the in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - The file format to use when you save the file. For a list of valid choices, see the property. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings). false (default) saves files against the language of Visual Basic for Applications (which is typically US English unless the VBA project where Workbooks.Open is run from is an old internationalized XL5/95 VBA project). - - - Saves the chart on the as a custom template in the list of available chart templates. - The name of the new chart template. - - - Gets the collection, which contains objects representing blocks of script or code in the specified document when it is saved as a Web page. - The collection, which contains objects representing blocks of script or code in the specified document when it is saved as a Web page. - - - - - - Selects the . - The object to replace. - - - Occurs when the is selected. - - - Occurs when the value of a data point is changed. - - - Gets an object that represents either a single series (a object) or a collection of all the series (a collection) in the chart or chart group. - The name or number of the series. - - - - - - - - Sets the background graphic for a . - The name of the graphic file. - - - Specifies the name of the chart template that Microsoft Office Excel uses when creating new charts. - A string that indicates the name of the default chart template that will be used when creating new charts. This name can identify a chart in the gallery for a user-defined template, or it can be one of the values that specifies a built-in chart template. - - - Modifies an element on the chart that is displayed on the . - One of the Microsoft.Office.Core.MsoChartElementType values that specifies the type of element modification. - - - Sets the source data range for the . - The range that contains the source data. - Specifies the way the data is to be plotted. Can be either of the following constants: or . - - - Gets a object that represents all the shapes on the . - A object that represents all the shapes on the . - - - Gets or sets whether to display all field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display all field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display axis field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display axis field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets a value that indicates whether to show the data labels when the value is greater than the maximum value on the value axis. - true to show the data labels when the value is greater than the maximum value on the value axis; otherwise, false. - - - Gets or sets whether to display legend field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display all legend field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display the report filter field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display the report filter field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display the value field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display the value field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Occurs when the application domain for the assembly is about to unload. - - - Gets an object that represents the side wall of a 3-D chart. - A object that represents the side wall of a 3-D chart. - - - - - - - Occurs after the document is running and all the initialization code in the assembly has been run. - - - - Gets a object that represents the surface chart group of a 3-D . - A object that represents the surface chart group of a 3-D . - - - Gets a object for a . - A object for a . - - - Gets or sets the object that contains data about the . - The object that contains data about the . - - - - - - - Removes protection from a . This method has no effect if the sheet or workbook is not protected. - The case-sensitive password to use to unprotect the sheet or workbook. If the sheet or workbook is not protected with a password, this argument is ignored. If you omit this argument for a sheet that is protected with a password, you will be prompted for the password. If you omit this argument for a workbook that is protected with a password, the method fails. - - - Determines whether the object is visible. - - - Gets a object that represents the walls of the 3-D . - A object that represents the walls of the 3-D . - - - Gets or sets a value that indicates whether gridlines are drawn two-dimensionally on a 3-D . - true if gridlines are drawn two-dimensionally on a 3-D ; otherwise, false. - - - On a 2-D , returns an object that represents either a single scatter chart group (a object) or a collection of the scatter chart groups (a collection). - Specifies the chart group. - - - Provides extension methods you can use to add Windows Forms controls to Excel worksheets that have been customized by using the Office development tools in Visual Studio. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the location for the control. - The name of the control that can be used to index the control in the instance. - - - Adds a new control to the document in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the document. - The distance in points between the top edge of the control and the top edge of the document. - The width of the control in points. - The height of the control in points. - The name of the control that can be used to index the control in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - - - Provides the base class for the ThisWorkbook class in document-level projects for Microsoft Office Excel. - - - - - - - - - - - Accepts all changes in the shared workbook. - One of the values that specifies when the changes to be accepted were made. - A string that identifies who made the changes to be accepted. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the location of the changes to be accepted. - - - Gets or sets a value that indicates whether labels can be used in worksheet formulas. - true if labels can be used in worksheet formulas. The default value is false. - - - Specifies whether certain worksheet functions use the latest accuracy algorithms to calculate their results. This property can be used only in Excel 2010 projects. - A value that specifies whether certain worksheet functions use the latest accuracy algorithms to calculate their results. - This property is used in an Excel 2007 project. - - - Activates the first window associated with the workbook. - - - Occurs when the workbook is activated. - - - Gets a object that represents the active chart (either an embedded chart or a chart sheet). An embedded chart is considered active when it is either selected or activated. When no chart is active, this property returns null. - A object that represents the active chart; null if no chart is active. - - - Gets the active sheet (the sheet on top). - The active sheet (the sheet on top); null if no sheet is active. - - - Gets an object that represents the active slicer in the active workbook or in the specified workbook. This property can be used only in Excel 2010 projects. - A that represents the active slicer in the active workbook or in the specified workbook. - This property is used in an Excel 2007 project. - - - Occurs when the workbook is installed as an add-in. - - - Occurs when the workbook is uninstalled as an add-in. - - - Adds a shortcut to the workbook to the Favorites folder. - - - Occurs after the workbook is saved. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after Microsoft Office Excel saves or exports data from the workbook to an XML data file. - - - Occurs after an existing XML data connection is refreshed or after new XML data is imported into the workbook. - - - Gets an that represents the creator of the workbook. - An that represents the creator of the workbook. - - - Applies the specified theme to the workbook. - The full file path of the theme to apply. - - - Gets or sets the author of the workbook. - The author of the workbook. - - - Gets or sets the number of minutes between automatic updates to the shared workbook. - The number of minutes between automatic updates to the shared workbook. - - - Gets or sets a value that indicates whether current changes to the shared workbook are posted to other users whenever the workbook is automatically updated. - true if current changes to the shared workbook are posted to other users whenever the workbook is automatically updated. false if changes are not posted (this workbook is still synchronized with changes made by other users). The default value is true. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs before the workbook closes. If the workbook has been changed, this event occurs before the user is asked to save changes. - - - Occurs before the workbook (or anything in it) is printed. - - - Occurs before the workbook is saved. - - - Occurs before Microsoft Office Excel saves or exports data from the workbook to an XML data file. - - - Occurs before an existing XML data connection is refreshed or before new XML data is imported into the workbook. - - - - - - Converts formulas linked to other Microsoft Office Excel sources or OLE sources to values. - The name of the link. - One of the values. The type of link. - - - Gets a Microsoft.Office.Core.DocumentProperties collection that represents all the built-in document properties for the workbook. - A Microsoft.Office.Core.DocumentProperties collection that represents all the built-in document properties for the workbook. - - - Gets a number that indicates the version of Excel that the workbook was last fully recalculated by. The rightmost four digits are the minor calculation engine version number, and the other digits (on the left) are the major version of Microsoft Office Excel. - A number that indicates the version of Excel that the workbook was last fully recalculated by. The rightmost four digits are the minor calculation engine version number, and the other digits (on the left) are the major version of Microsoft Office Excel. - - - Gets a value that indicates whether Microsoft Office Excel can check in the workbook to a server. - true if Microsoft Office Excel can check in the workbook to a server; otherwise, false. - - - Changes the access permissions for the workbook. This might require an updated version to be loaded from the disk. - One of the values. Specifies the new access mode. - Specifies the write-reserved password if the file is write reserved and is . Ignored if there is no password for the file or if is . - true to notify the user if the file cannot be immediately accessed. - - - Gets or sets the number of days shown in the shared workbook's change history. - The number of days shown in the shared workbook's change history. - - - Changes a link from one document to another. - The name of the Microsoft Office Excel or DDE/OLE link to be changed, as it was returned from the method. - The new name of the link. - One of the values that specifies the link type. - - - Gets a collection that represents all the chart sheets in the workbook. - A collection that represents all the chart sheets in the workbook. - - - Gets or sets a value that indicates whether to run the compatibility checker automatically when the workbook is saved. - true if the compatibility checker should be run automatically when the workbook is saved; otherwise, false. The default for Excel 97-2003 Binary (BIFF8) workbooks is true; the default for all other workbooks is false. - - - Returns a workbook from a local computer to a server, and sets the local workbook to read-only so that it cannot be edited locally. Calling this method closes the workbook. - true saves changes and checks in the document; false returns the document to a checked-in status without saving revisions. - Allows the user to enter check-in comments for the revision of the workbook being checked in (applies only if equals true). - true allows the user to publish the workbook after it has been checked in. This submits the workbook for the approval process, which can eventually result in a version of the workbook being published to users with read-only rights to the workbook (applies only if equals true). - - - Sends the workbook from the local computer to a server, and sets the local workbook to read-only so that it cannot be edited locally. Calling this method closes the workbook. - true to save changes and check in the document; false to return the document to a checked-in state without saving revisions. - true to enable check-in comments; false to check in the workbook without comments. This parameter applies only if is true. - true to enable the user to publish the workbook after it has been checked in. This submits the workbook for the approval process, which can eventually result in a version of the workbook being published to users with read-only rights to the workbook (applies only if equals true). - Specifies versioning information for the document. - - - Closes the workbook. - If there are no changes to the workbook, this argument is ignored. If there are changes to the workbook and the workbook appears in other open windows, this argument is ignored. If there are changes to the workbook but the workbook does not appear in any other open windows, this argument specifies whether changes should be saved, as shown in the following list.true. Saves the changes to the workbook. If there is not yet a file name associated with the workbook, then is used. If is omitted, the user is asked to supply a file name.false. Does not save the changes to the workbook.Omitted. Displays a dialog box asking the user whether or not to save changes. - Save changes under this file name. - If the workbook does not need to be routed to the next recipient (if it has no routing slip or has already been routed), this argument is ignored. Otherwise, Microsoft Office Excel routes the workbook as shown in the following list.true. Sends the workbook to the next recipient.false. Does not send the workbook.Omitted. Displays a dialog box asking the user whether the workbook should be sent. - - - - Gets or sets colors in the palette for the workbook. - An RGB color value in the color palette for the workbook, or an array that contains all 56 RGB color values in the color palette for the workbook. - - - Gets a Microsoft.Office.Core.CommandBars object that represents the Microsoft Office Excel command bars. - A Microsoft.Office.Core.CommandBars object that represents the Microsoft Office Excel command bars. - - - Gets or sets the comments attached to the workbook. - The comments attached to the workbook. - - - Gets or sets the way conflicts are to be resolved whenever a shared workbook is updated. - One of the values. - - - Gets the collection of connections between the workbook and a data source. - A Microsoft.Office.Interop.Excel.Connections collection that contains the connections between the workbook and a data source. - - - Gets a value that indicates whether to disable the external connections or links in the workbook. - true to disable the external connections or links in the workbook; otherwise, false. - - - Gets the object that represents the container application for the workbook. - The object that represents the container application for the workbook. - - - Gets a collection of properties that describe metadata that is stored in the workbook. - A Microsoft.Office.Core.MetaProperties collection that contains properties that describe metadata that is stored in the workbook. - - - Gets a value that indicates whether a backup file is created when this file is saved. - true if a backup file is created when this file is saved; otherwise, false. - - - Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - An object that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - - - Returns an array of objects to the method. - An array of objects. - - - Gets the application in which the workbook was created. - One of the values. - - - Gets a Microsoft.Office.Core.DocumentProperties collection that represents all the custom document properties for the workbook. - A Microsoft.Office.Core.DocumentProperties collection that represents all the custom document properties for the workbook. - - - Gets a collection that represents all the custom views for the workbook. - A collection that represents all the custom views for the workbook. - - - Gets the collection of custom XML parts in the workbook. - A Microsoft.Office.Core.CustomXMLParts collection that contains the custom XML parts in the workbook. - - - - - Gets or sets a value that indicates whether the workbook uses the 1904 date system. - true if the workbook uses the 1904 date system; otherwise, false. - - - Occurs when the workbook is deactivated. - - - Gets or sets the table style from the property that is used as the default style for PivotTable reports in the workbook. - The table style from the property that is used as the default style for PivotTable reports in the workbook. - - - - Gets or sets the table style from the property that is used as the default style for tables in the workbook. - The table style from the property that is used as the default style for tables in the workbook. - - - Deletes a custom number format from the workbook. - Names the number format to be deleted. - - - Included for backwards compatibility only. - - - Gets or sets how shapes are displayed. - One of the following values: , , or . - - - Gets or sets a value that indicates whether ink comments are displayed in the workbook. - true if ink comments are displayed in the workbook; otherwise, false. - - - Releases all resources used by the current instance of the class. - - - - Gets the collection of Document Inspector modules for the workbook. - A Microsoft.Office.Core.DocumentInspectors collection that contains the Document Inspector modules for the workbook. - - - Gets a Microsoft.Office.Core.DocumentLibraryVersions collection that represents the collection of versions of a shared workbook that has versioning enabled and that is stored in a document library on a server. - A Microsoft.Office.Core.DocumentLibraryVersions collection that represents the collection of versions of a shared workbook that has versioning enabled and that is stored in a document library on a server. - - - Gets or sets a value that indicates whether to prompt the user to convert the workbook if it contains features that are not supported by versions of Excel earlier than Excel 2007. - true to prompt the user to convert the workbook; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel saves changed files, of all formats, on a timed interval. - true if Excel saves changed files on a timed interval; otherwise, false. - - - Enables data connections within the workbook. - - - Gets the name of the algorithm encryption provider that Microsoft Office Excel uses when encrypting passwords for the workbook. - The name of the algorithm encryption provider that Excel uses when encrypting passwords for the workbook. - - - - Terminates a review of a file that has been sent for review using the method. - - - Gets or sets a value that indicates whether the e-mail composition header and the envelope toolbar are both visible. - true if the e-mail composition header and the envelope toolbar are both visible; otherwise, false. - - - Gets a collection that represents all the Microsoft Office Excel 4.0 international macro sheets in the workbook. - A collection that represents all the Microsoft Office Excel 4.0 international macro sheets in the workbook. - - - Gets a collection that represents all the Microsoft Office Excel 4.0 macro sheets in the workbook. - A collection that represents all the Microsoft Office Excel 4.0 macro sheets in the workbook. - - - Gets a value that indicates whether the workbook is in compatibility mode. - true if the workbook is in compatibility mode; otherwise, false. - - - Assigns the current user exclusive access to the workbook that is open as a shared list. - - - Saves a workbook in PDF or XPS format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the workbook in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this parameter is omitted, exporting starts at the beginning. - The number of the last page to export. If this parameter is omitted, exporting ends with the last page. - true to open the new file after exporting the workbook; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the workbook to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - Gets the file format and type of the workbook. - One of the values. - - - Gets or sets a value that indicates whether the workbook is final. - true if the workbook is final; otherwise, false. - - - - Displays a cached document, if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application. - The address of the target document. - The location within the target document. The default value is the empty string. - true to display the target application in a new window. The default value is false. - Not used. Reserved for future use. - A string or byte array that specifies additional information for HTTP to use to resolve the hyperlink. For example, you can use to specify the coordinates of an image map, the contents of a form, or a FAT file name. - Specifies the way is attached. Can be one of the following Microsoft.Office.Core.MsoExtraInfoMethod constants: Microsoft.Office.Core.MsoExtraInfoMethod.msoMethodGet or Microsoft.Office.Core.MsoExtraInfoMethod.msoMethodPost. - A string that specifies header information for the HTTP request. The default value is an empty string. - - - Gets or sets a value that indicates whether to force a full calculation of a workbook. - true to force a full calculation of a workbook; otherwise, false. - - - - Gets the name of the object, including its path on disk. - The name of the object, including its path on disk. - - - Gets the name of the object, including its path on disk. - The name of the object, including its path on disk. - - - - - - Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the workbook. - An object in a document-level customization that can be used by VBA code in the workbook. - - - - - - - - Returns the collection of workflow tasks for the workbook. - A Microsoft.Office.Core.WorkflowTasks collection that contains the workflow tasks for the workbook. - - - Returns the collection of workflow templates for the workbook. - A Microsoft.Office.Core.WorkflowTemplates collection that contains the workflow templates for the workbook. - - - - Gets a value that indicates whether the workbook has a protection password. - true if the workbook has a protection password; otherwise, false. - - - Gets or sets a value that indicates whether the workbook has a routing slip. - true if the workbook has a routing slip; otherwise, false. - - - Gets a value that indicates whether a workbook has an attached Microsoft Visual Basic for Applications (VBA) project. - true if the workbook has an attached VBA project; otherwise, false. - - - Gets or sets a value that indicates whether changes to the shared workbook are highlighted on screen. - true if changes to the shared workbook are highlighted on screen; otherwise, false. - - - Controls how changes are shown in a shared workbook. - The changes that are shown. Can be one of the following constants: , , or . - The user or users whose changes are shown. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the area to check for changes. - - - - Gets the Microsoft.Office.Core.HTMLProject in the workbook, which represents a top-level project branch. - The Microsoft.Office.Core.HTMLProject in the workbook, which represents a top-level project branch. - - - Gets the collection of built-in icon sets that can be used to apply a conditional formatting rule to a range in the workbook. - A Microsoft.Office.Interop.Excel.IconSets collection that contains the built-in icon set objects that can be used to apply a conditional formatting rule to a range. - - - Gets or sets a value that indicates whether list borders are visible when a list is not active. - true if the border is visible; otherwise, false. - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - Gets or sets a value that indicates whether the workbook is running as an add-in. - true if the workbook is running as an add-in; otherwise, false. - - - Gets a value that indicates whether the specified workbook is being edited in place - true if the specified workbook is being edited in place; false if the workbook has been opened in Microsoft Office Excel for editing. - - - - Gets or sets a value that indicates whether change tracking is enabled for the shared workbook. - true if change tracking is enabled for the shared workbook; otherwise, false. - - - Gets or sets the keywords attached to the workbook. - The keywords attached to the workbook. - - - Gets the link date and update status. - A value that indicates information about the link. If is , this method returns 1 if the link updates automatically, or 2 if the link must be updated manually. - The name of the link. - One of the values that specifies the type of information to return. - One of the values that specifies the type of link to return information for. - If the link is an edition, this parameter specifies the edition reference as a string in R1C1 style. is required if there is more than one publisher or subscriber with the same name in the workbook. - - - Returns an of links in the workbook. - An of link names in the workbook; null if the workbook does not contain any links of the specified . - One of the values specifying the type of links to return. - - - Gets or sets a value that indicates whether changes to the shared workbook are shown on a separate worksheet. - true if changes to the shared workbook are shown on a separate worksheet; otherwise, false. - - - Locks the workbook on the server to prevent modification. - - - - Merges changes from one workbook into an open shared workbook. - The file name of the workbook that contains the changes to be merged into the open workbook. - - - - - - - - - - - - - - - - - - - Included for backwards compatibility only. - - - Gets a value that indicates whether the workbook is open as a shared list. - true if the workbook is open as a shared list; otherwise, false. - - - Gets the name of the workbook. - The name of the workbook. - - - Gets a collection that represents all the names in the workbook (including all worksheet-specific names). - A collection that represents all the names in the workbook (including all worksheet-specific names). - - - Occurs when a new workbook is created. - - - Occurs when a new chart is created in the workbook. - - - Occurs when a new sheet is created in the workbook. - - - Creates a new window. - - - Included for backwards compatibility only. - - - Included for backwards compatibility only. - - - Included for backwards compatibility only. - - - - - Occurs when the workbook is opened. - - - Opens the supporting documents for a link or links. - The name of the Microsoft Office Excel or DDE/OLE link, as returned from the method. - true to open documents as read-only. The default value is false. - One of the values. The link type. - - - Gets the parent object for the workbook. - The parent object for the workbook. - - - Gets or sets the password that must be supplied to open the workbook. - The password that must be supplied to open the workbook. - - - Gets the algorithm that Microsoft Office Excel uses to encrypt passwords for the workbook. - The algorithm that Excel uses to encrypt passwords for the workbook. - - - Gets a value that indicates whether Microsoft Office Excel encrypts file properties for the specified password-protected workbook. - true if Excel encrypts file properties for the specified password-protected workbook; otherwise, false. - - - Gets the key length of the algorithm that Microsoft Office Excel uses when encrypting passwords for the workbook. - The key length of the algorithm that Excel uses when encrypting passwords for the workbook. - - - Gets the name of the algorithm encryption provider that Microsoft Office Excel uses when encrypting passwords for the workbook. - The name of the algorithm encryption provider that Excel uses when encrypting passwords for the workbook. - - - Gets the complete path to the application, excluding the final separator and name of the application. - The complete path to the application, excluding the final separator and name of the application. - - - Gets a Microsoft.Office.Core.Permission object that represents the permission settings in the workbook. - A Microsoft.Office.Core.Permission object that represents the permission settings in the workbook. - - - Gets or sets a value that indicates whether filter and sort settings for lists are included in the user's personal view of the shared workbook. - true if filter and sort settings for lists are included in the user's personal view of the shared workbook; otherwise, false. - - - Gets or sets a value that indicates whether print settings are included in the user's personal view of the shared workbook. - true if print settings are included in the user's personal view of the shared workbook; otherwise, false. - - - Gets a collection that represents all the PivotTable caches in the specified workbook. - A collection that represents all the PivotTable caches in the specified workbook. - - - Occurs after a PivotTable report closes the connection to its data source. - - - Occurs after a PivotTable report opens the connection to its data source. - - - Creates a object. - An value. The source of the report data. - The data for the new report. Can be a object, an array of ranges, or a text constant that represents the name of another report. For an external database, is an array of strings containing the SQL query string, where each element is up to 255 characters in length. You should use the argument to specify the ODBC connection string. For compatibility with earlier versions of Excel, can be a two-element array. The first element is the connection string specifying the ODBC source for the data. The second element is the SQL query string used to get the data. If you specify , you must also specify . If the active cell is inside the range, you must specify as well. - A object specifying where the report should be placed on the worksheet. If this argument is omitted, the report is placed at the active cell. - The name of the new report. - true to show grand totals for rows in the report. - true to show grand totals for columns in the report. - true to save data with the report; false to save only the report definition. - true to have Microsoft Office Excel automatically format the report when it is refreshed or when fields are moved. - Valid only if is . true to have Excel create a page field for the consolidation. If is false, you must create the page field or fields. - Not used by Excel. - true to have Excel perform queries for the report asynchronously (in the background). The default value is false. - true to optimize the PivotTable cache when it is constructed. The default value is false. - The order in which page fields are added to the PivotTable report’s layout. Can be one of the following constants: or . The default value is . - The number of page fields in each column or row in the PivotTable report. The default value is 0 (zero). - true to create a PivotTable cache that contains all records from the external database; this cache can be very large. If is false, you can set some of the fields as server-based page fields before the data is actually read. - A string that contains ODBC settings that allow Excel to connect to an ODBC data source. The connection string has the form "ODBC;<connection string>". This argument overrides any previous setting for the object’s property. - - - Posts the workbook to a public folder. This method works only with a Microsoft Exchange client connected to a Microsoft Exchange server. - This argument is ignored. The method prompts the user to specify the destination for the workbook. - - - Gets or sets a value that indicates whether calculations in this workbook will be done using only the precision of the numbers as they are displayed. - true if calculations in this workbook will be done using only the precision of the numbers as they are displayed; otherwise, false. - - - Prints the workbook. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the workbook. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - true to ignore print areas and print the entire workbook; otherwise, false. - - - Shows a preview of the object as it would look when printed. - true to allow changes to the margins and page setup while displaying the print preview; otherwise, false. - - - Protects a workbook so that it cannot be modified. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - true to protect the structure of the workbook (the relative position of the sheets). The default value is false. - true to protect the workbook windows. If this argument is omitted, the windows are not protected. - - - Called by the Visual Studio Tools for Office runtime so that you can reapply password protection to the workbook after the cached data has been saved. - - - Saves the workbook and protects it for sharing. - The name of the saved file. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened read-only. - true to display a message when the file is opened, recommending that the file be opened read-only. - true to create a backup file. - The password to be used to protect the file for sharing. - - - Saves the workbook and protects it for sharing. - The name of the saved file. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened read-only. - true to display a message when the file is opened, recommending that the file be opened read-only. - true to create a backup file. - The password to be used to protect the file for sharing. - A string that indicates the file format. - - - Gets a value that indicates whether the order of the sheets in the workbook is protected. - true if the order of the sheets in the workbook is protected; otherwise, false. - - - Gets a value that indicates whether the windows of the workbook are protected. - true if the windows of the workbook are protected; otherwise, false. - - - Gets the collection. - The collection. - - - Removes entries from the change log for the workbook. - The number of days that changes in the change log are to be retained. - The password that unprotects the workbook for sharing. If the workbook is protected for sharing with a password and this argument is omitted, the user is prompted for the password. - - - Gets a value that indicates whether the workbook has been opened as read-only. - true if the workbook has been opened as read-only; otherwise, false. - - - Gets or sets a value that indicates whether the workbook was saved as read-only recommended. - true if the workbook was saved as read-only recommended; otherwise, false. - - - Causes a foreground smart tag check to occur automatically annotating data that was not annotated before. - - - Refreshes all external data ranges and PivotTable reports in the workbook. - - - Rejects all changes in the shared workbook. - One of the values that specifies when the changes to be rejected were made. - A string that identifies who made the changes to be rejected. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the location of the changes to be rejected. - - - Reloads a workbook based on an HTML document, using the specified document encoding. - One of the Microsoft.Office.Core.MsoEncoding values. The encoding that is to be applied to the workbook. - - - Removes the customization that was created by using Office development tools in Visual Studio from the workbook. - The custom document properties or the cached data could not be removed from the workbook. - The document is protected. - - - Removes all information of the specified type from the workbook. - One of the Microsoft.Office.Interop.Excel.XlRemoveDocInfoType values that specifies the type of information to be removed. - - - Gets or sets a value that indicates whether personal information can be removed from the workbook. - true if personal information can be removed from the workbook; otherwise, false. The default value is false. - - - Disconnects the specified user from the shared workbook. - The user index. - - - - - Sends an e-mail message to the author of a workbook that has been sent out for review, notifying him or her that a reviewer has completed review of the workbook. - true to display the message; false to not display the message. - - - Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface in a document-level customization. - An object in your document-level customization that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - A that identifies the Microsoft.Office.Core.IRibbonExtensibility interface. - - - Gets an object that represents the research service for the workbook. - A Microsoft.Office.Interop.Excel.Research object that represents the research service for the workbook. - - - Resets the color palette to the default colors. - - - Gets the number of times the workbook has been saved while open as a shared list. If the workbook is open in exclusive mode, this property returns 0 (zero). - The number of times the workbook has been saved while open as a shared list. - - - Routes the workbook, using the workbook's current routing slip. - - - Gets a value that indicates whether the workbook has been routed to the next recipient. - true if the workbook has been routed to the next recipient; false if the workbook needs to be routed. - - - Gets a object that represents the routing slip for the workbook. - A object that represents the routing slip for the workbook. - - - Occurs when the user navigates through the recordset or invokes the rowset action on an OLAP PivotTable. - - - Runs the Auto_Open, Auto_Close, Auto_Activate, or Auto_Deactivate macro attached to the workbook. This method is included for backward compatibility. You should use the Open, Close, Activate and Deactivate events instead of these macros. - One of the values. - - - Saves changes to the workbook. - - - Saves changes to the workbook in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - One of the values that specifies the file format to use when you save the file. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - One of the values. - One of the values. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings). false (default) saves files against the language of Visual Basic for Applications (VBA). - - - Exports the data that has been mapped to the specified XML schema map to an XML data file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - - object. The schema map to apply to the data. - - - Saves a copy of the workbook to a file but does not modify the open workbook in memory. - Specifies the file name for the copy. - - - Gets or sets a value that indicates whether no changes have been made to the workbook since it was last saved. - true if no changes have been made to the workbook since it was last saved; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel saves external link values with the workbook. - true if Excel saves external link values with the workbook; otherwise, false. - - - - - - Sends the active sheet in the workbook as a fax to the specified recipients. - The fax numbers and e-mail addresses of the people to whom the fax will be sent. Separate multiple recipients with a semicolon. - The subject line for the faxed document. - true displays the fax message before sending it; false sends the fax without displaying the fax message. - - - Sends a workbook in an e-mail message for review to the specified recipients. - The people to whom to send the message. These can be unresolved names and aliases in an e-mail phone book or full e-mail addresses. Separate multiple recipients with a semicolon (;). If left blank and is false, you will receive an error message, and the message will not be sent. - The subject of the message. If left blank, the subject will be: Please review " ". - A value that indicates whether the message should be displayed when the method is executed. The default value is true. If set to false, the message is automatically sent to the recipients without first showing the message to the sender. - A value that indicates whether the message should include an attachment or a link to a server location. The default value is true. If set to false, the document must be stored at a shared location. - - - Sends the workbook by using the installed mail system. - Specifies the name of the recipient as text, or as an array of text strings if there are multiple recipients. At least one recipient must be specified, and all recipients are added as To recipients. - Specifies the subject of the message. If this argument is omitted, the document name is used. - true to request a return receipt. false to not request a return receipt. The default value is false. - - - - - - - Gets an object that represents a policy specified for a workbook that is stored on a server running Microsoft Office SharePoint Server. - A Microsoft.Office.Core.ServerPolicy object that represents a policy specified for a workbook that is stored on a server running SharePoint Server. - - - Gets an object that you can use to interact with the list of published objects in the workbook that are shown on a Microsoft Office SharePoint Server server. - A Microsoft.Office.Interop.Excel.ServerViewableItems object that you can use to interact with the list of published objects in the workbook that are shown on the server. - - - Use the property instead of this method. - - - - - Sets the name of a procedure that runs whenever a DDE link is updated. - The name of the DDE/OLE link, as returned from the method. - The name of the procedure to be run when the link is updated. This can be either a Microsoft Office Excel 4.0 macro or a Visual Basic procedure. Set this argument to an empty string ("") to indicate that no procedure should run when the link is updated. - - - Sets the options for encrypting the workbook using a password. - A case sensitive string of the encryption provider. - A case sensitive string of the algorithmic short name (i.e. "RC4"). - The encryption key length, which is a multiple of 8 (40 or greater). - true (default) to encrypt file properties. - - - Gets a Microsoft.Office.Core.SharedWorkspace that represents the Document Workspace in which the workbook is located. - A Microsoft.Office.Core.SharedWorkspace that represents the Document Workspace in which the workbook is located. - - - Included for backwards compatibility only. - - - Occurs when any worksheet is double-clicked, before the default double-click action. - - - Occurs when any worksheet is right-clicked, before the default right-click action. - - - Occurs after any worksheet is recalculated or after any changed data is plotted on a chart. - - - Occurs when cells in any worksheet are changed by the user or by an external link. - - - Included for backwards compatibility only. - - - Occurs when you click any hyperlink in a workbook. - - - Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas). This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are applied to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are committed against the OLAP data source for a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes to a PivotTable are discarded. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after changes to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after the sheet of a PivotTable report has been updated. - - - Gets a collection that represents all the sheets in the workbook. - A collection that represents all the sheets in the workbook. - - - Occurs when the selection changes on any worksheet. Does not occur if the selection is on a chart sheet. - - - Gets or sets a value that indicates whether the Conflict History worksheet is visible in the workbook that is open as a shared list. - true if the Conflict History worksheet is visible in the workbook that is open as a shared list; otherwise, false. - - - Gets or sets a value that indicates whether the PivotChart Filter Pane is visible. - true if the PivotChart Filter Pane is visible; otherwise, false. - - - Gets or sets a value that indicates whether the PivotTable field list can be shown. - true if the PivotTable field list can be shown; otherwise, false. The default is true. - - - Occurs when the workbook host item shuts down. - - - Gets the collection of digital signatures for the workbook. - A Microsoft.Office.Core.SignatureSet collection that contains the digital signatures for the workbook. - - - - Gets the object associated with the workbook. - A object associated with the workbook. - This property is used in an Excel 2007 project. - - - Gets a Microsoft.Office.Core.SmartDocument that represents the settings for a smart document solution. - A Microsoft.Office.Core.SmartDocument that represents the settings for a smart document solution. - - - Gets a object representing the options that can be performed with a smart tag. - A object representing the options that can be performed with a smart tag. - - - - Gets a collection that represents all the styles in the workbook. - A collection that represents all the styles in the workbook. - - - Gets or sets the subject for the mailer or routing slip. - The subject for the mailer or routing slip. - - - Gets a Microsoft.Office.Core.Sync object that provides access to the methods and properties of documents that are part of a Document Workspace. - A Microsoft.Office.Core.Sync object that provides access to the methods and properties of documents that are part of a Document Workspace. - - - Occurs when the local copy of a worksheet that is part of a Document Workspace is synchronized with the copy on the server. - - - Gets the collection of table styles that are used in the workbook. - A Microsoft.Office.Interop.Excel.TableStyles collection that contains the table styles that are used in the workbook. - - - Gets or sets the object that contains data about the workbook. - An object that contains data about the workbook. - - - Gets or sets a value that indicates whether external data references are removed when the workbook is saved as a template. - true if external data references are removed when the workbook is saved as a template; otherwise, false. - - - Gets the theme that is applied to the workbook. - A Microsoft.Office.Core.OfficeTheme that represents the theme that is applied to the workbook. - - - Gets or sets the title of the Web page when the workbook is saved as a Web page. - The title of the Web page when the workbook is saved as a Web page. - - - Toggles Microsoft Office Excel into and out of design mode. - - - Removes protection from the workbook. This method has no effect if the workbook is not protected. - The case-sensitive password to use to unprotect the workbook. If the workbook is not protected with a password, this parameter is ignored. If you omit this parameter for a workbook that is protected with a password, the method fails. - - - Called by the Visual Studio Tools for Office runtime so that you can remove password protection from the workbook and enable cached data to be saved. - - - Turns off protection for sharing and saves the workbook. - The workbook password. - - - Updates a read-only workbook from the saved disk version of the workbook if the disk version is more recent than the copy of the workbook that is loaded in memory. If the disk copy has not changed since the workbook was loaded, the in-memory copy of the workbook is not reloaded. - - - Updates a Microsoft Office Excel, DDE, or OLE link (or links). - The name of the Excel or DDE/OLE link to be updated, as returned from the method. - One of the values. - - - Gets or sets a value that indicates a workbook's setting for updating embedded OLE links. - One of the values. - - - Gets or sets a value that indicates whether Microsoft Office Excel updates remote references in the workbook. - true if Excel updates remote references in the workbook; otherwise, false. - - - Gets or sets a value that indicates whether the workbook or application was created or opened by the user. - true if the workbook or application was created or opened by the user; false if the workbook or application was created or opened programmatically from another Microsoft Office application with the method or the VBA.Interaction.CreateObject or VBA.Interaction.GetObject method. - - - Gets a 1-based, two-dimensional array that provides information about each user who has the workbook open as a shared list. - A 1-based, two-dimensional array that provides information about each user who has the workbook open as a shared list. - - - Gets a value that indicates whether the Visual Basic for Applications project for the workbook has been digitally signed. - true if the Visual Basic for Applications project for the workbook has been digitally signed; otherwise, false. - - - Gets the virtual Microsoft.Vbe.Interop.VBProject project that is in the workbook. - The virtual Microsoft.Vbe.Interop.VBProject project that is in the workbook. - - - Gets the associated with the workbook. - The associated with the workbook. - - - Gets the collection, which contains workbook-level attributes used by Microsoft Office Excel when you save a document as a Web page or open a Web page. - The collection, which contains workbook-level attributes used by Excel when you save a document as a Web page or open a Web page. - - - Displays a preview of the workbook as it would look if saved as a Web page. - - - Occurs when any workbook window is activated. - - - Occurs when any workbook window is deactivated. - - - Occurs when any workbook window is resized. - - - Gets a collection that represents all the windows in the workbook. - A collection that represents all the windows in the workbook. - - - Gets a collection that represents all the worksheets in the workbook. - A collection that represents all the worksheets in the workbook. - - - Gets or sets the write password of a workbook. - The write password of a workbook. - - - Gets a value that indicates whether the workbook is write-reserved. - true if the workbook is write-reserved; otherwise, false. - - - Gets the name of the user who currently has write permission for the workbook. - The name of the user who currently has write permission for the workbook. - - - Imports an XML data file into the current workbook. - One of the values. - A uniform resource locator (URL) or a uniform naming convention (UNC) path to an XML data file. - The schema map to apply when importing the file. - If a value is not specified for the parameter, then this parameter specifies whether or not to overwrite data that has been mapped to the schema map specified in the parameter. Set to true to overwrite the data or false to append the new data to the existing data. The default value is true. If a value is specified for the parameter, then this parameter specifies whether or not to overwrite existing data. Set to true to overwrite existing data or false to cancel the import if data would be overwritten. The default value is true. - The data will be imported into a new XML list at the specified. - - - Imports an XML data stream that has been previously loaded into memory. - One of the values. - The data to import. - The schema map to apply when importing the file. - If a value is not specified for the parameter, then this parameter specifies whether or not to overwrite data that has been mapped to the schema map specified in the parameter. Set to true to overwrite the data or false to append the new data to the existing data. The default value is true. If a value is specified for the parameter, then this parameter specifies whether or not to overwrite existing data. Set to true to overwrite existing data or false to cancel the import if data would be overwritten. The default value is true. - The data will be imported into a new XML list in the specified. - - - Gets an collection that represents the schema maps that have been added to the workbook. - An collection that represents the schema maps that have been added to the workbook. - - - Gets an collection that represents the XML namespaces contained in the workbook. - An collection that represents the XML namespaces contained in the workbook. - - - Provides the base class for the Sheetn classes in document-level projects for Microsoft Office Excel. - - - - - - - - - - - - Occurs when the worksheet is activated. - - - Gets a object that represents the Microsoft Office Excel application. - A that represents the Excel application. - - - - - - Gets a that provides information about filtered lists on the worksheet if filtering is enabled. Gets null if filtering is off. - A that provides information about filtered lists on the worksheet if filtering is enabled; otherwise, null. - - - Gets or sets a value that indicates whether filtering is currently enabled on the worksheet (that is, whether the filter drop-down arrows are currently displayed). - true if filtering is currently enabled on the worksheet; otherwise, false. - This property is set to true. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs when the worksheet is double-clicked, before the default double-click action. - - - Occurs when the worksheet is right-clicked, before the default right-click action. - - - - - - - - - Occurs after the worksheet is recalculated. - - - Calculates the formulas in the worksheet. - - - Gets a object that represents all the cells on the worksheet (not just the cells that are currently in use). - A object that represents all the cells on the worksheet (not just the cells that are currently in use). - - - Occurs when something changes in the cells. - - - Gets an object that represents either a single embedded chart (a ) or a collection of all the embedded charts (a ) on the worksheet. - An object that represents either a single embedded chart (a ) or a collection of all the embedded charts (a ) on the worksheet. - The name or number of the chart. This argument can be an array, to specify more than one chart. - - - - - - - - - - - - Circles invalid entries on the worksheet. - - - Gets a object that represents the range containing the first circular reference on the sheet, or gets null if there is no circular reference on the sheet. - A object that represents the range containing the first circular reference on the sheet; null if there is no circular reference on the sheet. - - - Clears the tracer arrows from the worksheet. Tracer arrows are added by using the auditing feature. - - - Clears circles from invalid entries on the worksheet. - - - - Gets a object that represents one or more columns on the worksheet. - A object that represents one or more columns on the worksheet. - - - Gets a collection that represents all the comments for the worksheet. - A collection that represents all the comments for the worksheet. - - - Gets the function code used for the current consolidation. - One of the values. - - - Gets a three-element of consolidation options. - A three-element of consolidation options. - - - Gets an of strings that name the source sheets and ranges for the worksheet's current consolidation. - An of string values that name the source sheets and ranges for the worksheet's current consolidation; null if there is no consolidation on the sheet. - - - Gets the collection of managed controls that are contained on the worksheet. - A that contains all the managed controls on the worksheet. - - - Copies the worksheet to another location in the workbook. - The sheet before which the copied sheet will be placed. You cannot specify if you specify . - The sheet after which the copied sheet will be placed. You cannot specify if you specify . - - - Gets a value that indicates the application in which the worksheet was created. - If the worksheet was created in Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. - - - Gets a object representing the identifier information associated with a worksheet. - A object representing the identifier information associated with a worksheet. - - - - - Occurs when the worksheet loses focus. - - - Deletes the underlying object, but does not delete the host item. It is highly recommended that this method not be used. - - - - Gets or sets a value that indicates whether page breaks (both automatic and manual) on the worksheet are displayed. - true if page breaks (both automatic and manual) on the worksheet are displayed; otherwise, false. - - - Gets or sets a value that indicates whether the worksheet is displayed from right to left instead of from left to right. - true if the worksheet is displayed from right to left instead of from left to right; false if the object is displayed from left to right. - - - Releases all resources used by the current instance of the class. - - - - - - - - - - - - - Gets or sets a value that indicates whether AutoFilter arrows are enabled when user-interface-only protection is turned on. - true if AutoFilter arrows are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or set a value that indicates whether Microsoft Office Excel automatically recalculates the worksheet when necessary. - true if Excel automatically recalculates the worksheet when necessary; otherwise, false. - - - Gets or sets a value that determines whether conditional formats will occur automatically. - true if evaluation of conditional formats will occur automatically; otherwise, false. The default is true. - - - Gets or sets a value that indicates whether outlining symbols are enabled when user-interface-only protection is turned on. - true if outlining symbols are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or sets a value that indicates whether PivotTable controls and actions are enabled when user-interface-only protection is turned on. - true if PivotTable controls and actions are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or sets a value indicating which cells can be selected on the sheet. - One of the values. - - - - Converts a Microsoft Office Excel name to an object or a value. - The name of the object, using the naming convention of Excel. - - - Exports to a file of the specified format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the workbook in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this argument is omitted, exporting starts at the first page. - The number of the last page to export. If this argument is omitted, exporting ends with the last page. - true to display the file in the viewer immediately; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the workbook to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - Gets a value that indicates whether the worksheet is actively filtering data. - true if the worksheet is actively filtering data; otherwise, false. - - - - Occurs when you click any hyperlink on a worksheet. - - - Gets a object that represents a cell or a range of cells. Use the property instead of this method. - A that represents a cell or a range of cells. - The name of the range in A1-style notation in the language of the application. It can include the range operator (a colon), the intersection operator (a space), or the union operator (a comma). It can also include dollar signs, but they are ignored. You can use a local defined name in any part of the range. If you use a name, the name is assumed to be in the language of the application. This parameter is required. - The cell in the lower-right corner of the range. Can be a that contains a single cell, an entire column, an entire row, or it can be a string that names a single cell in the language of the application. This parameter is optional. - - - Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the worksheet. - An object in a document-level customization that can be used by VBA code in the worksheet. - - - - - - - - - - Gets an collection that represents the horizontal page breaks on the sheet. - An collection that represents the horizontal page breaks on the sheet. - - - Gets a collection that represents the hyperlinks for the range or worksheet. - A collection that represents the hyperlinks for the range or worksheet. - - - Gets the index number of the worksheet within the collection of worksheets. - The index number of the worksheet within the collection of worksheets. - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - - - - - - - - - - - Gets a collection of objects in the worksheet. - The collection for the worksheet. - - - Gets an e-mail header for the worksheet. - An e-mail header for the worksheet. - - - - - - - - - - - - Moves the worksheet to another location in the workbook. - The sheet before which the moved sheet will be placed. You cannot specify if you specify . - The sheet after which the moved sheet will be placed. You cannot specify if you specify . - - - Gets or sets the name of the worksheet. - The name of the worksheet. - - - Gets a collection that represents all the worksheet-specific names (names defined with the "WorksheetName!" prefix). - A collection that represents all the worksheet-specific names (names defined with the "WorksheetName!" prefix). - - - Gets a that represents the next sheet. - A that represents the next sheet; null if the current worksheet is the last sheet in the workbook. - - - Gets an object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the worksheet. - An object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the worksheet. - The name or number of the OLE object. - - - - - - - - - - - - - - Gets an that represents the outline for the worksheet. - An that represents the outline for the worksheet. - - - - - - Gets a that contains all the page setup settings for the worksheet. - A that contains all the page setup settings for the worksheet. - - - Gets the parent object for the worksheet. - The parent object for the worksheet. - - - Pastes the contents of the Clipboard onto the worksheet. - A object that specifies where the Clipboard contents should be pasted. If this argument is omitted, the current selection is used. This argument can be specified only if the contents of the Clipboard can be pasted into a range. If this argument is specified, the argument cannot be used. - true to establish a link to the source of the pasted data. If this argument is specified, the argument cannot be used. The default value is false. - - - Pastes the contents of the Clipboard onto the worksheet, using a specified format. Use this method to paste data from other applications or to paste data in a specific format. - A string that specifies the Clipboard format of the data. Common format strings include "HTML", "Bitmap", "Hyperlink", "Unicode Text", and "Text". - true to establish a link to the source of the pasted data. If the source data is not suitable for linking or the source application does not support linking, this parameter is ignored. The default value is false. - true to display the pasted object as an icon. The default value is false. - The name of the file that contains the icon to use if is true. - The index number of the icon within the icon file. - The text label of the icon. - true to remove all formatting, hyperlinks, and images from HTML; false to paste HTML as is. The default value is false. - - - - - - Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas). This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are applied to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are committed against the OLAP data source for a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes to a PivotTable are discarded. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after changes to a PivotTable. This event can be used only in Excel 2010 projects. - This property is used in an Excel 2007 project. - - - Gets an object that represents either a single PivotTable report (a object) or a collection of all the PivotTable reports (a object) on a worksheet. - An object that represents either a single PivotTable report (a object) or a collection of all the PivotTable reports (a object) on a worksheet. - The name or number of the report. - - - Occurs after a PivotTable report is updated on a worksheet. - - - Creates a object. - The object. - An value. The source of the report data. - The data for the new report. Can be a object, an array of ranges, or a text constant that represents the name of another report. For an external database, is an array of strings containing the SQL query string, where each element is up to 255 characters in length. You should use the argument to specify the ODBC connection string. For compatibility with earlier versions of Excel, can be a two-element array. The first element is the connection string specifying the ODBC source for the data. The second element is the SQL query string used to get the data. If you specify , you must also specify . If the active cell is inside the range, you must specify as well. - A object specifying where the report should be placed on the worksheet. If this argument is omitted, the report is placed at the active cell. - The name of the new report. - true to show grand totals for rows in the report. - true to show grand totals for columns in the report. - true to save data with the report; false to save only the report definition. - true to have Microsoft Office Excel automatically format the report when it is refreshed or when fields are moved. - Valid only if is . true to have Excel create a page field for the consolidation. If is false, you must create the page field or fields. - Not used by Excel. - true to have Excel perform queries for the report asynchronously (in the background). The default value is false. - true to optimize the PivotTable cache when it is constructed. The default value is false. - The order in which page fields are added to the PivotTable report’s layout. Can be one of the following constants: or . The default value is . - The number of page fields in each column or row in the PivotTable report. The default value is 0 (zero). - true to create a PivotTable cache that contains all records from the external database; this cache can be very large. If is false, you can set some of the fields as server-based page fields before the data is actually read. - A string that contains ODBC settings that allow Excel to connect to an ODBC data source. The connection string has the form "ODBC;<connection string>". This argument overrides any previous setting for the object’s property. - - - Gets a that represents the previous sheet. - A that represents the previous sheet; null if the current worksheet is the first sheet in the workbook. - - - Gets the number of comment pages that will be printed for the current worksheet. This property can be used only in Excel 2010 projects. - The number of comment pages that will be printed for the current worksheet. - This property is used in an Excel 2007 project. - - - Prints the worksheet. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object; false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the worksheet. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - true to ignore print areas and print the entire workbook; otherwise, false. - - - Shows a preview of the worksheet as it would look when printed. - - - - Protects a worksheet so that it cannot be modified. - A case-sensitive password for the worksheet. If this argument is omitted, you can unprotect the worksheet without using a password. Otherwise, you must specify the password to unprotect the worksheet. If you forget the password, you cannot unprotect the worksheet. It is a good idea to keep a list of your passwords and their corresponding document names in a safe place. - true to protect shapes. The default value is false. - true to protect contents in the locked cells. The default value is true. - true to protect scenarios. The default value is true. - true to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface. - true allows the user to format any cell on a protected worksheet. The default value is false. - true allows the user to format any column on a protected worksheet. The default value is false. - true allows the user to format any row on a protected worksheet. The default value is false. - true allows the user to insert columns on the protected worksheet. The default value is false. - true allows the user to insert rows on the protected worksheet. The default value is false. - true allows the user to insert hyperlinks on the worksheet. The default value is false. - true allows the user to delete columns on the protected worksheet, where every cell in the column to be deleted is unlocked. The default value is false. - true allows the user to delete rows on the protected worksheet, where every cell in the row to be deleted is unlocked. The default value is false. - true allows the user to sort on the protected worksheet. Every cell in the sort range must be unlocked or unprotected. The default value is false. - true allows the user to set filters on the protected worksheet. Users can change filter criteria but can not enable or disable an autofilter. Users can set filters on an existing autofilter. The default value is false. - true allows the user to use pivot table reports on the protected worksheet. The default value is false. - - - Gets a value that indicates whether the contents of the worksheet (the individual cells) are protected. - true if the contents of the sheet are protected; otherwise, false. - - - Gets a value that indicates whether shapes are protected. - true if shapes are protected; otherwise, false. - - - Gets a object that represents the protection options of the worksheet. - A object that represents the protection options of the worksheet. - - - Gets a value that indicates whether user interface-only protection is turned on. - true if user interface-only protection is turned on; otherwise, false. - - - Gets a value that indicates whether worksheet scenarios are protected. - true if the worksheet scenarios are protected; otherwise, false. - - - Gets the collection that represents all the query tables on the worksheet. - The collection that represents all the query tables on the worksheet. - - - Gets a object that represents a cell or a range of cells. - A that represents a cell or a range of cells. - - - - - - Resets all page breaks on the specified worksheet. - - - Gets a object that represents one or more rows on the worksheet. - A object that represents one or more rows on the worksheet. - - - Saves changes to the worksheet in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - The file format to use when you save the file. For a list of valid choices, see the property. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings); false (default) saves files against the language of Visual Basic for Applications (VBA). - - - Gets an object that represents either a single scenario (a object) or a collection of scenarios (a object) on the worksheet. - An object that represents either a single scenario (a object) or a collection of scenarios (a object) on the worksheet. - The name or number of the scenario. Use an array to specify more than one scenario. - - - Gets the collection, which contains objects representing blocks of script or code in the worksheet when it is saved as a Web page. - The collection, which contains objects representing blocks of script or code in the worksheet when it is saved as a Web page. - - - Gets or sets the range where scrolling is allowed, as an A1-style range reference. - The range where scrolling is allowed, as an A1-style range reference. - - - - - - Selects the worksheet. - true to remove the current selection and select the worksheet instead; false to extend the current selection to include any previously selected objects and the worksheet. - - - Occurs when the selection changes on a worksheet. - - - Sets the background graphic for the worksheet. - The name of the graphic file. - - - Gets a object that represents all the shapes on the worksheet. - A object that represents all the shapes on the worksheet. - - - Makes all rows of the currently filtered list visible. If AutoFilter is in use, this method changes the arrows to "All." - - - Displays the data form associated with the worksheet. - - - Occurs when the worksheet host item shuts down. - - - - Gets a object representing the collection of smart tags for the worksheet. - A object representing the collection of smart tags for the worksheet. - - - Gets the sorted values in the current worksheet. - The sorted values in the current worksheet. - - - - - - Gets the standard (default) height of all the rows in the worksheet, in points. - The standard (default) height of all the rows in the worksheet, in points. - - - Gets or sets the standard (default) width of all the columns in the worksheet. - The standard (default) width of all the columns in the worksheet. - - - - Gets a for the worksheet. - A for the worksheet. - - - Gets or sets the object that contains data about the worksheet. - An object that contains data about the worksheet. - - - - - - Gets or sets a value that indicates whether Microsoft Office Excel uses Lotus 1-2-3 expression evaluation rules for the worksheet. - true if Excel uses Lotus 1-2-3 expression evaluation rules for the worksheet; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel uses Lotus 1-2-3 formula entry rules for the worksheet. - true if Excel uses Lotus 1-2-3 formula entry rules for the worksheet; otherwise, false. - - - Gets the worksheet type. - One of the values. - - - Removes protection from the worksheet. This method has no effect if the worksheet is not protected. - The case-sensitive password to use to unprotect the worksheet. If the worksheet is not protected with a password, this argument is ignored. If you omit this argument for a worksheet that is protected with a password, you will be prompted for the password. - - - Gets a object that represents all the cells that have contained a value at any time. - A object that represents all the cells that have contained a value at any time. - - - Gets or sets a value that determines whether the object is visible. - One of the values. - - - Gets a collection that represents the vertical page breaks on the sheet. - A collection that represents the vertical page breaks on the sheet. - - - Gets a object that represents the cells mapped to a particular XPath. Gets null if the specified XPath has not been mapped to the worksheet, or if the mapped range is empty. - A object that represents the cells mapped to a particular XPath; null if the specified XPath has not been mapped to the worksheet, or if the mapped range is empty. - The XPath to query for. - A space-delimited string that contains the namespaces referenced in the XPath parameter. A run-time error is generated if one of the specified namespaces cannot be resolved. - An . Specify an XML map if you want to query for the XPath within a specific map. - - - Gets a object that represents the cells mapped to a particular XPath. Gets null if the specified XPath has not been mapped to the worksheet. - A object that represents the cells mapped to a particular XPath; null if the specified XPath has not been mapped to the worksheet. - The XPath to query for. - A space-delimited string that contains the namespaces referenced in the XPath parameter. A run-time error is generated if one of the specified namespaces cannot be resolved. - An . Specify an XML map if you want to query for the XPath within a specific map. - - - Represents a Windows Forms button that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms check box that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - - - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - - object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Processes Windows messages. - The Windows to process. - - - Gets the z-order position of the . - The z-order position of the . - - - Provides methods you can use to extend Microsoft Office Excel list objects by generating host controls for objects and by testing for the existence of the generated host controls. - - - Returns a host control that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host control that extends the functionality of the current object. - The native list object to extend. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host control that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host control that extends the functionality of the current object. - The native list object to extend. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host control has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host control has been created for the current object; otherwise, false. - The native list object to test. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host control has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host control has been created for the current object; otherwise, false. - The native list object to test. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Provides methods you can use to extend Microsoft Office Excel workbooks by generating host items for objects and by testing for the existence of the generated host items. - - - Returns a host item that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native workbook object to extend. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host item that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native workbook object to extend. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native workbook object to test. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native workbook object to test. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Provides methods you can use to extend Microsoft Office Excel worksheets by generating host items for objects and by testing for the existence of the generated host items. - - - Returns a host item that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native worksheet object to extend. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host item that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native worksheet object to extend. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native worksheet object to test. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native worksheet object to test. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - \ No newline at end of file diff --git a/bin/x86/Debug/glVersion.txt b/bin/x86/Debug/glVersion.txt index 48ef46c..9447e7f 100644 --- a/bin/x86/Debug/glVersion.txt +++ b/bin/x86/Debug/glVersion.txt Binary files differ diff --git a/Cyberpipe.suo b/Cyberpipe.suo index 968ef50..610c02a 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs index fdc20a0..f9b6cbb 100644 --- a/FrmAddFlagBatch.Designer.cs +++ b/FrmAddFlagBatch.Designer.cs @@ -30,19 +30,19 @@ { this.components = new System.ComponentModel.Container(); this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.labelX4 = new DevComponents.DotNetBar.LabelX(); - this.labelX5 = new DevComponents.DotNetBar.LabelX(); - this.labelX6 = new DevComponents.DotNetBar.LabelX(); - this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_file_select = new DevComponents.DotNetBar.ButtonX(); + this.combo_z_value = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_path = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.combo_model_name = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.txt_layer_name = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_layer_file = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.btn_imp = new DevComponents.DotNetBar.ButtonX(); this.groupPanel1.SuspendLayout(); this.SuspendLayout(); @@ -99,6 +99,155 @@ this.groupPanel1.TabIndex = 0; this.groupPanel1.Text = "导入信息"; // + // btn_file_select + // + this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_file_select.Location = new System.Drawing.Point(365, 12); + this.btn_file_select.Name = "btn_file_select"; + this.btn_file_select.Size = new System.Drawing.Size(49, 23); + this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_file_select.TabIndex = 8; + this.btn_file_select.Text = "选择"; + this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); + // + // combo_z_value + // + this.combo_z_value.DisplayMember = "Text"; + this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_z_value.FormattingEnabled = true; + this.combo_z_value.ItemHeight = 15; + this.combo_z_value.Location = new System.Drawing.Point(79, 198); + this.combo_z_value.Name = "combo_z_value"; + this.combo_z_value.Size = new System.Drawing.Size(281, 21); + this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_z_value.TabIndex = 7; + // + // combo_model_path + // + this.combo_model_path.DisplayMember = "Text"; + this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_path.FormattingEnabled = true; + this.combo_model_path.ItemHeight = 15; + this.combo_model_path.Location = new System.Drawing.Point(79, 156); + this.combo_model_path.Name = "combo_model_path"; + this.combo_model_path.Size = new System.Drawing.Size(281, 21); + this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_path.TabIndex = 7; + // + // combo_model_name + // + this.combo_model_name.DisplayMember = "Text"; + this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.combo_model_name.FormattingEnabled = true; + this.combo_model_name.ItemHeight = 15; + this.combo_model_name.Location = new System.Drawing.Point(79, 108); + this.combo_model_name.Name = "combo_model_name"; + this.combo_model_name.Size = new System.Drawing.Size(281, 21); + this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.combo_model_name.TabIndex = 7; + // + // txt_layer_name + // + // + // + // + this.txt_layer_name.Border.Class = "TextBoxBorder"; + this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_name.Location = new System.Drawing.Point(79, 60); + this.txt_layer_name.Name = "txt_layer_name"; + this.txt_layer_name.Size = new System.Drawing.Size(281, 21); + this.txt_layer_name.TabIndex = 6; + // + // txt_layer_file + // + this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; + // + // + // + this.txt_layer_file.Border.Class = "TextBoxBorder"; + this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_layer_file.Location = new System.Drawing.Point(79, 13); + this.txt_layer_file.Name = "txt_layer_file"; + this.txt_layer_file.ReadOnly = true; + this.txt_layer_file.Size = new System.Drawing.Size(281, 21); + this.txt_layer_file.TabIndex = 5; + // + // labelX6 + // + this.labelX6.AutoSize = true; + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.Class = ""; + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Location = new System.Drawing.Point(10, 203); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(50, 18); + this.labelX6.TabIndex = 4; + this.labelX6.Text = "Z坐标值"; + // + // labelX5 + // + this.labelX5.AutoSize = true; + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.Class = ""; + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Location = new System.Drawing.Point(10, 161); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(56, 18); + this.labelX5.TabIndex = 3; + this.labelX5.Text = "图层编号"; + // + // labelX4 + // + this.labelX4.AutoSize = true; + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.Class = ""; + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Location = new System.Drawing.Point(10, 113); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(56, 18); + this.labelX4.TabIndex = 2; + this.labelX4.Text = "模型名称"; + // + // labelX3 + // + this.labelX3.AutoSize = true; + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.Class = ""; + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Location = new System.Drawing.Point(10, 66); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(56, 18); + this.labelX3.TabIndex = 1; + this.labelX3.Text = "图层名称"; + // + // labelX2 + // + this.labelX2.AutoSize = true; + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.Class = ""; + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(10, 19); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(56, 18); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "图层文件"; + // // labelX1 // this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; @@ -116,159 +265,10 @@ this.labelX1.Text = "shp字段名要求是中文字段,入库后的字段名称和shp一致。标识器模型文件夹必须和程序exe在同一个目录下"; this.labelX1.WordWrap = true; // - // labelX2 - // - this.labelX2.AutoSize = true; - this.labelX2.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX2.BackgroundStyle.Class = ""; - this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX2.Location = new System.Drawing.Point(10, 19); - this.labelX2.Name = "labelX2"; - this.labelX2.Size = new System.Drawing.Size(50, 16); - this.labelX2.TabIndex = 0; - this.labelX2.Text = "图层文件"; - // - // labelX3 - // - this.labelX3.AutoSize = true; - this.labelX3.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX3.BackgroundStyle.Class = ""; - this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX3.Location = new System.Drawing.Point(10, 66); - this.labelX3.Name = "labelX3"; - this.labelX3.Size = new System.Drawing.Size(50, 16); - this.labelX3.TabIndex = 1; - this.labelX3.Text = "图层名称"; - // - // labelX4 - // - this.labelX4.AutoSize = true; - this.labelX4.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX4.BackgroundStyle.Class = ""; - this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX4.Location = new System.Drawing.Point(10, 113); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(50, 16); - this.labelX4.TabIndex = 2; - this.labelX4.Text = "模型名称"; - // - // labelX5 - // - this.labelX5.AutoSize = true; - this.labelX5.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX5.BackgroundStyle.Class = ""; - this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX5.Location = new System.Drawing.Point(10, 161); - this.labelX5.Name = "labelX5"; - this.labelX5.Size = new System.Drawing.Size(50, 16); - this.labelX5.TabIndex = 3; - this.labelX5.Text = "模型路径"; - // - // labelX6 - // - this.labelX6.AutoSize = true; - this.labelX6.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX6.BackgroundStyle.Class = ""; - this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX6.Location = new System.Drawing.Point(10, 203); - this.labelX6.Name = "labelX6"; - this.labelX6.Size = new System.Drawing.Size(44, 16); - this.labelX6.TabIndex = 4; - this.labelX6.Text = "Z坐标值"; - // - // txt_layer_file - // - this.txt_layer_file.BackColor = System.Drawing.SystemColors.Control; - // - // - // - this.txt_layer_file.Border.Class = "TextBoxBorder"; - this.txt_layer_file.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_file.Location = new System.Drawing.Point(79, 13); - this.txt_layer_file.Name = "txt_layer_file"; - this.txt_layer_file.ReadOnly = true; - this.txt_layer_file.Size = new System.Drawing.Size(281, 21); - this.txt_layer_file.TabIndex = 5; - // - // txt_layer_name - // - // - // - // - this.txt_layer_name.Border.Class = "TextBoxBorder"; - this.txt_layer_name.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txt_layer_name.Location = new System.Drawing.Point(79, 60); - this.txt_layer_name.Name = "txt_layer_name"; - this.txt_layer_name.Size = new System.Drawing.Size(281, 21); - this.txt_layer_name.TabIndex = 6; - // - // combo_model_name - // - this.combo_model_name.DisplayMember = "Text"; - this.combo_model_name.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_name.FormattingEnabled = true; - this.combo_model_name.ItemHeight = 15; - this.combo_model_name.Location = new System.Drawing.Point(79, 108); - this.combo_model_name.Name = "combo_model_name"; - this.combo_model_name.Size = new System.Drawing.Size(281, 21); - this.combo_model_name.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_name.TabIndex = 7; - // - // combo_model_path - // - this.combo_model_path.DisplayMember = "Text"; - this.combo_model_path.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_model_path.FormattingEnabled = true; - this.combo_model_path.ItemHeight = 15; - this.combo_model_path.Location = new System.Drawing.Point(79, 156); - this.combo_model_path.Name = "combo_model_path"; - this.combo_model_path.Size = new System.Drawing.Size(281, 21); - this.combo_model_path.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_model_path.TabIndex = 7; - // - // combo_z_value - // - this.combo_z_value.DisplayMember = "Text"; - this.combo_z_value.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.combo_z_value.FormattingEnabled = true; - this.combo_z_value.ItemHeight = 15; - this.combo_z_value.Location = new System.Drawing.Point(79, 198); - this.combo_z_value.Name = "combo_z_value"; - this.combo_z_value.Size = new System.Drawing.Size(281, 21); - this.combo_z_value.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.combo_z_value.TabIndex = 7; - // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; // - // btn_file_select - // - this.btn_file_select.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btn_file_select.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_file_select.Location = new System.Drawing.Point(365, 12); - this.btn_file_select.Name = "btn_file_select"; - this.btn_file_select.Size = new System.Drawing.Size(49, 23); - this.btn_file_select.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btn_file_select.TabIndex = 8; - this.btn_file_select.Text = "选择"; - this.btn_file_select.Click += new System.EventHandler(this.btn_file_select_Click); - // // btn_imp // this.btn_imp.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs index 4a959c1..ac361fe 100644 --- a/FrmAddFlagBatch.cs +++ b/FrmAddFlagBatch.cs @@ -79,7 +79,7 @@ } combo_model_name.SelectedItem = "编号"; combo_z_value.SelectedItem = "标识器埋深"; - combo_model_path.SelectedItem = "模型路径"; + combo_model_path.SelectedItem = "图层编号"; } } } @@ -202,7 +202,7 @@ //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 model.AltitudeMode = EnumAltitudeMode.RelativeToGround; - model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\雨篦工井模型\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); feature.Geometry = model; diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs index 205dd3b..80001d2 100644 --- a/FrmFlagEdits.Designer.cs +++ b/FrmFlagEdits.Designer.cs @@ -42,18 +42,6 @@ this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); this.textBoxbz = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX15 = new DevComponents.DotNetBar.LabelX(); - this.textBoxjlzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX14 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgjl = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX13 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgzrr = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX12 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsgdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX10 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjrxm = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX8 = new DevComponents.DotNetBar.LabelX(); - this.textBoxsjdw = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX7 = new DevComponents.DotNetBar.LabelX(); this.textBoxqsdw = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.textBoxXgc = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -65,7 +53,7 @@ // this.btn_ok.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btn_ok.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btn_ok.Location = new System.Drawing.Point(602, 307); + this.btn_ok.Location = new System.Drawing.Point(603, 208); this.btn_ok.Name = "btn_ok"; this.btn_ok.Size = new System.Drawing.Size(75, 23); this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -211,18 +199,6 @@ this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.groupPanel1.Controls.Add(this.textBoxbz); this.groupPanel1.Controls.Add(this.labelX15); - this.groupPanel1.Controls.Add(this.textBoxjlzrr); - this.groupPanel1.Controls.Add(this.labelX14); - this.groupPanel1.Controls.Add(this.textBoxsgjl); - this.groupPanel1.Controls.Add(this.labelX13); - this.groupPanel1.Controls.Add(this.textBoxsgzrr); - this.groupPanel1.Controls.Add(this.labelX12); - this.groupPanel1.Controls.Add(this.textBoxsgdw); - this.groupPanel1.Controls.Add(this.labelX10); - this.groupPanel1.Controls.Add(this.textBoxsjrxm); - this.groupPanel1.Controls.Add(this.labelX8); - this.groupPanel1.Controls.Add(this.textBoxsjdw); - this.groupPanel1.Controls.Add(this.labelX7); this.groupPanel1.Controls.Add(this.textBoxqsdw); this.groupPanel1.Controls.Add(this.labelX5); this.groupPanel1.Controls.Add(this.textBoxXgc); @@ -240,7 +216,7 @@ this.groupPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.groupPanel1.Location = new System.Drawing.Point(0, 0); this.groupPanel1.Name = "groupPanel1"; - this.groupPanel1.Size = new System.Drawing.Size(733, 290); + this.groupPanel1.Size = new System.Drawing.Size(708, 190); // // // @@ -282,7 +258,7 @@ // this.textBoxbz.Border.Class = "TextBoxBorder"; this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Location = new System.Drawing.Point(326, 120); this.textBoxbz.Name = "textBoxbz"; this.textBoxbz.Size = new System.Drawing.Size(128, 21); this.textBoxbz.TabIndex = 32; @@ -295,168 +271,12 @@ // this.labelX15.BackgroundStyle.Class = ""; this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX15.Location = new System.Drawing.Point(245, 216); + this.labelX15.Location = new System.Drawing.Point(245, 120); this.labelX15.Name = "labelX15"; this.labelX15.Size = new System.Drawing.Size(75, 23); this.labelX15.TabIndex = 31; this.labelX15.Text = "备注"; // - // textBoxjlzrr - // - // - // - // - this.textBoxjlzrr.Border.Class = "TextBoxBorder"; - this.textBoxjlzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxjlzrr.Location = new System.Drawing.Point(102, 216); - this.textBoxjlzrr.Name = "textBoxjlzrr"; - this.textBoxjlzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxjlzrr.TabIndex = 30; - // - // labelX14 - // - this.labelX14.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX14.BackgroundStyle.Class = ""; - this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX14.Location = new System.Drawing.Point(18, 216); - this.labelX14.Name = "labelX14"; - this.labelX14.Size = new System.Drawing.Size(75, 23); - this.labelX14.TabIndex = 29; - this.labelX14.Text = "监理责任人"; - // - // textBoxsgjl - // - // - // - // - this.textBoxsgjl.Border.Class = "TextBoxBorder"; - this.textBoxsgjl.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgjl.Location = new System.Drawing.Point(547, 167); - this.textBoxsgjl.Name = "textBoxsgjl"; - this.textBoxsgjl.Size = new System.Drawing.Size(128, 21); - this.textBoxsgjl.TabIndex = 28; - // - // labelX13 - // - this.labelX13.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX13.BackgroundStyle.Class = ""; - this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX13.Location = new System.Drawing.Point(466, 167); - this.labelX13.Name = "labelX13"; - this.labelX13.Size = new System.Drawing.Size(75, 23); - this.labelX13.TabIndex = 27; - this.labelX13.Text = "施工监理"; - // - // textBoxsgzrr - // - // - // - // - this.textBoxsgzrr.Border.Class = "TextBoxBorder"; - this.textBoxsgzrr.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgzrr.Location = new System.Drawing.Point(326, 167); - this.textBoxsgzrr.Name = "textBoxsgzrr"; - this.textBoxsgzrr.Size = new System.Drawing.Size(128, 21); - this.textBoxsgzrr.TabIndex = 26; - // - // labelX12 - // - this.labelX12.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX12.BackgroundStyle.Class = ""; - this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX12.Location = new System.Drawing.Point(245, 167); - this.labelX12.Name = "labelX12"; - this.labelX12.Size = new System.Drawing.Size(75, 23); - this.labelX12.TabIndex = 25; - this.labelX12.Text = "施工责任人"; - // - // textBoxsgdw - // - // - // - // - this.textBoxsgdw.Border.Class = "TextBoxBorder"; - this.textBoxsgdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsgdw.Location = new System.Drawing.Point(103, 167); - this.textBoxsgdw.Name = "textBoxsgdw"; - this.textBoxsgdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsgdw.TabIndex = 24; - // - // labelX10 - // - this.labelX10.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX10.BackgroundStyle.Class = ""; - this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX10.Location = new System.Drawing.Point(18, 167); - this.labelX10.Name = "labelX10"; - this.labelX10.Size = new System.Drawing.Size(75, 23); - this.labelX10.TabIndex = 23; - this.labelX10.Text = "施工单位"; - // - // textBoxsjrxm - // - // - // - // - this.textBoxsjrxm.Border.Class = "TextBoxBorder"; - this.textBoxsjrxm.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjrxm.Location = new System.Drawing.Point(547, 120); - this.textBoxsjrxm.Name = "textBoxsjrxm"; - this.textBoxsjrxm.Size = new System.Drawing.Size(128, 21); - this.textBoxsjrxm.TabIndex = 20; - // - // labelX8 - // - this.labelX8.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX8.BackgroundStyle.Class = ""; - this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX8.Location = new System.Drawing.Point(466, 120); - this.labelX8.Name = "labelX8"; - this.labelX8.Size = new System.Drawing.Size(75, 23); - this.labelX8.TabIndex = 19; - this.labelX8.Text = "设计人姓名"; - // - // textBoxsjdw - // - // - // - // - this.textBoxsjdw.Border.Class = "TextBoxBorder"; - this.textBoxsjdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxsjdw.Location = new System.Drawing.Point(326, 120); - this.textBoxsjdw.Name = "textBoxsjdw"; - this.textBoxsjdw.Size = new System.Drawing.Size(128, 21); - this.textBoxsjdw.TabIndex = 18; - // - // labelX7 - // - this.labelX7.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.labelX7.BackgroundStyle.Class = ""; - this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.labelX7.Location = new System.Drawing.Point(251, 120); - this.labelX7.Name = "labelX7"; - this.labelX7.Size = new System.Drawing.Size(75, 23); - this.labelX7.TabIndex = 17; - this.labelX7.Text = "设计单位"; - // // textBoxqsdw // // @@ -513,7 +333,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(733, 356); + this.ClientSize = new System.Drawing.Size(708, 242); this.Controls.Add(this.btn_ok); this.Controls.Add(this.groupPanel1); this.DoubleBuffered = true; @@ -543,22 +363,10 @@ private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxXgc; private DevComponents.DotNetBar.LabelX labelX4; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjdw; - private DevComponents.DotNetBar.LabelX labelX7; private DevComponents.DotNetBar.Controls.TextBoxX textBoxqsdw; private DevComponents.DotNetBar.LabelX labelX5; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgzrr; - private DevComponents.DotNetBar.LabelX labelX12; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgdw; - private DevComponents.DotNetBar.LabelX labelX10; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsjrxm; - private DevComponents.DotNetBar.LabelX labelX8; private DevComponents.DotNetBar.Controls.TextBoxX textBoxbz; private DevComponents.DotNetBar.LabelX labelX15; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxjlzrr; - private DevComponents.DotNetBar.LabelX labelX14; - private DevComponents.DotNetBar.Controls.TextBoxX textBoxsgjl; - private DevComponents.DotNetBar.LabelX labelX13; } } \ No newline at end of file diff --git a/FrmFlagEdits.cs b/FrmFlagEdits.cs index b830ce4..5fee016 100644 --- a/FrmFlagEdits.cs +++ b/FrmFlagEdits.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; @@ -21,8 +18,7 @@ public event Handle refresh; public FrmFlagEdits(string id, string flagid, string flagno, string flagtype, - string deep, string street, string gc, string belongComp, string designComp, - string designer, string workComp, string worker, string monitorComp, string monitor, string remark) + string deep, string street, string gc, string belongComp, string remark) { InitializeComponent(); this.id = id; @@ -33,22 +29,28 @@ txt_deep.Text = deep;//埋深 txt_street.Text = street;//所属道路 textBoxqsdw.Text = belongComp;//权属单位 + /* textBoxsjdw.Text = designComp;//设计单位 textBoxsjrxm.Text = designer; textBoxsgdw.Text = workComp; textBoxsgzrr.Text = worker; textBoxsgjl.Text = monitorComp; textBoxjlzrr.Text = monitor; + * */ textBoxbz.Text = remark; - } private void btn_ok_Click(object sender, EventArgs e) { try { + DialogResult dr = MessageBox.Show("请确定是否进行编辑操作", "确认", MessageBoxButtons.YesNo); + if (dr == DialogResult.No) + { + Close(); + return; + } double outer; - if (!double.TryParse(txt_deep.Text.Trim(), out outer)) { MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -63,12 +65,14 @@ "t.标识器埋深 =" + txt_deep.Text.Trim() + "," + "t.所属道路 = '" + txt_street.Text.Trim() + "'," + "t.权属单位 = '" + textBoxqsdw.Text.Trim() + "'," + + /* "t.设计单位 = '" + textBoxsjdw.Text.Trim() + "'," + "t.设计人姓名 = '" + textBoxsjrxm.Text.Trim() + "'," + "t.施工单位 = '" + textBoxsgdw.Text.Trim() + "'," + "t.施工责任人 = '" + textBoxsgzrr.Text.Trim() + "'," + "t.施工监理 = '" + textBoxsgjl.Text.Trim() + "'," + "t.监理责任人 = '" + textBoxjlzrr.Text.Trim() + "'," + + * */ "t.备注 = '" + textBoxbz.Text.Trim() + "'" + "where t.LSSYS_ID =" + id; OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); @@ -83,7 +87,6 @@ MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs index f8d64a8..e2cf211 100644 --- a/FrmFlagManagers.Designer.cs +++ b/FrmFlagManagers.Designer.cs @@ -63,7 +63,7 @@ // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "查看位置"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // @@ -127,6 +127,7 @@ // this.btn_add_menu.Name = "btn_add_menu"; this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Visible = false; this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); // // winGridViewPager1 @@ -142,7 +143,6 @@ this.winGridViewPager1.PrintTitle = ""; this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); this.winGridViewPager1.TabIndex = 9; - //this.winGridViewPager1.Load += new System.EventHandler(this.winGridViewPager1_Load); // // FrmFlagManagers // diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs index c792772..ec08749 100644 --- a/FrmFlagManagers.cs +++ b/FrmFlagManagers.cs @@ -1,21 +1,13 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; using GeoScene.Globe; using GeoScene.Data; using GeoScene.Engine; using System.IO; -using System.Reflection; using System.Data.OracleClient; -using WHC.Pager.WinControl; -using System.Threading; -using System.Runtime.InteropServices; namespace Cyberpipe { @@ -25,95 +17,80 @@ int maxPageIndex = 20; public static bool IS_OPEN = false; int rows = 0; - public static GeoScene.Engine.GSODataSource ds = null; + public static GSODataSource ds = null; TreeNode layerManagerNode = null; - string LSSYS_ID_VALUE = "标识器自增编号";//LSSYS_ID的显示名称,改动唯一入口,不能含有空格等符号 + string LSSYS_ID_VALUE = "标识器自增编号"; + public FrmFlagManagers(GSOGlobeControl _globeControl1) { - this.globeControl1 = _globeControl1; + globeControl1 = _globeControl1; InitializeComponent(); - winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); - this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 - this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + winGridViewPager1.OnPageChanged += winGridViewPager1_OnPageChanged; + winGridViewPager1.OnEditSelected += winGridViewPager1_OnEditSelected;//属性编辑 + winGridViewPager1.OnDeleteSelected += winGridViewPager1_OnDeleteSelected;//标识器报废 - - this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); - this.winGridViewPager1.OnEndExport += new EventHandler(pager1_OnEndExport); - //winGridViewPager1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells + winGridViewPager1.OnStartExport += pager1_OnStartExport; winGridViewPager1.dataGridView1.MultiSelect = false; - - } - - void pager1_OnEndExport(object sender, EventArgs e) - { - } void pager1_OnStartExport(object sender, EventArgs e) { - int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string where = GetSql(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, where).Tables[0]; - this.winGridViewPager1.AllToExport = table; + winGridViewPager1.AllToExport = table; } - - /// /// 初始化分页表格 /// - private void initlizeDatagrid() + private void InitlizeDatagrid() { - //控制表格显示的列,以及每一列要显示的列名 - this.winGridViewPager1.Dock = DockStyle.Fill; - this.winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; - this.winGridViewPager1.AddColumnAlias("编号", "编号"); - this.winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); - this.winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); - this.winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); - this.winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); - this.winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); - this.winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); - this.winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); - this.winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); - this.winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); - this.winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); - this.winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); - this.winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); - this.winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); - this.winGridViewPager1.AddColumnAlias("备注", "备注"); + winGridViewPager1.Dock = DockStyle.Fill; + winGridViewPager1.dataGridView1.Dock = DockStyle.Fill; + winGridViewPager1.AddColumnAlias("编号", "编号"); + winGridViewPager1.AddColumnAlias("标识器ID号", "标识器ID号"); + winGridViewPager1.AddColumnAlias("标识器型号", "标识器型号"); + winGridViewPager1.AddColumnAlias("地面高程", "地面高程(米)"); + winGridViewPager1.AddColumnAlias("标识器埋深", "标识器埋深(米)"); + winGridViewPager1.AddColumnAlias("所属道路", "所属道路"); + winGridViewPager1.AddColumnAlias("使用状态", "使用状态"); + winGridViewPager1.AddColumnAlias("权属单位", "权属单位"); + /* + winGridViewPager1.AddColumnAlias("设计单位", "设计单位"); + winGridViewPager1.AddColumnAlias("设计人姓名", "设计人姓名"); + winGridViewPager1.AddColumnAlias("施工单位", "施工单位"); + winGridViewPager1.AddColumnAlias("施工责任人", "施工责任人"); + winGridViewPager1.AddColumnAlias("施工监理", "施工监理"); + winGridViewPager1.AddColumnAlias("监理责任人", "监理责任人"); + * */ + winGridViewPager1.AddColumnAlias("备注", "备注"); - this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; - this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; - + //winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,备注"; + winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //隐藏右键功能按钮 - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[4].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[5].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[6].Visible = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[7].Visible = false; - //winGridViewPager1.dataGridView1.ContextMenuStrip.Items[1].Text = "定位查看"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[2].Text = "属性编辑"; winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; - winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + winGridViewPager1.AppendedMenu = contextMenuStrip1; //右键菜单宽度 winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; - //数据铺满表格 - //this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; //控制间隔的颜色 winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 //控制每页显示的最大数据量 winGridViewPager1.PagerInfo.RecordCount = rows; winGridViewPager1.PagerInfo.PageSize = maxPageIndex; winGridViewPager1.dataGridView1.Refresh(); - //winGridViewPager1.Controls.RemoveAt(1); - } /// /// 页面刷新 @@ -123,8 +100,8 @@ private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) { LoadData(); - } + /// /// 属性编辑 /// @@ -133,44 +110,46 @@ private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - string flagid = row.Cells["标识器ID号"].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string gc = row.Cells["地面高程"].Value.ToString(); - string flagtype = row.Cells["标识器型号"].Value.ToString(); - string deep = row.Cells["标识器埋深"].Value.ToString(); - string street = row.Cells["所属道路"].Value.ToString(); - string belongComp = row.Cells["权属单位"].Value.ToString(); - string designComp = row.Cells["设计单位"].Value.ToString(); - string designer = row.Cells["设计人姓名"].Value.ToString(); - string workComp = row.Cells["施工单位"].Value.ToString(); - string worker = row.Cells["施工责任人"].Value.ToString(); - string monitorComp = row.Cells["施工监理"].Value.ToString(); - string monitor = row.Cells["监理责任人"].Value.ToString(); - string remark = row.Cells["备注"].Value.ToString(); - - - FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, designComp, designer,workComp, worker, monitorComp, monitor, remark); - frm.refresh += new FrmFlagEdits.Handle(LoadData);//改变值的事件 - frm.ShowDialog(); - winGridViewPager1.Refresh(); - } - catch (Exception ex) - { - MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + string flagid = row.Cells["标识器ID号"].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string gc = row.Cells["地面高程"].Value.ToString(); + string flagtype = row.Cells["标识器型号"].Value.ToString(); + string deep = row.Cells["标识器埋深"].Value.ToString(); + string street = row.Cells["所属道路"].Value.ToString(); + string belongComp = row.Cells["权属单位"].Value.ToString(); + /* + string designComp = row.Cells["设计单位"].Value.ToString(); + string designer = row.Cells["设计人姓名"].Value.ToString(); + string workComp = row.Cells["施工单位"].Value.ToString(); + string worker = row.Cells["施工责任人"].Value.ToString(); + string monitorComp = row.Cells["施工监理"].Value.ToString(); + string monitor = row.Cells["监理责任人"].Value.ToString(); + * */ + string remark = row.Cells["备注"].Value.ToString(); + + /* + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, + designComp, designer, workComp, worker, monitorComp, monitor, remark); + */ + FrmFlagEdits frm = new FrmFlagEdits(id, flagid, flagno, flagtype, deep, street, gc, belongComp, remark); + + frm.refresh += LoadData; //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } /// @@ -181,35 +160,34 @@ private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) { DataGridView grid = sender as DataGridView; - if (grid != null && grid.SelectedRows.Count > 0) - { - DataGridViewRow row = grid.SelectedRows[0]; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - try - { - if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; - OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); - winGridViewPager1.dataGridView1.Rows.Remove(row); - winGridViewPager1.Refresh(); - MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - catch (Exception ex) - { - MessageBox.Show("标识器报废失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - else + if (grid == null || grid.SelectedRows.Count <= 0) { MessageBox.Show("没有选择记录", "提示"); + return; } - } + + DataGridViewRow row = grid.SelectedRows[0]; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + try + { + if (MessageBox.Show("确定废弃?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + return; + + string sql = "update 标识器 t set t.使用状态='废弃' where t.lssys_id=" + id; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + + winGridViewPager1.dataGridView1.Rows.Remove(row); + winGridViewPager1.Refresh(); + MessageBox.Show("标识器废弃成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("标识器报废失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void FrmFlagManagers_Load(object sender, EventArgs e) { - //string sql = "select 编号,标识器ID号,地面高程,标识器埋深,对象编号,对象类型,所属道路,使用状态 from 标识器"; bindComboxStreet(); LoadData(); @@ -220,64 +198,28 @@ { int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private void LoadData(int pageIndex) { string sqlData = GetSql(pageIndex); - initlizeDatagrid(); + InitlizeDatagrid(); DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; winGridViewPager1.DataSource = table.DefaultView; - //for (int i = 0; i < winGridViewPager1.dataGridView1.Rows.Count; i++) - //{ - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value != null) - // { - // double depth = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value); - // string str1 = String.Format("{0:F}", depth); - // winGridViewPager1.dataGridView1.Rows[i].Cells["标识器埋深"].Value = str1; - // } - // if (winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value != null) - // { - // double height = Convert.ToDouble(winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value); - // string str1 = String.Format("{0:F}", height); - // winGridViewPager1.dataGridView1.Rows[i].Cells["地面高程"].Value = str1; - // } - - //} winGridViewPager1.Refresh(); } private string GetSql() { - string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + - " where 1=1"; - - //string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,3) as 地面高程,round(标识器埋深,3) as 标识器埋深 ,所属道路,LSSYS_ID,X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - // "from 标识器 where 使用状态 = '使用中' order by 编号 "; + string sqlData = "select 编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中' order by 编号)b " + " where 1=1"; rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); @@ -290,10 +232,10 @@ int maxPage = pageIndex * maxPageIndex; string sqlCount = "select count(1) from 标识器 where 使用状态 = '使用中'"; - string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + - "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; + string sqlData = "select 编号,标识器ID号,标识器型号,round(地面高程,2) as 地面高程,round(标识器埋深,2) as 标识器埋深,所属道路,LSSYS_ID as " + + LSSYS_ID_VALUE + ",X坐标,Y坐标,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注 " + + "from (select t.*,rownum row_num from 标识器 t where 使用状态 = '使用中'"; - if (!String.IsNullOrEmpty(txt_no.Text.Trim())) { sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; @@ -315,8 +257,6 @@ private void bindComboxStreet() { ComboBoxItem item = new ComboBoxItem(); - //item.Text = ""; - //combo_street.Items.Add(item); String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; @@ -332,27 +272,9 @@ private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) { IS_OPEN = false; - //Thread downloadJob = new Thread(new ParameterizedThreadStart(doSave)); - //downloadJob.IsBackground = true; - //downloadJob.Start(e); - //globeControl1.Globe.Layers["标识器"].Save(); globeControl1.Globe.MemoryLayer.RemoveAllFeature(); globeControl1.Refresh(); - - } - private void doSave(Object e) - { - //保存标识器图层 - try - { - globeControl1.Globe.Layers["标识器"].Save(); - } - catch (Exception ex) - { - - } - } private void btn_query_Click(object sender, EventArgs e) @@ -419,7 +341,6 @@ { if (layer != null) { - GSODataset dataset = layer.Dataset; CheckDatasetGeoReference(layer.Dataset); TreeNode node = new TreeNode(); node.Tag = layer; @@ -448,7 +369,7 @@ DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; try { - this.Hide(); + Hide(); string id = row.Cells["编号"].Value.ToString(); FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 @@ -463,8 +384,9 @@ private void showThisForm() { - this.Show(); + Show(); } + /// /// 位置查看 /// @@ -472,64 +394,56 @@ /// private void toolStripMenuItem2_Click(object sender, EventArgs e) { - if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try { - DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; - try + WindowState = FormWindowState.Minimized; + string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); + string flagno = row.Cells["编号"].Value.ToString(); + string flagstreet = row.Cells["所属道路"].Value.ToString(); + double x = Convert.ToDouble(row.Cells["X坐标"].Value); + double y = Convert.ToDouble(row.Cells["Y坐标"].Value); + GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); + + string type = ""; + string pipe = ""; + string sql = "select t.标识器型号 from 标识器 t where t.编号='" + flagno + "'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow rr in table.Rows) { - this.WindowState = FormWindowState.Minimized; - //string id = row.Cells["LSSYS_ID"].Value.ToString(); - string id = row.Cells[LSSYS_ID_VALUE].Value.ToString(); - string flagno = row.Cells["编号"].Value.ToString(); - string flagstreet = row.Cells["所属道路"].Value.ToString(); - double x = Convert.ToDouble(row.Cells["X坐标"].Value); - double y = Convert.ToDouble(row.Cells["Y坐标"].Value); - GSOFeature flagFeature = globeControl1.Globe.Layers.GetLayerByCaption("标识器").GetFeatureByID(int.Parse(id)); - - string type = ""; - string pipe = ""; - string sql = "select t.标识器型号,t.对象编号 from 标识器 t where t.编号='" + flagno + "'"; - using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) - { - while (reader.Read()) - { - type = reader.GetString(0); - pipe = reader.GetString(1); - } - } - - - GSOLabel label = new GSOLabel(); - label.Text = "标识器编号:" + flagno + "\r\n" + - "标识器类型:" + type + "\r\n" + - //"标识对象编号:" + pipe + "\r\n" + - "所属道路:" + flagstreet; - label.Style = new GSOLabelStyle(); - label.Style.TextStyle.FontSize = 18; - label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); - label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 - label.Style.TracktionLineType = EnumTracktionLineType.Solid; - label.Style.TextStyle.FontHeight = 10; - label.Style.TextStyle.FontName = "黑体"; - label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); - - GSOFeature f = new GSOFeature(); - f.Geometry = flagFeature.Geometry; - f.Label = label; - GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); - globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; - globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; - globeControl1.Globe.JumpToFeature(newFeature, 20); - this.globeControl1.Refresh(); - + type = rr[0].ToString(); } - catch (Exception ex) - { - MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + + GSOLabel label = new GSOLabel(); + label.Text = "标识器编号:" + flagno + "\r\n" + + "标识器类型:" + type + "\r\n" + + "所属道路:" + flagstreet; + label.Style = new GSOLabelStyle(); + label.Style.TextStyle.FontSize = 18; + label.Style.TextStyle.ForeColor = Color.FromArgb(0, 0, 0, 255); + label.Style.Opaque = 0.8; //设置标注的透明度,取值区间是0-1 + label.Style.TracktionLineType = EnumTracktionLineType.Solid; + label.Style.TextStyle.FontHeight = 10; + label.Style.TextStyle.FontName = "黑体"; + label.Style.TractionLineEndPos = new GSOPoint2d(80, 60); + + GSOFeature f = new GSOFeature(); + f.Geometry = flagFeature.Geometry; + f.Label = label; + GSOFeature newFeature = globeControl1.Globe.MemoryLayer.AddFeature(f); + globeControl1.Globe.MemoryLayer.ObjectMinVisiblePixelSize=-1; + globeControl1.Globe.MemoryLayer.ObjectMaxVisibleDistance = -1; + globeControl1.Globe.JumpToFeature(newFeature, 20); + globeControl1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - } } diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx index ad53752..f3050a7 100644 --- a/FrmFlagManagers.resx +++ b/FrmFlagManagers.resx @@ -120,4 +120,7 @@ 17, 17 + + 45 + \ No newline at end of file diff --git a/FrmLogin.cs b/FrmLogin.cs index 6c522e6..66ef9ea 100644 --- a/FrmLogin.cs +++ b/FrmLogin.cs @@ -37,8 +37,8 @@ private void button1_Click(object sender, EventArgs e) { DataTable dt = OledbHelper.QueryTable("select 1 from dual"); -// bool result = ValidateUser(); - bool result = ValidateFromUrl(); + bool result = ValidateUser(); + //bool result = ValidateFromUrl(); if (result) { WriteXml(); diff --git a/MainFrm.cs b/MainFrm.cs index e3ce4bd..438bafa 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -13563,6 +13563,11 @@ } } + private void ribbonBar5_ItemClick(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 0462e02..532bca8 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -82,7 +82,6 @@ this.sideBar1 = new DevComponents.DotNetBar.SideBar(); this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); this.layerSensorTree = new System.Windows.Forms.TreeView(); - this.layerTree = new Cyberpipe.MyTreeView(); this.sideBarPanelItem3 = new DevComponents.DotNetBar.SideBarPanelItem(); this.controlContainerItem3 = new DevComponents.DotNetBar.ControlContainerItem(); this.sideBarPanelItem4 = new DevComponents.DotNetBar.SideBarPanelItem(); @@ -611,6 +610,7 @@ this.buttonItem84 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem75 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem76 = new DevComponents.DotNetBar.ButtonItem(); + this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -1047,16 +1047,6 @@ this.layerSensorTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerMarkerTree_AfterCheck); this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); // - // layerTree - // - this.layerTree.CheckBoxes = true; - this.layerTree.ItemHeight = 18; - this.layerTree.Location = new System.Drawing.Point(30, 78); - this.layerTree.Name = "layerTree"; - this.layerTree.Size = new System.Drawing.Size(121, 97); - this.layerTree.TabIndex = 1; - this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); - // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2907,7 +2897,7 @@ this.水平面积ToolStripMenuItem1, this.地表面积ToolStripMenuItem1}); this.量算ToolStripMenuItem.Name = "量算ToolStripMenuItem"; - this.量算ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.量算ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.量算ToolStripMenuItem.Text = "量算"; // // 水平距离ToolStripMenuItem1 @@ -2970,7 +2960,7 @@ this.前进ToolStripMenuItem, this.删除模型ToolStripMenuItem}); this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem"; - this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.编辑ToolStripMenuItem.Text = "编辑"; // // 平移对象ToolStripMenuItem @@ -3046,7 +3036,7 @@ this.绕中心点飞行ToolStripMenuItem, this.绕眼睛飞行ToolStripMenuItem}); this.飞行ToolStripMenuItem.Name = "飞行ToolStripMenuItem"; - this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.飞行ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.飞行ToolStripMenuItem.Text = "飞行"; // // 自定义飞行ToolStripMenuItem @@ -3092,7 +3082,7 @@ this.红线工具ToolStripMenuItem, this.标注管理ToolStripMenuItem}); this.标注ToolStripMenuItem.Name = "标注ToolStripMenuItem"; - this.标注ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.标注ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.标注ToolStripMenuItem.Text = "标注"; // // 标高标注ToolStripMenuItem @@ -3187,7 +3177,7 @@ this.关键字查询ToolStripMenuItem, this.附属物查询ToolStripMenuItem}); this.查询ToolStripMenuItem.Name = "查询ToolStripMenuItem"; - this.查询ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.查询ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.查询ToolStripMenuItem.Text = "查询"; // // 空间查询ToolStripMenuItem @@ -3274,7 +3264,7 @@ this.标识器分类统计ToolStripMenuItem, this.标识器街道统计ToolStripMenuItem}); this.全区域统计ToolStripMenuItem.Name = "全区域统计ToolStripMenuItem"; - this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.全区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.全区域统计ToolStripMenuItem.Text = "全区域统计"; // // 管线长度统计ToolStripMenuItem @@ -3361,7 +3351,7 @@ this.标识器分类统计ToolStripMenuItem1, this.标识器街道统计ToolStripMenuItem1}); this.绘制区域统计ToolStripMenuItem.Name = "绘制区域统计ToolStripMenuItem"; - this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.绘制区域统计ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.绘制区域统计ToolStripMenuItem.Text = "绘制区域统计"; // // 管线长度统计ToolStripMenuItem1 @@ -3442,7 +3432,7 @@ this.道路断面分析ToolStripMenuItem, this.基线剖面分析ToolStripMenuItem}); this.断面分析ToolStripMenuItem.Name = "断面分析ToolStripMenuItem"; - this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.断面分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.断面分析ToolStripMenuItem.Text = "断面分析"; // // 横断面分析ToolStripMenuItem @@ -3484,7 +3474,7 @@ this.连通分析ToolStripMenuItem, this.爆管分析ToolStripMenuItem}); this.拓扑分析ToolStripMenuItem.Name = "拓扑分析ToolStripMenuItem"; - this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.拓扑分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.拓扑分析ToolStripMenuItem.Text = "拓扑分析"; // // 创建拓扑ToolStripMenuItem @@ -3546,7 +3536,7 @@ this.隐藏隧道ToolStripMenuItem, this.删除隧道ToolStripMenuItem}); this.开挖分析ToolStripMenuItem.Name = "开挖分析ToolStripMenuItem"; - this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.开挖分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.开挖分析ToolStripMenuItem.Text = "开挖分析"; // // 多边形开挖ToolStripMenuItem @@ -3598,7 +3588,7 @@ this.可视域分析ToolStripMenuItem, this.可视包络分析ToolStripMenuItem}); this.视域分析ToolStripMenuItem.Name = "视域分析ToolStripMenuItem"; - this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.视域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.视域分析ToolStripMenuItem.Text = "视域分析"; // // 通视分析ToolStripMenuItem @@ -3629,7 +3619,7 @@ this.附属物分析ToolStripMenuItem, this.无源淹没分析ToolStripMenuItem}); this.区域分析ToolStripMenuItem.Name = "区域分析ToolStripMenuItem"; - this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.区域分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.区域分析ToolStripMenuItem.Text = "区域分析"; // // 缓冲区分析ToolStripMenuItem @@ -3656,7 +3646,7 @@ // 清除分析ToolStripMenuItem // this.清除分析ToolStripMenuItem.Name = "清除分析ToolStripMenuItem"; - this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.清除分析ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.清除分析ToolStripMenuItem.Text = "清除分析"; this.清除分析ToolStripMenuItem.Click += new System.EventHandler(this.buttonItemClear_Click); // @@ -4124,12 +4114,12 @@ // this.ribbonControl1.BackgroundStyle.Class = ""; this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonControl1.Controls.Add(this.ribbonPanel15); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel7); this.ribbonControl1.Controls.Add(this.ribbonPanel1); - this.ribbonControl1.Controls.Add(this.ribbonPanel3); this.ribbonControl1.Controls.Add(this.ribbonPanel8); - this.ribbonControl1.Controls.Add(this.ribbonPanel2); - this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -4175,10 +4165,10 @@ this.ribbonPanel7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel7.Controls.Add(this.ribbonBar5); this.ribbonPanel7.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel7.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel7.Location = new System.Drawing.Point(0, 0); this.ribbonPanel7.Name = "ribbonPanel7"; this.ribbonPanel7.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel7.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel7.Size = new System.Drawing.Size(1328, 95); // // // @@ -4195,6 +4185,7 @@ this.ribbonPanel7.StyleMouseOver.Class = ""; this.ribbonPanel7.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel7.TabIndex = 41; + this.ribbonPanel7.Visible = false; // // ribbonBar5 // @@ -4216,7 +4207,7 @@ this.slider4ground}); this.ribbonBar5.Location = new System.Drawing.Point(3, 0); this.ribbonBar5.Name = "ribbonBar5"; - this.ribbonBar5.Size = new System.Drawing.Size(427, 59); + this.ribbonBar5.Size = new System.Drawing.Size(418, 92); this.ribbonBar5.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar5.TabIndex = 0; // @@ -4230,6 +4221,7 @@ this.ribbonBar5.TitleStyleMouseOver.Class = ""; this.ribbonBar5.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonBar5.TitleVisible = false; + this.ribbonBar5.ItemClick += new System.EventHandler(this.ribbonBar5_ItemClick); // // btn_flag // @@ -4255,10 +4247,10 @@ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel1.Controls.Add(this.ribbonBar21); this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel1.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel1.Location = new System.Drawing.Point(0, 0); this.ribbonPanel1.Name = "ribbonPanel1"; this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95); // // // @@ -4304,7 +4296,7 @@ this.buttonItem89}); this.ribbonBar21.Location = new System.Drawing.Point(3, 0); this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(737, 59); + this.ribbonBar21.Size = new System.Drawing.Size(653, 92); this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar21.TabIndex = 2; this.ribbonBar21.Text = "浏览模式"; @@ -4390,10 +4382,10 @@ this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel3.Controls.Add(this.ribbonBar3); this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel3.Location = new System.Drawing.Point(0, 0); this.ribbonPanel3.Name = "ribbonPanel3"; this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel3.Size = new System.Drawing.Size(1328, 95); // // // @@ -4434,7 +4426,7 @@ this.buttonItem9}); this.ribbonBar3.Location = new System.Drawing.Point(3, 0); this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(296, 59); + this.ribbonBar3.Size = new System.Drawing.Size(378, 92); this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar3.TabIndex = 0; // @@ -4492,10 +4484,10 @@ this.ribbonPanel8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel8.Controls.Add(this.ribbonBar_UserInfo); this.ribbonPanel8.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel8.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel8.Location = new System.Drawing.Point(0, 0); this.ribbonPanel8.Name = "ribbonPanel8"; this.ribbonPanel8.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel8.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel8.Size = new System.Drawing.Size(1328, 95); // // // @@ -4539,7 +4531,7 @@ this.btn_reset_password}); this.ribbonBar_UserInfo.Location = new System.Drawing.Point(3, 0); this.ribbonBar_UserInfo.Name = "ribbonBar_UserInfo"; - this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 59); + this.ribbonBar_UserInfo.Size = new System.Drawing.Size(427, 92); this.ribbonBar_UserInfo.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar_UserInfo.TabIndex = 0; // @@ -4616,10 +4608,10 @@ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel2.Controls.Add(this.ribbonBar4); this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel2.Location = new System.Drawing.Point(0, 0); this.ribbonPanel2.Name = "ribbonPanel2"; this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95); // // // @@ -4659,7 +4651,7 @@ this.buttonItem_Event}); this.ribbonBar4.Location = new System.Drawing.Point(3, 0); this.ribbonBar4.Name = "ribbonBar4"; - this.ribbonBar4.Size = new System.Drawing.Size(211, 59); + this.ribbonBar4.Size = new System.Drawing.Size(299, 92); this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar4.TabIndex = 0; this.ribbonBar4.Text = "ribbonBar4"; @@ -4727,7 +4719,6 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; - this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -4759,7 +4750,7 @@ this.buttonItemBZ}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(791, 59); + this.ribbonBar20.Size = new System.Drawing.Size(835, 59); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -6026,6 +6017,7 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_08_hover; this.ribbonTabItem14.Image = global::Cyberpipe.Properties.Resources._24x24icon_08; this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -6054,7 +6046,6 @@ // ribbonTabItem7 // this.ribbonTabItem7.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem7.Checked = true; this.ribbonTabItem7.HoverImage = global::Cyberpipe.Properties.Resources._24x24icon_04_hover1; this.ribbonTabItem7.Image = global::Cyberpipe.Properties.Resources._24x24icon_041; this.ribbonTabItem7.Name = "ribbonTabItem7"; @@ -6399,6 +6390,16 @@ this.buttonItem76.SubItemsExpandWidth = 14; this.buttonItem76.Text = "坐标标注"; // + // layerTree + // + this.layerTree.CheckBoxes = true; + this.layerTree.ItemHeight = 18; + this.layerTree.Location = new System.Drawing.Point(30, 78); + this.layerTree.Name = "layerTree"; + this.layerTree.Size = new System.Drawing.Size(121, 97); + this.layerTree.TabIndex = 1; + this.layerTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.layerTree_AfterCheck); + // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; diff --git a/MainFrm.resx b/MainFrm.resx index 9d1d787..dcfc26a 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -2094,7 +2094,7 @@ - 166 + 121 diff --git a/Program.cs b/Program.cs index a5c9d17..1ff0987 100644 --- a/Program.cs +++ b/Program.cs @@ -11,6 +11,7 @@ static class Program { static string ent = "C:\\EMSCyberPipe"; + /// /// The main entry point for the application. /// @@ -30,7 +31,9 @@ String newVersionCode = getVersionCode(configUrl, currentVersionCode); if (newVersionCode != currentVersionCode) { - if (MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + if ( + MessageBox.Show("检测到新版本,是否立即更新?", "智慧管网太湖新城电子标识系统", MessageBoxButtons.YesNo, + MessageBoxIcon.Question) == DialogResult.Yes) { remoteUpDate(); @@ -38,7 +41,7 @@ string programUrl = getProgramUrl(localConfigPath, "programurl"); if (programUrl != "") { - + //FrmDownloadProgress frmdownload = FrmDownloadProgress.getForm(programUrl); Process.Start(ent + "/UpDateProgress.exe").WaitForExit(); return; @@ -58,7 +61,8 @@ } } } - + + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmLogin frm = new FrmLogin(); @@ -74,6 +78,7 @@ return; } } + } private static void remoteUpDate() diff --git a/Utility.cs b/Utility.cs index eb39366..0e929aa 100644 --- a/Utility.cs +++ b/Utility.cs @@ -87,6 +87,8 @@ public static string AppId; public static string SysnameVersion ="智慧太湖新城管网电子标识系统"; + //public static bool isNeedLogin = false; + public static void SetBallons(GSOBalloon featureTooltip, GSOBalloonEx balloonEx) { featureTooltip.CacheFilePath = Application.StartupPath + "/GeoScene/Globe/Temp"; diff --git a/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml b/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml deleted file mode 100644 index aa192db..0000000 --- a/bin/x86/Debug/Microsoft.Office.Tools.Excel.v4.0.Utilities.xml +++ /dev/null @@ -1,6921 +0,0 @@ - - - - Microsoft.Office.Tools.Excel.v4.0.Utilities - - - - Provides the base class for chart sheet host items in document-level Office projects for Microsoft Office Excel. - - - - - - - - - - Makes the current the active chart. - - - Occurs when the is activated. - - - Gets an that represents the Microsoft Office Excel application. - An that represents the Microsoft Office Excel application. - - - Applies a standard or custom chart template to the chart. - The file name for a chart template. - - - Applies a standard or custom chart type to a . - A standard chart type. - The name of the custom chart type if specifies a custom chart gallery. - - - Applies data labels to a point, a series, or all the series in a . - The type of data label to apply. - true to show the legend key next to the point. The default value is false. - true if the object automatically generates appropriate text based on content. - For the and objects, true if the series has leader lines. - The series name for the data label. - The category name for the data label. - The value for the data label. - The percentage for the data label. - The bubble size for the data label. - The separator for the data label. - - - Applies the specified layout to the chart. - An integer from 1 through 10 that specifies the type of layout to apply to the chart. - One of the values. - - - - - - Gets a that represents the area chart group on a 3-D . - A that represents the area chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single area chart group (a object) or a collection of the area chart groups (a collection). - The chart group number. - - - - - - - Gets a value that indicates whether Microsoft Office Excel scales a 3-D so that it is closer in size to the equivalent 2-D chart - true if Microsoft Office Excel scales a 3-D so that it is closer in size to the equivalent 2-D chart. - - - Gets an object that represents either a single axis or a collection of the axes on the chart. - Specifies the axis to return. Can be one of the following constants: , , or ( is valid only for 3-D charts). - Specifies the axis group. If this argument is omitted, the primary group is used. 3-D charts have only one axis group. - - - Gets an object that represents the back wall of a 3-D chart. - A object that represents the back wall of a 3-D chart. - - - Gets a that represents the bar chart group on a 3-D . - A that represents the bar chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single bar chart group (a object) or a collection of the bar chart groups (a collection). - Specifies the chart group. - - - Gets or sets the shape used with the 3-D bar or column . - One of the values. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs when the is double-clicked, before the default double-click action. - - - Occurs when the is right-clicked, before the default right-click action. - - - - - - - - - Occurs after the plots new or changed data. - - - Gets a that represents the complete chart area for the . - A that represents the complete chart area for the . - - - Gets an object that represents either a single chart group (a object) or a collection of all the chart groups in the chart (a object). - The chart group number. - - - Gets an object that represents either a single embedded chart (a object) or a collection of all the embedded charts (a object) on the sheet. - The name or number of the . This argument can be an array, to specify more than one chart. - - - Gets or sets the style of the chart. - An integer from 1 through 48 that represents the style of the chart. - - - Gets a that represents the title of the specified . - A that represents the title of the specified . - - - Gets or sets the type. - One of the values. - - - Modifies the properties of the given . - The range that contains the source data for the new chart. If this argument is omitted, Microsoft Office Excel edits the active chart sheet or the selected chart on the active worksheet. - The chart type. - The option number for the built-in autoformats. Can be a number from 1 through 10, depending on the gallery type. If this argument is omitted, Microsoft Office Excel chooses a default value based on the gallery type and data source. - Specifies whether the data for each series is in rows or columns. Can be one of the following constants: or . - An integer specifying the number of rows or columns within the source range that contain category labels. Legal values are from 0 (zero) through one less than the maximum number of the corresponding categories or series. - The number of rows or columns within the source range that contain series labels. Legal values are from 0 (zero) through one less than the maximum number of the corresponding categories or series. - true to include a legend. - The chart title text. - The category axis title text. - The value axis title text - The series axis title for 3-D charts or the second value axis title for 2-D charts. - - - - - - Checks the spelling of an . - A string that indicates the file name of the custom dictionary to be examined if the word is not found in the main dictionary. If this argument is omitted, the currently specified dictionary is used. - true to have Microsoft Office Excel ignore words that are all uppercase. false to have Microsoft Office Excel check words that are all uppercase. If this argument is omitted, the current setting will be used. - true to have Excel display a list of suggested alternate spellings when an incorrect spelling is found. false to have Excel wait for you to input the correct spelling. If this argument is omitted, the current setting will be used. - The language of the dictionary being used. Can be one of the values used by the property. - - - Clears the chart elements formatting to automatic. - - - - Gets a that represents the column chart group on a 3-D . - A that represents the column chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single column chart group (a object) or a collection of the column chart groups (a collection). - Specifies the chart group. - - - Copies the to another location in the workbook. - The sheet before which the copied sheet will be placed. You cannot specify if you specify . - The sheet after which the copied sheet will be placed. You cannot specify if you specify . - - - - Copies the to the Clipboard as a picture. - Specifies how the picture should be copied. - The format of the picture. - The size of the copied picture when the object is a chart on a chart sheet (not embedded on a worksheet). - - - Gets a object that represents the corners of a 3-D . - A object that represents the corners of a 3-D . - - - - - - - - - - - - Gets an code that indicates the application in which the was created. - One of the values. - - - - - Gets a object that represents the data table. - A object that represents the data table. - - - Occurs when the selection moves away from the , causing the to become deactivated. - - - Deletes the object. - - - Gets or sets the depth of a 3-D chart as a percentage of the width. - The depth of a 3-D chart as a percentage of the width (between 20 and 2000 percent) - - - Cancels the selection for the specified . - - - Gets or sets the way that blank cells are plotted on a . - One of the following constants: , , or . - - - Releases all resources used by the current instance of the class. - - - - On a 2-D , returns an object that represents either a single doughnut chart group (a object) or a collection of the doughnut chart groups (a collection). - Specifies the chart group. - - - - - - - - - - - - - - Gets or sets the elevation of the 3-D , in degrees. - The elevation of the 3-D , in degrees. - - - - Converts a Microsoft Office Excel name to an object or a value. - The name of the object, using the naming convention of Microsoft Office Excel. - - - Exports the in a graphic format. - The name of the exported file. - The language-independent name of the graphic filter as it appears in the registry. - true to display the dialog box that contains the filter-specific options. If this argument is false, Microsoft Office Excel uses the default values for the filter. The default value is false. - - - Saves the chart that is displayed on the in PDF or XPS format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the chart in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this parameter is omitted, exporting starts at the beginning. - The number of the last page to publish. If this parameter is omitted, publishing ends with the last page. - true to open the new file in the viewer immediately; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the chart to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - - Gets a object that represents the floor of the 3-D . - A object that represents the floor of the 3-D . - - - Gets or sets the distance between the data series in a 3-D , as a percentage of the marker width. - The distance between the data series in a 3-D , as a percentage of the marker width. The value of this property must be between 0 and 500. - - - - - - - - Gets information about the chart element at specified X and Y coordinates. - The X coordinate of the chart element. - The Y coordinate of the chart element. - When the method returns, this argument contains the value of the chart element at the specified coordinates. For more information, see the “Remarks” section. - When the method returns, this argument contains information related to the chart element. For more information, see the “Remarks” section. - When the method returns, this argument contains information related to the chart element. For more information, see the “Remarks” section. - - - - - - - - - Gets or sets a value indicating whether a specific axis exists on the . - true if the specified axis exists on the ; otherwise, false. - - - Gets or sets a value that indicates whether the has a data table. - true if the has a data table. - - - Gets or sets a value that indicates whether the has a legend. - true if the has a legend. - - - Gets or sets a value that indicates whether the PivotChart controls are displayed on the specified PivotChart report. - true if the PivotChart controls are displayed on the specified PivotChart report. The default value is true. - - - Gets or sets a value the indicates whether the has a visible title. - true if the has a visible title. - - - Gets or sets the height of a 3-D chart as a percentage of the width. - The height of a 3-D chart as a percentage of the width (between 5 and 500 percent). - - - - Gets a collection that represents the hyperlinks for the . - A collection that represents the hyperlinks for the . - - - Gets the index number of the . - The index number of the . - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - - - - - Gets a that represents the legend for the . - A that represents the legend for the . - - - Gets a that represents the line chart group on a 3-D . - A that represents the line chart group on a 3-D . - - - On a 2-D chart, returns an object that represents either a single line chart group (a object) or a collection of the line chart groups (a collection). - Specifies the chart group. - - - - - - - - - Moves the to a new location. - One of the values that specify where to move the chart. - The name of the sheet where the chart will be embedded if is or the name of the new sheet if is . - - - Represents an e-mail header for a document. - One of the values. - - - - - - - - - - - - Occurs when a mouse button is pressed when the pointer is over a . - - - Occurs when the position of the mouse pointer changes over the . - - - Occurs when a mouse button is released when the pointer is over the . - - - Moves the to another location in the workbook. - The sheet before which the moved sheet will be placed. You cannot specify if you specify . - The sheet after which the moved sheet will be placed. You cannot specify if you specify . - - - Gets or sets the name of the . - The name of the . - - - Gets a object that represents the next sheet. - A object that represents the next sheet. - - - Gets an object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the chart or sheet. - The name or number of the OLE object. - - - - - - - - - - - - - - Gets a that contains all the page setup settings for the . - A that contains all the page setup settings for the . - - - Gets the parent object for the . - The parent object for the . - - - Pastes chart data from the Clipboard into the specified . - Specifies the information to paste if a chart is on the Clipboard. Can be one of the following constants: , , or . The default value is . If there is data other than a chart on the Clipboard, this argument cannot be used. - - - Gets or sets the perspective for the 3-D . - The perspective for the 3-D chart view. Must be between 0 and 100. - - - - - - Gets a that represents the pie chart group on a 3-D . - A that represents the pie chart group on a 3-D . - - - On a 2-D , returns an object that represents either a single pie chart group (a object) or a collection of the pie chart groups (a collection). - Specifies the chart group. - - - Gets a that represents the placement of fields in a PivotTable report and the placement of axes in a PivotChart report. - A that represents the placement of fields in a PivotTable report and the placement of axes in a PivotChart report. - - - Gets a object that represents the plot area of a . - A object that represents the plot area of a . - - - Gets or sets the way columns or rows are used as data series on the . - One of the following constants: or . - - - Gets or sets a value that indicates whether only visible cells are plotted. - true if only visible cells are plotted. false if both visible and hidden cells are plotted. - - - Gets a object that represents the previous sheet. - A object that represents the previous sheet. - - - Gets the number of comment pages that will be printed for the current chart sheet. This property can be used only in Excel 2010 projects. - The number of comment pages that will be printed for the current chart sheet. - This property is used in an Excel 2007 project. - - - Prints the . - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the chart that is displayed on the . - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - The name of the file to print to. This parameter is used only if is true. - - - Shows a preview of the as it would look when printed. - - - - Protects a so that it cannot be modified. - A string that specifies a case-sensitive password for the worksheet or workbook. If this argument is omitted, you can unprotect the worksheet or workbook without using a password. Otherwise, you must specify the password to unprotect the worksheet or workbook. If you forget the password, you cannot unprotect the worksheet or workbook. It is a good idea to keep a list of your passwords and their corresponding document names in a safe place. - true to protect shapes. The default value is false. - true to protect contents. For a chart, this protects the entire chart. For a worksheet, this protects the locked cells. The default value is true. - true to protect scenarios. This argument is valid only for worksheets. The default value is true. - true to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface. - - - Gets a value that indicates whether the contents of the are protected. - true if the contents of the are protected. - - - Gets or sets a value that indicates whether series formulas cannot be modified by the user. - true if series formulas cannot be modified by the user; otherwise, false. - - - Gets a value that indicates whether shapes are protected on the . - true if shapes are protected. - - - Gets or sets a value that indicates whether formatting cannot be modified by the user. - true if formatting cannot be modified by the user. - - - Gets or sets a value that indicates whether the user cannot modify chart data points with mouse actions. - true if the user cannot modify chart data points with mouse actions. - - - Gets or sets a value that indicates whether user-interface-only protection is turned on. - true if user-interface-only protection is turned on. - - - Gets or sets a value that indicates whether elements cannot be selected. - true if elements cannot be selected. - - - On a 2-D , returns an object that represents either a single radar chart group (a object) or a collection of the radar chart groups (a collection). - Specifies the chart group. - - - - - - Updates the cache of the . - - - Occurs when the size of the is changed. - - - Gets or sets a value that indicates whether the axes are at right angles, independent of chart rotation or elevation. - true if the axes are at right angles, independent of chart rotation or elevation. - - - Gets or sets the rotation of the 3-D . - The rotation of the 3-D (the rotation of the plot area around the z-axis, in degrees). The value of this property must be from 0 to 360, except for 3-D bar charts, where the value must be from 0 to 44. The default value is 20. - - - Saves changes to the in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - The file format to use when you save the file. For a list of valid choices, see the property. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings). false (default) saves files against the language of Visual Basic for Applications (which is typically US English unless the VBA project where Workbooks.Open is run from is an old internationalized XL5/95 VBA project). - - - Saves the chart on the as a custom template in the list of available chart templates. - The name of the new chart template. - - - Gets the collection, which contains objects representing blocks of script or code in the specified document when it is saved as a Web page. - The collection, which contains objects representing blocks of script or code in the specified document when it is saved as a Web page. - - - - - - Selects the . - The object to replace. - - - Occurs when the is selected. - - - Occurs when the value of a data point is changed. - - - Gets an object that represents either a single series (a object) or a collection of all the series (a collection) in the chart or chart group. - The name or number of the series. - - - - - - - - Sets the background graphic for a . - The name of the graphic file. - - - Specifies the name of the chart template that Microsoft Office Excel uses when creating new charts. - A string that indicates the name of the default chart template that will be used when creating new charts. This name can identify a chart in the gallery for a user-defined template, or it can be one of the values that specifies a built-in chart template. - - - Modifies an element on the chart that is displayed on the . - One of the Microsoft.Office.Core.MsoChartElementType values that specifies the type of element modification. - - - Sets the source data range for the . - The range that contains the source data. - Specifies the way the data is to be plotted. Can be either of the following constants: or . - - - Gets a object that represents all the shapes on the . - A object that represents all the shapes on the . - - - Gets or sets whether to display all field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display all field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display axis field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display axis field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets a value that indicates whether to show the data labels when the value is greater than the maximum value on the value axis. - true to show the data labels when the value is greater than the maximum value on the value axis; otherwise, false. - - - Gets or sets whether to display legend field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display all legend field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display the report filter field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display the report filter field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Gets or sets whether to display the value field buttons on a PivotChart that is displayed on the . This property can be used only in Excel 2010 projects. - true to display the value field buttons on the specified PivotChart; otherwise, false. - This property is used in an Excel 2007 project. - - - Occurs when the application domain for the assembly is about to unload. - - - Gets an object that represents the side wall of a 3-D chart. - A object that represents the side wall of a 3-D chart. - - - - - - - Occurs after the document is running and all the initialization code in the assembly has been run. - - - - Gets a object that represents the surface chart group of a 3-D . - A object that represents the surface chart group of a 3-D . - - - Gets a object for a . - A object for a . - - - Gets or sets the object that contains data about the . - The object that contains data about the . - - - - - - - Removes protection from a . This method has no effect if the sheet or workbook is not protected. - The case-sensitive password to use to unprotect the sheet or workbook. If the sheet or workbook is not protected with a password, this argument is ignored. If you omit this argument for a sheet that is protected with a password, you will be prompted for the password. If you omit this argument for a workbook that is protected with a password, the method fails. - - - Determines whether the object is visible. - - - Gets a object that represents the walls of the 3-D . - A object that represents the walls of the 3-D . - - - Gets or sets a value that indicates whether gridlines are drawn two-dimensionally on a 3-D . - true if gridlines are drawn two-dimensionally on a 3-D ; otherwise, false. - - - On a 2-D , returns an object that represents either a single scatter chart group (a object) or a collection of the scatter chart groups (a collection). - Specifies the chart group. - - - Provides extension methods you can use to add Windows Forms controls to Excel worksheets that have been customized by using the Office development tools in Visual Studio. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the location for the control. - The name of the control that can be used to index the control in the instance. - - - Adds a new control to the document in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the document. - The distance in points between the top edge of the control and the top edge of the document. - The width of the control in points. - The height of the control in points. - The name of the control that can be used to index the control in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - The name argument is null or has zero length. - A control with the same name is already in the instance. - - - Adds a new control to the worksheet at the range specified. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - A that provides the bounds for the control. - The name of the control that can be used to index the control in the instance. - The name or range argument is null, or the name argument has zero length. - A control with the same name is already in the instance. - The range that was specified is not valid. Multi-area ranges cannot be used. The range should be on the same worksheet as the instance. - - - Adds a new control to the worksheet in the specified size and location. - The control that was added to the instance. - The collection to add the control to. Do not supply this parameter yourself. When you call this method on the collection returned by the property (in an application-level project) or the property (in a document-level project), this parameter is supplied automatically. - The distance in points between the left edge of the control and the left edge of the worksheet. - The distance in points between the top edge of the control and the top edge of the worksheet. - The width of the control in points. - The height of the control in points. - The name of the control. - - - Provides the base class for the ThisWorkbook class in document-level projects for Microsoft Office Excel. - - - - - - - - - - - Accepts all changes in the shared workbook. - One of the values that specifies when the changes to be accepted were made. - A string that identifies who made the changes to be accepted. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the location of the changes to be accepted. - - - Gets or sets a value that indicates whether labels can be used in worksheet formulas. - true if labels can be used in worksheet formulas. The default value is false. - - - Specifies whether certain worksheet functions use the latest accuracy algorithms to calculate their results. This property can be used only in Excel 2010 projects. - A value that specifies whether certain worksheet functions use the latest accuracy algorithms to calculate their results. - This property is used in an Excel 2007 project. - - - Activates the first window associated with the workbook. - - - Occurs when the workbook is activated. - - - Gets a object that represents the active chart (either an embedded chart or a chart sheet). An embedded chart is considered active when it is either selected or activated. When no chart is active, this property returns null. - A object that represents the active chart; null if no chart is active. - - - Gets the active sheet (the sheet on top). - The active sheet (the sheet on top); null if no sheet is active. - - - Gets an object that represents the active slicer in the active workbook or in the specified workbook. This property can be used only in Excel 2010 projects. - A that represents the active slicer in the active workbook or in the specified workbook. - This property is used in an Excel 2007 project. - - - Occurs when the workbook is installed as an add-in. - - - Occurs when the workbook is uninstalled as an add-in. - - - Adds a shortcut to the workbook to the Favorites folder. - - - Occurs after the workbook is saved. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after Microsoft Office Excel saves or exports data from the workbook to an XML data file. - - - Occurs after an existing XML data connection is refreshed or after new XML data is imported into the workbook. - - - Gets an that represents the creator of the workbook. - An that represents the creator of the workbook. - - - Applies the specified theme to the workbook. - The full file path of the theme to apply. - - - Gets or sets the author of the workbook. - The author of the workbook. - - - Gets or sets the number of minutes between automatic updates to the shared workbook. - The number of minutes between automatic updates to the shared workbook. - - - Gets or sets a value that indicates whether current changes to the shared workbook are posted to other users whenever the workbook is automatically updated. - true if current changes to the shared workbook are posted to other users whenever the workbook is automatically updated. false if changes are not posted (this workbook is still synchronized with changes made by other users). The default value is true. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs before the workbook closes. If the workbook has been changed, this event occurs before the user is asked to save changes. - - - Occurs before the workbook (or anything in it) is printed. - - - Occurs before the workbook is saved. - - - Occurs before Microsoft Office Excel saves or exports data from the workbook to an XML data file. - - - Occurs before an existing XML data connection is refreshed or before new XML data is imported into the workbook. - - - - - - Converts formulas linked to other Microsoft Office Excel sources or OLE sources to values. - The name of the link. - One of the values. The type of link. - - - Gets a Microsoft.Office.Core.DocumentProperties collection that represents all the built-in document properties for the workbook. - A Microsoft.Office.Core.DocumentProperties collection that represents all the built-in document properties for the workbook. - - - Gets a number that indicates the version of Excel that the workbook was last fully recalculated by. The rightmost four digits are the minor calculation engine version number, and the other digits (on the left) are the major version of Microsoft Office Excel. - A number that indicates the version of Excel that the workbook was last fully recalculated by. The rightmost four digits are the minor calculation engine version number, and the other digits (on the left) are the major version of Microsoft Office Excel. - - - Gets a value that indicates whether Microsoft Office Excel can check in the workbook to a server. - true if Microsoft Office Excel can check in the workbook to a server; otherwise, false. - - - Changes the access permissions for the workbook. This might require an updated version to be loaded from the disk. - One of the values. Specifies the new access mode. - Specifies the write-reserved password if the file is write reserved and is . Ignored if there is no password for the file or if is . - true to notify the user if the file cannot be immediately accessed. - - - Gets or sets the number of days shown in the shared workbook's change history. - The number of days shown in the shared workbook's change history. - - - Changes a link from one document to another. - The name of the Microsoft Office Excel or DDE/OLE link to be changed, as it was returned from the method. - The new name of the link. - One of the values that specifies the link type. - - - Gets a collection that represents all the chart sheets in the workbook. - A collection that represents all the chart sheets in the workbook. - - - Gets or sets a value that indicates whether to run the compatibility checker automatically when the workbook is saved. - true if the compatibility checker should be run automatically when the workbook is saved; otherwise, false. The default for Excel 97-2003 Binary (BIFF8) workbooks is true; the default for all other workbooks is false. - - - Returns a workbook from a local computer to a server, and sets the local workbook to read-only so that it cannot be edited locally. Calling this method closes the workbook. - true saves changes and checks in the document; false returns the document to a checked-in status without saving revisions. - Allows the user to enter check-in comments for the revision of the workbook being checked in (applies only if equals true). - true allows the user to publish the workbook after it has been checked in. This submits the workbook for the approval process, which can eventually result in a version of the workbook being published to users with read-only rights to the workbook (applies only if equals true). - - - Sends the workbook from the local computer to a server, and sets the local workbook to read-only so that it cannot be edited locally. Calling this method closes the workbook. - true to save changes and check in the document; false to return the document to a checked-in state without saving revisions. - true to enable check-in comments; false to check in the workbook without comments. This parameter applies only if is true. - true to enable the user to publish the workbook after it has been checked in. This submits the workbook for the approval process, which can eventually result in a version of the workbook being published to users with read-only rights to the workbook (applies only if equals true). - Specifies versioning information for the document. - - - Closes the workbook. - If there are no changes to the workbook, this argument is ignored. If there are changes to the workbook and the workbook appears in other open windows, this argument is ignored. If there are changes to the workbook but the workbook does not appear in any other open windows, this argument specifies whether changes should be saved, as shown in the following list.true. Saves the changes to the workbook. If there is not yet a file name associated with the workbook, then is used. If is omitted, the user is asked to supply a file name.false. Does not save the changes to the workbook.Omitted. Displays a dialog box asking the user whether or not to save changes. - Save changes under this file name. - If the workbook does not need to be routed to the next recipient (if it has no routing slip or has already been routed), this argument is ignored. Otherwise, Microsoft Office Excel routes the workbook as shown in the following list.true. Sends the workbook to the next recipient.false. Does not send the workbook.Omitted. Displays a dialog box asking the user whether the workbook should be sent. - - - - Gets or sets colors in the palette for the workbook. - An RGB color value in the color palette for the workbook, or an array that contains all 56 RGB color values in the color palette for the workbook. - - - Gets a Microsoft.Office.Core.CommandBars object that represents the Microsoft Office Excel command bars. - A Microsoft.Office.Core.CommandBars object that represents the Microsoft Office Excel command bars. - - - Gets or sets the comments attached to the workbook. - The comments attached to the workbook. - - - Gets or sets the way conflicts are to be resolved whenever a shared workbook is updated. - One of the values. - - - Gets the collection of connections between the workbook and a data source. - A Microsoft.Office.Interop.Excel.Connections collection that contains the connections between the workbook and a data source. - - - Gets a value that indicates whether to disable the external connections or links in the workbook. - true to disable the external connections or links in the workbook; otherwise, false. - - - Gets the object that represents the container application for the workbook. - The object that represents the container application for the workbook. - - - Gets a collection of properties that describe metadata that is stored in the workbook. - A Microsoft.Office.Core.MetaProperties collection that contains properties that describe metadata that is stored in the workbook. - - - Gets a value that indicates whether a backup file is created when this file is saved. - true if a backup file is created when this file is saved; otherwise, false. - - - Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - An object that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - - - Returns an array of objects to the method. - An array of objects. - - - Gets the application in which the workbook was created. - One of the values. - - - Gets a Microsoft.Office.Core.DocumentProperties collection that represents all the custom document properties for the workbook. - A Microsoft.Office.Core.DocumentProperties collection that represents all the custom document properties for the workbook. - - - Gets a collection that represents all the custom views for the workbook. - A collection that represents all the custom views for the workbook. - - - Gets the collection of custom XML parts in the workbook. - A Microsoft.Office.Core.CustomXMLParts collection that contains the custom XML parts in the workbook. - - - - - Gets or sets a value that indicates whether the workbook uses the 1904 date system. - true if the workbook uses the 1904 date system; otherwise, false. - - - Occurs when the workbook is deactivated. - - - Gets or sets the table style from the property that is used as the default style for PivotTable reports in the workbook. - The table style from the property that is used as the default style for PivotTable reports in the workbook. - - - - Gets or sets the table style from the property that is used as the default style for tables in the workbook. - The table style from the property that is used as the default style for tables in the workbook. - - - Deletes a custom number format from the workbook. - Names the number format to be deleted. - - - Included for backwards compatibility only. - - - Gets or sets how shapes are displayed. - One of the following values: , , or . - - - Gets or sets a value that indicates whether ink comments are displayed in the workbook. - true if ink comments are displayed in the workbook; otherwise, false. - - - Releases all resources used by the current instance of the class. - - - - Gets the collection of Document Inspector modules for the workbook. - A Microsoft.Office.Core.DocumentInspectors collection that contains the Document Inspector modules for the workbook. - - - Gets a Microsoft.Office.Core.DocumentLibraryVersions collection that represents the collection of versions of a shared workbook that has versioning enabled and that is stored in a document library on a server. - A Microsoft.Office.Core.DocumentLibraryVersions collection that represents the collection of versions of a shared workbook that has versioning enabled and that is stored in a document library on a server. - - - Gets or sets a value that indicates whether to prompt the user to convert the workbook if it contains features that are not supported by versions of Excel earlier than Excel 2007. - true to prompt the user to convert the workbook; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel saves changed files, of all formats, on a timed interval. - true if Excel saves changed files on a timed interval; otherwise, false. - - - Enables data connections within the workbook. - - - Gets the name of the algorithm encryption provider that Microsoft Office Excel uses when encrypting passwords for the workbook. - The name of the algorithm encryption provider that Excel uses when encrypting passwords for the workbook. - - - - Terminates a review of a file that has been sent for review using the method. - - - Gets or sets a value that indicates whether the e-mail composition header and the envelope toolbar are both visible. - true if the e-mail composition header and the envelope toolbar are both visible; otherwise, false. - - - Gets a collection that represents all the Microsoft Office Excel 4.0 international macro sheets in the workbook. - A collection that represents all the Microsoft Office Excel 4.0 international macro sheets in the workbook. - - - Gets a collection that represents all the Microsoft Office Excel 4.0 macro sheets in the workbook. - A collection that represents all the Microsoft Office Excel 4.0 macro sheets in the workbook. - - - Gets a value that indicates whether the workbook is in compatibility mode. - true if the workbook is in compatibility mode; otherwise, false. - - - Assigns the current user exclusive access to the workbook that is open as a shared list. - - - Saves a workbook in PDF or XPS format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the workbook in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this parameter is omitted, exporting starts at the beginning. - The number of the last page to export. If this parameter is omitted, exporting ends with the last page. - true to open the new file after exporting the workbook; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the workbook to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - Gets the file format and type of the workbook. - One of the values. - - - Gets or sets a value that indicates whether the workbook is final. - true if the workbook is final; otherwise, false. - - - - Displays a cached document, if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application. - The address of the target document. - The location within the target document. The default value is the empty string. - true to display the target application in a new window. The default value is false. - Not used. Reserved for future use. - A string or byte array that specifies additional information for HTTP to use to resolve the hyperlink. For example, you can use to specify the coordinates of an image map, the contents of a form, or a FAT file name. - Specifies the way is attached. Can be one of the following Microsoft.Office.Core.MsoExtraInfoMethod constants: Microsoft.Office.Core.MsoExtraInfoMethod.msoMethodGet or Microsoft.Office.Core.MsoExtraInfoMethod.msoMethodPost. - A string that specifies header information for the HTTP request. The default value is an empty string. - - - Gets or sets a value that indicates whether to force a full calculation of a workbook. - true to force a full calculation of a workbook; otherwise, false. - - - - Gets the name of the object, including its path on disk. - The name of the object, including its path on disk. - - - Gets the name of the object, including its path on disk. - The name of the object, including its path on disk. - - - - - - Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the workbook. - An object in a document-level customization that can be used by VBA code in the workbook. - - - - - - - - Returns the collection of workflow tasks for the workbook. - A Microsoft.Office.Core.WorkflowTasks collection that contains the workflow tasks for the workbook. - - - Returns the collection of workflow templates for the workbook. - A Microsoft.Office.Core.WorkflowTemplates collection that contains the workflow templates for the workbook. - - - - Gets a value that indicates whether the workbook has a protection password. - true if the workbook has a protection password; otherwise, false. - - - Gets or sets a value that indicates whether the workbook has a routing slip. - true if the workbook has a routing slip; otherwise, false. - - - Gets a value that indicates whether a workbook has an attached Microsoft Visual Basic for Applications (VBA) project. - true if the workbook has an attached VBA project; otherwise, false. - - - Gets or sets a value that indicates whether changes to the shared workbook are highlighted on screen. - true if changes to the shared workbook are highlighted on screen; otherwise, false. - - - Controls how changes are shown in a shared workbook. - The changes that are shown. Can be one of the following constants: , , or . - The user or users whose changes are shown. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the area to check for changes. - - - - Gets the Microsoft.Office.Core.HTMLProject in the workbook, which represents a top-level project branch. - The Microsoft.Office.Core.HTMLProject in the workbook, which represents a top-level project branch. - - - Gets the collection of built-in icon sets that can be used to apply a conditional formatting rule to a range in the workbook. - A Microsoft.Office.Interop.Excel.IconSets collection that contains the built-in icon set objects that can be used to apply a conditional formatting rule to a range. - - - Gets or sets a value that indicates whether list borders are visible when a list is not active. - true if the border is visible; otherwise, false. - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - Gets or sets a value that indicates whether the workbook is running as an add-in. - true if the workbook is running as an add-in; otherwise, false. - - - Gets a value that indicates whether the specified workbook is being edited in place - true if the specified workbook is being edited in place; false if the workbook has been opened in Microsoft Office Excel for editing. - - - - Gets or sets a value that indicates whether change tracking is enabled for the shared workbook. - true if change tracking is enabled for the shared workbook; otherwise, false. - - - Gets or sets the keywords attached to the workbook. - The keywords attached to the workbook. - - - Gets the link date and update status. - A value that indicates information about the link. If is , this method returns 1 if the link updates automatically, or 2 if the link must be updated manually. - The name of the link. - One of the values that specifies the type of information to return. - One of the values that specifies the type of link to return information for. - If the link is an edition, this parameter specifies the edition reference as a string in R1C1 style. is required if there is more than one publisher or subscriber with the same name in the workbook. - - - Returns an of links in the workbook. - An of link names in the workbook; null if the workbook does not contain any links of the specified . - One of the values specifying the type of links to return. - - - Gets or sets a value that indicates whether changes to the shared workbook are shown on a separate worksheet. - true if changes to the shared workbook are shown on a separate worksheet; otherwise, false. - - - Locks the workbook on the server to prevent modification. - - - - Merges changes from one workbook into an open shared workbook. - The file name of the workbook that contains the changes to be merged into the open workbook. - - - - - - - - - - - - - - - - - - - Included for backwards compatibility only. - - - Gets a value that indicates whether the workbook is open as a shared list. - true if the workbook is open as a shared list; otherwise, false. - - - Gets the name of the workbook. - The name of the workbook. - - - Gets a collection that represents all the names in the workbook (including all worksheet-specific names). - A collection that represents all the names in the workbook (including all worksheet-specific names). - - - Occurs when a new workbook is created. - - - Occurs when a new chart is created in the workbook. - - - Occurs when a new sheet is created in the workbook. - - - Creates a new window. - - - Included for backwards compatibility only. - - - Included for backwards compatibility only. - - - Included for backwards compatibility only. - - - - - Occurs when the workbook is opened. - - - Opens the supporting documents for a link or links. - The name of the Microsoft Office Excel or DDE/OLE link, as returned from the method. - true to open documents as read-only. The default value is false. - One of the values. The link type. - - - Gets the parent object for the workbook. - The parent object for the workbook. - - - Gets or sets the password that must be supplied to open the workbook. - The password that must be supplied to open the workbook. - - - Gets the algorithm that Microsoft Office Excel uses to encrypt passwords for the workbook. - The algorithm that Excel uses to encrypt passwords for the workbook. - - - Gets a value that indicates whether Microsoft Office Excel encrypts file properties for the specified password-protected workbook. - true if Excel encrypts file properties for the specified password-protected workbook; otherwise, false. - - - Gets the key length of the algorithm that Microsoft Office Excel uses when encrypting passwords for the workbook. - The key length of the algorithm that Excel uses when encrypting passwords for the workbook. - - - Gets the name of the algorithm encryption provider that Microsoft Office Excel uses when encrypting passwords for the workbook. - The name of the algorithm encryption provider that Excel uses when encrypting passwords for the workbook. - - - Gets the complete path to the application, excluding the final separator and name of the application. - The complete path to the application, excluding the final separator and name of the application. - - - Gets a Microsoft.Office.Core.Permission object that represents the permission settings in the workbook. - A Microsoft.Office.Core.Permission object that represents the permission settings in the workbook. - - - Gets or sets a value that indicates whether filter and sort settings for lists are included in the user's personal view of the shared workbook. - true if filter and sort settings for lists are included in the user's personal view of the shared workbook; otherwise, false. - - - Gets or sets a value that indicates whether print settings are included in the user's personal view of the shared workbook. - true if print settings are included in the user's personal view of the shared workbook; otherwise, false. - - - Gets a collection that represents all the PivotTable caches in the specified workbook. - A collection that represents all the PivotTable caches in the specified workbook. - - - Occurs after a PivotTable report closes the connection to its data source. - - - Occurs after a PivotTable report opens the connection to its data source. - - - Creates a object. - An value. The source of the report data. - The data for the new report. Can be a object, an array of ranges, or a text constant that represents the name of another report. For an external database, is an array of strings containing the SQL query string, where each element is up to 255 characters in length. You should use the argument to specify the ODBC connection string. For compatibility with earlier versions of Excel, can be a two-element array. The first element is the connection string specifying the ODBC source for the data. The second element is the SQL query string used to get the data. If you specify , you must also specify . If the active cell is inside the range, you must specify as well. - A object specifying where the report should be placed on the worksheet. If this argument is omitted, the report is placed at the active cell. - The name of the new report. - true to show grand totals for rows in the report. - true to show grand totals for columns in the report. - true to save data with the report; false to save only the report definition. - true to have Microsoft Office Excel automatically format the report when it is refreshed or when fields are moved. - Valid only if is . true to have Excel create a page field for the consolidation. If is false, you must create the page field or fields. - Not used by Excel. - true to have Excel perform queries for the report asynchronously (in the background). The default value is false. - true to optimize the PivotTable cache when it is constructed. The default value is false. - The order in which page fields are added to the PivotTable report’s layout. Can be one of the following constants: or . The default value is . - The number of page fields in each column or row in the PivotTable report. The default value is 0 (zero). - true to create a PivotTable cache that contains all records from the external database; this cache can be very large. If is false, you can set some of the fields as server-based page fields before the data is actually read. - A string that contains ODBC settings that allow Excel to connect to an ODBC data source. The connection string has the form "ODBC;<connection string>". This argument overrides any previous setting for the object’s property. - - - Posts the workbook to a public folder. This method works only with a Microsoft Exchange client connected to a Microsoft Exchange server. - This argument is ignored. The method prompts the user to specify the destination for the workbook. - - - Gets or sets a value that indicates whether calculations in this workbook will be done using only the precision of the numbers as they are displayed. - true if calculations in this workbook will be done using only the precision of the numbers as they are displayed; otherwise, false. - - - Prints the workbook. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the workbook. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - true to ignore print areas and print the entire workbook; otherwise, false. - - - Shows a preview of the object as it would look when printed. - true to allow changes to the margins and page setup while displaying the print preview; otherwise, false. - - - Protects a workbook so that it cannot be modified. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - true to protect the structure of the workbook (the relative position of the sheets). The default value is false. - true to protect the workbook windows. If this argument is omitted, the windows are not protected. - - - Called by the Visual Studio Tools for Office runtime so that you can reapply password protection to the workbook after the cached data has been saved. - - - Saves the workbook and protects it for sharing. - The name of the saved file. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened read-only. - true to display a message when the file is opened, recommending that the file be opened read-only. - true to create a backup file. - The password to be used to protect the file for sharing. - - - Saves the workbook and protects it for sharing. - The name of the saved file. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - A case-sensitive password for the workbook. If this argument is omitted, you can unprotect the workbook without using a password. Otherwise, you must specify the password to unprotect the workbook. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened read-only. - true to display a message when the file is opened, recommending that the file be opened read-only. - true to create a backup file. - The password to be used to protect the file for sharing. - A string that indicates the file format. - - - Gets a value that indicates whether the order of the sheets in the workbook is protected. - true if the order of the sheets in the workbook is protected; otherwise, false. - - - Gets a value that indicates whether the windows of the workbook are protected. - true if the windows of the workbook are protected; otherwise, false. - - - Gets the collection. - The collection. - - - Removes entries from the change log for the workbook. - The number of days that changes in the change log are to be retained. - The password that unprotects the workbook for sharing. If the workbook is protected for sharing with a password and this argument is omitted, the user is prompted for the password. - - - Gets a value that indicates whether the workbook has been opened as read-only. - true if the workbook has been opened as read-only; otherwise, false. - - - Gets or sets a value that indicates whether the workbook was saved as read-only recommended. - true if the workbook was saved as read-only recommended; otherwise, false. - - - Causes a foreground smart tag check to occur automatically annotating data that was not annotated before. - - - Refreshes all external data ranges and PivotTable reports in the workbook. - - - Rejects all changes in the shared workbook. - One of the values that specifies when the changes to be rejected were made. - A string that identifies who made the changes to be rejected. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook. - An A1-style range reference that specifies the location of the changes to be rejected. - - - Reloads a workbook based on an HTML document, using the specified document encoding. - One of the Microsoft.Office.Core.MsoEncoding values. The encoding that is to be applied to the workbook. - - - Removes the customization that was created by using Office development tools in Visual Studio from the workbook. - The custom document properties or the cached data could not be removed from the workbook. - The document is protected. - - - Removes all information of the specified type from the workbook. - One of the Microsoft.Office.Interop.Excel.XlRemoveDocInfoType values that specifies the type of information to be removed. - - - Gets or sets a value that indicates whether personal information can be removed from the workbook. - true if personal information can be removed from the workbook; otherwise, false. The default value is false. - - - Disconnects the specified user from the shared workbook. - The user index. - - - - - Sends an e-mail message to the author of a workbook that has been sent out for review, notifying him or her that a reviewer has completed review of the workbook. - true to display the message; false to not display the message. - - - Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface in a document-level customization. - An object in your document-level customization that implements the Microsoft.Office.Core.IRibbonExtensibility interface. - A that identifies the Microsoft.Office.Core.IRibbonExtensibility interface. - - - Gets an object that represents the research service for the workbook. - A Microsoft.Office.Interop.Excel.Research object that represents the research service for the workbook. - - - Resets the color palette to the default colors. - - - Gets the number of times the workbook has been saved while open as a shared list. If the workbook is open in exclusive mode, this property returns 0 (zero). - The number of times the workbook has been saved while open as a shared list. - - - Routes the workbook, using the workbook's current routing slip. - - - Gets a value that indicates whether the workbook has been routed to the next recipient. - true if the workbook has been routed to the next recipient; false if the workbook needs to be routed. - - - Gets a object that represents the routing slip for the workbook. - A object that represents the routing slip for the workbook. - - - Occurs when the user navigates through the recordset or invokes the rowset action on an OLAP PivotTable. - - - Runs the Auto_Open, Auto_Close, Auto_Activate, or Auto_Deactivate macro attached to the workbook. This method is included for backward compatibility. You should use the Open, Close, Activate and Deactivate events instead of these macros. - One of the values. - - - Saves changes to the workbook. - - - Saves changes to the workbook in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - One of the values that specifies the file format to use when you save the file. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - One of the values. - One of the values. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings). false (default) saves files against the language of Visual Basic for Applications (VBA). - - - Exports the data that has been mapped to the specified XML schema map to an XML data file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - - object. The schema map to apply to the data. - - - Saves a copy of the workbook to a file but does not modify the open workbook in memory. - Specifies the file name for the copy. - - - Gets or sets a value that indicates whether no changes have been made to the workbook since it was last saved. - true if no changes have been made to the workbook since it was last saved; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel saves external link values with the workbook. - true if Excel saves external link values with the workbook; otherwise, false. - - - - - - Sends the active sheet in the workbook as a fax to the specified recipients. - The fax numbers and e-mail addresses of the people to whom the fax will be sent. Separate multiple recipients with a semicolon. - The subject line for the faxed document. - true displays the fax message before sending it; false sends the fax without displaying the fax message. - - - Sends a workbook in an e-mail message for review to the specified recipients. - The people to whom to send the message. These can be unresolved names and aliases in an e-mail phone book or full e-mail addresses. Separate multiple recipients with a semicolon (;). If left blank and is false, you will receive an error message, and the message will not be sent. - The subject of the message. If left blank, the subject will be: Please review " ". - A value that indicates whether the message should be displayed when the method is executed. The default value is true. If set to false, the message is automatically sent to the recipients without first showing the message to the sender. - A value that indicates whether the message should include an attachment or a link to a server location. The default value is true. If set to false, the document must be stored at a shared location. - - - Sends the workbook by using the installed mail system. - Specifies the name of the recipient as text, or as an array of text strings if there are multiple recipients. At least one recipient must be specified, and all recipients are added as To recipients. - Specifies the subject of the message. If this argument is omitted, the document name is used. - true to request a return receipt. false to not request a return receipt. The default value is false. - - - - - - - Gets an object that represents a policy specified for a workbook that is stored on a server running Microsoft Office SharePoint Server. - A Microsoft.Office.Core.ServerPolicy object that represents a policy specified for a workbook that is stored on a server running SharePoint Server. - - - Gets an object that you can use to interact with the list of published objects in the workbook that are shown on a Microsoft Office SharePoint Server server. - A Microsoft.Office.Interop.Excel.ServerViewableItems object that you can use to interact with the list of published objects in the workbook that are shown on the server. - - - Use the property instead of this method. - - - - - Sets the name of a procedure that runs whenever a DDE link is updated. - The name of the DDE/OLE link, as returned from the method. - The name of the procedure to be run when the link is updated. This can be either a Microsoft Office Excel 4.0 macro or a Visual Basic procedure. Set this argument to an empty string ("") to indicate that no procedure should run when the link is updated. - - - Sets the options for encrypting the workbook using a password. - A case sensitive string of the encryption provider. - A case sensitive string of the algorithmic short name (i.e. "RC4"). - The encryption key length, which is a multiple of 8 (40 or greater). - true (default) to encrypt file properties. - - - Gets a Microsoft.Office.Core.SharedWorkspace that represents the Document Workspace in which the workbook is located. - A Microsoft.Office.Core.SharedWorkspace that represents the Document Workspace in which the workbook is located. - - - Included for backwards compatibility only. - - - Occurs when any worksheet is double-clicked, before the default double-click action. - - - Occurs when any worksheet is right-clicked, before the default right-click action. - - - Occurs after any worksheet is recalculated or after any changed data is plotted on a chart. - - - Occurs when cells in any worksheet are changed by the user or by an external link. - - - Included for backwards compatibility only. - - - Occurs when you click any hyperlink in a workbook. - - - Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas). This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are applied to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are committed against the OLAP data source for a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes to a PivotTable are discarded. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after changes to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after the sheet of a PivotTable report has been updated. - - - Gets a collection that represents all the sheets in the workbook. - A collection that represents all the sheets in the workbook. - - - Occurs when the selection changes on any worksheet. Does not occur if the selection is on a chart sheet. - - - Gets or sets a value that indicates whether the Conflict History worksheet is visible in the workbook that is open as a shared list. - true if the Conflict History worksheet is visible in the workbook that is open as a shared list; otherwise, false. - - - Gets or sets a value that indicates whether the PivotChart Filter Pane is visible. - true if the PivotChart Filter Pane is visible; otherwise, false. - - - Gets or sets a value that indicates whether the PivotTable field list can be shown. - true if the PivotTable field list can be shown; otherwise, false. The default is true. - - - Occurs when the workbook host item shuts down. - - - Gets the collection of digital signatures for the workbook. - A Microsoft.Office.Core.SignatureSet collection that contains the digital signatures for the workbook. - - - - Gets the object associated with the workbook. - A object associated with the workbook. - This property is used in an Excel 2007 project. - - - Gets a Microsoft.Office.Core.SmartDocument that represents the settings for a smart document solution. - A Microsoft.Office.Core.SmartDocument that represents the settings for a smart document solution. - - - Gets a object representing the options that can be performed with a smart tag. - A object representing the options that can be performed with a smart tag. - - - - Gets a collection that represents all the styles in the workbook. - A collection that represents all the styles in the workbook. - - - Gets or sets the subject for the mailer or routing slip. - The subject for the mailer or routing slip. - - - Gets a Microsoft.Office.Core.Sync object that provides access to the methods and properties of documents that are part of a Document Workspace. - A Microsoft.Office.Core.Sync object that provides access to the methods and properties of documents that are part of a Document Workspace. - - - Occurs when the local copy of a worksheet that is part of a Document Workspace is synchronized with the copy on the server. - - - Gets the collection of table styles that are used in the workbook. - A Microsoft.Office.Interop.Excel.TableStyles collection that contains the table styles that are used in the workbook. - - - Gets or sets the object that contains data about the workbook. - An object that contains data about the workbook. - - - Gets or sets a value that indicates whether external data references are removed when the workbook is saved as a template. - true if external data references are removed when the workbook is saved as a template; otherwise, false. - - - Gets the theme that is applied to the workbook. - A Microsoft.Office.Core.OfficeTheme that represents the theme that is applied to the workbook. - - - Gets or sets the title of the Web page when the workbook is saved as a Web page. - The title of the Web page when the workbook is saved as a Web page. - - - Toggles Microsoft Office Excel into and out of design mode. - - - Removes protection from the workbook. This method has no effect if the workbook is not protected. - The case-sensitive password to use to unprotect the workbook. If the workbook is not protected with a password, this parameter is ignored. If you omit this parameter for a workbook that is protected with a password, the method fails. - - - Called by the Visual Studio Tools for Office runtime so that you can remove password protection from the workbook and enable cached data to be saved. - - - Turns off protection for sharing and saves the workbook. - The workbook password. - - - Updates a read-only workbook from the saved disk version of the workbook if the disk version is more recent than the copy of the workbook that is loaded in memory. If the disk copy has not changed since the workbook was loaded, the in-memory copy of the workbook is not reloaded. - - - Updates a Microsoft Office Excel, DDE, or OLE link (or links). - The name of the Excel or DDE/OLE link to be updated, as returned from the method. - One of the values. - - - Gets or sets a value that indicates a workbook's setting for updating embedded OLE links. - One of the values. - - - Gets or sets a value that indicates whether Microsoft Office Excel updates remote references in the workbook. - true if Excel updates remote references in the workbook; otherwise, false. - - - Gets or sets a value that indicates whether the workbook or application was created or opened by the user. - true if the workbook or application was created or opened by the user; false if the workbook or application was created or opened programmatically from another Microsoft Office application with the method or the VBA.Interaction.CreateObject or VBA.Interaction.GetObject method. - - - Gets a 1-based, two-dimensional array that provides information about each user who has the workbook open as a shared list. - A 1-based, two-dimensional array that provides information about each user who has the workbook open as a shared list. - - - Gets a value that indicates whether the Visual Basic for Applications project for the workbook has been digitally signed. - true if the Visual Basic for Applications project for the workbook has been digitally signed; otherwise, false. - - - Gets the virtual Microsoft.Vbe.Interop.VBProject project that is in the workbook. - The virtual Microsoft.Vbe.Interop.VBProject project that is in the workbook. - - - Gets the associated with the workbook. - The associated with the workbook. - - - Gets the collection, which contains workbook-level attributes used by Microsoft Office Excel when you save a document as a Web page or open a Web page. - The collection, which contains workbook-level attributes used by Excel when you save a document as a Web page or open a Web page. - - - Displays a preview of the workbook as it would look if saved as a Web page. - - - Occurs when any workbook window is activated. - - - Occurs when any workbook window is deactivated. - - - Occurs when any workbook window is resized. - - - Gets a collection that represents all the windows in the workbook. - A collection that represents all the windows in the workbook. - - - Gets a collection that represents all the worksheets in the workbook. - A collection that represents all the worksheets in the workbook. - - - Gets or sets the write password of a workbook. - The write password of a workbook. - - - Gets a value that indicates whether the workbook is write-reserved. - true if the workbook is write-reserved; otherwise, false. - - - Gets the name of the user who currently has write permission for the workbook. - The name of the user who currently has write permission for the workbook. - - - Imports an XML data file into the current workbook. - One of the values. - A uniform resource locator (URL) or a uniform naming convention (UNC) path to an XML data file. - The schema map to apply when importing the file. - If a value is not specified for the parameter, then this parameter specifies whether or not to overwrite data that has been mapped to the schema map specified in the parameter. Set to true to overwrite the data or false to append the new data to the existing data. The default value is true. If a value is specified for the parameter, then this parameter specifies whether or not to overwrite existing data. Set to true to overwrite existing data or false to cancel the import if data would be overwritten. The default value is true. - The data will be imported into a new XML list at the specified. - - - Imports an XML data stream that has been previously loaded into memory. - One of the values. - The data to import. - The schema map to apply when importing the file. - If a value is not specified for the parameter, then this parameter specifies whether or not to overwrite data that has been mapped to the schema map specified in the parameter. Set to true to overwrite the data or false to append the new data to the existing data. The default value is true. If a value is specified for the parameter, then this parameter specifies whether or not to overwrite existing data. Set to true to overwrite existing data or false to cancel the import if data would be overwritten. The default value is true. - The data will be imported into a new XML list in the specified. - - - Gets an collection that represents the schema maps that have been added to the workbook. - An collection that represents the schema maps that have been added to the workbook. - - - Gets an collection that represents the XML namespaces contained in the workbook. - An collection that represents the XML namespaces contained in the workbook. - - - Provides the base class for the Sheetn classes in document-level projects for Microsoft Office Excel. - - - - - - - - - - - - Occurs when the worksheet is activated. - - - Gets a object that represents the Microsoft Office Excel application. - A that represents the Excel application. - - - - - - Gets a that provides information about filtered lists on the worksheet if filtering is enabled. Gets null if filtering is off. - A that provides information about filtered lists on the worksheet if filtering is enabled; otherwise, null. - - - Gets or sets a value that indicates whether filtering is currently enabled on the worksheet (that is, whether the filter drop-down arrows are currently displayed). - true if filtering is currently enabled on the worksheet; otherwise, false. - This property is set to true. - - - Gets the object that this object extends. - The object that this object extends. - - - Occurs when the worksheet is double-clicked, before the default double-click action. - - - Occurs when the worksheet is right-clicked, before the default right-click action. - - - - - - - - - Occurs after the worksheet is recalculated. - - - Calculates the formulas in the worksheet. - - - Gets a object that represents all the cells on the worksheet (not just the cells that are currently in use). - A object that represents all the cells on the worksheet (not just the cells that are currently in use). - - - Occurs when something changes in the cells. - - - Gets an object that represents either a single embedded chart (a ) or a collection of all the embedded charts (a ) on the worksheet. - An object that represents either a single embedded chart (a ) or a collection of all the embedded charts (a ) on the worksheet. - The name or number of the chart. This argument can be an array, to specify more than one chart. - - - - - - - - - - - - Circles invalid entries on the worksheet. - - - Gets a object that represents the range containing the first circular reference on the sheet, or gets null if there is no circular reference on the sheet. - A object that represents the range containing the first circular reference on the sheet; null if there is no circular reference on the sheet. - - - Clears the tracer arrows from the worksheet. Tracer arrows are added by using the auditing feature. - - - Clears circles from invalid entries on the worksheet. - - - - Gets a object that represents one or more columns on the worksheet. - A object that represents one or more columns on the worksheet. - - - Gets a collection that represents all the comments for the worksheet. - A collection that represents all the comments for the worksheet. - - - Gets the function code used for the current consolidation. - One of the values. - - - Gets a three-element of consolidation options. - A three-element of consolidation options. - - - Gets an of strings that name the source sheets and ranges for the worksheet's current consolidation. - An of string values that name the source sheets and ranges for the worksheet's current consolidation; null if there is no consolidation on the sheet. - - - Gets the collection of managed controls that are contained on the worksheet. - A that contains all the managed controls on the worksheet. - - - Copies the worksheet to another location in the workbook. - The sheet before which the copied sheet will be placed. You cannot specify if you specify . - The sheet after which the copied sheet will be placed. You cannot specify if you specify . - - - Gets a value that indicates the application in which the worksheet was created. - If the worksheet was created in Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. - - - Gets a object representing the identifier information associated with a worksheet. - A object representing the identifier information associated with a worksheet. - - - - - Occurs when the worksheet loses focus. - - - Deletes the underlying object, but does not delete the host item. It is highly recommended that this method not be used. - - - - Gets or sets a value that indicates whether page breaks (both automatic and manual) on the worksheet are displayed. - true if page breaks (both automatic and manual) on the worksheet are displayed; otherwise, false. - - - Gets or sets a value that indicates whether the worksheet is displayed from right to left instead of from left to right. - true if the worksheet is displayed from right to left instead of from left to right; false if the object is displayed from left to right. - - - Releases all resources used by the current instance of the class. - - - - - - - - - - - - - Gets or sets a value that indicates whether AutoFilter arrows are enabled when user-interface-only protection is turned on. - true if AutoFilter arrows are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or set a value that indicates whether Microsoft Office Excel automatically recalculates the worksheet when necessary. - true if Excel automatically recalculates the worksheet when necessary; otherwise, false. - - - Gets or sets a value that determines whether conditional formats will occur automatically. - true if evaluation of conditional formats will occur automatically; otherwise, false. The default is true. - - - Gets or sets a value that indicates whether outlining symbols are enabled when user-interface-only protection is turned on. - true if outlining symbols are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or sets a value that indicates whether PivotTable controls and actions are enabled when user-interface-only protection is turned on. - true if PivotTable controls and actions are enabled when user-interface-only protection is turned on; otherwise, false. - - - Gets or sets a value indicating which cells can be selected on the sheet. - One of the values. - - - - Converts a Microsoft Office Excel name to an object or a value. - The name of the object, using the naming convention of Excel. - - - Exports to a file of the specified format. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatType values that specifies whether to save the workbook in PDF or XPS format. - The full path of the new PDF or XPS file. If you omit this parameter, Excel saves the file in the current folder. - One of the Microsoft.Office.Interop.Excel.XlFixedFormatQuality values that specifies the quality of the exported file. - true to include document properties in the exported file; otherwise, false. - true to ignore any print areas set when exporting; otherwise, false. - The number of the page at which to start exporting. If this argument is omitted, exporting starts at the first page. - The number of the last page to export. If this argument is omitted, exporting ends with the last page. - true to display the file in the viewer immediately; otherwise, false. - A pointer to an implementation of the IMsoDocExporter interface that enables the workbook to be saved in a different fixed format. For more information, see Extending the Office (2007) Fixed-Format Export Feature. - - - Gets a value that indicates whether the worksheet is actively filtering data. - true if the worksheet is actively filtering data; otherwise, false. - - - - Occurs when you click any hyperlink on a worksheet. - - - Gets a object that represents a cell or a range of cells. Use the property instead of this method. - A that represents a cell or a range of cells. - The name of the range in A1-style notation in the language of the application. It can include the range operator (a colon), the intersection operator (a space), or the union operator (a comma). It can also include dollar signs, but they are ignored. You can use a local defined name in any part of the range. If you use a name, the name is assumed to be in the language of the application. This parameter is required. - The cell in the lower-right corner of the range. Can be a that contains a single cell, an entire column, an entire row, or it can be a string that names a single cell in the language of the application. This parameter is optional. - - - Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the worksheet. - An object in a document-level customization that can be used by VBA code in the worksheet. - - - - - - - - - - Gets an collection that represents the horizontal page breaks on the sheet. - An collection that represents the horizontal page breaks on the sheet. - - - Gets a collection that represents the hyperlinks for the range or worksheet. - A collection that represents the hyperlinks for the range or worksheet. - - - Gets the index number of the worksheet within the collection of worksheets. - The index number of the worksheet within the collection of worksheets. - - - - - Gets a that represents the underlying native object for the . - A that represents the underlying native object for the . - - - - - - - - - - - - - Gets a collection of objects in the worksheet. - The collection for the worksheet. - - - Gets an e-mail header for the worksheet. - An e-mail header for the worksheet. - - - - - - - - - - - - Moves the worksheet to another location in the workbook. - The sheet before which the moved sheet will be placed. You cannot specify if you specify . - The sheet after which the moved sheet will be placed. You cannot specify if you specify . - - - Gets or sets the name of the worksheet. - The name of the worksheet. - - - Gets a collection that represents all the worksheet-specific names (names defined with the "WorksheetName!" prefix). - A collection that represents all the worksheet-specific names (names defined with the "WorksheetName!" prefix). - - - Gets a that represents the next sheet. - A that represents the next sheet; null if the current worksheet is the last sheet in the workbook. - - - Gets an object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the worksheet. - An object that represents either a single OLE object (an ) or a collection of all OLE objects (an collection) on the worksheet. - The name or number of the OLE object. - - - - - - - - - - - - - - Gets an that represents the outline for the worksheet. - An that represents the outline for the worksheet. - - - - - - Gets a that contains all the page setup settings for the worksheet. - A that contains all the page setup settings for the worksheet. - - - Gets the parent object for the worksheet. - The parent object for the worksheet. - - - Pastes the contents of the Clipboard onto the worksheet. - A object that specifies where the Clipboard contents should be pasted. If this argument is omitted, the current selection is used. This argument can be specified only if the contents of the Clipboard can be pasted into a range. If this argument is specified, the argument cannot be used. - true to establish a link to the source of the pasted data. If this argument is specified, the argument cannot be used. The default value is false. - - - Pastes the contents of the Clipboard onto the worksheet, using a specified format. Use this method to paste data from other applications or to paste data in a specific format. - A string that specifies the Clipboard format of the data. Common format strings include "HTML", "Bitmap", "Hyperlink", "Unicode Text", and "Text". - true to establish a link to the source of the pasted data. If the source data is not suitable for linking or the source application does not support linking, this parameter is ignored. The default value is false. - true to display the pasted object as an icon. The default value is false. - The name of the file that contains the icon to use if is true. - The index number of the icon within the icon file. - The text label of the icon. - true to remove all formatting, hyperlinks, and images from HTML; false to paste HTML as is. The default value is false. - - - - - - Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas). This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are applied to a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes are committed against the OLAP data source for a PivotTable. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs before changes to a PivotTable are discarded. This event can be used only in Excel 2010 projects. - This event is used in an Excel 2007 project. - - - Occurs after changes to a PivotTable. This event can be used only in Excel 2010 projects. - This property is used in an Excel 2007 project. - - - Gets an object that represents either a single PivotTable report (a object) or a collection of all the PivotTable reports (a object) on a worksheet. - An object that represents either a single PivotTable report (a object) or a collection of all the PivotTable reports (a object) on a worksheet. - The name or number of the report. - - - Occurs after a PivotTable report is updated on a worksheet. - - - Creates a object. - The object. - An value. The source of the report data. - The data for the new report. Can be a object, an array of ranges, or a text constant that represents the name of another report. For an external database, is an array of strings containing the SQL query string, where each element is up to 255 characters in length. You should use the argument to specify the ODBC connection string. For compatibility with earlier versions of Excel, can be a two-element array. The first element is the connection string specifying the ODBC source for the data. The second element is the SQL query string used to get the data. If you specify , you must also specify . If the active cell is inside the range, you must specify as well. - A object specifying where the report should be placed on the worksheet. If this argument is omitted, the report is placed at the active cell. - The name of the new report. - true to show grand totals for rows in the report. - true to show grand totals for columns in the report. - true to save data with the report; false to save only the report definition. - true to have Microsoft Office Excel automatically format the report when it is refreshed or when fields are moved. - Valid only if is . true to have Excel create a page field for the consolidation. If is false, you must create the page field or fields. - Not used by Excel. - true to have Excel perform queries for the report asynchronously (in the background). The default value is false. - true to optimize the PivotTable cache when it is constructed. The default value is false. - The order in which page fields are added to the PivotTable report’s layout. Can be one of the following constants: or . The default value is . - The number of page fields in each column or row in the PivotTable report. The default value is 0 (zero). - true to create a PivotTable cache that contains all records from the external database; this cache can be very large. If is false, you can set some of the fields as server-based page fields before the data is actually read. - A string that contains ODBC settings that allow Excel to connect to an ODBC data source. The connection string has the form "ODBC;<connection string>". This argument overrides any previous setting for the object’s property. - - - Gets a that represents the previous sheet. - A that represents the previous sheet; null if the current worksheet is the first sheet in the workbook. - - - Gets the number of comment pages that will be printed for the current worksheet. This property can be used only in Excel 2010 projects. - The number of comment pages that will be printed for the current worksheet. - This property is used in an Excel 2007 project. - - - Prints the worksheet. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object; false (or omitted) to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - - - Prints the worksheet. - The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning. - The number of the last page to print. If this argument is omitted, printing ends with the last page. - The number of copies to print. If this argument is omitted, one copy is printed. - true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately. - Sets the name of the active printer. - true to print to a file. If is not specified, Excel prompts the user to enter the name of the output file. - true to collate multiple copies. - If is set to true, this argument specifies the name of the file you want to print to. - true to ignore print areas and print the entire workbook; otherwise, false. - - - Shows a preview of the worksheet as it would look when printed. - - - - Protects a worksheet so that it cannot be modified. - A case-sensitive password for the worksheet. If this argument is omitted, you can unprotect the worksheet without using a password. Otherwise, you must specify the password to unprotect the worksheet. If you forget the password, you cannot unprotect the worksheet. It is a good idea to keep a list of your passwords and their corresponding document names in a safe place. - true to protect shapes. The default value is false. - true to protect contents in the locked cells. The default value is true. - true to protect scenarios. The default value is true. - true to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface. - true allows the user to format any cell on a protected worksheet. The default value is false. - true allows the user to format any column on a protected worksheet. The default value is false. - true allows the user to format any row on a protected worksheet. The default value is false. - true allows the user to insert columns on the protected worksheet. The default value is false. - true allows the user to insert rows on the protected worksheet. The default value is false. - true allows the user to insert hyperlinks on the worksheet. The default value is false. - true allows the user to delete columns on the protected worksheet, where every cell in the column to be deleted is unlocked. The default value is false. - true allows the user to delete rows on the protected worksheet, where every cell in the row to be deleted is unlocked. The default value is false. - true allows the user to sort on the protected worksheet. Every cell in the sort range must be unlocked or unprotected. The default value is false. - true allows the user to set filters on the protected worksheet. Users can change filter criteria but can not enable or disable an autofilter. Users can set filters on an existing autofilter. The default value is false. - true allows the user to use pivot table reports on the protected worksheet. The default value is false. - - - Gets a value that indicates whether the contents of the worksheet (the individual cells) are protected. - true if the contents of the sheet are protected; otherwise, false. - - - Gets a value that indicates whether shapes are protected. - true if shapes are protected; otherwise, false. - - - Gets a object that represents the protection options of the worksheet. - A object that represents the protection options of the worksheet. - - - Gets a value that indicates whether user interface-only protection is turned on. - true if user interface-only protection is turned on; otherwise, false. - - - Gets a value that indicates whether worksheet scenarios are protected. - true if the worksheet scenarios are protected; otherwise, false. - - - Gets the collection that represents all the query tables on the worksheet. - The collection that represents all the query tables on the worksheet. - - - Gets a object that represents a cell or a range of cells. - A that represents a cell or a range of cells. - - - - - - Resets all page breaks on the specified worksheet. - - - Gets a object that represents one or more rows on the worksheet. - A object that represents one or more rows on the worksheet. - - - Saves changes to the worksheet in a different file. - The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder. - The file format to use when you save the file. For a list of valid choices, see the property. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used. - A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file. - The write-reservation password for this file. If a file is saved with the password and the password is not supplied when the file is opened, the file is opened as read-only. - true to display a message when the file is opened, recommending that the file be opened as read-only. - true to create a backup file. - true to add this workbook to the list of recently used files. The default value is false. - Not used in U.S. English Excel. - Not used in U.S. English Excel. - true saves files against the language of Excel (including control panel settings); false (default) saves files against the language of Visual Basic for Applications (VBA). - - - Gets an object that represents either a single scenario (a object) or a collection of scenarios (a object) on the worksheet. - An object that represents either a single scenario (a object) or a collection of scenarios (a object) on the worksheet. - The name or number of the scenario. Use an array to specify more than one scenario. - - - Gets the collection, which contains objects representing blocks of script or code in the worksheet when it is saved as a Web page. - The collection, which contains objects representing blocks of script or code in the worksheet when it is saved as a Web page. - - - Gets or sets the range where scrolling is allowed, as an A1-style range reference. - The range where scrolling is allowed, as an A1-style range reference. - - - - - - Selects the worksheet. - true to remove the current selection and select the worksheet instead; false to extend the current selection to include any previously selected objects and the worksheet. - - - Occurs when the selection changes on a worksheet. - - - Sets the background graphic for the worksheet. - The name of the graphic file. - - - Gets a object that represents all the shapes on the worksheet. - A object that represents all the shapes on the worksheet. - - - Makes all rows of the currently filtered list visible. If AutoFilter is in use, this method changes the arrows to "All." - - - Displays the data form associated with the worksheet. - - - Occurs when the worksheet host item shuts down. - - - - Gets a object representing the collection of smart tags for the worksheet. - A object representing the collection of smart tags for the worksheet. - - - Gets the sorted values in the current worksheet. - The sorted values in the current worksheet. - - - - - - Gets the standard (default) height of all the rows in the worksheet, in points. - The standard (default) height of all the rows in the worksheet, in points. - - - Gets or sets the standard (default) width of all the columns in the worksheet. - The standard (default) width of all the columns in the worksheet. - - - - Gets a for the worksheet. - A for the worksheet. - - - Gets or sets the object that contains data about the worksheet. - An object that contains data about the worksheet. - - - - - - Gets or sets a value that indicates whether Microsoft Office Excel uses Lotus 1-2-3 expression evaluation rules for the worksheet. - true if Excel uses Lotus 1-2-3 expression evaluation rules for the worksheet; otherwise, false. - - - Gets or sets a value that indicates whether Microsoft Office Excel uses Lotus 1-2-3 formula entry rules for the worksheet. - true if Excel uses Lotus 1-2-3 formula entry rules for the worksheet; otherwise, false. - - - Gets the worksheet type. - One of the values. - - - Removes protection from the worksheet. This method has no effect if the worksheet is not protected. - The case-sensitive password to use to unprotect the worksheet. If the worksheet is not protected with a password, this argument is ignored. If you omit this argument for a worksheet that is protected with a password, you will be prompted for the password. - - - Gets a object that represents all the cells that have contained a value at any time. - A object that represents all the cells that have contained a value at any time. - - - Gets or sets a value that determines whether the object is visible. - One of the values. - - - Gets a collection that represents the vertical page breaks on the sheet. - A collection that represents the vertical page breaks on the sheet. - - - Gets a object that represents the cells mapped to a particular XPath. Gets null if the specified XPath has not been mapped to the worksheet, or if the mapped range is empty. - A object that represents the cells mapped to a particular XPath; null if the specified XPath has not been mapped to the worksheet, or if the mapped range is empty. - The XPath to query for. - A space-delimited string that contains the namespaces referenced in the XPath parameter. A run-time error is generated if one of the specified namespaces cannot be resolved. - An . Specify an XML map if you want to query for the XPath within a specific map. - - - Gets a object that represents the cells mapped to a particular XPath. Gets null if the specified XPath has not been mapped to the worksheet. - A object that represents the cells mapped to a particular XPath; null if the specified XPath has not been mapped to the worksheet. - The XPath to query for. - A space-delimited string that contains the namespaces referenced in the XPath parameter. A run-time error is generated if one of the specified namespaces cannot be resolved. - An . Specify an XML map if you want to query for the XPath within a specific map. - - - Represents a Windows Forms button that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms check box that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - - - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:.. - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - A object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Gets the z-order position of the . - The z-order position of the . - - - Represents a Windows Forms that can be added to a Microsoft Office Excel worksheet. - - - - - - - - - - - - - Activates the . - true if the is activated; otherwise, false. - - - - - Gets an object that represents the creator of the . - An object that represents the creator of the . - - - Gets a that represents the border of the . - A that represents the border of the . - - - Gets the distance, in points, between the bottom edge of the and the top edge of the worksheet. - The distance, in points, between the bottom edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the lower-right corner of the . - A object that represents the cell that lies under the lower-right corner of the . - - - Brings the to the front of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - Copies the to the Clipboard as a picture. - true if the copy is successful; otherwise, false. - Specifies how the picture should be copied. - The format of the picture. Accepts the value . - - - Gets a value that indicates the application in which the was created. - The . - - - Deletes a dynamically created from the worksheet and removes it from the . - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the height of the . - The height of the in points. - - - Gets the index number of the within the collection of on the sheet. - The index number of the within the collection of on the sheet. - - - Gets an object that represents the interior of the . - An object that represents the interior of the . - - - Gets or sets the distance, in points, between the left edge of the and the left edge of the worksheet. - The distance, in points, between the left edge of the and the left edge of the worksheet. - - - - Gets or sets a value that indicates whether the can be modified at design time when the sheet is protected. - true if the cannot be modified at design time when the sheet is protected; otherwise, false. - - - Gets a value that represents the OLE object type. - An . - - - - Gets the parent object for the . - The parent object for the . - - - Gets or sets an object that indicates the way the is attached to the cells below it. - One of the following values:... - - - Gets or sets a value that indicates whether the is printed when the worksheet is printed. - true if the is printed when the worksheet is printed; otherwise, false. - - - Gets the distance, in points, between the right edge of the and the left edge of the worksheet. - The distance, in points, between the right edge of the and the left edge of the worksheet. - - - Selects the . - true if button is selected; otherwise, false. - true to replace the current selection with the ; false to extend the current selection to include any previously selected objects and the . - - - Sends the to the back of the z-order. - true if the z-order is successfully changed; otherwise, false. - - - - - - - - - - - - - - - - Sets the to the specified visible state. - true to make the control visible; otherwise, false. - - - Gets a object that represents the . - A object that represents the . - - - Gets or sets the link source name of the . - The link source name of the . - - - - - Gets or sets the distance, in points, between the top edge of the and the top edge of the worksheet. - The distance, in points, between the top edge of the and the top edge of the worksheet. - - - Gets a object that represents the cell that lies under the upper-left corner of the . - - object that represents the cell that lies under the upper-left corner of the . - - - - - Gets or sets a value that represents whether the is visible. - true if the is visible; otherwise, false. - - - Gets or sets the width of the in points. - The width of the in points. - - - Processes Windows messages. - The Windows to process. - - - Gets the z-order position of the . - The z-order position of the . - - - Provides methods you can use to extend Microsoft Office Excel list objects by generating host controls for objects and by testing for the existence of the generated host controls. - - - Returns a host control that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host control that extends the functionality of the current object. - The native list object to extend. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host control that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host control that extends the functionality of the current object. - The native list object to extend. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host control has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host control has been created for the current object; otherwise, false. - The native list object to test. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host control has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host control has been created for the current object; otherwise, false. - The native list object to test. Do not supply this parameter yourself. When you call this method on an Excel list object, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Provides methods you can use to extend Microsoft Office Excel workbooks by generating host items for objects and by testing for the existence of the generated host items. - - - Returns a host item that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native workbook object to extend. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host item that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native workbook object to extend. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native workbook object to test. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native workbook object to test. Do not supply this parameter yourself. When you call this method on an Excel workbook, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Provides methods you can use to extend Microsoft Office Excel worksheets by generating host items for objects and by testing for the existence of the generated host items. - - - Returns a host item that extends the functionality of the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native worksheet object to extend. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a host item that extends the functionality of the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - A host item that extends the functionality of the current object. - The native worksheet object to extend. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in an application-level add-in. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native worksheet object to test. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your application-level add-in. Pass the Globals.Factory object to this parameter. - - - Returns a value that indicates whether a host item has been created for the current object in a document-level customization. Pass the Globals.Factory object in your project to the parameter. - true if a host item has been created for the current object; otherwise, false. - The native worksheet object to test. Do not supply this parameter yourself. When you call this method on an Excel worksheet, the runtime supplies this parameter. - An object that provides access to certain features in your document-level customization. Pass the Globals.Factory object to this parameter. - - - \ No newline at end of file diff --git a/bin/x86/Debug/glVersion.txt b/bin/x86/Debug/glVersion.txt index 48ef46c..9447e7f 100644 --- a/bin/x86/Debug/glVersion.txt +++ b/bin/x86/Debug/glVersion.txt Binary files differ diff --git a/bin/x86/Debug/login.xml b/bin/x86/Debug/login.xml index 27656b9..d1aec62 100644 --- a/bin/x86/Debug/login.xml +++ b/bin/x86/Debug/login.xml @@ -1,6 +1,6 @@  - szht - szht@1234 + ghfx + ghfx true \ No newline at end of file