diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs new file mode 100644 index 0000000..9fe14fb --- /dev/null +++ b/FrmFlagManagers.Designer.cs @@ -0,0 +1,180 @@ +namespace Cyberpipe +{ + partial class FrmFlagManagers + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.标识对象ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.bar1 = new DevComponents.DotNetBar.Bar(); + this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); + this.txt_no = new DevComponents.DotNetBar.TextBoxItem(); + this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); + this.combo_street = new DevComponents.DotNetBar.ComboBoxItem(); + this.btn_query = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_batch = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_menu = new DevComponents.DotNetBar.ButtonItem(); + this.winGridViewPager1 = new WHC.Pager.WinControl.WinGridViewPager(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.标识对象ToolStripMenuItem, + this.toolStripMenuItem2}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(125, 48); + // + // 标识对象ToolStripMenuItem + // + this.标识对象ToolStripMenuItem.Name = "标识对象ToolStripMenuItem"; + this.标识对象ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.标识对象ToolStripMenuItem.Text = "标识对象"; + this.标识对象ToolStripMenuItem.Click += new System.EventHandler(this.标识对象ToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Text = "查看位置"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // bar1 + // + this.bar1.AntiAlias = true; + this.bar1.Dock = System.Windows.Forms.DockStyle.Top; + this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.labelItem1, + this.txt_no, + this.labelItem2, + this.combo_street, + this.btn_query, + this.btn_add_batch, + this.btn_add_menu}); + this.bar1.Location = new System.Drawing.Point(0, 0); + this.bar1.Name = "bar1"; + this.bar1.Size = new System.Drawing.Size(881, 28); + this.bar1.Stretch = true; + this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.bar1.TabIndex = 8; + this.bar1.TabStop = false; + this.bar1.Text = "bar1"; + // + // labelItem1 + // + this.labelItem1.Name = "labelItem1"; + this.labelItem1.Text = "编号"; + // + // txt_no + // + this.txt_no.Name = "txt_no"; + this.txt_no.TextBoxWidth = 200; + this.txt_no.WatermarkColor = System.Drawing.SystemColors.GrayText; + // + // labelItem2 + // + this.labelItem2.Name = "labelItem2"; + this.labelItem2.Text = "街道"; + // + // combo_street + // + this.combo_street.ComboWidth = 200; + this.combo_street.DropDownHeight = 106; + this.combo_street.ItemHeight = 17; + this.combo_street.Name = "combo_street"; + // + // btn_query + // + this.btn_query.Name = "btn_query"; + this.btn_query.Text = "查询"; + this.btn_query.Click += new System.EventHandler(this.btn_query_Click); + // + // btn_add_batch + // + this.btn_add_batch.Name = "btn_add_batch"; + this.btn_add_batch.Text = "批量添加"; + this.btn_add_batch.Click += new System.EventHandler(this.btn_add_batch_Click); + // + // btn_add_menu + // + this.btn_add_menu.Name = "btn_add_menu"; + this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); + // + // winGridViewPager1 + // + this.winGridViewPager1.AppendedMenu = null; + this.winGridViewPager1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.winGridViewPager1.DataSource = null; + this.winGridViewPager1.DisplayColumns = ""; + this.winGridViewPager1.Dock = System.Windows.Forms.DockStyle.Fill; + this.winGridViewPager1.Location = new System.Drawing.Point(0, 28); + this.winGridViewPager1.MinimumSize = new System.Drawing.Size(540, 0); + this.winGridViewPager1.Name = "winGridViewPager1"; + this.winGridViewPager1.PrintTitle = ""; + this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); + this.winGridViewPager1.TabIndex = 9; + // + // FrmFlagManagers + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(881, 474); + this.Controls.Add(this.winGridViewPager1); + this.Controls.Add(this.bar1); + this.DoubleBuffered = true; + this.Name = "FrmFlagManagers"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器管理"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagManagers_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagManagers_Load); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem 标识对象ToolStripMenuItem; + private DevComponents.DotNetBar.Bar bar1; + private DevComponents.DotNetBar.LabelItem labelItem1; + private DevComponents.DotNetBar.TextBoxItem txt_no; + private DevComponents.DotNetBar.LabelItem labelItem2; + private DevComponents.DotNetBar.ComboBoxItem combo_street; + private DevComponents.DotNetBar.ButtonItem btn_query; + private DevComponents.DotNetBar.ButtonItem btn_add_batch; + private DevComponents.DotNetBar.ButtonItem btn_add_menu; + private WHC.Pager.WinControl.WinGridViewPager winGridViewPager1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + } +} \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs new file mode 100644 index 0000000..9fe14fb --- /dev/null +++ b/FrmFlagManagers.Designer.cs @@ -0,0 +1,180 @@ +namespace Cyberpipe +{ + partial class FrmFlagManagers + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.标识对象ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.bar1 = new DevComponents.DotNetBar.Bar(); + this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); + this.txt_no = new DevComponents.DotNetBar.TextBoxItem(); + this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); + this.combo_street = new DevComponents.DotNetBar.ComboBoxItem(); + this.btn_query = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_batch = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_menu = new DevComponents.DotNetBar.ButtonItem(); + this.winGridViewPager1 = new WHC.Pager.WinControl.WinGridViewPager(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.标识对象ToolStripMenuItem, + this.toolStripMenuItem2}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(125, 48); + // + // 标识对象ToolStripMenuItem + // + this.标识对象ToolStripMenuItem.Name = "标识对象ToolStripMenuItem"; + this.标识对象ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.标识对象ToolStripMenuItem.Text = "标识对象"; + this.标识对象ToolStripMenuItem.Click += new System.EventHandler(this.标识对象ToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Text = "查看位置"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // bar1 + // + this.bar1.AntiAlias = true; + this.bar1.Dock = System.Windows.Forms.DockStyle.Top; + this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.labelItem1, + this.txt_no, + this.labelItem2, + this.combo_street, + this.btn_query, + this.btn_add_batch, + this.btn_add_menu}); + this.bar1.Location = new System.Drawing.Point(0, 0); + this.bar1.Name = "bar1"; + this.bar1.Size = new System.Drawing.Size(881, 28); + this.bar1.Stretch = true; + this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.bar1.TabIndex = 8; + this.bar1.TabStop = false; + this.bar1.Text = "bar1"; + // + // labelItem1 + // + this.labelItem1.Name = "labelItem1"; + this.labelItem1.Text = "编号"; + // + // txt_no + // + this.txt_no.Name = "txt_no"; + this.txt_no.TextBoxWidth = 200; + this.txt_no.WatermarkColor = System.Drawing.SystemColors.GrayText; + // + // labelItem2 + // + this.labelItem2.Name = "labelItem2"; + this.labelItem2.Text = "街道"; + // + // combo_street + // + this.combo_street.ComboWidth = 200; + this.combo_street.DropDownHeight = 106; + this.combo_street.ItemHeight = 17; + this.combo_street.Name = "combo_street"; + // + // btn_query + // + this.btn_query.Name = "btn_query"; + this.btn_query.Text = "查询"; + this.btn_query.Click += new System.EventHandler(this.btn_query_Click); + // + // btn_add_batch + // + this.btn_add_batch.Name = "btn_add_batch"; + this.btn_add_batch.Text = "批量添加"; + this.btn_add_batch.Click += new System.EventHandler(this.btn_add_batch_Click); + // + // btn_add_menu + // + this.btn_add_menu.Name = "btn_add_menu"; + this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); + // + // winGridViewPager1 + // + this.winGridViewPager1.AppendedMenu = null; + this.winGridViewPager1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.winGridViewPager1.DataSource = null; + this.winGridViewPager1.DisplayColumns = ""; + this.winGridViewPager1.Dock = System.Windows.Forms.DockStyle.Fill; + this.winGridViewPager1.Location = new System.Drawing.Point(0, 28); + this.winGridViewPager1.MinimumSize = new System.Drawing.Size(540, 0); + this.winGridViewPager1.Name = "winGridViewPager1"; + this.winGridViewPager1.PrintTitle = ""; + this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); + this.winGridViewPager1.TabIndex = 9; + // + // FrmFlagManagers + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(881, 474); + this.Controls.Add(this.winGridViewPager1); + this.Controls.Add(this.bar1); + this.DoubleBuffered = true; + this.Name = "FrmFlagManagers"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器管理"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagManagers_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagManagers_Load); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem 标识对象ToolStripMenuItem; + private DevComponents.DotNetBar.Bar bar1; + private DevComponents.DotNetBar.LabelItem labelItem1; + private DevComponents.DotNetBar.TextBoxItem txt_no; + private DevComponents.DotNetBar.LabelItem labelItem2; + private DevComponents.DotNetBar.ComboBoxItem combo_street; + private DevComponents.DotNetBar.ButtonItem btn_query; + private DevComponents.DotNetBar.ButtonItem btn_add_batch; + private DevComponents.DotNetBar.ButtonItem btn_add_menu; + private WHC.Pager.WinControl.WinGridViewPager winGridViewPager1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + } +} \ No newline at end of file diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs new file mode 100644 index 0000000..1e433c0 --- /dev/null +++ b/FrmFlagManagers.cs @@ -0,0 +1,459 @@ +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; +using DevComponents.DotNetBar; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.IO; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagManagers : Office2007Form + { + GSOGlobeControl globeControl1 = null; + int maxPageIndex = 20; + public static bool IS_OPEN = false; + int rows = 0; + public static GSODataSource ds = null; + TreeNode layerManagerNode = null; + string LSSYS_ID_VALUE = "标识器自增编号"; + + public FrmFlagManagers(GSOGlobeControl _globeControl1) + { + this.globeControl1 = _globeControl1; + InitializeComponent(); + winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); + this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 + this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + + this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); + winGridViewPager1.dataGridView1.MultiSelect = false; + } + + 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; + } + + /// + /// 初始化分页表格 + /// + 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("备注", "备注"); + + this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + + //隐藏右键功能按钮 + 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[2].Text = "属性编辑"; + winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; + + winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + + //右键菜单宽度 + winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; + winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; + //控制间隔的颜色 + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + //控制每页显示的最大数据量 + winGridViewPager1.PagerInfo.RecordCount = rows; + winGridViewPager1.PagerInfo.PageSize = maxPageIndex; + winGridViewPager1.dataGridView1.Refresh(); + } + /// + /// 页面刷新 + /// + /// + /// + private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) + { + LoadData(); + + } + + /// + /// 属性编辑 + /// + /// + /// + private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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); + frm.refresh += new FrmFlagEdits.Handle(LoadData); //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + /// + /// 标识器报废 + /// + /// + /// + private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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) + { + bindComboxStreet(); + LoadData(); + + IS_OPEN = true; + } + + private void LoadData() + { + int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + winGridViewPager1.Refresh(); + } + + private void LoadData(int pageIndex) + { + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + 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"; + + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private string GetSql(int pageIndex) + { + int minPage = (pageIndex - 1) * maxPageIndex + 1; + 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 使用状态 = '使用中'"; + + + if (!String.IsNullOrEmpty(txt_no.Text.Trim())) + { + sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + sqlData += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + } + if (null != combo_street.SelectedItem && !String.IsNullOrEmpty(combo_street.SelectedItem.ToString().Trim())) + { + sqlData += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + sqlCount += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + } + + sqlData += " order by 编号)b " + + "where(b.row_num between " + minPage + " and " + maxPage + ")"; + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private void bindComboxStreet() + { + ComboBoxItem item = new ComboBoxItem(); + + String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow row in table.Rows) + { + item = new ComboBoxItem(); + item.Text = row[0].ToString(); + if (!item.Text.Equals("")) + combo_street.Items.Add(item); + } + } + + private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) + { + IS_OPEN = false; + globeControl1.Globe.MemoryLayer.RemoveAllFeature(); + + globeControl1.Refresh(); + + } + private void doSave(Object e) + { + try + { + globeControl1.Globe.Layers["标识器"].Save(); + } + catch (Exception ex) + { + LogHelper.WriteLog(typeof(FrmFlagManagers), ex); + } + } + + private void btn_query_Click(object sender, EventArgs e) + { + try + { + LoadData(1); + } + catch (Exception ex) + { + MessageBox.Show("查询失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_add_batch_Click(object sender, EventArgs e) + { + if (ds == null && null != globeControl1) + { + FrmFlagDatabase frmDB = new FrmFlagDatabase(globeControl1); + if (frmDB.ShowDialog() == DialogResult.OK) + { + ds = FrmFlagDatabase.ds; + } + } + + if (ds != null && null != globeControl1) + { + FrmAddFlagBatch frmFlag = new FrmAddFlagBatch(globeControl1, ds); + if (frmFlag.ShowDialog() == DialogResult.OK) + { + addNodeToLayerManagerNode(frmFlag.flags); + } + } + } + + private Boolean CheckDatasetGeoReference(GSODataset dataset) + { + Boolean bSuccess = false; + if (dataset.GeoReferenceType == EnumGeoReferenceType.Flat) + { + if (MessageBox.Show("数据没有空间参考信息,请设置空间参考信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) == DialogResult.OK) + { + String strPath = Path.GetDirectoryName(Application.ExecutablePath) + "\\Coordinate Systems"; + OpenFileDialog dlg = new OpenFileDialog(); + + dlg.InitialDirectory = strPath; + dlg.RestoreDirectory = true; + + dlg.Filter = "投影文件|*.prj||"; + if (dlg.ShowDialog() == DialogResult.OK) + { + bSuccess = dataset.LoadProjectionFromESRIFile(dlg.FileName); + } + } + } + else + { + return true; + } + return bSuccess; + } + + private void addNodeToLayerManagerNode(GSOLayer layer) + { + if (layer != null) + { + GSODataset dataset = layer.Dataset; + CheckDatasetGeoReference(layer.Dataset); + TreeNode node = new TreeNode(); + node.Tag = layer; + node.Text = layer.Dataset.Caption; + node.ImageIndex = 0; + node.SelectedImageIndex = 0; + node.Checked = layer.Visible; + layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Expand(); + } + } + + private void btn_add_menu_Click(object sender, EventArgs e) + { + if (null != globeControl1) + { + FrmAddSinMark frm = new FrmAddSinMark(globeControl1); + frm.Show(); + } + } + + private void 标识对象ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + { + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.Hide(); + string id = row.Cells["编号"].Value.ToString(); + FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); + p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 + p.Show(); + } + catch (Exception ex) + { + MessageBox.Show("失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } + + private void showThisForm() + { + this.Show(); + } + /// + /// 位置查看 + /// + /// + /// + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.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.标识器型号,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" + + "所属道路:" + 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(); + + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs new file mode 100644 index 0000000..9fe14fb --- /dev/null +++ b/FrmFlagManagers.Designer.cs @@ -0,0 +1,180 @@ +namespace Cyberpipe +{ + partial class FrmFlagManagers + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.标识对象ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.bar1 = new DevComponents.DotNetBar.Bar(); + this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); + this.txt_no = new DevComponents.DotNetBar.TextBoxItem(); + this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); + this.combo_street = new DevComponents.DotNetBar.ComboBoxItem(); + this.btn_query = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_batch = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_menu = new DevComponents.DotNetBar.ButtonItem(); + this.winGridViewPager1 = new WHC.Pager.WinControl.WinGridViewPager(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.标识对象ToolStripMenuItem, + this.toolStripMenuItem2}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(125, 48); + // + // 标识对象ToolStripMenuItem + // + this.标识对象ToolStripMenuItem.Name = "标识对象ToolStripMenuItem"; + this.标识对象ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.标识对象ToolStripMenuItem.Text = "标识对象"; + this.标识对象ToolStripMenuItem.Click += new System.EventHandler(this.标识对象ToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Text = "查看位置"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // bar1 + // + this.bar1.AntiAlias = true; + this.bar1.Dock = System.Windows.Forms.DockStyle.Top; + this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.labelItem1, + this.txt_no, + this.labelItem2, + this.combo_street, + this.btn_query, + this.btn_add_batch, + this.btn_add_menu}); + this.bar1.Location = new System.Drawing.Point(0, 0); + this.bar1.Name = "bar1"; + this.bar1.Size = new System.Drawing.Size(881, 28); + this.bar1.Stretch = true; + this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.bar1.TabIndex = 8; + this.bar1.TabStop = false; + this.bar1.Text = "bar1"; + // + // labelItem1 + // + this.labelItem1.Name = "labelItem1"; + this.labelItem1.Text = "编号"; + // + // txt_no + // + this.txt_no.Name = "txt_no"; + this.txt_no.TextBoxWidth = 200; + this.txt_no.WatermarkColor = System.Drawing.SystemColors.GrayText; + // + // labelItem2 + // + this.labelItem2.Name = "labelItem2"; + this.labelItem2.Text = "街道"; + // + // combo_street + // + this.combo_street.ComboWidth = 200; + this.combo_street.DropDownHeight = 106; + this.combo_street.ItemHeight = 17; + this.combo_street.Name = "combo_street"; + // + // btn_query + // + this.btn_query.Name = "btn_query"; + this.btn_query.Text = "查询"; + this.btn_query.Click += new System.EventHandler(this.btn_query_Click); + // + // btn_add_batch + // + this.btn_add_batch.Name = "btn_add_batch"; + this.btn_add_batch.Text = "批量添加"; + this.btn_add_batch.Click += new System.EventHandler(this.btn_add_batch_Click); + // + // btn_add_menu + // + this.btn_add_menu.Name = "btn_add_menu"; + this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); + // + // winGridViewPager1 + // + this.winGridViewPager1.AppendedMenu = null; + this.winGridViewPager1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.winGridViewPager1.DataSource = null; + this.winGridViewPager1.DisplayColumns = ""; + this.winGridViewPager1.Dock = System.Windows.Forms.DockStyle.Fill; + this.winGridViewPager1.Location = new System.Drawing.Point(0, 28); + this.winGridViewPager1.MinimumSize = new System.Drawing.Size(540, 0); + this.winGridViewPager1.Name = "winGridViewPager1"; + this.winGridViewPager1.PrintTitle = ""; + this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); + this.winGridViewPager1.TabIndex = 9; + // + // FrmFlagManagers + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(881, 474); + this.Controls.Add(this.winGridViewPager1); + this.Controls.Add(this.bar1); + this.DoubleBuffered = true; + this.Name = "FrmFlagManagers"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器管理"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagManagers_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagManagers_Load); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem 标识对象ToolStripMenuItem; + private DevComponents.DotNetBar.Bar bar1; + private DevComponents.DotNetBar.LabelItem labelItem1; + private DevComponents.DotNetBar.TextBoxItem txt_no; + private DevComponents.DotNetBar.LabelItem labelItem2; + private DevComponents.DotNetBar.ComboBoxItem combo_street; + private DevComponents.DotNetBar.ButtonItem btn_query; + private DevComponents.DotNetBar.ButtonItem btn_add_batch; + private DevComponents.DotNetBar.ButtonItem btn_add_menu; + private WHC.Pager.WinControl.WinGridViewPager winGridViewPager1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + } +} \ No newline at end of file diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs new file mode 100644 index 0000000..1e433c0 --- /dev/null +++ b/FrmFlagManagers.cs @@ -0,0 +1,459 @@ +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; +using DevComponents.DotNetBar; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.IO; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagManagers : Office2007Form + { + GSOGlobeControl globeControl1 = null; + int maxPageIndex = 20; + public static bool IS_OPEN = false; + int rows = 0; + public static GSODataSource ds = null; + TreeNode layerManagerNode = null; + string LSSYS_ID_VALUE = "标识器自增编号"; + + public FrmFlagManagers(GSOGlobeControl _globeControl1) + { + this.globeControl1 = _globeControl1; + InitializeComponent(); + winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); + this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 + this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + + this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); + winGridViewPager1.dataGridView1.MultiSelect = false; + } + + 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; + } + + /// + /// 初始化分页表格 + /// + 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("备注", "备注"); + + this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + + //隐藏右键功能按钮 + 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[2].Text = "属性编辑"; + winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; + + winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + + //右键菜单宽度 + winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; + winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; + //控制间隔的颜色 + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + //控制每页显示的最大数据量 + winGridViewPager1.PagerInfo.RecordCount = rows; + winGridViewPager1.PagerInfo.PageSize = maxPageIndex; + winGridViewPager1.dataGridView1.Refresh(); + } + /// + /// 页面刷新 + /// + /// + /// + private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) + { + LoadData(); + + } + + /// + /// 属性编辑 + /// + /// + /// + private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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); + frm.refresh += new FrmFlagEdits.Handle(LoadData); //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + /// + /// 标识器报废 + /// + /// + /// + private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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) + { + bindComboxStreet(); + LoadData(); + + IS_OPEN = true; + } + + private void LoadData() + { + int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + winGridViewPager1.Refresh(); + } + + private void LoadData(int pageIndex) + { + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + 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"; + + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private string GetSql(int pageIndex) + { + int minPage = (pageIndex - 1) * maxPageIndex + 1; + 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 使用状态 = '使用中'"; + + + if (!String.IsNullOrEmpty(txt_no.Text.Trim())) + { + sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + sqlData += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + } + if (null != combo_street.SelectedItem && !String.IsNullOrEmpty(combo_street.SelectedItem.ToString().Trim())) + { + sqlData += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + sqlCount += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + } + + sqlData += " order by 编号)b " + + "where(b.row_num between " + minPage + " and " + maxPage + ")"; + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private void bindComboxStreet() + { + ComboBoxItem item = new ComboBoxItem(); + + String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow row in table.Rows) + { + item = new ComboBoxItem(); + item.Text = row[0].ToString(); + if (!item.Text.Equals("")) + combo_street.Items.Add(item); + } + } + + private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) + { + IS_OPEN = false; + globeControl1.Globe.MemoryLayer.RemoveAllFeature(); + + globeControl1.Refresh(); + + } + private void doSave(Object e) + { + try + { + globeControl1.Globe.Layers["标识器"].Save(); + } + catch (Exception ex) + { + LogHelper.WriteLog(typeof(FrmFlagManagers), ex); + } + } + + private void btn_query_Click(object sender, EventArgs e) + { + try + { + LoadData(1); + } + catch (Exception ex) + { + MessageBox.Show("查询失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_add_batch_Click(object sender, EventArgs e) + { + if (ds == null && null != globeControl1) + { + FrmFlagDatabase frmDB = new FrmFlagDatabase(globeControl1); + if (frmDB.ShowDialog() == DialogResult.OK) + { + ds = FrmFlagDatabase.ds; + } + } + + if (ds != null && null != globeControl1) + { + FrmAddFlagBatch frmFlag = new FrmAddFlagBatch(globeControl1, ds); + if (frmFlag.ShowDialog() == DialogResult.OK) + { + addNodeToLayerManagerNode(frmFlag.flags); + } + } + } + + private Boolean CheckDatasetGeoReference(GSODataset dataset) + { + Boolean bSuccess = false; + if (dataset.GeoReferenceType == EnumGeoReferenceType.Flat) + { + if (MessageBox.Show("数据没有空间参考信息,请设置空间参考信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) == DialogResult.OK) + { + String strPath = Path.GetDirectoryName(Application.ExecutablePath) + "\\Coordinate Systems"; + OpenFileDialog dlg = new OpenFileDialog(); + + dlg.InitialDirectory = strPath; + dlg.RestoreDirectory = true; + + dlg.Filter = "投影文件|*.prj||"; + if (dlg.ShowDialog() == DialogResult.OK) + { + bSuccess = dataset.LoadProjectionFromESRIFile(dlg.FileName); + } + } + } + else + { + return true; + } + return bSuccess; + } + + private void addNodeToLayerManagerNode(GSOLayer layer) + { + if (layer != null) + { + GSODataset dataset = layer.Dataset; + CheckDatasetGeoReference(layer.Dataset); + TreeNode node = new TreeNode(); + node.Tag = layer; + node.Text = layer.Dataset.Caption; + node.ImageIndex = 0; + node.SelectedImageIndex = 0; + node.Checked = layer.Visible; + layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Expand(); + } + } + + private void btn_add_menu_Click(object sender, EventArgs e) + { + if (null != globeControl1) + { + FrmAddSinMark frm = new FrmAddSinMark(globeControl1); + frm.Show(); + } + } + + private void 标识对象ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + { + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.Hide(); + string id = row.Cells["编号"].Value.ToString(); + FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); + p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 + p.Show(); + } + catch (Exception ex) + { + MessageBox.Show("失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } + + private void showThisForm() + { + this.Show(); + } + /// + /// 位置查看 + /// + /// + /// + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.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.标识器型号,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" + + "所属道路:" + 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(); + + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx new file mode 100644 index 0000000..f3050a7 --- /dev/null +++ b/FrmFlagManagers.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 45 + + \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs new file mode 100644 index 0000000..9fe14fb --- /dev/null +++ b/FrmFlagManagers.Designer.cs @@ -0,0 +1,180 @@ +namespace Cyberpipe +{ + partial class FrmFlagManagers + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.标识对象ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.bar1 = new DevComponents.DotNetBar.Bar(); + this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); + this.txt_no = new DevComponents.DotNetBar.TextBoxItem(); + this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); + this.combo_street = new DevComponents.DotNetBar.ComboBoxItem(); + this.btn_query = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_batch = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_menu = new DevComponents.DotNetBar.ButtonItem(); + this.winGridViewPager1 = new WHC.Pager.WinControl.WinGridViewPager(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.标识对象ToolStripMenuItem, + this.toolStripMenuItem2}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(125, 48); + // + // 标识对象ToolStripMenuItem + // + this.标识对象ToolStripMenuItem.Name = "标识对象ToolStripMenuItem"; + this.标识对象ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.标识对象ToolStripMenuItem.Text = "标识对象"; + this.标识对象ToolStripMenuItem.Click += new System.EventHandler(this.标识对象ToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Text = "查看位置"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // bar1 + // + this.bar1.AntiAlias = true; + this.bar1.Dock = System.Windows.Forms.DockStyle.Top; + this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.labelItem1, + this.txt_no, + this.labelItem2, + this.combo_street, + this.btn_query, + this.btn_add_batch, + this.btn_add_menu}); + this.bar1.Location = new System.Drawing.Point(0, 0); + this.bar1.Name = "bar1"; + this.bar1.Size = new System.Drawing.Size(881, 28); + this.bar1.Stretch = true; + this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.bar1.TabIndex = 8; + this.bar1.TabStop = false; + this.bar1.Text = "bar1"; + // + // labelItem1 + // + this.labelItem1.Name = "labelItem1"; + this.labelItem1.Text = "编号"; + // + // txt_no + // + this.txt_no.Name = "txt_no"; + this.txt_no.TextBoxWidth = 200; + this.txt_no.WatermarkColor = System.Drawing.SystemColors.GrayText; + // + // labelItem2 + // + this.labelItem2.Name = "labelItem2"; + this.labelItem2.Text = "街道"; + // + // combo_street + // + this.combo_street.ComboWidth = 200; + this.combo_street.DropDownHeight = 106; + this.combo_street.ItemHeight = 17; + this.combo_street.Name = "combo_street"; + // + // btn_query + // + this.btn_query.Name = "btn_query"; + this.btn_query.Text = "查询"; + this.btn_query.Click += new System.EventHandler(this.btn_query_Click); + // + // btn_add_batch + // + this.btn_add_batch.Name = "btn_add_batch"; + this.btn_add_batch.Text = "批量添加"; + this.btn_add_batch.Click += new System.EventHandler(this.btn_add_batch_Click); + // + // btn_add_menu + // + this.btn_add_menu.Name = "btn_add_menu"; + this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); + // + // winGridViewPager1 + // + this.winGridViewPager1.AppendedMenu = null; + this.winGridViewPager1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.winGridViewPager1.DataSource = null; + this.winGridViewPager1.DisplayColumns = ""; + this.winGridViewPager1.Dock = System.Windows.Forms.DockStyle.Fill; + this.winGridViewPager1.Location = new System.Drawing.Point(0, 28); + this.winGridViewPager1.MinimumSize = new System.Drawing.Size(540, 0); + this.winGridViewPager1.Name = "winGridViewPager1"; + this.winGridViewPager1.PrintTitle = ""; + this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); + this.winGridViewPager1.TabIndex = 9; + // + // FrmFlagManagers + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(881, 474); + this.Controls.Add(this.winGridViewPager1); + this.Controls.Add(this.bar1); + this.DoubleBuffered = true; + this.Name = "FrmFlagManagers"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器管理"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagManagers_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagManagers_Load); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem 标识对象ToolStripMenuItem; + private DevComponents.DotNetBar.Bar bar1; + private DevComponents.DotNetBar.LabelItem labelItem1; + private DevComponents.DotNetBar.TextBoxItem txt_no; + private DevComponents.DotNetBar.LabelItem labelItem2; + private DevComponents.DotNetBar.ComboBoxItem combo_street; + private DevComponents.DotNetBar.ButtonItem btn_query; + private DevComponents.DotNetBar.ButtonItem btn_add_batch; + private DevComponents.DotNetBar.ButtonItem btn_add_menu; + private WHC.Pager.WinControl.WinGridViewPager winGridViewPager1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + } +} \ No newline at end of file diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs new file mode 100644 index 0000000..1e433c0 --- /dev/null +++ b/FrmFlagManagers.cs @@ -0,0 +1,459 @@ +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; +using DevComponents.DotNetBar; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.IO; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagManagers : Office2007Form + { + GSOGlobeControl globeControl1 = null; + int maxPageIndex = 20; + public static bool IS_OPEN = false; + int rows = 0; + public static GSODataSource ds = null; + TreeNode layerManagerNode = null; + string LSSYS_ID_VALUE = "标识器自增编号"; + + public FrmFlagManagers(GSOGlobeControl _globeControl1) + { + this.globeControl1 = _globeControl1; + InitializeComponent(); + winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); + this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 + this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + + this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); + winGridViewPager1.dataGridView1.MultiSelect = false; + } + + 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; + } + + /// + /// 初始化分页表格 + /// + 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("备注", "备注"); + + this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + + //隐藏右键功能按钮 + 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[2].Text = "属性编辑"; + winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; + + winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + + //右键菜单宽度 + winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; + winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; + //控制间隔的颜色 + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + //控制每页显示的最大数据量 + winGridViewPager1.PagerInfo.RecordCount = rows; + winGridViewPager1.PagerInfo.PageSize = maxPageIndex; + winGridViewPager1.dataGridView1.Refresh(); + } + /// + /// 页面刷新 + /// + /// + /// + private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) + { + LoadData(); + + } + + /// + /// 属性编辑 + /// + /// + /// + private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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); + frm.refresh += new FrmFlagEdits.Handle(LoadData); //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + /// + /// 标识器报废 + /// + /// + /// + private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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) + { + bindComboxStreet(); + LoadData(); + + IS_OPEN = true; + } + + private void LoadData() + { + int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + winGridViewPager1.Refresh(); + } + + private void LoadData(int pageIndex) + { + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + 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"; + + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private string GetSql(int pageIndex) + { + int minPage = (pageIndex - 1) * maxPageIndex + 1; + 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 使用状态 = '使用中'"; + + + if (!String.IsNullOrEmpty(txt_no.Text.Trim())) + { + sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + sqlData += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + } + if (null != combo_street.SelectedItem && !String.IsNullOrEmpty(combo_street.SelectedItem.ToString().Trim())) + { + sqlData += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + sqlCount += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + } + + sqlData += " order by 编号)b " + + "where(b.row_num between " + minPage + " and " + maxPage + ")"; + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private void bindComboxStreet() + { + ComboBoxItem item = new ComboBoxItem(); + + String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow row in table.Rows) + { + item = new ComboBoxItem(); + item.Text = row[0].ToString(); + if (!item.Text.Equals("")) + combo_street.Items.Add(item); + } + } + + private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) + { + IS_OPEN = false; + globeControl1.Globe.MemoryLayer.RemoveAllFeature(); + + globeControl1.Refresh(); + + } + private void doSave(Object e) + { + try + { + globeControl1.Globe.Layers["标识器"].Save(); + } + catch (Exception ex) + { + LogHelper.WriteLog(typeof(FrmFlagManagers), ex); + } + } + + private void btn_query_Click(object sender, EventArgs e) + { + try + { + LoadData(1); + } + catch (Exception ex) + { + MessageBox.Show("查询失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_add_batch_Click(object sender, EventArgs e) + { + if (ds == null && null != globeControl1) + { + FrmFlagDatabase frmDB = new FrmFlagDatabase(globeControl1); + if (frmDB.ShowDialog() == DialogResult.OK) + { + ds = FrmFlagDatabase.ds; + } + } + + if (ds != null && null != globeControl1) + { + FrmAddFlagBatch frmFlag = new FrmAddFlagBatch(globeControl1, ds); + if (frmFlag.ShowDialog() == DialogResult.OK) + { + addNodeToLayerManagerNode(frmFlag.flags); + } + } + } + + private Boolean CheckDatasetGeoReference(GSODataset dataset) + { + Boolean bSuccess = false; + if (dataset.GeoReferenceType == EnumGeoReferenceType.Flat) + { + if (MessageBox.Show("数据没有空间参考信息,请设置空间参考信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) == DialogResult.OK) + { + String strPath = Path.GetDirectoryName(Application.ExecutablePath) + "\\Coordinate Systems"; + OpenFileDialog dlg = new OpenFileDialog(); + + dlg.InitialDirectory = strPath; + dlg.RestoreDirectory = true; + + dlg.Filter = "投影文件|*.prj||"; + if (dlg.ShowDialog() == DialogResult.OK) + { + bSuccess = dataset.LoadProjectionFromESRIFile(dlg.FileName); + } + } + } + else + { + return true; + } + return bSuccess; + } + + private void addNodeToLayerManagerNode(GSOLayer layer) + { + if (layer != null) + { + GSODataset dataset = layer.Dataset; + CheckDatasetGeoReference(layer.Dataset); + TreeNode node = new TreeNode(); + node.Tag = layer; + node.Text = layer.Dataset.Caption; + node.ImageIndex = 0; + node.SelectedImageIndex = 0; + node.Checked = layer.Visible; + layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Expand(); + } + } + + private void btn_add_menu_Click(object sender, EventArgs e) + { + if (null != globeControl1) + { + FrmAddSinMark frm = new FrmAddSinMark(globeControl1); + frm.Show(); + } + } + + private void 标识对象ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + { + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.Hide(); + string id = row.Cells["编号"].Value.ToString(); + FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); + p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 + p.Show(); + } + catch (Exception ex) + { + MessageBox.Show("失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } + + private void showThisForm() + { + this.Show(); + } + /// + /// 位置查看 + /// + /// + /// + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.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.标识器型号,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" + + "所属道路:" + 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(); + + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx new file mode 100644 index 0000000..f3050a7 --- /dev/null +++ b/FrmFlagManagers.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 45 + + \ No newline at end of file diff --git a/MainFrm.cs b/MainFrm.cs index ec7d43e..d33c5a0 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -40,7 +40,7 @@ GSOBalloon featureTooltip2; GSOBalloonEx balloonEx2; - GSOLayer layerTemp;//wxl注释,Globe1的临时图层 + GSOLayer layerTemp; //wxl注释,Globe1的临时图层 FrmRedlineResult frmredResult = null; FrmMnModify frmModify; public bool frmRedlineResult = false; @@ -877,37 +877,37 @@ double dsw = SW; if (SW > 1440) { - double myScreen = dsw / 1440; - buttonX1.Width = (int)(buttonX1.Width * myScreen); - buttonX2.Width = (int)(buttonX2.Width * myScreen); - buttonX4.Width = (int)(buttonX4.Width * myScreen); - buttonX5.Width = (int)(buttonX5.Width * myScreen); - buttonX6.Width = (int)(buttonX6.Width * myScreen); - buttonX7.Width = (int)(buttonX8.Width * myScreen); - buttonX8.Width = (int)(buttonX8.Width * myScreen); - buttonX9.Width = (int)(buttonX9.Width * myScreen); - buttonX12.Width = (int)(buttonX12.Width * myScreen); - buttonX14.Width = (int)(buttonX14.Width * myScreen); - buttonX15.Width = (int)(buttonX15.Width * myScreen); - buttonX16.Width = (int)(buttonX16.Width * myScreen); - buttonX17.Width = (int)(buttonX17.Width * myScreen); + double myScreen = dsw/1440; + buttonX1.Width = (int) (buttonX1.Width*myScreen); + buttonX2.Width = (int) (buttonX2.Width*myScreen); + buttonX4.Width = (int) (buttonX4.Width*myScreen); + buttonX5.Width = (int) (buttonX5.Width*myScreen); + buttonX6.Width = (int) (buttonX6.Width*myScreen); + buttonX7.Width = (int) (buttonX8.Width*myScreen); + buttonX8.Width = (int) (buttonX8.Width*myScreen); + buttonX9.Width = (int) (buttonX9.Width*myScreen); + buttonX12.Width = (int) (buttonX12.Width*myScreen); + buttonX14.Width = (int) (buttonX14.Width*myScreen); + buttonX15.Width = (int) (buttonX15.Width*myScreen); + buttonX16.Width = (int) (buttonX16.Width*myScreen); + buttonX17.Width = (int) (buttonX17.Width*myScreen); - labelX1.Width = (int)(labelX1.Width * myScreen); - labelX2.Width = (int)(labelX2.Width * myScreen); - labelX3.Width = (int)(labelX3.Width * myScreen); - labelX6.Width = (int)(labelX6.Width * myScreen); - labelX8.Width = (int)(labelX8.Width * myScreen); - labelX9.Width = (int)(labelX9.Width * myScreen); - labelX12.Width = (int)(labelX12.Width * myScreen); - labelX13.Width = (int)(labelX13.Width * myScreen); - labelX14.Width = (int)(labelX14.Width * myScreen); - labelX16.Width = (int)(labelX16.Width * myScreen); - labelX17.Width = (int)(labelX17.Width * myScreen); - labelX11.Width = (int)(labelX11.Width * myScreen); - labelX19.Width = (int)(labelX19.Width * myScreen); - labelX21.Width = (int)(labelX21.Width * myScreen); - labelX22.Width = (int)(labelX22.Width * myScreen); - labelX24.Width = (int)(labelX24.Width * myScreen); + labelX1.Width = (int) (labelX1.Width*myScreen); + labelX2.Width = (int) (labelX2.Width*myScreen); + labelX3.Width = (int) (labelX3.Width*myScreen); + labelX6.Width = (int) (labelX6.Width*myScreen); + labelX8.Width = (int) (labelX8.Width*myScreen); + labelX9.Width = (int) (labelX9.Width*myScreen); + labelX12.Width = (int) (labelX12.Width*myScreen); + labelX13.Width = (int) (labelX13.Width*myScreen); + labelX14.Width = (int) (labelX14.Width*myScreen); + labelX16.Width = (int) (labelX16.Width*myScreen); + labelX17.Width = (int) (labelX17.Width*myScreen); + labelX11.Width = (int) (labelX11.Width*myScreen); + labelX19.Width = (int) (labelX19.Width*myScreen); + labelX21.Width = (int) (labelX21.Width*myScreen); + labelX22.Width = (int) (labelX22.Width*myScreen); + labelX24.Width = (int) (labelX24.Width*myScreen); } sideBar1.Visible = false; sideBar1.ExpandedPanel = sideBarPanelItem3; @@ -1031,7 +1031,7 @@ globeControl1.Globe.UserBackgroundColor = Color.White; globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3; + globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3; globeControl1.Globe.EditSnapObject = true; globeControl1.Globe.IsReleaseMemOutOfView = true; globeControl1.Globe.ControlPanel.Visible = true; @@ -1050,7 +1050,7 @@ globeControl2.Globe.UserBackgroundColor = Color.White; globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3; + globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3; globeControl2.Globe.EditSnapObject = true; globeControl2.Globe.IsReleaseMemOutOfView = true; globeControl2.Globe.ControlPanel.Visible = false; @@ -1154,6 +1154,7 @@ initLayerTree(); } + /// /// 加载地球1、2的图层 /// @@ -1224,7 +1225,7 @@ } - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { connectServer(); }); @@ -1291,7 +1292,7 @@ private void MainFrm_Load(object sender, EventArgs e) { - layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示 + layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示 initGlobalControl(); //initGlobalMap(); // initLayerTree(); @@ -1362,12 +1363,12 @@ tempnode.Checked = node.Checked && feature.Visible; tempnode.Tag = feature; node.Nodes.Add(tempnode); - GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature; + GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature; VisitFeature3Ds(featureFolder.Features, tempnode); } else { - TreeNode tempnode = new TreeNode { Text = feature.Name }; + TreeNode tempnode = new TreeNode {Text = feature.Name}; if (feature.Geometry != null) { switch (feature.Geometry.Type) @@ -1562,6 +1563,7 @@ } #endregion + private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Button != MouseButtons.Right) return; @@ -1590,6 +1592,7 @@ } } + //wxl Tag更正 /// /// 删除临时添加的本地数据图层 @@ -1618,6 +1621,7 @@ } } + //wxl Tag更正 private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1629,6 +1633,7 @@ 可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked; layer.Editable = 可编辑ToolStripMenuItem.Checked; } + //wxl Tag更正 private void 保存ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1638,6 +1643,7 @@ if (layer == null) return; layer.Dataset.Save(); } + //wxl Tag更正 private void 定位ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1667,7 +1673,8 @@ if (layer == null) return; if (layer.Caption.Equals("红线")) { - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), + EnumAltitudeMode.Absolute, -4, 50, 1000); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; layer.Visible = true; @@ -1681,6 +1688,7 @@ } } } + //wxl Tag更正 private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { @@ -1693,7 +1701,8 @@ GSOFeature feature = layer.GetAt(0); if (feature != null && feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute); + //, 0, 0, 1000); } else { @@ -1705,7 +1714,8 @@ GSOFeature feature = node.Tag as GSOFeature; if (feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, + 10); } else { @@ -1758,6 +1768,7 @@ globeControl1.Globe.Refresh(); } } + void globeControl2_MouseWheel(object sender, MouseEventArgs e) { if (globeControl2.Globe.CameraState.Distance > 20000000) @@ -1770,6 +1781,7 @@ } #region Fan 横断面 + /// /// 横断面分析、基线剖面分析、道路断面分析等 /// @@ -1812,6 +1824,7 @@ } trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis; } + #endregion /// @@ -1834,14 +1847,16 @@ case "PipelineDistanceStatistics": - FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm1.Show(this); globeControl1.Globe.Action = EnumAction3D.ActionNull; break; case "PipelineSpatialQuery": - FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); globeControl1.Globe.ClearAnalysis(); globeControl1.Globe.Action = EnumAction3D.ActionNull; @@ -1865,7 +1880,8 @@ geoPit.PitDepth = depth; geoPit.PitDepthUsing = true; globeControl1.Globe.AddPit("", geoPit); - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (layerGround != null) { layerGround.Visible = false; @@ -1898,6 +1914,7 @@ break; } } + /// /// 鼠标悬浮提示 /// @@ -1910,11 +1927,12 @@ if (e.Feature == null) return; if (isFeatureContainsBianhao(e.Feature)) { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString()); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, + e.Feature.GetValue(featureIDFieldName).ToString()); } else if (e.Feature.Name != "") { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name); } } catch (Exception ex) @@ -1933,7 +1951,7 @@ if (e.Button != MouseButtons.Left) return; if (enumDesignMode == EnumDesignMode.AddPipe - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线 { GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd; if (layerDest != null) @@ -1949,7 +1967,7 @@ } } if (enumDesignMode == EnumDesignMode.AddTunnel - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道 { GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道"); if (tunnel != null && tunnel.GetAllFeatures().Length > 0) @@ -1961,10 +1979,9 @@ //tunnel.Save(); } } - } if (enumDesignMode == EnumDesignMode.AddCitySevenLine - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线 { CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine; string lineType = citySevenLine.Type; @@ -2000,6 +2017,7 @@ mouseDownX1 = e.X; mouseDownY1 = e.Y; } + /// /// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件 /// @@ -2010,6 +2028,7 @@ mouseDownX2 = e.X; mouseDownY2 = e.Y; } + /// /// /// @@ -2023,6 +2042,7 @@ RightScreenToolMenu.Show(globeControl2, e.X, e.Y); } } + /// /// (完善)#wxl 待整理 /// @@ -2037,7 +2057,7 @@ 通视分析ToolStripMenuItem.Checked = false; return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2053,13 +2073,15 @@ int idx = dataGridViewX2.Rows.Add(); dataGridViewX2.Rows[idx].Tag = feat; dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX2.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2075,7 +2097,9 @@ int idx = dataGridViewLineList.Rows.Add(); dataGridViewLineList.Rows[idx].Tag = feat; dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewLineList.Rows[idx].Cells[1].Value = featureName; } } @@ -2097,13 +2121,15 @@ int idx = dataGridViewX8.Rows.Add(); dataGridViewX8.Rows[idx].Tag = feat; dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX8.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2119,7 +2145,9 @@ int idx = dataGridViewX4.Rows.Add(); dataGridViewX4.Rows[idx].Tag = feat; dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX4.Rows[idx].Cells[1].Value = featureName; } @@ -2127,7 +2155,7 @@ return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2143,7 +2171,9 @@ int idx = dataGridViewX6.Rows.Add(); dataGridViewX6.Rows[idx].Tag = feat; dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX6.Rows[idx].Cells[1].Value = featureName; } } @@ -2196,7 +2226,7 @@ layerTemp.AddFeature(feat); } } - else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 + else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 { if (e.X == mouseDownX1 && e.Y == mouseDownY1) { @@ -2244,7 +2274,8 @@ return result; } - string featureIDFieldName = "编号";//待完善 + string featureIDFieldName = "编号"; //待完善 + private bool isFeatureContainsBianhao(GSOFeature feature) { if (feature.GetFieldDefn("标识器编号") != null) @@ -2268,12 +2299,13 @@ string str1 = ""; if (feature == null) return; - if (feature.GetFieldDefn("图片编码") != null)// + if (feature.GetFieldDefn("图片编码") != null) // { str1 = GetBubbleInfo(feature, globeControl1); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2290,7 +2322,7 @@ balloonEx.HideBalloon(); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2309,7 +2341,8 @@ str1 = GetBubbleInfo(feature, globeControl2); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2326,7 +2359,7 @@ balloonEx2.HideBalloon(); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2337,10 +2370,13 @@ private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl) { if (feature == null) return ""; - string str = ""; + string str = + "
"; var code = feature.GetFieldAsString("编码"); var title = FeatureTools.GetFeatureTypeByCode(code); - str += ""; + str += + ""; string layerName = feature.Dataset.Name; string queryFields = ""; if (Utility.Query_Fields.ContainsKey(layerName)) @@ -2354,28 +2390,30 @@ } if (queryFields != null) { - string[] param = { "," }; + string[] param = {","}; string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries); - for (int j = 0; j < fieldNames.Length; ) + for (int j = 0; j < fieldNames.Length;) { - int count = 0; - string tmpStr = ""; - while (count<2&&j
" + + tmpStr += + "
"; - count ++; + count++; } j++; } if (count == 1) - {//不够两列 + { +//不够两列 tmpStr += ""; } tmpStr += ""; @@ -2393,6 +2431,7 @@ GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer; return featureAddLayer; } + //遍历最深三层找到目标node. private TreeNode GetDestLayerFeatureAddTreeNode() { @@ -2415,7 +2454,7 @@ { GSOLayer gsoLayer = node.Tag as GSOLayer; if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node; - } + } } } else @@ -2465,6 +2504,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 地下模式 菜单按钮 /// @@ -2501,6 +2541,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 行走模式 菜单按钮 /// @@ -2518,6 +2559,7 @@ globeControl1.Globe.CameraMode = EnumCameraMode.Walk; } + /// /// 地面透明度设置 菜单 /// @@ -2528,11 +2570,12 @@ LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text); globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) layer.Opaque = 100 - sliderGroundTransSet1.Value; optiValue = sliderGroundTransSet1.Value; } + /// /// 图例 菜单按钮 /// @@ -2547,6 +2590,7 @@ legend.Visible = !legend.Visible; globeControl1.Refresh(); } + /// /// 快速定位 菜单按钮 /// @@ -2559,6 +2603,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1); fly.Show(this); } + /// /// 图层管理 菜单按钮 /// @@ -2594,6 +2639,7 @@ Refresh(); } } + /// /// 全屏显示 菜单按钮 /// @@ -2615,23 +2661,25 @@ //任务栏 [DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)] static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow); + int widthOld; int heightOld; int xOld; int yOld; + /// /// 全屏显示功能实现(完善) /// private void FullScreen() { - if (!m_bFullScreen) // 启用全屏 + if (!m_bFullScreen) // 启用全屏 { xOld = Location.X; yOld = Location.Y; widthOld = Width; heightOld = Height; - SuspendLayout();//挂起 + SuspendLayout(); //挂起 FormBorderStyle = FormBorderStyle.Sizable; WindowState = FormWindowState.Maximized; @@ -2665,13 +2713,13 @@ ribbonControl1.Visible = false; pictureBox1.Visible = false; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = true; } - else // 取消全屏 + else // 取消全屏 { - SuspendLayout();//挂起 + SuspendLayout(); //挂起 //////任务栏 IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null); @@ -2699,7 +2747,7 @@ ribbonControl1.Visible = true; pictureBox1.Visible = true; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = false; Focus(); //初始化隐藏图层管理 @@ -2787,10 +2835,12 @@ } Image printImage; + private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(printImage, 10, 10); } + /// /// 输出地图 菜单 /// @@ -2815,7 +2865,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -2835,6 +2885,7 @@ } } } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 目标图层 菜单 @@ -2850,6 +2901,7 @@ GSOLayer layer = node.Tag as GSOLayer; globeControl1.Globe.DestLayerFeatureAdd = layer; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可选择 菜单 @@ -2864,6 +2916,7 @@ LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked; if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可编辑 菜单 @@ -2878,6 +2931,7 @@ LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked; if (layer != null) layer.Editable = LayerEditableMenuItem.Checked; } + /// /// 图层目录树 右键菜单中的 保存 菜单 /// @@ -2904,6 +2958,7 @@ panelOfTable.Visible = false; clearFeatureHighLight(); } + /// /// 主窗体关闭事件处理 /// @@ -2918,6 +2973,7 @@ } #region 完善(各种净距分析) + /// /// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2941,6 +2997,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2948,7 +3005,7 @@ /// private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxEx4.Enabled = checkBoxX8.Checked; if (checkBoxX8.Checked) { @@ -2964,6 +3021,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2989,6 +3047,7 @@ comboBoxEx1.Enabled = true; } } + /// /// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2996,7 +3055,7 @@ /// private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxX7.Checked) { comboBoxEx4.SelectedItem = null; @@ -3014,6 +3073,7 @@ comboBoxEx4.Enabled = true; } } + /// /// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3038,6 +3098,7 @@ dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3062,9 +3123,10 @@ dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name; } } + Dictionary featCount = new Dictionary(); Dictionary featLenth = new Dictionary(); - Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置 + Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置 /// /// 垂直净距分析 功能界面中的 开始分析按钮 事件处理 @@ -3111,7 +3173,7 @@ GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature; if (selectedFeature == null) continue; selectState = 1; - VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun); + VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun); } } else if (checkBoxX2.Checked) // 选择图层 @@ -3160,7 +3222,8 @@ /// /// /// - private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible) + private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, + GSOPoint3d pntIntersect2, double distance, bool markerVisible) { if (pntIntersect1 == null || pntIntersect2 == null) { @@ -3175,9 +3238,9 @@ GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格 //设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255 style.LineColor = Color.GreenYellow; - style.LineWidth = 3; //设置线的宽度为3 - style.VertexVisible = true; //显示线的节点 - disline.Style = style; //把风格添加到线上 + style.LineWidth = 3; //设置线的宽度为3 + style.VertexVisible = true; //显示线的节点 + disline.Style = style; //把风格添加到线上 disline.AltitudeMode = EnumAltitudeMode.Absolute; GSOFeature line = new GSOFeature(); @@ -3186,7 +3249,7 @@ GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = pntIntersect1.X; dismarker.Y = pntIntersect1.Y; - dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2; + dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2; string disStr = distance.ToString("0.00"); if (disStr != "0.00") @@ -3216,7 +3279,9 @@ return dismarker.Position; } + #region wxl + /// /// wxl重构,碰撞分析 /// @@ -3225,7 +3290,8 @@ /// private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames) { - List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames); + List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, + pipelineLayerNames); if (result == null) { selectState = 0; @@ -3245,14 +3311,16 @@ dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name; GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; - if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false) + if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == + false) { GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = featureAnalysisInfo.point1.X; dismarker.Y = featureAnalysisInfo.point1.Y; - dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2; + dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2; dismarker.AltitudeMode = EnumAltitudeMode.Absolute; - m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录 + m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, + dismarker.Position); //添加飞行位置记录 } if (featCount.ContainsKey(feat2Caption)) { @@ -3273,16 +3341,19 @@ } } + /// /// wxl重构,垂直净距分析 /// /// /// /// - private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance) + private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, + double verticalDistance) { - List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames, - verticalDistance); + List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, + selectedFeature, pipelineLayerNames, + verticalDistance); if (result == null) { selectState = 0; @@ -3304,7 +3375,8 @@ GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米"; - GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true); + GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, + featureAnalysisInfo.point2, markerInfo, true); if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false) { m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录 @@ -3342,7 +3414,8 @@ DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y); if (hittestinfo.RowIndex > -1) { - string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); @@ -3399,7 +3472,7 @@ MessageBox.Show("没有不符合净距标准的管线!", "提示"); } - for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++) + for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++) { if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) @@ -3413,7 +3486,9 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + #region wxl 水平净距分析重构 + /// /// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能 /// @@ -3422,8 +3497,9 @@ /// private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis) { - - Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature, + + Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1, + selectedFeature, _pipelineLayerNames, dis); if (featureMap == null) { @@ -3463,6 +3539,7 @@ } } } + #endregion /// @@ -3482,7 +3559,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3492,6 +3569,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 碰撞分析 功能界面中 开始分析按钮 事件处理 /// @@ -3516,7 +3594,7 @@ m_FeaturesWithBianhao.Clear(); globeControl1.Globe.Action = EnumAction3D.ActionNull; Cursor = Cursors.WaitCursor; - if (checkBoxX3.Checked) // 选择管线 + if (checkBoxX3.Checked) // 选择管线 { for (int i = 0; i < dataGridViewX4.Rows.Count; i++) { @@ -3524,7 +3602,7 @@ if (selectedFeature == null) continue; selectState = 1; // VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0); - CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames); + CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames); } } else if (checkBoxX4.Checked) // 选择图层 @@ -3548,7 +3626,8 @@ { if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer)) { - listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米"); + listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + + featLenth[pipelineLayer].ToString("0.00") + "米"); } } } @@ -3564,6 +3643,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 碰撞分析功能界面中 表格的 双击定位 功能 /// @@ -3574,12 +3654,14 @@ if (e.Button != MouseButtons.Left) return; DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y); if (hittestinfo.RowIndex <= -1) return; - string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); } } + /// /// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理 /// @@ -3605,6 +3687,7 @@ comboBoxEx3.Enabled = true; } } + /// /// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理 /// @@ -3628,6 +3711,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理 /// @@ -3653,6 +3737,7 @@ dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 覆土分析功能操作界面中的 开始分析 按钮事件处理 /// @@ -3690,7 +3775,9 @@ { GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature; if (rowFeature == null) continue; - string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name; + string featureName = isFeatureContainsBianhao(rowFeature) + ? rowFeature.GetValue(featureIDFieldName).ToString() + : rowFeature.Name; GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) @@ -3715,28 +3802,32 @@ dataGridViewX7.Rows[idx].Tag = rowFeature; dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } } } } - else if (checkBoxX6.Checked) // 覆土分析 选择图层 + else if (checkBoxX6.Checked) // 覆土分析 选择图层 { GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString()); GSOFeatureLayer flayer = layer as GSOFeatureLayer; - if (flayer == null)return; + if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); for (int i = 0; i < feats.Length; i++) { GSOFeature f = feats[i]; string featureName = ""; - featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name; + featureName = isFeatureContainsBianhao(feats[i]) + ? feats[i].GetValue(featureIDFieldName).ToString() + : feats[i].Name; GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D; if (line == null) continue; GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D; @@ -3752,12 +3843,14 @@ dataGridViewX7.Rows[idx].Tag = f; dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } @@ -3776,6 +3869,7 @@ } Cursor = Cursors.Default; } + /// /// 覆土分析中 表格的 双击定位 功能 /// @@ -3793,7 +3887,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3803,6 +3897,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 覆土分析功能操作界面中的 导出Excel按钮 事件处理 /// @@ -3819,6 +3914,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 覆土分析功能操作界面底部的 关闭 按钮事件处理 /// @@ -3850,6 +3946,7 @@ //Refresh(); } + /// /// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3872,6 +3969,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3894,6 +3992,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析功能界面中 关闭按钮 事件处理 /// @@ -3926,6 +4025,7 @@ Refresh(); } + /// /// 水平净距分析功能界面中 删除缓冲区按钮 事件处理 /// @@ -3954,6 +4054,7 @@ Refresh(); } + /// /// 导出指定DataGridView控件中的内容 /// @@ -4040,6 +4141,7 @@ } } } + /// /// 垂直净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4056,6 +4158,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 水平净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4071,7 +4174,8 @@ { MessageBox.Show("表格内容为空!", "提示"); } - } + } + /// /// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理 /// @@ -4097,6 +4201,7 @@ comboBoxEx2.Enabled = true; } } + /// /// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理 /// @@ -4120,6 +4225,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理 /// @@ -4132,7 +4238,7 @@ dataGridViewX4.Rows.Clear(); dataGridViewX5.Rows.Clear(); GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString()); - + GSOFeatureLayer flayer = layer as GSOFeatureLayer; if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); @@ -4143,6 +4249,7 @@ dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 清除所有图层中的所有feature对象的高亮状态 功能 /// @@ -4180,6 +4287,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } } + /// /// 碰撞分析功能界面中 清除分析结果按钮 事件处理 /// @@ -4201,6 +4309,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 导出Excel按钮 事件处理 /// @@ -4217,6 +4326,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 碰撞分析 功能界面中 关闭按钮 事件处理 /// @@ -4239,6 +4349,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 覆土分析 功能界面中的 清除分析结果 按钮事件处理 /// @@ -4260,6 +4371,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准 /// @@ -4352,9 +4464,13 @@ { for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { - if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) + if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && + featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) { - listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米"); + listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + + "米"); } } } @@ -4370,6 +4486,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 间距分析 清除分析结果 /// @@ -4391,6 +4508,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出 /// @@ -4407,6 +4525,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 间距分析 关闭按钮 /// @@ -4428,6 +4547,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 间距分析 分析结果表格双击定位 /// @@ -4445,8 +4565,9 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); - GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); + GSOPoint3d point3d = + lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5); } @@ -4455,6 +4576,7 @@ } } } + /// /// 间距分析 选择管线复选框 /// @@ -4462,7 +4584,7 @@ /// private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxSelectPipeline.Checked) { comboBoxLayer.SelectedItem = null; @@ -4480,6 +4602,7 @@ comboBoxLayer.Enabled = true; } } + /// /// 间距分析 选择图层复选框 /// @@ -4487,7 +4610,7 @@ /// private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxLayer.Enabled = checkBoxSelectLayer.Checked; if (checkBoxSelectLayer.Checked) { @@ -4502,6 +4625,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 选择图层下拉框 /// @@ -4529,6 +4653,7 @@ } } } + /// /// 碰撞分析 /// @@ -4559,6 +4684,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 覆土分析 /// @@ -4588,6 +4714,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 间距分析 /// @@ -4621,6 +4748,7 @@ Refresh(); } + /// /// 垂直净距分析 /// @@ -4651,6 +4779,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距分析 /// @@ -4681,6 +4810,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 碰撞审查 /// @@ -4713,6 +4843,7 @@ Refresh(); } + /// /// 覆土审查 /// @@ -4743,6 +4874,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距审查 /// @@ -4773,6 +4905,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 垂直净距审查 /// @@ -4811,6 +4944,7 @@ sideBar1.Refresh(); Refresh(); } + #endregion /// @@ -4864,7 +4998,7 @@ node.ImageIndex = 0; node.SelectedImageIndex = 0; node.Checked = layer.Visible; - layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Nodes.Insert(0, node); newlayername = layer.Caption; } else @@ -4889,6 +5023,7 @@ } return objRes; } + /// /// 连接数据库 菜单事件处理 /// @@ -4906,6 +5041,7 @@ } } } + /// /// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中 /// @@ -4934,8 +5070,8 @@ /// private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { - if (e.Button != MouseButtons.Right||e.Node.Parent==null) return; - if (e.Node.Parent.Text.Equals("标注管理") ) + if (e.Button != MouseButtons.Right || e.Node.Parent == null) return; + if (e.Node.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y); @@ -4949,7 +5085,7 @@ } else { - if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return; + if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return; if (e.Node.Parent.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; @@ -4964,6 +5100,7 @@ } } } + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单 /// @@ -4988,14 +5125,14 @@ private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode) { layerTreeNode.Nodes.Clear(); - GSOLayer layer = (GSOLayer)layerTreeNode.Tag; + GSOLayer layer = (GSOLayer) layerTreeNode.Tag; // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中 if (layer.Dataset is GSOFeatureDataset) { VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode); } } - + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单 /// @@ -5011,6 +5148,7 @@ globeControl1.Globe.Refresh(); node.Remove(); } + /// /// 图层目录树的 节点对应的复选框选中状态改变事件处理 /// @@ -5021,10 +5159,10 @@ if (e.Action != TreeViewAction.Unknown) { //wxl优化标注管理树形结构 - TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node); + TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node); } } - + /// /// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单 /// @@ -5039,6 +5177,7 @@ node.Nodes.Clear(); globeControl1.Refresh(); } + /// /// 一键审核---导入数据 /// @@ -5071,6 +5210,7 @@ MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示"); } } + /// ///自动导出图片 /// @@ -5079,7 +5219,7 @@ private void buttonItem130_Click_1(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "导出审核图"); - + Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0)); Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height)); @@ -5096,7 +5236,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -5116,6 +5256,7 @@ } } } + /// /// 一键审核功能 /// @@ -5125,11 +5266,12 @@ { LogManager.saveLog(Utility.userName, buttonItem128.Text); if (boolfrmShResult) - {//关闭等待窗口,否则会一直存在下去 + { +//关闭等待窗口,否则会一直存在下去 MessageBox.Show("正在审核或关闭上次审核结果才能进行审核"); return; } - frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode + frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode if (frmSh.ShowDialog() == DialogResult.OK) { boolfrmShResult = true; @@ -5149,7 +5291,7 @@ { try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer); }); @@ -5170,7 +5312,7 @@ try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { frmShResult.Show(); returnShTap(); @@ -5198,6 +5340,7 @@ if (redLayer != null) redLayer.Visible = false; } + /// /// 清除渲染结果 /// @@ -5215,6 +5358,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 审核入库 /// @@ -5226,6 +5370,7 @@ FrmShRK frmShrk = new FrmShRK(globeControl1); frmShrk.Show(); } + /// /// 模拟设计修改 /// @@ -5243,6 +5388,7 @@ frmModify.Show(); boolfrmModify = true; } + /// /// 一键审核中调节透明度 /// @@ -5259,6 +5405,7 @@ layer.Opaque = 100 - sliderItem1.Value; optiValue = sliderItem1.Value; } + /// /// 红线审核中的透明度分析 /// @@ -5274,9 +5421,12 @@ layer.Opaque = 100 - sliderItem3.Value; optiValue = sliderItem3.Value; } + #region yanxiaowei + //初始化DataGridViewX1控件 public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid); + /// /// 代理函数,操作DatgridViewX1 /// @@ -5301,7 +5451,9 @@ globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注 } } + FrmAnalysisGuiHuaResult from; + /// /// 主窗体下方属性表格 双击定位 功能 /// @@ -5371,6 +5523,7 @@ } } } + /// /// 空间查询 /// @@ -5384,17 +5537,19 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 关键字查询 /// /// /// private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e) - { + { LogManager.saveLog(Utility.userName, "关键字查询"); FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 编号查询 /// @@ -5406,6 +5561,7 @@ FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 坐标查询 /// @@ -5417,6 +5573,7 @@ FrmSetLatLonPos.ShowForm(globeControl1); } + /// /// 附属物查询 /// @@ -5428,6 +5585,7 @@ FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1); } + /// /// 管径查询 /// @@ -5439,6 +5597,7 @@ FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 材质查询 /// @@ -5450,6 +5609,7 @@ FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 基本查询 /// @@ -5461,6 +5621,7 @@ FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 复合查询 /// @@ -5472,6 +5633,7 @@ FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 关联查询 /// @@ -5494,14 +5656,19 @@ GSOLayer layer = null; globeControl1.Globe.GetSelectObject(j, out feature, out layer); - if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D - || feature.Geometry.Type == EnumGeometryType.GeoWater)) + if (feature == null && feature.Geometry == null || + (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D + || feature.Geometry.Type == EnumGeometryType.GeoWater)) return; - ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames, - Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance); + ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, + Utility.workwellLayerNames, + Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, + valueAllowance); } } + #endregion + /// /// 清除分析(完善) /// @@ -5531,14 +5698,14 @@ NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1); - globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线 + globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线 // ClearUpDownTraceAnalysis(); //清除上下游分析 - globeControl1.Globe.RemoveAllPits();//清除所有坑 - MarkTools.removeAllMarker(globeControl1);//清除所有标注 - clearFeatureHighLight();//取消管线高亮 + globeControl1.Globe.RemoveAllPits(); //清除所有坑 + MarkTools.removeAllMarker(globeControl1); //清除所有标注 + clearFeatureHighLight(); //取消管线高亮 - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layerGround != null) { layerGround.Visible = true; @@ -5549,6 +5716,7 @@ globeControl1.Refresh(); globeControl2.Refresh(); } + /// /// 管线长度全区域统计 /// @@ -5557,9 +5725,11 @@ private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "管线长度统计"); - FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 管线长度绘制区域统计 /// @@ -5573,6 +5743,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 阀门数量全区域统计 /// @@ -5586,6 +5757,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } + /// /// 阀门数量绘制区域统计 /// @@ -5599,6 +5771,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 井盖数量全区域统计 /// @@ -5609,6 +5782,7 @@ FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1); frm.Show(this); } + /// /// 井盖数量绘制区域统计 /// @@ -5622,6 +5796,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 管径分段统计全区域统计 /// @@ -5633,6 +5808,7 @@ Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分段统计绘制区域统计 /// @@ -5645,6 +5821,7 @@ trackflag = null; Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 埋深分段统计全区域统计 /// @@ -5655,6 +5832,7 @@ LogManager.saveLog(Utility.userName, "埋深分段统计"); FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 埋深分段统计绘制区域统计 /// @@ -5666,6 +5844,7 @@ trackflag = null; FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 管径分类统计全区域统计 /// @@ -5677,6 +5856,7 @@ FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分类统计绘制区域统计 /// @@ -5689,6 +5869,7 @@ trackflag = null; FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 材质分类统计全区域统计 /// @@ -5700,6 +5881,7 @@ FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 材质分类统计绘制区域统计 /// @@ -5712,6 +5894,7 @@ trackflag = null; FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 附属物分类统计全区域统计 /// @@ -5723,6 +5906,7 @@ FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0); } + /// /// 附属物分类统计绘制区域统计 /// @@ -5735,7 +5919,9 @@ trackflag = null; FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1); } + #region Predaotr,断面分析 + /// /// 横断面分析 /// @@ -5748,6 +5934,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis; } + /// /// 纵断面分析 /// @@ -5767,7 +5954,8 @@ GSOFeature feature; GSOLayer layer; globeControl1.Globe.GetSelectObject(i, out feature, out layer); - if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) + if (feature != null && feature.Geometry != null && + feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) { selectFeatures.Add(feature); } @@ -5777,6 +5965,7 @@ FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats); frm.Show(this); } + /// /// 道路断面分析 /// @@ -5789,6 +5978,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis; } + /// /// 基线剖面分析 /// @@ -5801,7 +5991,9 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis; } + #endregion + /// /// 创建拓扑 /// @@ -5815,7 +6007,9 @@ FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1); frm.Show(this); } + #region Predator :拓扑分析 + /// /// 上游分析 /// @@ -5827,6 +6021,7 @@ LogManager.saveLog(Utility.userName, "上游分析"); NetworkTraceUpDown(true); } + /// /// 下游分析 /// @@ -5838,6 +6033,7 @@ LogManager.saveLog(Utility.userName, "下游分析"); NetworkTraceUpDown(false); } + /// /// 上下游追踪 功能 /// @@ -5845,7 +6041,8 @@ private void NetworkTraceUpDown(Boolean bTraceUp) { GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5853,8 +6050,9 @@ GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer; NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp, - selLineFeature, selLayer); + selLineFeature, selLayer); } + /// /// 流向分析 /// @@ -5868,6 +6066,7 @@ FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 关阀分析 /// @@ -5907,6 +6106,7 @@ MessageBox.Show("未找到关闭阀门"); } } + /// /// 连通分析 /// @@ -5933,6 +6133,7 @@ } NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0); } + /// /// 爆管分析 /// @@ -5940,10 +6141,11 @@ /// private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e) { - NetworkTraceUpDown(true); //上游追踪: + NetworkTraceUpDown(true); //上游追踪: GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5954,7 +6156,9 @@ 关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析: } + #endregion + /// /// 多边形开挖 /// @@ -5968,6 +6172,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上 } + /// /// 挖方量分析 /// @@ -5981,6 +6186,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 沿线开挖 /// @@ -5994,6 +6200,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis; } + /// /// 创建隧道 /// @@ -6012,9 +6219,9 @@ globeControl1.Globe.DestLayerFeatureAdd = tunnel; tunnel.Editable = true; enumDesignMode = EnumDesignMode.AddTunnel; - } } + /// /// 隐藏隧道 /// @@ -6030,6 +6237,7 @@ layer.Visible = !layer.Visible; } } + /// /// 删除隧道 /// @@ -6066,6 +6274,7 @@ MessageBox.Show("请选中要删除的隧道!", "提示"); } } + /// /// 通视分析 /// @@ -6076,8 +6285,11 @@ //日志记录 LogManager.saveLog(Utility.userName, "通视分析"); - globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull; + globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis + ? EnumAction3D.VisibilityAnalysis + : EnumAction3D.ActionNull; } + /// /// 可视域分析 /// @@ -6089,6 +6301,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis; } + /// /// 可视包络分析 /// @@ -6100,6 +6313,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis; } + /// /// 缓冲区分析 /// @@ -6134,6 +6348,7 @@ } } + /// /// 附属物分析 /// @@ -6147,6 +6362,7 @@ FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp); dlg.Show(this); } + /// /// 无源淹没分析 /// @@ -6159,6 +6375,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; trackflag = "FloodAnalysis"; } + /// /// 水平距离 /// @@ -6173,6 +6390,7 @@ globeControl1.Globe.DistanceRuler.SpaceMeasure = false; 高度量算ToolStripMenuItem1.Checked = false; } + /// /// 垂直距离 /// @@ -6187,6 +6405,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureHeight; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 空间距离 /// @@ -6201,6 +6420,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = true; } + /// /// 地表距离 /// @@ -6215,6 +6435,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 高度量算 /// @@ -6230,6 +6451,7 @@ if (!高度量算ToolStripMenuItem1.Checked) return; globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 水平面积 /// @@ -6244,6 +6466,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureArea; globeControl1.Globe.AreaRuler.SpaceMeasure = true; } + /// /// 地表面积 /// @@ -6261,6 +6484,7 @@ } # region Fan 重构标注代码 + /// /// 标高标注 /// @@ -6283,6 +6507,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Altitude, ""); } + /// /// 管径标注 /// @@ -6302,8 +6527,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Diameter, ""); + globeControl1, EnumMarkLayer.Mark_Diameter, ""); } + /// /// 埋深标注 /// @@ -6327,6 +6553,7 @@ globeControl1, EnumMarkLayer.Mark_Depth, ""); } + /// /// 坐标标注 /// @@ -6348,6 +6575,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Location, ""); } + /// /// 距离标注 /// @@ -6361,6 +6589,7 @@ trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis; } + /// /// 自定义标注 /// @@ -6376,6 +6605,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText); } } + /// /// 扯旗标注 /// @@ -6391,6 +6621,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent); } } + /// /// 坡度标注 /// @@ -6411,8 +6642,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Slope, ""); + globeControl1, EnumMarkLayer.Mark_Slope, ""); } + /// /// 属性标注 /// @@ -6428,6 +6660,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText); } } + /// /// 标注管理 /// @@ -6490,6 +6723,7 @@ } #endregion + /// /// 飞行到目标点 /// @@ -6502,6 +6736,7 @@ FrmSetFlytoPos.ShowForm(globeControl1); } + /// /// 自定义飞行 /// @@ -6539,6 +6774,7 @@ globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false); } } + /// /// 绕中心点飞行 /// @@ -6552,6 +6788,7 @@ globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds); globeControl1.Globe.CurFlyID = 1; } + /// /// 绕眼睛飞行 /// @@ -6565,6 +6802,7 @@ globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees); globeControl1.Globe.CurFlyID = 2; } + /// /// 权限管理 /// @@ -6578,6 +6816,7 @@ FrmUserRoleMgr frm = new FrmUserRoleMgr(); frm.ShowDialog(); } + /// /// 数据库管理 /// @@ -6592,6 +6831,7 @@ FrmDbManager frm = new FrmDbManager(); frm.ShowDialog(); } + /// /// 用户列表 /// @@ -6605,6 +6845,7 @@ FrmUserManager frm = new FrmUserManager(); frm.ShowDialog(); } + /// /// 创建新用户 /// @@ -6618,6 +6859,7 @@ FrmUserAdd frm = new FrmUserAdd(-1); frm.ShowDialog(); } + /// /// 人员修改 /// @@ -6631,6 +6873,7 @@ FrmAppUSER appUser = new FrmAppUSER(); appUser.ShowDialog(); } + /// /// 增加人员 /// @@ -6644,6 +6887,7 @@ FrmAppUSERRESET appUserReset = new FrmAppUSERRESET(); appUserReset.ShowDialog(); } + /// /// 热点功能统计 /// @@ -6738,6 +6982,7 @@ FrmAPPregion appregion = new FrmAPPregion("拷贝审核"); appregion.Show(); } + private void buttonItemSPSZ_Click(object sender, EventArgs e) { //日志记录 @@ -6746,6 +6991,7 @@ FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2); frm.Show(this); } + /// /// 综合规划区域审查 /// @@ -6758,6 +7004,7 @@ FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 数据质量检查 /// @@ -6770,6 +7017,7 @@ FrmValiData frm = new FrmValiData(globeControl1); frm.ShowDialog(); } + /// /// 数据预处理 /// @@ -6783,6 +7031,7 @@ FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1); frm.ShowDialog(this); } + /// /// 连接数据库 /// @@ -6803,6 +7052,7 @@ } } } + /// /// 管线入库 /// @@ -6827,6 +7077,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 附属物入库 /// @@ -6852,6 +7103,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 坐标转换 /// @@ -6865,6 +7117,7 @@ FrmProject frm = new FrmProject(); frm.ShowDialog(); } + /// /// 元数据基本管理 /// @@ -6878,6 +7131,7 @@ FrmMetadata frmmd = new FrmMetadata(); frmmd.ShowDialog(); } + /// /// 元数据查询管理 /// @@ -6891,6 +7145,7 @@ FrmMetadataStat frmmds = new FrmMetadataStat(); frmmds.ShowDialog(); } + /// /// 操作日志管理 /// @@ -6904,6 +7159,7 @@ FrmLogOper frmlo = new FrmLogOper(); frmlo.ShowDialog(); } + /// /// 数据字典管理 /// @@ -6917,6 +7173,7 @@ FrmMDDictory frmmdd = new FrmMDDictory(); frmmdd.ShowDialog(); } + /// /// 数据库备份 /// @@ -6931,7 +7188,9 @@ FrmBACKORACLE backOracle = new FrmBACKORACLE(); backOracle.Show(); } + #region 模拟规划:Fan + /// /// 创建管段 /// @@ -6949,6 +7208,7 @@ globeControl1.Globe.Action = EnumAction3D.DrawPolyline; } } + /// /// 创建附属物 /// @@ -6968,6 +7228,7 @@ dlg.Show(this); } } + /// /// 创建特征管点 /// @@ -6987,6 +7248,7 @@ dlg.Show(this); } } + /// /// 绘制城市七线 /// @@ -7013,7 +7275,9 @@ layer.Editable = true; } } + #endregion + /// /// 选中对象 /// @@ -7026,6 +7290,7 @@ globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 平移对象 /// @@ -7038,6 +7303,7 @@ globeControl1.Globe.Action = EnumAction3D.MoveObject; } + /// /// 升降对象 /// @@ -7050,6 +7316,7 @@ globeControl1.Globe.Action = EnumAction3D.ElevateObject; } + /// /// 旋转对象 /// @@ -7062,6 +7329,7 @@ globeControl1.Globe.Action = EnumAction3D.RotateObject; } + /// /// 连接管段 /// @@ -7079,6 +7347,7 @@ } globeControl1.Globe.InsertJointPipeline(false); } + /// /// 后退 /// @@ -7089,6 +7358,7 @@ LogManager.saveLog(Utility.userName, "后退"); globeControl1.Globe.UnDoEdit(); } + /// /// 前进 /// @@ -7100,6 +7370,7 @@ globeControl1.Globe.ReDoEdit(); } + /// /// 导出CAD /// @@ -7111,13 +7382,14 @@ LogManager.saveLog(Utility.userName, "导出CAD"); #region 导出成dxf格式 + List listVectorNames = new List(); for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通" - || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" - || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" - || Utility.m_PipelineLayerNames[i] == "供电") + || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" + || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" + || Utility.m_PipelineLayerNames[i] == "供电") { continue; } @@ -7155,10 +7427,12 @@ } } - FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames); + FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames); frm.ShowDialog(); + #endregion } + /// /// 导出矢量 /// @@ -7231,14 +7505,14 @@ globeControl1.Globe.GetSelectObject(i, out f, out layer); if (layer != null) globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete); - bool result = FeatureTools.DeleteFeature(f); + bool result = FeatureTools.DeleteFeature(f); if (result) delSuccessCount++; globeControl1.Refresh(); - + } - MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示"); + MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示"); globeControl1.Globe.Action = EnumAction3D.ActionNull; } @@ -7279,6 +7553,7 @@ LogHelper.WriteLog(typeof(MainFrm), ex); } } + void addRedLineDataToDataGridView(List dt, DataGridView dataGridView) { DataTable table = new DataTable(); @@ -7345,12 +7620,12 @@ LogManager.saveLog(Utility.userName, sliderItem2.Text); globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; } - layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; @@ -7359,6 +7634,7 @@ optiValue = sliderItem2.Value; } + /// /// 数据管理导入文件 /// @@ -7370,7 +7646,8 @@ LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text); OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; dlg.Multiselect = true; if (dlg.ShowDialog() == DialogResult.OK) { @@ -7402,6 +7679,7 @@ } } } + /// /// 导入红线(完善) /// @@ -7411,14 +7689,19 @@ { LogManager.saveLog(Utility.userName, buttonItemHX1.Text); - GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword); + GSODataSource dataSpace = + globeControl1.Globe.DataManager.OpenOracleDataSource( + Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, + Utility.DBPassword); string filepath = ""; //日志记录 OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; dlg.Multiselect = true; #region 临时图层显示 + if (dlg.ShowDialog() == DialogResult.OK) { #region @@ -7429,7 +7712,8 @@ GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath); if (layer == null) - {//wxl + { +//wxl LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空"); continue; } @@ -7438,7 +7722,7 @@ layerRedRegion = layer; // CheckDatasetGeoReference(layer.Dataset, strDataPath); bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath); - if (!checkresult) continue;//wxl 没通过检查,跳过此次循环 + if (!checkresult) continue; //wxl 没通过检查,跳过此次循环 TreeNode node = new TreeNode(); node.Tag = layer; node.Text = layer.Dataset.Caption; @@ -7482,7 +7766,8 @@ globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); + GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (roadlayer != null) { roadlayer.Opaque = 100 - sliderGroundTransSet1.Value; @@ -7502,8 +7787,10 @@ #endregion } + #endregion } + /// /// 定位 /// @@ -7516,6 +7803,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2); fly.Show(this); } + /// /// 红线审核 /// @@ -7529,7 +7817,8 @@ globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent; globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent; - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, + -4, 50, 800); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; globeControl1.Refresh(); @@ -7551,6 +7840,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础工具 /// @@ -7582,6 +7872,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 一键审核 /// @@ -7613,7 +7904,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - + /// /// 双屏对比 /// @@ -7647,6 +7938,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 文档管理 /// @@ -7678,6 +7970,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础管理 /// @@ -7709,6 +8002,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 权限管理 /// @@ -7754,6 +8048,7 @@ int width = Width; FrmCompareFeature.ShowForm(globeControl1, globeControl2, width); } + /// /// 红线审核导出图片 /// @@ -7779,7 +8074,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -7799,6 +8094,7 @@ } } } + /// /// 标识器全区域统计 /// @@ -7810,6 +8106,7 @@ FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null); bsqStatis.Show(this); } + /// /// 标识器绘制区域统计 /// @@ -7844,6 +8141,7 @@ globeControl1.Refresh(); } } + /// /// 规划数据入库 /// @@ -7905,7 +8203,7 @@ frm.ShowDialog(); } } - + //文档管理 操作 private void btn_document_info_Click(object sender, EventArgs e) { @@ -7945,7 +8243,8 @@ GSORect2d rd = lyr.LatLonBounds; GSOPoint2d rdcenter = rd.Center; - globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100); + globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, + 100); globeControl1.Refresh(); } @@ -8016,6 +8315,7 @@ } #region 右屏管纵数据控制 + private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e) { lendendGZ50.Visible = true; @@ -8108,6 +8408,7 @@ lendendGZ24_2.Visible = false; lendendGZ24_3.Visible = false; } + #endregion private void buttonItemPasswordReset_Click(object sender, EventArgs e) @@ -8117,10 +8418,32 @@ } private void pictureBox1_Paint(object sender, PaintEventArgs e) - { + { string welcomeUser = "欢迎您:" + Utility.userName; e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50); } + //电子标识系统合并 + private void btn_flag_Click(object sender, EventArgs e) + { + if (FrmFlagManagers.IS_OPEN) + { + return; + } + FrmFlagManagers frm = new FrmFlagManagers(globeControl1); + frm.Show(this); + } + + private void slider4ground_ValueChanged(object sender, EventArgs e) + { + LogManager.saveLog(Utility.userName, slider4ground.Text); + + globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value; + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + if (layer != null) + layer.Opaque = 100 - slider4ground.Value; + optiValue = slider4ground.Value; + } + } } \ No newline at end of file diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs new file mode 100644 index 0000000..9fe14fb --- /dev/null +++ b/FrmFlagManagers.Designer.cs @@ -0,0 +1,180 @@ +namespace Cyberpipe +{ + partial class FrmFlagManagers + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.标识对象ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.bar1 = new DevComponents.DotNetBar.Bar(); + this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); + this.txt_no = new DevComponents.DotNetBar.TextBoxItem(); + this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); + this.combo_street = new DevComponents.DotNetBar.ComboBoxItem(); + this.btn_query = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_batch = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_menu = new DevComponents.DotNetBar.ButtonItem(); + this.winGridViewPager1 = new WHC.Pager.WinControl.WinGridViewPager(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.标识对象ToolStripMenuItem, + this.toolStripMenuItem2}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(125, 48); + // + // 标识对象ToolStripMenuItem + // + this.标识对象ToolStripMenuItem.Name = "标识对象ToolStripMenuItem"; + this.标识对象ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.标识对象ToolStripMenuItem.Text = "标识对象"; + this.标识对象ToolStripMenuItem.Click += new System.EventHandler(this.标识对象ToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Text = "查看位置"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // bar1 + // + this.bar1.AntiAlias = true; + this.bar1.Dock = System.Windows.Forms.DockStyle.Top; + this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.labelItem1, + this.txt_no, + this.labelItem2, + this.combo_street, + this.btn_query, + this.btn_add_batch, + this.btn_add_menu}); + this.bar1.Location = new System.Drawing.Point(0, 0); + this.bar1.Name = "bar1"; + this.bar1.Size = new System.Drawing.Size(881, 28); + this.bar1.Stretch = true; + this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.bar1.TabIndex = 8; + this.bar1.TabStop = false; + this.bar1.Text = "bar1"; + // + // labelItem1 + // + this.labelItem1.Name = "labelItem1"; + this.labelItem1.Text = "编号"; + // + // txt_no + // + this.txt_no.Name = "txt_no"; + this.txt_no.TextBoxWidth = 200; + this.txt_no.WatermarkColor = System.Drawing.SystemColors.GrayText; + // + // labelItem2 + // + this.labelItem2.Name = "labelItem2"; + this.labelItem2.Text = "街道"; + // + // combo_street + // + this.combo_street.ComboWidth = 200; + this.combo_street.DropDownHeight = 106; + this.combo_street.ItemHeight = 17; + this.combo_street.Name = "combo_street"; + // + // btn_query + // + this.btn_query.Name = "btn_query"; + this.btn_query.Text = "查询"; + this.btn_query.Click += new System.EventHandler(this.btn_query_Click); + // + // btn_add_batch + // + this.btn_add_batch.Name = "btn_add_batch"; + this.btn_add_batch.Text = "批量添加"; + this.btn_add_batch.Click += new System.EventHandler(this.btn_add_batch_Click); + // + // btn_add_menu + // + this.btn_add_menu.Name = "btn_add_menu"; + this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); + // + // winGridViewPager1 + // + this.winGridViewPager1.AppendedMenu = null; + this.winGridViewPager1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.winGridViewPager1.DataSource = null; + this.winGridViewPager1.DisplayColumns = ""; + this.winGridViewPager1.Dock = System.Windows.Forms.DockStyle.Fill; + this.winGridViewPager1.Location = new System.Drawing.Point(0, 28); + this.winGridViewPager1.MinimumSize = new System.Drawing.Size(540, 0); + this.winGridViewPager1.Name = "winGridViewPager1"; + this.winGridViewPager1.PrintTitle = ""; + this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); + this.winGridViewPager1.TabIndex = 9; + // + // FrmFlagManagers + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(881, 474); + this.Controls.Add(this.winGridViewPager1); + this.Controls.Add(this.bar1); + this.DoubleBuffered = true; + this.Name = "FrmFlagManagers"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器管理"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagManagers_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagManagers_Load); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem 标识对象ToolStripMenuItem; + private DevComponents.DotNetBar.Bar bar1; + private DevComponents.DotNetBar.LabelItem labelItem1; + private DevComponents.DotNetBar.TextBoxItem txt_no; + private DevComponents.DotNetBar.LabelItem labelItem2; + private DevComponents.DotNetBar.ComboBoxItem combo_street; + private DevComponents.DotNetBar.ButtonItem btn_query; + private DevComponents.DotNetBar.ButtonItem btn_add_batch; + private DevComponents.DotNetBar.ButtonItem btn_add_menu; + private WHC.Pager.WinControl.WinGridViewPager winGridViewPager1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + } +} \ No newline at end of file diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs new file mode 100644 index 0000000..1e433c0 --- /dev/null +++ b/FrmFlagManagers.cs @@ -0,0 +1,459 @@ +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; +using DevComponents.DotNetBar; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.IO; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagManagers : Office2007Form + { + GSOGlobeControl globeControl1 = null; + int maxPageIndex = 20; + public static bool IS_OPEN = false; + int rows = 0; + public static GSODataSource ds = null; + TreeNode layerManagerNode = null; + string LSSYS_ID_VALUE = "标识器自增编号"; + + public FrmFlagManagers(GSOGlobeControl _globeControl1) + { + this.globeControl1 = _globeControl1; + InitializeComponent(); + winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); + this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 + this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + + this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); + winGridViewPager1.dataGridView1.MultiSelect = false; + } + + 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; + } + + /// + /// 初始化分页表格 + /// + 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("备注", "备注"); + + this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + + //隐藏右键功能按钮 + 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[2].Text = "属性编辑"; + winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; + + winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + + //右键菜单宽度 + winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; + winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; + //控制间隔的颜色 + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + //控制每页显示的最大数据量 + winGridViewPager1.PagerInfo.RecordCount = rows; + winGridViewPager1.PagerInfo.PageSize = maxPageIndex; + winGridViewPager1.dataGridView1.Refresh(); + } + /// + /// 页面刷新 + /// + /// + /// + private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) + { + LoadData(); + + } + + /// + /// 属性编辑 + /// + /// + /// + private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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); + frm.refresh += new FrmFlagEdits.Handle(LoadData); //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + /// + /// 标识器报废 + /// + /// + /// + private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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) + { + bindComboxStreet(); + LoadData(); + + IS_OPEN = true; + } + + private void LoadData() + { + int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + winGridViewPager1.Refresh(); + } + + private void LoadData(int pageIndex) + { + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + 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"; + + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private string GetSql(int pageIndex) + { + int minPage = (pageIndex - 1) * maxPageIndex + 1; + 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 使用状态 = '使用中'"; + + + if (!String.IsNullOrEmpty(txt_no.Text.Trim())) + { + sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + sqlData += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + } + if (null != combo_street.SelectedItem && !String.IsNullOrEmpty(combo_street.SelectedItem.ToString().Trim())) + { + sqlData += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + sqlCount += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + } + + sqlData += " order by 编号)b " + + "where(b.row_num between " + minPage + " and " + maxPage + ")"; + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private void bindComboxStreet() + { + ComboBoxItem item = new ComboBoxItem(); + + String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow row in table.Rows) + { + item = new ComboBoxItem(); + item.Text = row[0].ToString(); + if (!item.Text.Equals("")) + combo_street.Items.Add(item); + } + } + + private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) + { + IS_OPEN = false; + globeControl1.Globe.MemoryLayer.RemoveAllFeature(); + + globeControl1.Refresh(); + + } + private void doSave(Object e) + { + try + { + globeControl1.Globe.Layers["标识器"].Save(); + } + catch (Exception ex) + { + LogHelper.WriteLog(typeof(FrmFlagManagers), ex); + } + } + + private void btn_query_Click(object sender, EventArgs e) + { + try + { + LoadData(1); + } + catch (Exception ex) + { + MessageBox.Show("查询失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_add_batch_Click(object sender, EventArgs e) + { + if (ds == null && null != globeControl1) + { + FrmFlagDatabase frmDB = new FrmFlagDatabase(globeControl1); + if (frmDB.ShowDialog() == DialogResult.OK) + { + ds = FrmFlagDatabase.ds; + } + } + + if (ds != null && null != globeControl1) + { + FrmAddFlagBatch frmFlag = new FrmAddFlagBatch(globeControl1, ds); + if (frmFlag.ShowDialog() == DialogResult.OK) + { + addNodeToLayerManagerNode(frmFlag.flags); + } + } + } + + private Boolean CheckDatasetGeoReference(GSODataset dataset) + { + Boolean bSuccess = false; + if (dataset.GeoReferenceType == EnumGeoReferenceType.Flat) + { + if (MessageBox.Show("数据没有空间参考信息,请设置空间参考信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) == DialogResult.OK) + { + String strPath = Path.GetDirectoryName(Application.ExecutablePath) + "\\Coordinate Systems"; + OpenFileDialog dlg = new OpenFileDialog(); + + dlg.InitialDirectory = strPath; + dlg.RestoreDirectory = true; + + dlg.Filter = "投影文件|*.prj||"; + if (dlg.ShowDialog() == DialogResult.OK) + { + bSuccess = dataset.LoadProjectionFromESRIFile(dlg.FileName); + } + } + } + else + { + return true; + } + return bSuccess; + } + + private void addNodeToLayerManagerNode(GSOLayer layer) + { + if (layer != null) + { + GSODataset dataset = layer.Dataset; + CheckDatasetGeoReference(layer.Dataset); + TreeNode node = new TreeNode(); + node.Tag = layer; + node.Text = layer.Dataset.Caption; + node.ImageIndex = 0; + node.SelectedImageIndex = 0; + node.Checked = layer.Visible; + layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Expand(); + } + } + + private void btn_add_menu_Click(object sender, EventArgs e) + { + if (null != globeControl1) + { + FrmAddSinMark frm = new FrmAddSinMark(globeControl1); + frm.Show(); + } + } + + private void 标识对象ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + { + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.Hide(); + string id = row.Cells["编号"].Value.ToString(); + FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); + p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 + p.Show(); + } + catch (Exception ex) + { + MessageBox.Show("失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } + + private void showThisForm() + { + this.Show(); + } + /// + /// 位置查看 + /// + /// + /// + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.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.标识器型号,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" + + "所属道路:" + 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(); + + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx new file mode 100644 index 0000000..f3050a7 --- /dev/null +++ b/FrmFlagManagers.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 45 + + \ No newline at end of file diff --git a/MainFrm.cs b/MainFrm.cs index ec7d43e..d33c5a0 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -40,7 +40,7 @@ GSOBalloon featureTooltip2; GSOBalloonEx balloonEx2; - GSOLayer layerTemp;//wxl注释,Globe1的临时图层 + GSOLayer layerTemp; //wxl注释,Globe1的临时图层 FrmRedlineResult frmredResult = null; FrmMnModify frmModify; public bool frmRedlineResult = false; @@ -877,37 +877,37 @@ double dsw = SW; if (SW > 1440) { - double myScreen = dsw / 1440; - buttonX1.Width = (int)(buttonX1.Width * myScreen); - buttonX2.Width = (int)(buttonX2.Width * myScreen); - buttonX4.Width = (int)(buttonX4.Width * myScreen); - buttonX5.Width = (int)(buttonX5.Width * myScreen); - buttonX6.Width = (int)(buttonX6.Width * myScreen); - buttonX7.Width = (int)(buttonX8.Width * myScreen); - buttonX8.Width = (int)(buttonX8.Width * myScreen); - buttonX9.Width = (int)(buttonX9.Width * myScreen); - buttonX12.Width = (int)(buttonX12.Width * myScreen); - buttonX14.Width = (int)(buttonX14.Width * myScreen); - buttonX15.Width = (int)(buttonX15.Width * myScreen); - buttonX16.Width = (int)(buttonX16.Width * myScreen); - buttonX17.Width = (int)(buttonX17.Width * myScreen); + double myScreen = dsw/1440; + buttonX1.Width = (int) (buttonX1.Width*myScreen); + buttonX2.Width = (int) (buttonX2.Width*myScreen); + buttonX4.Width = (int) (buttonX4.Width*myScreen); + buttonX5.Width = (int) (buttonX5.Width*myScreen); + buttonX6.Width = (int) (buttonX6.Width*myScreen); + buttonX7.Width = (int) (buttonX8.Width*myScreen); + buttonX8.Width = (int) (buttonX8.Width*myScreen); + buttonX9.Width = (int) (buttonX9.Width*myScreen); + buttonX12.Width = (int) (buttonX12.Width*myScreen); + buttonX14.Width = (int) (buttonX14.Width*myScreen); + buttonX15.Width = (int) (buttonX15.Width*myScreen); + buttonX16.Width = (int) (buttonX16.Width*myScreen); + buttonX17.Width = (int) (buttonX17.Width*myScreen); - labelX1.Width = (int)(labelX1.Width * myScreen); - labelX2.Width = (int)(labelX2.Width * myScreen); - labelX3.Width = (int)(labelX3.Width * myScreen); - labelX6.Width = (int)(labelX6.Width * myScreen); - labelX8.Width = (int)(labelX8.Width * myScreen); - labelX9.Width = (int)(labelX9.Width * myScreen); - labelX12.Width = (int)(labelX12.Width * myScreen); - labelX13.Width = (int)(labelX13.Width * myScreen); - labelX14.Width = (int)(labelX14.Width * myScreen); - labelX16.Width = (int)(labelX16.Width * myScreen); - labelX17.Width = (int)(labelX17.Width * myScreen); - labelX11.Width = (int)(labelX11.Width * myScreen); - labelX19.Width = (int)(labelX19.Width * myScreen); - labelX21.Width = (int)(labelX21.Width * myScreen); - labelX22.Width = (int)(labelX22.Width * myScreen); - labelX24.Width = (int)(labelX24.Width * myScreen); + labelX1.Width = (int) (labelX1.Width*myScreen); + labelX2.Width = (int) (labelX2.Width*myScreen); + labelX3.Width = (int) (labelX3.Width*myScreen); + labelX6.Width = (int) (labelX6.Width*myScreen); + labelX8.Width = (int) (labelX8.Width*myScreen); + labelX9.Width = (int) (labelX9.Width*myScreen); + labelX12.Width = (int) (labelX12.Width*myScreen); + labelX13.Width = (int) (labelX13.Width*myScreen); + labelX14.Width = (int) (labelX14.Width*myScreen); + labelX16.Width = (int) (labelX16.Width*myScreen); + labelX17.Width = (int) (labelX17.Width*myScreen); + labelX11.Width = (int) (labelX11.Width*myScreen); + labelX19.Width = (int) (labelX19.Width*myScreen); + labelX21.Width = (int) (labelX21.Width*myScreen); + labelX22.Width = (int) (labelX22.Width*myScreen); + labelX24.Width = (int) (labelX24.Width*myScreen); } sideBar1.Visible = false; sideBar1.ExpandedPanel = sideBarPanelItem3; @@ -1031,7 +1031,7 @@ globeControl1.Globe.UserBackgroundColor = Color.White; globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3; + globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3; globeControl1.Globe.EditSnapObject = true; globeControl1.Globe.IsReleaseMemOutOfView = true; globeControl1.Globe.ControlPanel.Visible = true; @@ -1050,7 +1050,7 @@ globeControl2.Globe.UserBackgroundColor = Color.White; globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3; + globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3; globeControl2.Globe.EditSnapObject = true; globeControl2.Globe.IsReleaseMemOutOfView = true; globeControl2.Globe.ControlPanel.Visible = false; @@ -1154,6 +1154,7 @@ initLayerTree(); } + /// /// 加载地球1、2的图层 /// @@ -1224,7 +1225,7 @@ } - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { connectServer(); }); @@ -1291,7 +1292,7 @@ private void MainFrm_Load(object sender, EventArgs e) { - layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示 + layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示 initGlobalControl(); //initGlobalMap(); // initLayerTree(); @@ -1362,12 +1363,12 @@ tempnode.Checked = node.Checked && feature.Visible; tempnode.Tag = feature; node.Nodes.Add(tempnode); - GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature; + GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature; VisitFeature3Ds(featureFolder.Features, tempnode); } else { - TreeNode tempnode = new TreeNode { Text = feature.Name }; + TreeNode tempnode = new TreeNode {Text = feature.Name}; if (feature.Geometry != null) { switch (feature.Geometry.Type) @@ -1562,6 +1563,7 @@ } #endregion + private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Button != MouseButtons.Right) return; @@ -1590,6 +1592,7 @@ } } + //wxl Tag更正 /// /// 删除临时添加的本地数据图层 @@ -1618,6 +1621,7 @@ } } + //wxl Tag更正 private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1629,6 +1633,7 @@ 可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked; layer.Editable = 可编辑ToolStripMenuItem.Checked; } + //wxl Tag更正 private void 保存ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1638,6 +1643,7 @@ if (layer == null) return; layer.Dataset.Save(); } + //wxl Tag更正 private void 定位ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1667,7 +1673,8 @@ if (layer == null) return; if (layer.Caption.Equals("红线")) { - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), + EnumAltitudeMode.Absolute, -4, 50, 1000); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; layer.Visible = true; @@ -1681,6 +1688,7 @@ } } } + //wxl Tag更正 private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { @@ -1693,7 +1701,8 @@ GSOFeature feature = layer.GetAt(0); if (feature != null && feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute); + //, 0, 0, 1000); } else { @@ -1705,7 +1714,8 @@ GSOFeature feature = node.Tag as GSOFeature; if (feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, + 10); } else { @@ -1758,6 +1768,7 @@ globeControl1.Globe.Refresh(); } } + void globeControl2_MouseWheel(object sender, MouseEventArgs e) { if (globeControl2.Globe.CameraState.Distance > 20000000) @@ -1770,6 +1781,7 @@ } #region Fan 横断面 + /// /// 横断面分析、基线剖面分析、道路断面分析等 /// @@ -1812,6 +1824,7 @@ } trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis; } + #endregion /// @@ -1834,14 +1847,16 @@ case "PipelineDistanceStatistics": - FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm1.Show(this); globeControl1.Globe.Action = EnumAction3D.ActionNull; break; case "PipelineSpatialQuery": - FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); globeControl1.Globe.ClearAnalysis(); globeControl1.Globe.Action = EnumAction3D.ActionNull; @@ -1865,7 +1880,8 @@ geoPit.PitDepth = depth; geoPit.PitDepthUsing = true; globeControl1.Globe.AddPit("", geoPit); - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (layerGround != null) { layerGround.Visible = false; @@ -1898,6 +1914,7 @@ break; } } + /// /// 鼠标悬浮提示 /// @@ -1910,11 +1927,12 @@ if (e.Feature == null) return; if (isFeatureContainsBianhao(e.Feature)) { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString()); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, + e.Feature.GetValue(featureIDFieldName).ToString()); } else if (e.Feature.Name != "") { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name); } } catch (Exception ex) @@ -1933,7 +1951,7 @@ if (e.Button != MouseButtons.Left) return; if (enumDesignMode == EnumDesignMode.AddPipe - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线 { GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd; if (layerDest != null) @@ -1949,7 +1967,7 @@ } } if (enumDesignMode == EnumDesignMode.AddTunnel - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道 { GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道"); if (tunnel != null && tunnel.GetAllFeatures().Length > 0) @@ -1961,10 +1979,9 @@ //tunnel.Save(); } } - } if (enumDesignMode == EnumDesignMode.AddCitySevenLine - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线 { CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine; string lineType = citySevenLine.Type; @@ -2000,6 +2017,7 @@ mouseDownX1 = e.X; mouseDownY1 = e.Y; } + /// /// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件 /// @@ -2010,6 +2028,7 @@ mouseDownX2 = e.X; mouseDownY2 = e.Y; } + /// /// /// @@ -2023,6 +2042,7 @@ RightScreenToolMenu.Show(globeControl2, e.X, e.Y); } } + /// /// (完善)#wxl 待整理 /// @@ -2037,7 +2057,7 @@ 通视分析ToolStripMenuItem.Checked = false; return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2053,13 +2073,15 @@ int idx = dataGridViewX2.Rows.Add(); dataGridViewX2.Rows[idx].Tag = feat; dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX2.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2075,7 +2097,9 @@ int idx = dataGridViewLineList.Rows.Add(); dataGridViewLineList.Rows[idx].Tag = feat; dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewLineList.Rows[idx].Cells[1].Value = featureName; } } @@ -2097,13 +2121,15 @@ int idx = dataGridViewX8.Rows.Add(); dataGridViewX8.Rows[idx].Tag = feat; dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX8.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2119,7 +2145,9 @@ int idx = dataGridViewX4.Rows.Add(); dataGridViewX4.Rows[idx].Tag = feat; dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX4.Rows[idx].Cells[1].Value = featureName; } @@ -2127,7 +2155,7 @@ return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2143,7 +2171,9 @@ int idx = dataGridViewX6.Rows.Add(); dataGridViewX6.Rows[idx].Tag = feat; dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX6.Rows[idx].Cells[1].Value = featureName; } } @@ -2196,7 +2226,7 @@ layerTemp.AddFeature(feat); } } - else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 + else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 { if (e.X == mouseDownX1 && e.Y == mouseDownY1) { @@ -2244,7 +2274,8 @@ return result; } - string featureIDFieldName = "编号";//待完善 + string featureIDFieldName = "编号"; //待完善 + private bool isFeatureContainsBianhao(GSOFeature feature) { if (feature.GetFieldDefn("标识器编号") != null) @@ -2268,12 +2299,13 @@ string str1 = ""; if (feature == null) return; - if (feature.GetFieldDefn("图片编码") != null)// + if (feature.GetFieldDefn("图片编码") != null) // { str1 = GetBubbleInfo(feature, globeControl1); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2290,7 +2322,7 @@ balloonEx.HideBalloon(); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2309,7 +2341,8 @@ str1 = GetBubbleInfo(feature, globeControl2); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2326,7 +2359,7 @@ balloonEx2.HideBalloon(); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2337,10 +2370,13 @@ private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl) { if (feature == null) return ""; - string str = "
" + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + fieldNames[j] + "
" + value + "
"; + string str = + "
"; var code = feature.GetFieldAsString("编码"); var title = FeatureTools.GetFeatureTypeByCode(code); - str += ""; + str += + ""; string layerName = feature.Dataset.Name; string queryFields = ""; if (Utility.Query_Fields.ContainsKey(layerName)) @@ -2354,28 +2390,30 @@ } if (queryFields != null) { - string[] param = { "," }; + string[] param = {","}; string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries); - for (int j = 0; j < fieldNames.Length; ) + for (int j = 0; j < fieldNames.Length;) { - int count = 0; - string tmpStr = ""; - while (count<2&&j
" + + tmpStr += + "
"; - count ++; + count++; } j++; } if (count == 1) - {//不够两列 + { +//不够两列 tmpStr += ""; } tmpStr += ""; @@ -2393,6 +2431,7 @@ GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer; return featureAddLayer; } + //遍历最深三层找到目标node. private TreeNode GetDestLayerFeatureAddTreeNode() { @@ -2415,7 +2454,7 @@ { GSOLayer gsoLayer = node.Tag as GSOLayer; if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node; - } + } } } else @@ -2465,6 +2504,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 地下模式 菜单按钮 /// @@ -2501,6 +2541,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 行走模式 菜单按钮 /// @@ -2518,6 +2559,7 @@ globeControl1.Globe.CameraMode = EnumCameraMode.Walk; } + /// /// 地面透明度设置 菜单 /// @@ -2528,11 +2570,12 @@ LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text); globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) layer.Opaque = 100 - sliderGroundTransSet1.Value; optiValue = sliderGroundTransSet1.Value; } + /// /// 图例 菜单按钮 /// @@ -2547,6 +2590,7 @@ legend.Visible = !legend.Visible; globeControl1.Refresh(); } + /// /// 快速定位 菜单按钮 /// @@ -2559,6 +2603,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1); fly.Show(this); } + /// /// 图层管理 菜单按钮 /// @@ -2594,6 +2639,7 @@ Refresh(); } } + /// /// 全屏显示 菜单按钮 /// @@ -2615,23 +2661,25 @@ //任务栏 [DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)] static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow); + int widthOld; int heightOld; int xOld; int yOld; + /// /// 全屏显示功能实现(完善) /// private void FullScreen() { - if (!m_bFullScreen) // 启用全屏 + if (!m_bFullScreen) // 启用全屏 { xOld = Location.X; yOld = Location.Y; widthOld = Width; heightOld = Height; - SuspendLayout();//挂起 + SuspendLayout(); //挂起 FormBorderStyle = FormBorderStyle.Sizable; WindowState = FormWindowState.Maximized; @@ -2665,13 +2713,13 @@ ribbonControl1.Visible = false; pictureBox1.Visible = false; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = true; } - else // 取消全屏 + else // 取消全屏 { - SuspendLayout();//挂起 + SuspendLayout(); //挂起 //////任务栏 IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null); @@ -2699,7 +2747,7 @@ ribbonControl1.Visible = true; pictureBox1.Visible = true; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = false; Focus(); //初始化隐藏图层管理 @@ -2787,10 +2835,12 @@ } Image printImage; + private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(printImage, 10, 10); } + /// /// 输出地图 菜单 /// @@ -2815,7 +2865,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -2835,6 +2885,7 @@ } } } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 目标图层 菜单 @@ -2850,6 +2901,7 @@ GSOLayer layer = node.Tag as GSOLayer; globeControl1.Globe.DestLayerFeatureAdd = layer; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可选择 菜单 @@ -2864,6 +2916,7 @@ LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked; if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可编辑 菜单 @@ -2878,6 +2931,7 @@ LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked; if (layer != null) layer.Editable = LayerEditableMenuItem.Checked; } + /// /// 图层目录树 右键菜单中的 保存 菜单 /// @@ -2904,6 +2958,7 @@ panelOfTable.Visible = false; clearFeatureHighLight(); } + /// /// 主窗体关闭事件处理 /// @@ -2918,6 +2973,7 @@ } #region 完善(各种净距分析) + /// /// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2941,6 +2997,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2948,7 +3005,7 @@ /// private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxEx4.Enabled = checkBoxX8.Checked; if (checkBoxX8.Checked) { @@ -2964,6 +3021,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2989,6 +3047,7 @@ comboBoxEx1.Enabled = true; } } + /// /// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2996,7 +3055,7 @@ /// private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxX7.Checked) { comboBoxEx4.SelectedItem = null; @@ -3014,6 +3073,7 @@ comboBoxEx4.Enabled = true; } } + /// /// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3038,6 +3098,7 @@ dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3062,9 +3123,10 @@ dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name; } } + Dictionary featCount = new Dictionary(); Dictionary featLenth = new Dictionary(); - Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置 + Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置 /// /// 垂直净距分析 功能界面中的 开始分析按钮 事件处理 @@ -3111,7 +3173,7 @@ GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature; if (selectedFeature == null) continue; selectState = 1; - VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun); + VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun); } } else if (checkBoxX2.Checked) // 选择图层 @@ -3160,7 +3222,8 @@ /// /// /// - private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible) + private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, + GSOPoint3d pntIntersect2, double distance, bool markerVisible) { if (pntIntersect1 == null || pntIntersect2 == null) { @@ -3175,9 +3238,9 @@ GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格 //设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255 style.LineColor = Color.GreenYellow; - style.LineWidth = 3; //设置线的宽度为3 - style.VertexVisible = true; //显示线的节点 - disline.Style = style; //把风格添加到线上 + style.LineWidth = 3; //设置线的宽度为3 + style.VertexVisible = true; //显示线的节点 + disline.Style = style; //把风格添加到线上 disline.AltitudeMode = EnumAltitudeMode.Absolute; GSOFeature line = new GSOFeature(); @@ -3186,7 +3249,7 @@ GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = pntIntersect1.X; dismarker.Y = pntIntersect1.Y; - dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2; + dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2; string disStr = distance.ToString("0.00"); if (disStr != "0.00") @@ -3216,7 +3279,9 @@ return dismarker.Position; } + #region wxl + /// /// wxl重构,碰撞分析 /// @@ -3225,7 +3290,8 @@ /// private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames) { - List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames); + List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, + pipelineLayerNames); if (result == null) { selectState = 0; @@ -3245,14 +3311,16 @@ dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name; GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; - if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false) + if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == + false) { GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = featureAnalysisInfo.point1.X; dismarker.Y = featureAnalysisInfo.point1.Y; - dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2; + dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2; dismarker.AltitudeMode = EnumAltitudeMode.Absolute; - m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录 + m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, + dismarker.Position); //添加飞行位置记录 } if (featCount.ContainsKey(feat2Caption)) { @@ -3273,16 +3341,19 @@ } } + /// /// wxl重构,垂直净距分析 /// /// /// /// - private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance) + private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, + double verticalDistance) { - List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames, - verticalDistance); + List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, + selectedFeature, pipelineLayerNames, + verticalDistance); if (result == null) { selectState = 0; @@ -3304,7 +3375,8 @@ GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米"; - GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true); + GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, + featureAnalysisInfo.point2, markerInfo, true); if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false) { m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录 @@ -3342,7 +3414,8 @@ DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y); if (hittestinfo.RowIndex > -1) { - string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); @@ -3399,7 +3472,7 @@ MessageBox.Show("没有不符合净距标准的管线!", "提示"); } - for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++) + for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++) { if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) @@ -3413,7 +3486,9 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + #region wxl 水平净距分析重构 + /// /// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能 /// @@ -3422,8 +3497,9 @@ /// private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis) { - - Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature, + + Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1, + selectedFeature, _pipelineLayerNames, dis); if (featureMap == null) { @@ -3463,6 +3539,7 @@ } } } + #endregion /// @@ -3482,7 +3559,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3492,6 +3569,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 碰撞分析 功能界面中 开始分析按钮 事件处理 /// @@ -3516,7 +3594,7 @@ m_FeaturesWithBianhao.Clear(); globeControl1.Globe.Action = EnumAction3D.ActionNull; Cursor = Cursors.WaitCursor; - if (checkBoxX3.Checked) // 选择管线 + if (checkBoxX3.Checked) // 选择管线 { for (int i = 0; i < dataGridViewX4.Rows.Count; i++) { @@ -3524,7 +3602,7 @@ if (selectedFeature == null) continue; selectState = 1; // VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0); - CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames); + CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames); } } else if (checkBoxX4.Checked) // 选择图层 @@ -3548,7 +3626,8 @@ { if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer)) { - listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米"); + listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + + featLenth[pipelineLayer].ToString("0.00") + "米"); } } } @@ -3564,6 +3643,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 碰撞分析功能界面中 表格的 双击定位 功能 /// @@ -3574,12 +3654,14 @@ if (e.Button != MouseButtons.Left) return; DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y); if (hittestinfo.RowIndex <= -1) return; - string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); } } + /// /// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理 /// @@ -3605,6 +3687,7 @@ comboBoxEx3.Enabled = true; } } + /// /// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理 /// @@ -3628,6 +3711,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理 /// @@ -3653,6 +3737,7 @@ dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 覆土分析功能操作界面中的 开始分析 按钮事件处理 /// @@ -3690,7 +3775,9 @@ { GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature; if (rowFeature == null) continue; - string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name; + string featureName = isFeatureContainsBianhao(rowFeature) + ? rowFeature.GetValue(featureIDFieldName).ToString() + : rowFeature.Name; GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) @@ -3715,28 +3802,32 @@ dataGridViewX7.Rows[idx].Tag = rowFeature; dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } } } } - else if (checkBoxX6.Checked) // 覆土分析 选择图层 + else if (checkBoxX6.Checked) // 覆土分析 选择图层 { GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString()); GSOFeatureLayer flayer = layer as GSOFeatureLayer; - if (flayer == null)return; + if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); for (int i = 0; i < feats.Length; i++) { GSOFeature f = feats[i]; string featureName = ""; - featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name; + featureName = isFeatureContainsBianhao(feats[i]) + ? feats[i].GetValue(featureIDFieldName).ToString() + : feats[i].Name; GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D; if (line == null) continue; GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D; @@ -3752,12 +3843,14 @@ dataGridViewX7.Rows[idx].Tag = f; dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } @@ -3776,6 +3869,7 @@ } Cursor = Cursors.Default; } + /// /// 覆土分析中 表格的 双击定位 功能 /// @@ -3793,7 +3887,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3803,6 +3897,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 覆土分析功能操作界面中的 导出Excel按钮 事件处理 /// @@ -3819,6 +3914,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 覆土分析功能操作界面底部的 关闭 按钮事件处理 /// @@ -3850,6 +3946,7 @@ //Refresh(); } + /// /// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3872,6 +3969,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3894,6 +3992,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析功能界面中 关闭按钮 事件处理 /// @@ -3926,6 +4025,7 @@ Refresh(); } + /// /// 水平净距分析功能界面中 删除缓冲区按钮 事件处理 /// @@ -3954,6 +4054,7 @@ Refresh(); } + /// /// 导出指定DataGridView控件中的内容 /// @@ -4040,6 +4141,7 @@ } } } + /// /// 垂直净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4056,6 +4158,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 水平净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4071,7 +4174,8 @@ { MessageBox.Show("表格内容为空!", "提示"); } - } + } + /// /// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理 /// @@ -4097,6 +4201,7 @@ comboBoxEx2.Enabled = true; } } + /// /// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理 /// @@ -4120,6 +4225,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理 /// @@ -4132,7 +4238,7 @@ dataGridViewX4.Rows.Clear(); dataGridViewX5.Rows.Clear(); GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString()); - + GSOFeatureLayer flayer = layer as GSOFeatureLayer; if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); @@ -4143,6 +4249,7 @@ dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 清除所有图层中的所有feature对象的高亮状态 功能 /// @@ -4180,6 +4287,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } } + /// /// 碰撞分析功能界面中 清除分析结果按钮 事件处理 /// @@ -4201,6 +4309,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 导出Excel按钮 事件处理 /// @@ -4217,6 +4326,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 碰撞分析 功能界面中 关闭按钮 事件处理 /// @@ -4239,6 +4349,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 覆土分析 功能界面中的 清除分析结果 按钮事件处理 /// @@ -4260,6 +4371,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准 /// @@ -4352,9 +4464,13 @@ { for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { - if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) + if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && + featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) { - listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米"); + listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + + "米"); } } } @@ -4370,6 +4486,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 间距分析 清除分析结果 /// @@ -4391,6 +4508,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出 /// @@ -4407,6 +4525,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 间距分析 关闭按钮 /// @@ -4428,6 +4547,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 间距分析 分析结果表格双击定位 /// @@ -4445,8 +4565,9 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); - GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); + GSOPoint3d point3d = + lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5); } @@ -4455,6 +4576,7 @@ } } } + /// /// 间距分析 选择管线复选框 /// @@ -4462,7 +4584,7 @@ /// private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxSelectPipeline.Checked) { comboBoxLayer.SelectedItem = null; @@ -4480,6 +4602,7 @@ comboBoxLayer.Enabled = true; } } + /// /// 间距分析 选择图层复选框 /// @@ -4487,7 +4610,7 @@ /// private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxLayer.Enabled = checkBoxSelectLayer.Checked; if (checkBoxSelectLayer.Checked) { @@ -4502,6 +4625,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 选择图层下拉框 /// @@ -4529,6 +4653,7 @@ } } } + /// /// 碰撞分析 /// @@ -4559,6 +4684,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 覆土分析 /// @@ -4588,6 +4714,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 间距分析 /// @@ -4621,6 +4748,7 @@ Refresh(); } + /// /// 垂直净距分析 /// @@ -4651,6 +4779,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距分析 /// @@ -4681,6 +4810,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 碰撞审查 /// @@ -4713,6 +4843,7 @@ Refresh(); } + /// /// 覆土审查 /// @@ -4743,6 +4874,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距审查 /// @@ -4773,6 +4905,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 垂直净距审查 /// @@ -4811,6 +4944,7 @@ sideBar1.Refresh(); Refresh(); } + #endregion /// @@ -4864,7 +4998,7 @@ node.ImageIndex = 0; node.SelectedImageIndex = 0; node.Checked = layer.Visible; - layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Nodes.Insert(0, node); newlayername = layer.Caption; } else @@ -4889,6 +5023,7 @@ } return objRes; } + /// /// 连接数据库 菜单事件处理 /// @@ -4906,6 +5041,7 @@ } } } + /// /// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中 /// @@ -4934,8 +5070,8 @@ /// private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { - if (e.Button != MouseButtons.Right||e.Node.Parent==null) return; - if (e.Node.Parent.Text.Equals("标注管理") ) + if (e.Button != MouseButtons.Right || e.Node.Parent == null) return; + if (e.Node.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y); @@ -4949,7 +5085,7 @@ } else { - if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return; + if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return; if (e.Node.Parent.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; @@ -4964,6 +5100,7 @@ } } } + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单 /// @@ -4988,14 +5125,14 @@ private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode) { layerTreeNode.Nodes.Clear(); - GSOLayer layer = (GSOLayer)layerTreeNode.Tag; + GSOLayer layer = (GSOLayer) layerTreeNode.Tag; // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中 if (layer.Dataset is GSOFeatureDataset) { VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode); } } - + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单 /// @@ -5011,6 +5148,7 @@ globeControl1.Globe.Refresh(); node.Remove(); } + /// /// 图层目录树的 节点对应的复选框选中状态改变事件处理 /// @@ -5021,10 +5159,10 @@ if (e.Action != TreeViewAction.Unknown) { //wxl优化标注管理树形结构 - TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node); + TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node); } } - + /// /// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单 /// @@ -5039,6 +5177,7 @@ node.Nodes.Clear(); globeControl1.Refresh(); } + /// /// 一键审核---导入数据 /// @@ -5071,6 +5210,7 @@ MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示"); } } + /// ///自动导出图片 /// @@ -5079,7 +5219,7 @@ private void buttonItem130_Click_1(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "导出审核图"); - + Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0)); Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height)); @@ -5096,7 +5236,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -5116,6 +5256,7 @@ } } } + /// /// 一键审核功能 /// @@ -5125,11 +5266,12 @@ { LogManager.saveLog(Utility.userName, buttonItem128.Text); if (boolfrmShResult) - {//关闭等待窗口,否则会一直存在下去 + { +//关闭等待窗口,否则会一直存在下去 MessageBox.Show("正在审核或关闭上次审核结果才能进行审核"); return; } - frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode + frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode if (frmSh.ShowDialog() == DialogResult.OK) { boolfrmShResult = true; @@ -5149,7 +5291,7 @@ { try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer); }); @@ -5170,7 +5312,7 @@ try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { frmShResult.Show(); returnShTap(); @@ -5198,6 +5340,7 @@ if (redLayer != null) redLayer.Visible = false; } + /// /// 清除渲染结果 /// @@ -5215,6 +5358,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 审核入库 /// @@ -5226,6 +5370,7 @@ FrmShRK frmShrk = new FrmShRK(globeControl1); frmShrk.Show(); } + /// /// 模拟设计修改 /// @@ -5243,6 +5388,7 @@ frmModify.Show(); boolfrmModify = true; } + /// /// 一键审核中调节透明度 /// @@ -5259,6 +5405,7 @@ layer.Opaque = 100 - sliderItem1.Value; optiValue = sliderItem1.Value; } + /// /// 红线审核中的透明度分析 /// @@ -5274,9 +5421,12 @@ layer.Opaque = 100 - sliderItem3.Value; optiValue = sliderItem3.Value; } + #region yanxiaowei + //初始化DataGridViewX1控件 public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid); + /// /// 代理函数,操作DatgridViewX1 /// @@ -5301,7 +5451,9 @@ globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注 } } + FrmAnalysisGuiHuaResult from; + /// /// 主窗体下方属性表格 双击定位 功能 /// @@ -5371,6 +5523,7 @@ } } } + /// /// 空间查询 /// @@ -5384,17 +5537,19 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 关键字查询 /// /// /// private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e) - { + { LogManager.saveLog(Utility.userName, "关键字查询"); FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 编号查询 /// @@ -5406,6 +5561,7 @@ FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 坐标查询 /// @@ -5417,6 +5573,7 @@ FrmSetLatLonPos.ShowForm(globeControl1); } + /// /// 附属物查询 /// @@ -5428,6 +5585,7 @@ FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1); } + /// /// 管径查询 /// @@ -5439,6 +5597,7 @@ FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 材质查询 /// @@ -5450,6 +5609,7 @@ FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 基本查询 /// @@ -5461,6 +5621,7 @@ FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 复合查询 /// @@ -5472,6 +5633,7 @@ FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 关联查询 /// @@ -5494,14 +5656,19 @@ GSOLayer layer = null; globeControl1.Globe.GetSelectObject(j, out feature, out layer); - if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D - || feature.Geometry.Type == EnumGeometryType.GeoWater)) + if (feature == null && feature.Geometry == null || + (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D + || feature.Geometry.Type == EnumGeometryType.GeoWater)) return; - ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames, - Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance); + ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, + Utility.workwellLayerNames, + Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, + valueAllowance); } } + #endregion + /// /// 清除分析(完善) /// @@ -5531,14 +5698,14 @@ NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1); - globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线 + globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线 // ClearUpDownTraceAnalysis(); //清除上下游分析 - globeControl1.Globe.RemoveAllPits();//清除所有坑 - MarkTools.removeAllMarker(globeControl1);//清除所有标注 - clearFeatureHighLight();//取消管线高亮 + globeControl1.Globe.RemoveAllPits(); //清除所有坑 + MarkTools.removeAllMarker(globeControl1); //清除所有标注 + clearFeatureHighLight(); //取消管线高亮 - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layerGround != null) { layerGround.Visible = true; @@ -5549,6 +5716,7 @@ globeControl1.Refresh(); globeControl2.Refresh(); } + /// /// 管线长度全区域统计 /// @@ -5557,9 +5725,11 @@ private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "管线长度统计"); - FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 管线长度绘制区域统计 /// @@ -5573,6 +5743,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 阀门数量全区域统计 /// @@ -5586,6 +5757,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } + /// /// 阀门数量绘制区域统计 /// @@ -5599,6 +5771,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 井盖数量全区域统计 /// @@ -5609,6 +5782,7 @@ FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1); frm.Show(this); } + /// /// 井盖数量绘制区域统计 /// @@ -5622,6 +5796,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 管径分段统计全区域统计 /// @@ -5633,6 +5808,7 @@ Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分段统计绘制区域统计 /// @@ -5645,6 +5821,7 @@ trackflag = null; Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 埋深分段统计全区域统计 /// @@ -5655,6 +5832,7 @@ LogManager.saveLog(Utility.userName, "埋深分段统计"); FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 埋深分段统计绘制区域统计 /// @@ -5666,6 +5844,7 @@ trackflag = null; FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 管径分类统计全区域统计 /// @@ -5677,6 +5856,7 @@ FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分类统计绘制区域统计 /// @@ -5689,6 +5869,7 @@ trackflag = null; FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 材质分类统计全区域统计 /// @@ -5700,6 +5881,7 @@ FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 材质分类统计绘制区域统计 /// @@ -5712,6 +5894,7 @@ trackflag = null; FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 附属物分类统计全区域统计 /// @@ -5723,6 +5906,7 @@ FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0); } + /// /// 附属物分类统计绘制区域统计 /// @@ -5735,7 +5919,9 @@ trackflag = null; FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1); } + #region Predaotr,断面分析 + /// /// 横断面分析 /// @@ -5748,6 +5934,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis; } + /// /// 纵断面分析 /// @@ -5767,7 +5954,8 @@ GSOFeature feature; GSOLayer layer; globeControl1.Globe.GetSelectObject(i, out feature, out layer); - if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) + if (feature != null && feature.Geometry != null && + feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) { selectFeatures.Add(feature); } @@ -5777,6 +5965,7 @@ FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats); frm.Show(this); } + /// /// 道路断面分析 /// @@ -5789,6 +5978,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis; } + /// /// 基线剖面分析 /// @@ -5801,7 +5991,9 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis; } + #endregion + /// /// 创建拓扑 /// @@ -5815,7 +6007,9 @@ FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1); frm.Show(this); } + #region Predator :拓扑分析 + /// /// 上游分析 /// @@ -5827,6 +6021,7 @@ LogManager.saveLog(Utility.userName, "上游分析"); NetworkTraceUpDown(true); } + /// /// 下游分析 /// @@ -5838,6 +6033,7 @@ LogManager.saveLog(Utility.userName, "下游分析"); NetworkTraceUpDown(false); } + /// /// 上下游追踪 功能 /// @@ -5845,7 +6041,8 @@ private void NetworkTraceUpDown(Boolean bTraceUp) { GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5853,8 +6050,9 @@ GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer; NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp, - selLineFeature, selLayer); + selLineFeature, selLayer); } + /// /// 流向分析 /// @@ -5868,6 +6066,7 @@ FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 关阀分析 /// @@ -5907,6 +6106,7 @@ MessageBox.Show("未找到关闭阀门"); } } + /// /// 连通分析 /// @@ -5933,6 +6133,7 @@ } NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0); } + /// /// 爆管分析 /// @@ -5940,10 +6141,11 @@ /// private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e) { - NetworkTraceUpDown(true); //上游追踪: + NetworkTraceUpDown(true); //上游追踪: GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5954,7 +6156,9 @@ 关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析: } + #endregion + /// /// 多边形开挖 /// @@ -5968,6 +6172,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上 } + /// /// 挖方量分析 /// @@ -5981,6 +6186,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 沿线开挖 /// @@ -5994,6 +6200,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis; } + /// /// 创建隧道 /// @@ -6012,9 +6219,9 @@ globeControl1.Globe.DestLayerFeatureAdd = tunnel; tunnel.Editable = true; enumDesignMode = EnumDesignMode.AddTunnel; - } } + /// /// 隐藏隧道 /// @@ -6030,6 +6237,7 @@ layer.Visible = !layer.Visible; } } + /// /// 删除隧道 /// @@ -6066,6 +6274,7 @@ MessageBox.Show("请选中要删除的隧道!", "提示"); } } + /// /// 通视分析 /// @@ -6076,8 +6285,11 @@ //日志记录 LogManager.saveLog(Utility.userName, "通视分析"); - globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull; + globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis + ? EnumAction3D.VisibilityAnalysis + : EnumAction3D.ActionNull; } + /// /// 可视域分析 /// @@ -6089,6 +6301,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis; } + /// /// 可视包络分析 /// @@ -6100,6 +6313,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis; } + /// /// 缓冲区分析 /// @@ -6134,6 +6348,7 @@ } } + /// /// 附属物分析 /// @@ -6147,6 +6362,7 @@ FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp); dlg.Show(this); } + /// /// 无源淹没分析 /// @@ -6159,6 +6375,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; trackflag = "FloodAnalysis"; } + /// /// 水平距离 /// @@ -6173,6 +6390,7 @@ globeControl1.Globe.DistanceRuler.SpaceMeasure = false; 高度量算ToolStripMenuItem1.Checked = false; } + /// /// 垂直距离 /// @@ -6187,6 +6405,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureHeight; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 空间距离 /// @@ -6201,6 +6420,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = true; } + /// /// 地表距离 /// @@ -6215,6 +6435,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 高度量算 /// @@ -6230,6 +6451,7 @@ if (!高度量算ToolStripMenuItem1.Checked) return; globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 水平面积 /// @@ -6244,6 +6466,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureArea; globeControl1.Globe.AreaRuler.SpaceMeasure = true; } + /// /// 地表面积 /// @@ -6261,6 +6484,7 @@ } # region Fan 重构标注代码 + /// /// 标高标注 /// @@ -6283,6 +6507,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Altitude, ""); } + /// /// 管径标注 /// @@ -6302,8 +6527,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Diameter, ""); + globeControl1, EnumMarkLayer.Mark_Diameter, ""); } + /// /// 埋深标注 /// @@ -6327,6 +6553,7 @@ globeControl1, EnumMarkLayer.Mark_Depth, ""); } + /// /// 坐标标注 /// @@ -6348,6 +6575,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Location, ""); } + /// /// 距离标注 /// @@ -6361,6 +6589,7 @@ trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis; } + /// /// 自定义标注 /// @@ -6376,6 +6605,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText); } } + /// /// 扯旗标注 /// @@ -6391,6 +6621,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent); } } + /// /// 坡度标注 /// @@ -6411,8 +6642,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Slope, ""); + globeControl1, EnumMarkLayer.Mark_Slope, ""); } + /// /// 属性标注 /// @@ -6428,6 +6660,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText); } } + /// /// 标注管理 /// @@ -6490,6 +6723,7 @@ } #endregion + /// /// 飞行到目标点 /// @@ -6502,6 +6736,7 @@ FrmSetFlytoPos.ShowForm(globeControl1); } + /// /// 自定义飞行 /// @@ -6539,6 +6774,7 @@ globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false); } } + /// /// 绕中心点飞行 /// @@ -6552,6 +6788,7 @@ globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds); globeControl1.Globe.CurFlyID = 1; } + /// /// 绕眼睛飞行 /// @@ -6565,6 +6802,7 @@ globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees); globeControl1.Globe.CurFlyID = 2; } + /// /// 权限管理 /// @@ -6578,6 +6816,7 @@ FrmUserRoleMgr frm = new FrmUserRoleMgr(); frm.ShowDialog(); } + /// /// 数据库管理 /// @@ -6592,6 +6831,7 @@ FrmDbManager frm = new FrmDbManager(); frm.ShowDialog(); } + /// /// 用户列表 /// @@ -6605,6 +6845,7 @@ FrmUserManager frm = new FrmUserManager(); frm.ShowDialog(); } + /// /// 创建新用户 /// @@ -6618,6 +6859,7 @@ FrmUserAdd frm = new FrmUserAdd(-1); frm.ShowDialog(); } + /// /// 人员修改 /// @@ -6631,6 +6873,7 @@ FrmAppUSER appUser = new FrmAppUSER(); appUser.ShowDialog(); } + /// /// 增加人员 /// @@ -6644,6 +6887,7 @@ FrmAppUSERRESET appUserReset = new FrmAppUSERRESET(); appUserReset.ShowDialog(); } + /// /// 热点功能统计 /// @@ -6738,6 +6982,7 @@ FrmAPPregion appregion = new FrmAPPregion("拷贝审核"); appregion.Show(); } + private void buttonItemSPSZ_Click(object sender, EventArgs e) { //日志记录 @@ -6746,6 +6991,7 @@ FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2); frm.Show(this); } + /// /// 综合规划区域审查 /// @@ -6758,6 +7004,7 @@ FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 数据质量检查 /// @@ -6770,6 +7017,7 @@ FrmValiData frm = new FrmValiData(globeControl1); frm.ShowDialog(); } + /// /// 数据预处理 /// @@ -6783,6 +7031,7 @@ FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1); frm.ShowDialog(this); } + /// /// 连接数据库 /// @@ -6803,6 +7052,7 @@ } } } + /// /// 管线入库 /// @@ -6827,6 +7077,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 附属物入库 /// @@ -6852,6 +7103,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 坐标转换 /// @@ -6865,6 +7117,7 @@ FrmProject frm = new FrmProject(); frm.ShowDialog(); } + /// /// 元数据基本管理 /// @@ -6878,6 +7131,7 @@ FrmMetadata frmmd = new FrmMetadata(); frmmd.ShowDialog(); } + /// /// 元数据查询管理 /// @@ -6891,6 +7145,7 @@ FrmMetadataStat frmmds = new FrmMetadataStat(); frmmds.ShowDialog(); } + /// /// 操作日志管理 /// @@ -6904,6 +7159,7 @@ FrmLogOper frmlo = new FrmLogOper(); frmlo.ShowDialog(); } + /// /// 数据字典管理 /// @@ -6917,6 +7173,7 @@ FrmMDDictory frmmdd = new FrmMDDictory(); frmmdd.ShowDialog(); } + /// /// 数据库备份 /// @@ -6931,7 +7188,9 @@ FrmBACKORACLE backOracle = new FrmBACKORACLE(); backOracle.Show(); } + #region 模拟规划:Fan + /// /// 创建管段 /// @@ -6949,6 +7208,7 @@ globeControl1.Globe.Action = EnumAction3D.DrawPolyline; } } + /// /// 创建附属物 /// @@ -6968,6 +7228,7 @@ dlg.Show(this); } } + /// /// 创建特征管点 /// @@ -6987,6 +7248,7 @@ dlg.Show(this); } } + /// /// 绘制城市七线 /// @@ -7013,7 +7275,9 @@ layer.Editable = true; } } + #endregion + /// /// 选中对象 /// @@ -7026,6 +7290,7 @@ globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 平移对象 /// @@ -7038,6 +7303,7 @@ globeControl1.Globe.Action = EnumAction3D.MoveObject; } + /// /// 升降对象 /// @@ -7050,6 +7316,7 @@ globeControl1.Globe.Action = EnumAction3D.ElevateObject; } + /// /// 旋转对象 /// @@ -7062,6 +7329,7 @@ globeControl1.Globe.Action = EnumAction3D.RotateObject; } + /// /// 连接管段 /// @@ -7079,6 +7347,7 @@ } globeControl1.Globe.InsertJointPipeline(false); } + /// /// 后退 /// @@ -7089,6 +7358,7 @@ LogManager.saveLog(Utility.userName, "后退"); globeControl1.Globe.UnDoEdit(); } + /// /// 前进 /// @@ -7100,6 +7370,7 @@ globeControl1.Globe.ReDoEdit(); } + /// /// 导出CAD /// @@ -7111,13 +7382,14 @@ LogManager.saveLog(Utility.userName, "导出CAD"); #region 导出成dxf格式 + List listVectorNames = new List(); for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通" - || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" - || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" - || Utility.m_PipelineLayerNames[i] == "供电") + || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" + || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" + || Utility.m_PipelineLayerNames[i] == "供电") { continue; } @@ -7155,10 +7427,12 @@ } } - FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames); + FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames); frm.ShowDialog(); + #endregion } + /// /// 导出矢量 /// @@ -7231,14 +7505,14 @@ globeControl1.Globe.GetSelectObject(i, out f, out layer); if (layer != null) globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete); - bool result = FeatureTools.DeleteFeature(f); + bool result = FeatureTools.DeleteFeature(f); if (result) delSuccessCount++; globeControl1.Refresh(); - + } - MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示"); + MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示"); globeControl1.Globe.Action = EnumAction3D.ActionNull; } @@ -7279,6 +7553,7 @@ LogHelper.WriteLog(typeof(MainFrm), ex); } } + void addRedLineDataToDataGridView(List dt, DataGridView dataGridView) { DataTable table = new DataTable(); @@ -7345,12 +7620,12 @@ LogManager.saveLog(Utility.userName, sliderItem2.Text); globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; } - layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; @@ -7359,6 +7634,7 @@ optiValue = sliderItem2.Value; } + /// /// 数据管理导入文件 /// @@ -7370,7 +7646,8 @@ LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text); OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; dlg.Multiselect = true; if (dlg.ShowDialog() == DialogResult.OK) { @@ -7402,6 +7679,7 @@ } } } + /// /// 导入红线(完善) /// @@ -7411,14 +7689,19 @@ { LogManager.saveLog(Utility.userName, buttonItemHX1.Text); - GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword); + GSODataSource dataSpace = + globeControl1.Globe.DataManager.OpenOracleDataSource( + Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, + Utility.DBPassword); string filepath = ""; //日志记录 OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; dlg.Multiselect = true; #region 临时图层显示 + if (dlg.ShowDialog() == DialogResult.OK) { #region @@ -7429,7 +7712,8 @@ GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath); if (layer == null) - {//wxl + { +//wxl LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空"); continue; } @@ -7438,7 +7722,7 @@ layerRedRegion = layer; // CheckDatasetGeoReference(layer.Dataset, strDataPath); bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath); - if (!checkresult) continue;//wxl 没通过检查,跳过此次循环 + if (!checkresult) continue; //wxl 没通过检查,跳过此次循环 TreeNode node = new TreeNode(); node.Tag = layer; node.Text = layer.Dataset.Caption; @@ -7482,7 +7766,8 @@ globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); + GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (roadlayer != null) { roadlayer.Opaque = 100 - sliderGroundTransSet1.Value; @@ -7502,8 +7787,10 @@ #endregion } + #endregion } + /// /// 定位 /// @@ -7516,6 +7803,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2); fly.Show(this); } + /// /// 红线审核 /// @@ -7529,7 +7817,8 @@ globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent; globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent; - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, + -4, 50, 800); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; globeControl1.Refresh(); @@ -7551,6 +7840,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础工具 /// @@ -7582,6 +7872,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 一键审核 /// @@ -7613,7 +7904,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - + /// /// 双屏对比 /// @@ -7647,6 +7938,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 文档管理 /// @@ -7678,6 +7970,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础管理 /// @@ -7709,6 +8002,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 权限管理 /// @@ -7754,6 +8048,7 @@ int width = Width; FrmCompareFeature.ShowForm(globeControl1, globeControl2, width); } + /// /// 红线审核导出图片 /// @@ -7779,7 +8074,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -7799,6 +8094,7 @@ } } } + /// /// 标识器全区域统计 /// @@ -7810,6 +8106,7 @@ FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null); bsqStatis.Show(this); } + /// /// 标识器绘制区域统计 /// @@ -7844,6 +8141,7 @@ globeControl1.Refresh(); } } + /// /// 规划数据入库 /// @@ -7905,7 +8203,7 @@ frm.ShowDialog(); } } - + //文档管理 操作 private void btn_document_info_Click(object sender, EventArgs e) { @@ -7945,7 +8243,8 @@ GSORect2d rd = lyr.LatLonBounds; GSOPoint2d rdcenter = rd.Center; - globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100); + globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, + 100); globeControl1.Refresh(); } @@ -8016,6 +8315,7 @@ } #region 右屏管纵数据控制 + private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e) { lendendGZ50.Visible = true; @@ -8108,6 +8408,7 @@ lendendGZ24_2.Visible = false; lendendGZ24_3.Visible = false; } + #endregion private void buttonItemPasswordReset_Click(object sender, EventArgs e) @@ -8117,10 +8418,32 @@ } private void pictureBox1_Paint(object sender, PaintEventArgs e) - { + { string welcomeUser = "欢迎您:" + Utility.userName; e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50); } + //电子标识系统合并 + private void btn_flag_Click(object sender, EventArgs e) + { + if (FrmFlagManagers.IS_OPEN) + { + return; + } + FrmFlagManagers frm = new FrmFlagManagers(globeControl1); + frm.Show(this); + } + + private void slider4ground_ValueChanged(object sender, EventArgs e) + { + LogManager.saveLog(Utility.userName, slider4ground.Text); + + globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value; + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + if (layer != null) + layer.Opaque = 100 - slider4ground.Value; + optiValue = slider4ground.Value; + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 1495bcd..b086c69 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -89,6 +89,7 @@ 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(); @@ -243,6 +244,23 @@ this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl(); + this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_flag = new DevComponents.DotNetBar.ButtonItem(); + this.slider4ground = new DevComponents.DotNetBar.SliderItem(); + this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_document_info = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); + this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem(); + this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem(); this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem(); @@ -254,19 +272,15 @@ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem(); this.btn_check_history = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel5 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItemHX1 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem(); - this.sliderItem3 = new DevComponents.DotNetBar.SliderItem(); - this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemLocation = new DevComponents.DotNetBar.ButtonItem(); - this.sliderItem2 = new DevComponents.DotNetBar.SliderItem(); - this.buttonItemGBJC = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_user_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_role_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem(); + this.btn_user_role = new DevComponents.DotNetBar.ButtonItem(); + this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem(); this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem(); @@ -322,28 +336,19 @@ this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); - this.btn_user_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_role_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem(); - this.btn_user_role = new DevComponents.DotNetBar.ButtonItem(); - this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); - this.btn_document_info = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); - this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem(); - this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemLocation = new DevComponents.DotNetBar.ButtonItem(); + this.sliderItem2 = new DevComponents.DotNetBar.SliderItem(); + this.buttonItemGBJC = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel5 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItemHX1 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem(); + this.sliderItem3 = new DevComponents.DotNetBar.SliderItem(); this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem(); @@ -351,6 +356,7 @@ this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem(); + this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem(); this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem(); @@ -528,7 +534,6 @@ this.labelX16 = new DevComponents.DotNetBar.LabelX(); this.labelX17 = new DevComponents.DotNetBar.LabelX(); this.panelEx4 = new DevComponents.DotNetBar.PanelEx(); - this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -539,13 +544,14 @@ this.contextMenuStrip3.SuspendLayout(); this.contextMenuStripDeleteLayerNode.SuspendLayout(); this.ribbonControl1.SuspendLayout(); - this.ribbonPanel12.SuspendLayout(); - this.ribbonPanel5.SuspendLayout(); - this.ribbonPanel6.SuspendLayout(); - this.ribbonPanel15.SuspendLayout(); - this.ribbonPanel2.SuspendLayout(); + this.ribbonPanel3.SuspendLayout(); this.ribbonPanel4.SuspendLayout(); this.ribbonPanel1.SuspendLayout(); + this.ribbonPanel12.SuspendLayout(); + this.ribbonPanel2.SuspendLayout(); + this.ribbonPanel15.SuspendLayout(); + this.ribbonPanel6.SuspendLayout(); + this.ribbonPanel5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.panelOfTable.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit(); @@ -966,6 +972,18 @@ this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); this.layerSensorTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); // + // 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); + this.layerTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseClick); + this.layerTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); + // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2158,13 +2176,14 @@ // 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.ribbonPanel4); + this.ribbonControl1.Controls.Add(this.ribbonPanel1); + this.ribbonControl1.Controls.Add(this.ribbonPanel12); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Controls.Add(this.ribbonPanel6); this.ribbonControl1.Controls.Add(this.ribbonPanel5); - this.ribbonControl1.Controls.Add(this.ribbonPanel12); - this.ribbonControl1.Controls.Add(this.ribbonPanel1); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -2174,7 +2193,8 @@ this.ribbonTabItem9, this.ribbonTabItem4, this.ribbonTabItem14, - this.ribbonTabItem2}); + this.ribbonTabItem2, + this.ribbonTabItemBSQ}); this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F); this.ribbonControl1.Location = new System.Drawing.Point(0, 82); this.ribbonControl1.MdiSystemItemVisible = false; @@ -2206,6 +2226,302 @@ this.ribbonControl1.Text = "ribbonControl1"; this.ribbonControl1.UseCustomizeDialog = false; // + // ribbonPanel3 + // + this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel3.Controls.Add(this.ribbonBar4); + this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + 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.Style.Class = ""; + this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel3.StyleMouseDown.Class = ""; + this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel3.StyleMouseOver.Class = ""; + this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel3.TabIndex = 40; + // + // ribbonBar4 + // + this.ribbonBar4.AutoOverflowEnabled = true; + // + // + // + this.ribbonBar4.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar4.BackgroundStyle.Class = ""; + this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar4.ContainerControlProcessDialogKey = true; + this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_flag, + this.slider4ground}); + this.ribbonBar4.Location = new System.Drawing.Point(3, 0); + this.ribbonBar4.Name = "ribbonBar4"; + this.ribbonBar4.Size = new System.Drawing.Size(304, 59); + this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar4.TabIndex = 0; + // + // + // + this.ribbonBar4.TitleStyle.Class = ""; + this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar4.TitleStyleMouseOver.Class = ""; + this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar4.TitleVisible = false; + // + // btn_flag + // + this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover; + this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_flag.Name = "btn_flag"; + this.btn_flag.SubItemsExpandWidth = 14; + this.btn_flag.Text = "标识器管理"; + this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click); + // + // slider4ground + // + this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.slider4ground.LabelWidth = 50; + this.slider4ground.Name = "slider4ground"; + this.slider4ground.Text = "地面透明度"; + this.slider4ground.TextColor = System.Drawing.Color.Black; + this.slider4ground.Value = 0; + this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged); + // + // ribbonPanel4 + // + this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel4.Controls.Add(this.ribbonBar1); + this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel4.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel4.Name = "ribbonPanel4"; + this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95); + // + // + // + this.ribbonPanel4.Style.Class = ""; + this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel4.StyleMouseDown.Class = ""; + this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel4.StyleMouseOver.Class = ""; + this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel4.TabIndex = 36; + this.ribbonPanel4.Visible = false; + // + // ribbonBar1 + // + this.ribbonBar1.AutoOverflowEnabled = true; + // + // + // + this.ribbonBar1.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar1.BackgroundStyle.Class = ""; + this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar1.ContainerControlProcessDialogKey = true; + this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_document_info}); + this.ribbonBar1.Location = new System.Drawing.Point(3, 0); + this.ribbonBar1.Name = "ribbonBar1"; + this.ribbonBar1.Size = new System.Drawing.Size(88, 92); + this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar1.TabIndex = 0; + // + // + // + this.ribbonBar1.TitleStyle.Class = ""; + this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar1.TitleStyleMouseOver.Class = ""; + this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar1.TitleVisible = false; + // + // btn_document_info + // + this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image"))); + this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_document_info.Name = "btn_document_info"; + this.btn_document_info.SubItemsExpandWidth = 14; + this.btn_document_info.Text = "文档管理"; + this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click); + // + // ribbonPanel1 + // + this.ribbonPanel1.AutoSize = true; + this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray; + 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.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.Style.Class = ""; + this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel1.StyleMouseDown.Class = ""; + this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel1.StyleMouseOver.Class = ""; + this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel1.TabIndex = 1; + this.ribbonPanel1.Visible = false; + // + // ribbonBar21 + // + this.ribbonBar21.AutoOverflowEnabled = true; + this.ribbonBar21.BackColor = System.Drawing.Color.White; + // + // + // + this.ribbonBar21.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar21.BackgroundStyle.Class = ""; + this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar21.ContainerControlProcessDialogKey = true; + this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItem87, + this.buttonItem88, + this.buttonItem27, + this.sliderGroundTransSet1, + this.buttonItem91, + this.buttonItem1, + this.btnlegendSet, + this.buttonItem89, + this.btnOutputJPG}); + this.ribbonBar21.Location = new System.Drawing.Point(3, 0); + this.ribbonBar21.Name = "ribbonBar21"; + this.ribbonBar21.Size = new System.Drawing.Size(649, 59); + this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar21.TabIndex = 2; + this.ribbonBar21.Text = "浏览模式"; + // + // + // + this.ribbonBar21.TitleStyle.Class = ""; + this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar21.TitleStyleMouseOver.Class = ""; + this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar21.TitleVisible = false; + // + // buttonItem87 + // + this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image"))); + this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem87.Name = "buttonItem87"; + this.buttonItem87.SubItemsExpandWidth = 14; + this.buttonItem87.Text = "地上模式"; + this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click); + // + // buttonItem88 + // + this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image"))); + this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem88.Name = "buttonItem88"; + this.buttonItem88.SubItemsExpandWidth = 14; + this.buttonItem88.Text = "地下模式"; + this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click); + // + // buttonItem27 + // + this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image"))); + this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem27.Name = "buttonItem27"; + this.buttonItem27.SubItemsExpandWidth = 14; + this.buttonItem27.Text = "行走模式"; + this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click); + // + // buttonItem91 + // + this.buttonItem91.ForeColor = System.Drawing.Color.Black; + this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image"))); + this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem91.Name = "buttonItem91"; + this.buttonItem91.SubItemsExpandWidth = 14; + this.buttonItem91.Text = "快速定位"; + this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click); + // + // buttonItem1 + // + this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image"))); + this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem1.Name = "buttonItem1"; + this.buttonItem1.SubItemsExpandWidth = 14; + this.buttonItem1.Text = "图层管理"; + this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click); + // + // btnlegendSet + // + this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image"))); + this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btnlegendSet.Name = "btnlegendSet"; + this.btnlegendSet.SubItemsExpandWidth = 14; + this.btnlegendSet.Text = "图例"; + this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click); + // + // buttonItem89 + // + this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image"))); + this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem89.Name = "buttonItem89"; + this.buttonItem89.SubItemsExpandWidth = 14; + this.buttonItem89.Text = "全屏显示"; + this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click); + // + // btnOutputJPG + // + this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image"))); + this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btnOutputJPG.Name = "btnOutputJPG"; + this.btnOutputJPG.SubItemsExpandWidth = 14; + this.btnOutputJPG.Text = "导出图片"; + this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click); + // // ribbonPanel12 // this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -2376,228 +2692,146 @@ this.btn_check_history.Text = "审核历史"; this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click); // - // ribbonPanel5 + // ribbonPanel2 // - this.ribbonPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel5.Controls.Add(this.ribbonBar2); - this.ribbonPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel5.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel5.Name = "ribbonPanel5"; - this.ribbonPanel5.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel5.Size = new System.Drawing.Size(1328, 95); + this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel2.Controls.Add(this.ribbonBar3); + this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + 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, 95); // // // - this.ribbonPanel5.Style.Class = ""; - this.ribbonPanel5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.Style.Class = ""; + this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel5.StyleMouseDown.Class = ""; - this.ribbonPanel5.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.StyleMouseDown.Class = ""; + this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel5.StyleMouseOver.Class = ""; - this.ribbonPanel5.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel5.TabIndex = 37; - this.ribbonPanel5.Visible = false; + this.ribbonPanel2.StyleMouseOver.Class = ""; + this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.TabIndex = 39; + this.ribbonPanel2.Visible = false; // - // ribbonBar2 + // ribbonBar3 // - this.ribbonBar2.AutoOverflowEnabled = true; + this.ribbonBar3.AutoOverflowEnabled = true; // // // - this.ribbonBar2.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar2.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar2.BackgroundStyle.Class = ""; - this.ribbonBar2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar2.ContainerControlProcessDialogKey = true; - this.ribbonBar2.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItemHX1, - this.buttonItemHX2, - this.buttonItemDCTP, - this.sliderItem3}); - this.ribbonBar2.Location = new System.Drawing.Point(3, 0); - this.ribbonBar2.Name = "ribbonBar2"; - this.ribbonBar2.Size = new System.Drawing.Size(350, 92); - this.ribbonBar2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar2.TabIndex = 0; + this.ribbonBar3.BackgroundStyle.Class = ""; + this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.ContainerControlProcessDialogKey = true; + this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_user_info, + this.btn_role_info, + this.btn_resc_info, + this.btn_role_resc, + this.btn_user_role, + this.btn_password_edit, + this.buttonItemPasswordReset}); + this.ribbonBar3.Location = new System.Drawing.Point(3, 0); + this.ribbonBar3.Name = "ribbonBar3"; + this.ribbonBar3.Size = new System.Drawing.Size(551, 92); + this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar3.TabIndex = 1; // // // - this.ribbonBar2.TitleStyle.Class = ""; - this.ribbonBar2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.TitleStyle.Class = ""; + this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar2.TitleStyleMouseOver.Class = ""; - this.ribbonBar2.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar2.TitleVisible = false; + this.ribbonBar3.TitleStyleMouseOver.Class = ""; + this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.TitleVisible = false; // - // buttonItemHX1 + // btn_user_info // - this.buttonItemHX1.AutoExpandOnClick = true; - this.buttonItemHX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX1.Image"))); - this.buttonItemHX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemHX1.Name = "buttonItemHX1"; - this.buttonItemHX1.SubItemsExpandWidth = 14; - this.buttonItemHX1.Text = "导入红线"; - this.buttonItemHX1.Click += new System.EventHandler(this.buttonItemHX1_Click); + this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image"))); + this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_user_info.Name = "btn_user_info"; + this.btn_user_info.SubItemsExpandWidth = 14; + this.btn_user_info.Text = "用户管理"; + this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click); // - // buttonItemHX2 + // btn_role_info // - this.buttonItemHX2.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX2.Image"))); - this.buttonItemHX2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemHX2.Name = "buttonItemHX2"; - this.buttonItemHX2.SubItemsExpandWidth = 14; - this.buttonItemHX2.Text = "红线审核"; - this.buttonItemHX2.Click += new System.EventHandler(this.buttonItemHX2_Click); + this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image"))); + this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_role_info.Name = "btn_role_info"; + this.btn_role_info.SubItemsExpandWidth = 14; + this.btn_role_info.Text = "角色管理"; + this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click); // - // buttonItemDCTP + // btn_resc_info // - this.buttonItemDCTP.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemDCTP.Image"))); - this.buttonItemDCTP.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemDCTP.Name = "buttonItemDCTP"; - this.buttonItemDCTP.SubItemsExpandWidth = 14; - this.buttonItemDCTP.Text = "导出图片"; - this.buttonItemDCTP.Click += new System.EventHandler(this.buttonItemDCTP_Click); + this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image"))); + this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_resc_info.Name = "btn_resc_info"; + this.btn_resc_info.SubItemsExpandWidth = 14; + this.btn_resc_info.Text = "资源管理"; + this.btn_resc_info.Visible = false; + this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click); // - // sliderItem3 + // btn_role_resc // - this.sliderItem3.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; - this.sliderItem3.LabelWidth = 50; - this.sliderItem3.Name = "sliderItem3"; - this.sliderItem3.Text = "地面透明度"; - this.sliderItem3.TextColor = System.Drawing.Color.Black; - this.sliderItem3.Value = 0; - this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged); - // - // ribbonPanel6 - // - this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel6.Controls.Add(this.ribbonBar6); - this.ribbonPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel6.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel6.Name = "ribbonPanel6"; - this.ribbonPanel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel6.Size = new System.Drawing.Size(1328, 95); - // - // - // - this.ribbonPanel6.Style.Class = ""; - this.ribbonPanel6.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel6.StyleMouseDown.Class = ""; - this.ribbonPanel6.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel6.StyleMouseOver.Class = ""; - this.ribbonPanel6.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel6.TabIndex = 38; - this.ribbonPanel6.Visible = false; - // - // ribbonBar6 - // - this.ribbonBar6.AutoOverflowEnabled = true; - // - // - // - this.ribbonBar6.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar6.BackgroundStyle.Class = ""; - this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar6.ContainerControlProcessDialogKey = true; - this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItemSPSZ, - this.buttonItem8, - this.buttonItemLocation, - this.sliderItem2, - this.buttonItemGBJC}); - this.ribbonBar6.Location = new System.Drawing.Point(3, 0); - this.ribbonBar6.Name = "ribbonBar6"; - this.ribbonBar6.Size = new System.Drawing.Size(427, 92); - this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar6.TabIndex = 0; - // - // - // - this.ribbonBar6.TitleStyle.Class = ""; - this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar6.TitleStyleMouseOver.Class = ""; - this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar6.TitleVisible = false; - // - // buttonItemSPSZ - // - this.buttonItemSPSZ.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemSPSZ.Image"))); - this.buttonItemSPSZ.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemSPSZ.Name = "buttonItemSPSZ"; - this.buttonItemSPSZ.SubItemsExpandWidth = 14; - this.buttonItemSPSZ.Text = "双屏设置"; - this.buttonItemSPSZ.Click += new System.EventHandler(this.buttonItemSPSZ_Click); - // - // buttonItem8 - // - this.buttonItem8.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem8.Image"))); - this.buttonItem8.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem8.Name = "buttonItem8"; - this.buttonItem8.SubItemsExpandWidth = 14; - this.buttonItem8.Text = "双屏分析"; - this.buttonItem8.Click += new System.EventHandler(this.buttonItem8_Click); + this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image"))); + this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_role_resc.Name = "btn_role_resc"; + this.btn_role_resc.SubItemsExpandWidth = 14; + this.btn_role_resc.Text = "角色授权"; + this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click); // - // buttonItemLocation + // btn_user_role // - this.buttonItemLocation.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemLocation.Image"))); - this.buttonItemLocation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemLocation.Name = "buttonItemLocation"; - this.buttonItemLocation.SubItemsExpandWidth = 14; - this.buttonItemLocation.Text = "快速定位"; - this.buttonItemLocation.Click += new System.EventHandler(this.buttonItemLocation_Click); + this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image"))); + this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_user_role.Name = "btn_user_role"; + this.btn_user_role.SubItemsExpandWidth = 14; + this.btn_user_role.Text = "用户授权"; + this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click); // - // sliderItem2 + // btn_password_edit // - this.sliderItem2.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; - this.sliderItem2.LabelWidth = 50; - this.sliderItem2.Name = "sliderItem2"; - this.sliderItem2.Text = "地面透明度"; - this.sliderItem2.TextColor = System.Drawing.Color.Black; - this.sliderItem2.Value = 0; - this.sliderItem2.ValueChanged += new System.EventHandler(this.sliderItem2_ValueChanged); + this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image"))); + this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_password_edit.Name = "btn_password_edit"; + this.btn_password_edit.SubItemsExpandWidth = 14; + this.btn_password_edit.Text = "密码修改"; + this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click); // - // buttonItemGBJC + // buttonItemPasswordReset // - this.buttonItemGBJC.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemGBJC.Image"))); - this.buttonItemGBJC.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemGBJC.Name = "buttonItemGBJC"; - this.buttonItemGBJC.SubItemsExpandWidth = 14; - this.buttonItemGBJC.Text = "国标检测"; - this.buttonItemGBJC.Click += new System.EventHandler(this.buttonItemGBJC_Click); + this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image"))); + this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemPasswordReset.Name = "buttonItemPasswordReset"; + this.buttonItemPasswordReset.SubItemsExpandWidth = 14; + this.buttonItemPasswordReset.Text = "重置密码"; + this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click); // // ribbonPanel15 // this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel15.Controls.Add(this.ribbonBar20); this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel15.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel15.Location = new System.Drawing.Point(0, 0); this.ribbonPanel15.Name = "ribbonPanel15"; this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95); // // // @@ -2614,6 +2848,7 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; + this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -2637,7 +2872,7 @@ this.buttonItemXTGL}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(283, 59); + this.ribbonBar20.Size = new System.Drawing.Size(283, 92); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -3068,352 +3303,218 @@ this.buttonItemXT4_2.Text = "人员修改"; this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click); // - // ribbonPanel2 + // ribbonPanel6 // - this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel2.Controls.Add(this.ribbonBar3); - this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); - 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.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel6.Controls.Add(this.ribbonBar6); + this.ribbonPanel6.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel6.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel6.Name = "ribbonPanel6"; + this.ribbonPanel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel6.Size = new System.Drawing.Size(1328, 95); // // // - this.ribbonPanel2.Style.Class = ""; - this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.Style.Class = ""; + this.ribbonPanel6.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel2.StyleMouseDown.Class = ""; - this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.StyleMouseDown.Class = ""; + this.ribbonPanel6.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel2.StyleMouseOver.Class = ""; - this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel2.TabIndex = 39; - this.ribbonPanel2.Visible = false; + this.ribbonPanel6.StyleMouseOver.Class = ""; + this.ribbonPanel6.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.TabIndex = 38; + this.ribbonPanel6.Visible = false; // - // ribbonBar3 + // ribbonBar6 // - this.ribbonBar3.AutoOverflowEnabled = true; + this.ribbonBar6.AutoOverflowEnabled = true; // // // - this.ribbonBar3.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar3.BackgroundStyle.Class = ""; - this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.ContainerControlProcessDialogKey = true; - this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btn_user_info, - this.btn_role_info, - this.btn_resc_info, - this.btn_role_resc, - this.btn_user_role, - this.btn_password_edit, - this.buttonItemPasswordReset}); - this.ribbonBar3.Location = new System.Drawing.Point(3, 0); - this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(551, 59); - this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar3.TabIndex = 1; + this.ribbonBar6.BackgroundStyle.Class = ""; + this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.ContainerControlProcessDialogKey = true; + this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItemSPSZ, + this.buttonItem8, + this.buttonItemLocation, + this.sliderItem2, + this.buttonItemGBJC}); + this.ribbonBar6.Location = new System.Drawing.Point(3, 0); + this.ribbonBar6.Name = "ribbonBar6"; + this.ribbonBar6.Size = new System.Drawing.Size(427, 92); + this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar6.TabIndex = 0; // // // - this.ribbonBar3.TitleStyle.Class = ""; - this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.TitleStyle.Class = ""; + this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar3.TitleStyleMouseOver.Class = ""; - this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.TitleVisible = false; + this.ribbonBar6.TitleStyleMouseOver.Class = ""; + this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.TitleVisible = false; // - // btn_user_info + // buttonItemSPSZ // - this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image"))); - this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_user_info.Name = "btn_user_info"; - this.btn_user_info.SubItemsExpandWidth = 14; - this.btn_user_info.Text = "用户管理"; - this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click); + this.buttonItemSPSZ.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemSPSZ.Image"))); + this.buttonItemSPSZ.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemSPSZ.Name = "buttonItemSPSZ"; + this.buttonItemSPSZ.SubItemsExpandWidth = 14; + this.buttonItemSPSZ.Text = "双屏设置"; + this.buttonItemSPSZ.Click += new System.EventHandler(this.buttonItemSPSZ_Click); // - // btn_role_info + // buttonItem8 // - this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image"))); - this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_role_info.Name = "btn_role_info"; - this.btn_role_info.SubItemsExpandWidth = 14; - this.btn_role_info.Text = "角色管理"; - this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click); + this.buttonItem8.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem8.Image"))); + this.buttonItem8.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem8.Name = "buttonItem8"; + this.buttonItem8.SubItemsExpandWidth = 14; + this.buttonItem8.Text = "双屏分析"; + this.buttonItem8.Click += new System.EventHandler(this.buttonItem8_Click); // - // btn_resc_info + // buttonItemLocation // - this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image"))); - this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_resc_info.Name = "btn_resc_info"; - this.btn_resc_info.SubItemsExpandWidth = 14; - this.btn_resc_info.Text = "资源管理"; - this.btn_resc_info.Visible = false; - this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click); + this.buttonItemLocation.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemLocation.Image"))); + this.buttonItemLocation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemLocation.Name = "buttonItemLocation"; + this.buttonItemLocation.SubItemsExpandWidth = 14; + this.buttonItemLocation.Text = "快速定位"; + this.buttonItemLocation.Click += new System.EventHandler(this.buttonItemLocation_Click); // - // btn_role_resc + // sliderItem2 // - this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image"))); - this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_role_resc.Name = "btn_role_resc"; - this.btn_role_resc.SubItemsExpandWidth = 14; - this.btn_role_resc.Text = "角色授权"; - this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click); + this.sliderItem2.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.sliderItem2.LabelWidth = 50; + this.sliderItem2.Name = "sliderItem2"; + this.sliderItem2.Text = "地面透明度"; + this.sliderItem2.TextColor = System.Drawing.Color.Black; + this.sliderItem2.Value = 0; + this.sliderItem2.ValueChanged += new System.EventHandler(this.sliderItem2_ValueChanged); // - // btn_user_role + // buttonItemGBJC // - this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image"))); - this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_user_role.Name = "btn_user_role"; - this.btn_user_role.SubItemsExpandWidth = 14; - this.btn_user_role.Text = "用户授权"; - this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click); + this.buttonItemGBJC.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemGBJC.Image"))); + this.buttonItemGBJC.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemGBJC.Name = "buttonItemGBJC"; + this.buttonItemGBJC.SubItemsExpandWidth = 14; + this.buttonItemGBJC.Text = "国标检测"; + this.buttonItemGBJC.Click += new System.EventHandler(this.buttonItemGBJC_Click); // - // btn_password_edit + // ribbonPanel5 // - this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image"))); - this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_password_edit.Name = "btn_password_edit"; - this.btn_password_edit.SubItemsExpandWidth = 14; - this.btn_password_edit.Text = "密码修改"; - this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click); + this.ribbonPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel5.Controls.Add(this.ribbonBar2); + this.ribbonPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel5.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel5.Name = "ribbonPanel5"; + this.ribbonPanel5.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel5.Size = new System.Drawing.Size(1328, 95); // - // buttonItemPasswordReset // - this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image"))); - this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemPasswordReset.Name = "buttonItemPasswordReset"; - this.buttonItemPasswordReset.SubItemsExpandWidth = 14; - this.buttonItemPasswordReset.Text = "重置密码"; - this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click); // - // ribbonPanel4 + this.ribbonPanel5.Style.Class = ""; + this.ribbonPanel5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel4.Controls.Add(this.ribbonBar1); - this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel4.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel4.Name = "ribbonPanel4"; - this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95); // // + this.ribbonPanel5.StyleMouseDown.Class = ""; + this.ribbonPanel5.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonPanel4.Style.Class = ""; - this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // + this.ribbonPanel5.StyleMouseOver.Class = ""; + this.ribbonPanel5.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel5.TabIndex = 37; + this.ribbonPanel5.Visible = false; // - this.ribbonPanel4.StyleMouseDown.Class = ""; - this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // ribbonBar2 // + this.ribbonBar2.AutoOverflowEnabled = true; // // - this.ribbonPanel4.StyleMouseOver.Class = ""; - this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel4.TabIndex = 36; - this.ribbonPanel4.Visible = false; // - // ribbonBar1 + this.ribbonBar2.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar2.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonBar1.AutoOverflowEnabled = true; // // - // - this.ribbonBar1.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar1.BackgroundStyle.Class = ""; - this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar1.ContainerControlProcessDialogKey = true; - this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btn_document_info}); - this.ribbonBar1.Location = new System.Drawing.Point(3, 0); - this.ribbonBar1.Name = "ribbonBar1"; - this.ribbonBar1.Size = new System.Drawing.Size(88, 92); - this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar1.TabIndex = 0; - // - // - // - this.ribbonBar1.TitleStyle.Class = ""; - this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar1.TitleStyleMouseOver.Class = ""; - this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar1.TitleVisible = false; - // - // btn_document_info - // - this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image"))); - this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_document_info.Name = "btn_document_info"; - this.btn_document_info.SubItemsExpandWidth = 14; - this.btn_document_info.Text = "文档管理"; - this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click); - // - // ribbonPanel1 - // - this.ribbonPanel1.AutoSize = true; - this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray; - 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, 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, 95); - // - // - // - this.ribbonPanel1.Style.Class = ""; - this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseDown.Class = ""; - this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseOver.Class = ""; - this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel1.TabIndex = 1; - this.ribbonPanel1.Visible = false; - // - // ribbonBar21 - // - this.ribbonBar21.AutoOverflowEnabled = true; - this.ribbonBar21.BackColor = System.Drawing.Color.White; - // - // - // - this.ribbonBar21.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar21.BackgroundStyle.Class = ""; - this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar21.ContainerControlProcessDialogKey = true; - this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItem87, - this.buttonItem88, - this.buttonItem27, - this.sliderGroundTransSet1, - this.buttonItem91, - this.buttonItem1, - this.btnlegendSet, - this.buttonItem89, - this.btnOutputJPG}); - this.ribbonBar21.Location = new System.Drawing.Point(3, 0); - this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(649, 92); - this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar21.TabIndex = 2; - this.ribbonBar21.Text = "浏览模式"; - // - // - // - this.ribbonBar21.TitleStyle.Class = ""; - this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar21.TitleStyleMouseOver.Class = ""; - this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar21.TitleVisible = false; - // - // buttonItem87 - // - this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image"))); - this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem87.Name = "buttonItem87"; - this.buttonItem87.SubItemsExpandWidth = 14; - this.buttonItem87.Text = "地上模式"; - this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click); + this.ribbonBar2.BackgroundStyle.Class = ""; + this.ribbonBar2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar2.ContainerControlProcessDialogKey = true; + this.ribbonBar2.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItemHX1, + this.buttonItemHX2, + this.buttonItemDCTP, + this.sliderItem3}); + this.ribbonBar2.Location = new System.Drawing.Point(3, 0); + this.ribbonBar2.Name = "ribbonBar2"; + this.ribbonBar2.Size = new System.Drawing.Size(350, 92); + this.ribbonBar2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar2.TabIndex = 0; // - // buttonItem88 // - this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image"))); - this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem88.Name = "buttonItem88"; - this.buttonItem88.SubItemsExpandWidth = 14; - this.buttonItem88.Text = "地下模式"; - this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click); // - // buttonItem27 + this.ribbonBar2.TitleStyle.Class = ""; + this.ribbonBar2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image"))); - this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem27.Name = "buttonItem27"; - this.buttonItem27.SubItemsExpandWidth = 14; - this.buttonItem27.Text = "行走模式"; - this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click); // - // buttonItem91 // - this.buttonItem91.ForeColor = System.Drawing.Color.Black; - this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image"))); - this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem91.Name = "buttonItem91"; - this.buttonItem91.SubItemsExpandWidth = 14; - this.buttonItem91.Text = "快速定位"; - this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click); + this.ribbonBar2.TitleStyleMouseOver.Class = ""; + this.ribbonBar2.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar2.TitleVisible = false; // - // buttonItem1 + // buttonItemHX1 // - this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image"))); - this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem1.Name = "buttonItem1"; - this.buttonItem1.SubItemsExpandWidth = 14; - this.buttonItem1.Text = "图层管理"; - this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click); + this.buttonItemHX1.AutoExpandOnClick = true; + this.buttonItemHX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX1.Image"))); + this.buttonItemHX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemHX1.Name = "buttonItemHX1"; + this.buttonItemHX1.SubItemsExpandWidth = 14; + this.buttonItemHX1.Text = "导入红线"; + this.buttonItemHX1.Click += new System.EventHandler(this.buttonItemHX1_Click); // - // btnlegendSet + // buttonItemHX2 // - this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image"))); - this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnlegendSet.Name = "btnlegendSet"; - this.btnlegendSet.SubItemsExpandWidth = 14; - this.btnlegendSet.Text = "图例"; - this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click); + this.buttonItemHX2.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX2.Image"))); + this.buttonItemHX2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemHX2.Name = "buttonItemHX2"; + this.buttonItemHX2.SubItemsExpandWidth = 14; + this.buttonItemHX2.Text = "红线审核"; + this.buttonItemHX2.Click += new System.EventHandler(this.buttonItemHX2_Click); // - // buttonItem89 + // buttonItemDCTP // - this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image"))); - this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem89.Name = "buttonItem89"; - this.buttonItem89.SubItemsExpandWidth = 14; - this.buttonItem89.Text = "全屏显示"; - this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click); + this.buttonItemDCTP.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemDCTP.Image"))); + this.buttonItemDCTP.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemDCTP.Name = "buttonItemDCTP"; + this.buttonItemDCTP.SubItemsExpandWidth = 14; + this.buttonItemDCTP.Text = "导出图片"; + this.buttonItemDCTP.Click += new System.EventHandler(this.buttonItemDCTP_Click); // - // btnOutputJPG + // sliderItem3 // - this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image"))); - this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnOutputJPG.Name = "btnOutputJPG"; - this.btnOutputJPG.SubItemsExpandWidth = 14; - this.btnOutputJPG.Text = "导出图片"; - this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click); + this.sliderItem3.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.sliderItem3.LabelWidth = 50; + this.sliderItem3.Name = "sliderItem3"; + this.sliderItem3.Text = "地面透明度"; + this.sliderItem3.TextColor = System.Drawing.Color.Black; + this.sliderItem3.Value = 0; + this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged); // // ribbonTabItem1 // @@ -3468,7 +3569,6 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage"))); this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image"))); this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -3486,6 +3586,13 @@ this.ribbonTabItem2.Text = "权限管理"; this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown); // + // ribbonTabItemBSQ + // + this.ribbonTabItemBSQ.Checked = true; + this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ"; + this.ribbonTabItemBSQ.Panel = this.ribbonPanel3; + this.ribbonTabItemBSQ.Text = "标识器管理"; + // // buttonItem19 // this.buttonItem19.Name = "buttonItem19"; @@ -4463,7 +4570,7 @@ this.dataGridViewX2.ReadOnly = true; this.dataGridViewX2.RowHeadersVisible = false; this.dataGridViewX2.RowTemplate.Height = 23; - this.dataGridViewX2.Size = new System.Drawing.Size(28705, 92); + this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92); this.dataGridViewX2.TabIndex = 11; // // dataGridViewTextBoxColumn10 @@ -4557,7 +4664,7 @@ this.dataGridViewX3.ReadOnly = true; this.dataGridViewX3.RowHeadersVisible = false; this.dataGridViewX3.RowTemplate.Height = 23; - this.dataGridViewX3.Size = new System.Drawing.Size(28704, 127); + this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127); this.dataGridViewX3.TabIndex = 5; this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick); // @@ -5731,18 +5838,6 @@ this.panelEx4.TabIndex = 26; this.panelEx4.Text = "panelEx4"; // - // 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); - this.layerTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseClick); - this.layerTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); - // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; @@ -5786,13 +5881,14 @@ this.contextMenuStripDeleteLayerNode.ResumeLayout(false); this.ribbonControl1.ResumeLayout(false); this.ribbonControl1.PerformLayout(); - this.ribbonPanel12.ResumeLayout(false); - this.ribbonPanel5.ResumeLayout(false); - this.ribbonPanel6.ResumeLayout(false); - this.ribbonPanel15.ResumeLayout(false); - this.ribbonPanel2.ResumeLayout(false); + this.ribbonPanel3.ResumeLayout(false); this.ribbonPanel4.ResumeLayout(false); this.ribbonPanel1.ResumeLayout(false); + this.ribbonPanel12.ResumeLayout(false); + this.ribbonPanel2.ResumeLayout(false); + this.ribbonPanel15.ResumeLayout(false); + this.ribbonPanel6.ResumeLayout(false); + this.ribbonPanel5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.panelOfTable.ResumeLayout(false); this.panelOfTable.PerformLayout(); @@ -6315,6 +6411,11 @@ private LabelX labelX16; private LabelX labelX17; private PanelEx panelEx4; + private RibbonPanel ribbonPanel3; + private RibbonBar ribbonBar4; + private ButtonItem btn_flag; + private RibbonTabItem ribbonTabItemBSQ; + private SliderItem slider4ground; } } diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs new file mode 100644 index 0000000..9fe14fb --- /dev/null +++ b/FrmFlagManagers.Designer.cs @@ -0,0 +1,180 @@ +namespace Cyberpipe +{ + partial class FrmFlagManagers + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.标识对象ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.bar1 = new DevComponents.DotNetBar.Bar(); + this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); + this.txt_no = new DevComponents.DotNetBar.TextBoxItem(); + this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); + this.combo_street = new DevComponents.DotNetBar.ComboBoxItem(); + this.btn_query = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_batch = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_menu = new DevComponents.DotNetBar.ButtonItem(); + this.winGridViewPager1 = new WHC.Pager.WinControl.WinGridViewPager(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.标识对象ToolStripMenuItem, + this.toolStripMenuItem2}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(125, 48); + // + // 标识对象ToolStripMenuItem + // + this.标识对象ToolStripMenuItem.Name = "标识对象ToolStripMenuItem"; + this.标识对象ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.标识对象ToolStripMenuItem.Text = "标识对象"; + this.标识对象ToolStripMenuItem.Click += new System.EventHandler(this.标识对象ToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Text = "查看位置"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // bar1 + // + this.bar1.AntiAlias = true; + this.bar1.Dock = System.Windows.Forms.DockStyle.Top; + this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.labelItem1, + this.txt_no, + this.labelItem2, + this.combo_street, + this.btn_query, + this.btn_add_batch, + this.btn_add_menu}); + this.bar1.Location = new System.Drawing.Point(0, 0); + this.bar1.Name = "bar1"; + this.bar1.Size = new System.Drawing.Size(881, 28); + this.bar1.Stretch = true; + this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.bar1.TabIndex = 8; + this.bar1.TabStop = false; + this.bar1.Text = "bar1"; + // + // labelItem1 + // + this.labelItem1.Name = "labelItem1"; + this.labelItem1.Text = "编号"; + // + // txt_no + // + this.txt_no.Name = "txt_no"; + this.txt_no.TextBoxWidth = 200; + this.txt_no.WatermarkColor = System.Drawing.SystemColors.GrayText; + // + // labelItem2 + // + this.labelItem2.Name = "labelItem2"; + this.labelItem2.Text = "街道"; + // + // combo_street + // + this.combo_street.ComboWidth = 200; + this.combo_street.DropDownHeight = 106; + this.combo_street.ItemHeight = 17; + this.combo_street.Name = "combo_street"; + // + // btn_query + // + this.btn_query.Name = "btn_query"; + this.btn_query.Text = "查询"; + this.btn_query.Click += new System.EventHandler(this.btn_query_Click); + // + // btn_add_batch + // + this.btn_add_batch.Name = "btn_add_batch"; + this.btn_add_batch.Text = "批量添加"; + this.btn_add_batch.Click += new System.EventHandler(this.btn_add_batch_Click); + // + // btn_add_menu + // + this.btn_add_menu.Name = "btn_add_menu"; + this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); + // + // winGridViewPager1 + // + this.winGridViewPager1.AppendedMenu = null; + this.winGridViewPager1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.winGridViewPager1.DataSource = null; + this.winGridViewPager1.DisplayColumns = ""; + this.winGridViewPager1.Dock = System.Windows.Forms.DockStyle.Fill; + this.winGridViewPager1.Location = new System.Drawing.Point(0, 28); + this.winGridViewPager1.MinimumSize = new System.Drawing.Size(540, 0); + this.winGridViewPager1.Name = "winGridViewPager1"; + this.winGridViewPager1.PrintTitle = ""; + this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); + this.winGridViewPager1.TabIndex = 9; + // + // FrmFlagManagers + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(881, 474); + this.Controls.Add(this.winGridViewPager1); + this.Controls.Add(this.bar1); + this.DoubleBuffered = true; + this.Name = "FrmFlagManagers"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器管理"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagManagers_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagManagers_Load); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem 标识对象ToolStripMenuItem; + private DevComponents.DotNetBar.Bar bar1; + private DevComponents.DotNetBar.LabelItem labelItem1; + private DevComponents.DotNetBar.TextBoxItem txt_no; + private DevComponents.DotNetBar.LabelItem labelItem2; + private DevComponents.DotNetBar.ComboBoxItem combo_street; + private DevComponents.DotNetBar.ButtonItem btn_query; + private DevComponents.DotNetBar.ButtonItem btn_add_batch; + private DevComponents.DotNetBar.ButtonItem btn_add_menu; + private WHC.Pager.WinControl.WinGridViewPager winGridViewPager1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + } +} \ No newline at end of file diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs new file mode 100644 index 0000000..1e433c0 --- /dev/null +++ b/FrmFlagManagers.cs @@ -0,0 +1,459 @@ +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; +using DevComponents.DotNetBar; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.IO; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagManagers : Office2007Form + { + GSOGlobeControl globeControl1 = null; + int maxPageIndex = 20; + public static bool IS_OPEN = false; + int rows = 0; + public static GSODataSource ds = null; + TreeNode layerManagerNode = null; + string LSSYS_ID_VALUE = "标识器自增编号"; + + public FrmFlagManagers(GSOGlobeControl _globeControl1) + { + this.globeControl1 = _globeControl1; + InitializeComponent(); + winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); + this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 + this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + + this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); + winGridViewPager1.dataGridView1.MultiSelect = false; + } + + 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; + } + + /// + /// 初始化分页表格 + /// + 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("备注", "备注"); + + this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + + //隐藏右键功能按钮 + 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[2].Text = "属性编辑"; + winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; + + winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + + //右键菜单宽度 + winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; + winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; + //控制间隔的颜色 + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + //控制每页显示的最大数据量 + winGridViewPager1.PagerInfo.RecordCount = rows; + winGridViewPager1.PagerInfo.PageSize = maxPageIndex; + winGridViewPager1.dataGridView1.Refresh(); + } + /// + /// 页面刷新 + /// + /// + /// + private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) + { + LoadData(); + + } + + /// + /// 属性编辑 + /// + /// + /// + private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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); + frm.refresh += new FrmFlagEdits.Handle(LoadData); //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + /// + /// 标识器报废 + /// + /// + /// + private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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) + { + bindComboxStreet(); + LoadData(); + + IS_OPEN = true; + } + + private void LoadData() + { + int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + winGridViewPager1.Refresh(); + } + + private void LoadData(int pageIndex) + { + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + 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"; + + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private string GetSql(int pageIndex) + { + int minPage = (pageIndex - 1) * maxPageIndex + 1; + 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 使用状态 = '使用中'"; + + + if (!String.IsNullOrEmpty(txt_no.Text.Trim())) + { + sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + sqlData += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + } + if (null != combo_street.SelectedItem && !String.IsNullOrEmpty(combo_street.SelectedItem.ToString().Trim())) + { + sqlData += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + sqlCount += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + } + + sqlData += " order by 编号)b " + + "where(b.row_num between " + minPage + " and " + maxPage + ")"; + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private void bindComboxStreet() + { + ComboBoxItem item = new ComboBoxItem(); + + String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow row in table.Rows) + { + item = new ComboBoxItem(); + item.Text = row[0].ToString(); + if (!item.Text.Equals("")) + combo_street.Items.Add(item); + } + } + + private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) + { + IS_OPEN = false; + globeControl1.Globe.MemoryLayer.RemoveAllFeature(); + + globeControl1.Refresh(); + + } + private void doSave(Object e) + { + try + { + globeControl1.Globe.Layers["标识器"].Save(); + } + catch (Exception ex) + { + LogHelper.WriteLog(typeof(FrmFlagManagers), ex); + } + } + + private void btn_query_Click(object sender, EventArgs e) + { + try + { + LoadData(1); + } + catch (Exception ex) + { + MessageBox.Show("查询失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_add_batch_Click(object sender, EventArgs e) + { + if (ds == null && null != globeControl1) + { + FrmFlagDatabase frmDB = new FrmFlagDatabase(globeControl1); + if (frmDB.ShowDialog() == DialogResult.OK) + { + ds = FrmFlagDatabase.ds; + } + } + + if (ds != null && null != globeControl1) + { + FrmAddFlagBatch frmFlag = new FrmAddFlagBatch(globeControl1, ds); + if (frmFlag.ShowDialog() == DialogResult.OK) + { + addNodeToLayerManagerNode(frmFlag.flags); + } + } + } + + private Boolean CheckDatasetGeoReference(GSODataset dataset) + { + Boolean bSuccess = false; + if (dataset.GeoReferenceType == EnumGeoReferenceType.Flat) + { + if (MessageBox.Show("数据没有空间参考信息,请设置空间参考信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) == DialogResult.OK) + { + String strPath = Path.GetDirectoryName(Application.ExecutablePath) + "\\Coordinate Systems"; + OpenFileDialog dlg = new OpenFileDialog(); + + dlg.InitialDirectory = strPath; + dlg.RestoreDirectory = true; + + dlg.Filter = "投影文件|*.prj||"; + if (dlg.ShowDialog() == DialogResult.OK) + { + bSuccess = dataset.LoadProjectionFromESRIFile(dlg.FileName); + } + } + } + else + { + return true; + } + return bSuccess; + } + + private void addNodeToLayerManagerNode(GSOLayer layer) + { + if (layer != null) + { + GSODataset dataset = layer.Dataset; + CheckDatasetGeoReference(layer.Dataset); + TreeNode node = new TreeNode(); + node.Tag = layer; + node.Text = layer.Dataset.Caption; + node.ImageIndex = 0; + node.SelectedImageIndex = 0; + node.Checked = layer.Visible; + layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Expand(); + } + } + + private void btn_add_menu_Click(object sender, EventArgs e) + { + if (null != globeControl1) + { + FrmAddSinMark frm = new FrmAddSinMark(globeControl1); + frm.Show(); + } + } + + private void 标识对象ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + { + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.Hide(); + string id = row.Cells["编号"].Value.ToString(); + FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); + p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 + p.Show(); + } + catch (Exception ex) + { + MessageBox.Show("失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } + + private void showThisForm() + { + this.Show(); + } + /// + /// 位置查看 + /// + /// + /// + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.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.标识器型号,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" + + "所属道路:" + 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(); + + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx new file mode 100644 index 0000000..f3050a7 --- /dev/null +++ b/FrmFlagManagers.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 45 + + \ No newline at end of file diff --git a/MainFrm.cs b/MainFrm.cs index ec7d43e..d33c5a0 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -40,7 +40,7 @@ GSOBalloon featureTooltip2; GSOBalloonEx balloonEx2; - GSOLayer layerTemp;//wxl注释,Globe1的临时图层 + GSOLayer layerTemp; //wxl注释,Globe1的临时图层 FrmRedlineResult frmredResult = null; FrmMnModify frmModify; public bool frmRedlineResult = false; @@ -877,37 +877,37 @@ double dsw = SW; if (SW > 1440) { - double myScreen = dsw / 1440; - buttonX1.Width = (int)(buttonX1.Width * myScreen); - buttonX2.Width = (int)(buttonX2.Width * myScreen); - buttonX4.Width = (int)(buttonX4.Width * myScreen); - buttonX5.Width = (int)(buttonX5.Width * myScreen); - buttonX6.Width = (int)(buttonX6.Width * myScreen); - buttonX7.Width = (int)(buttonX8.Width * myScreen); - buttonX8.Width = (int)(buttonX8.Width * myScreen); - buttonX9.Width = (int)(buttonX9.Width * myScreen); - buttonX12.Width = (int)(buttonX12.Width * myScreen); - buttonX14.Width = (int)(buttonX14.Width * myScreen); - buttonX15.Width = (int)(buttonX15.Width * myScreen); - buttonX16.Width = (int)(buttonX16.Width * myScreen); - buttonX17.Width = (int)(buttonX17.Width * myScreen); + double myScreen = dsw/1440; + buttonX1.Width = (int) (buttonX1.Width*myScreen); + buttonX2.Width = (int) (buttonX2.Width*myScreen); + buttonX4.Width = (int) (buttonX4.Width*myScreen); + buttonX5.Width = (int) (buttonX5.Width*myScreen); + buttonX6.Width = (int) (buttonX6.Width*myScreen); + buttonX7.Width = (int) (buttonX8.Width*myScreen); + buttonX8.Width = (int) (buttonX8.Width*myScreen); + buttonX9.Width = (int) (buttonX9.Width*myScreen); + buttonX12.Width = (int) (buttonX12.Width*myScreen); + buttonX14.Width = (int) (buttonX14.Width*myScreen); + buttonX15.Width = (int) (buttonX15.Width*myScreen); + buttonX16.Width = (int) (buttonX16.Width*myScreen); + buttonX17.Width = (int) (buttonX17.Width*myScreen); - labelX1.Width = (int)(labelX1.Width * myScreen); - labelX2.Width = (int)(labelX2.Width * myScreen); - labelX3.Width = (int)(labelX3.Width * myScreen); - labelX6.Width = (int)(labelX6.Width * myScreen); - labelX8.Width = (int)(labelX8.Width * myScreen); - labelX9.Width = (int)(labelX9.Width * myScreen); - labelX12.Width = (int)(labelX12.Width * myScreen); - labelX13.Width = (int)(labelX13.Width * myScreen); - labelX14.Width = (int)(labelX14.Width * myScreen); - labelX16.Width = (int)(labelX16.Width * myScreen); - labelX17.Width = (int)(labelX17.Width * myScreen); - labelX11.Width = (int)(labelX11.Width * myScreen); - labelX19.Width = (int)(labelX19.Width * myScreen); - labelX21.Width = (int)(labelX21.Width * myScreen); - labelX22.Width = (int)(labelX22.Width * myScreen); - labelX24.Width = (int)(labelX24.Width * myScreen); + labelX1.Width = (int) (labelX1.Width*myScreen); + labelX2.Width = (int) (labelX2.Width*myScreen); + labelX3.Width = (int) (labelX3.Width*myScreen); + labelX6.Width = (int) (labelX6.Width*myScreen); + labelX8.Width = (int) (labelX8.Width*myScreen); + labelX9.Width = (int) (labelX9.Width*myScreen); + labelX12.Width = (int) (labelX12.Width*myScreen); + labelX13.Width = (int) (labelX13.Width*myScreen); + labelX14.Width = (int) (labelX14.Width*myScreen); + labelX16.Width = (int) (labelX16.Width*myScreen); + labelX17.Width = (int) (labelX17.Width*myScreen); + labelX11.Width = (int) (labelX11.Width*myScreen); + labelX19.Width = (int) (labelX19.Width*myScreen); + labelX21.Width = (int) (labelX21.Width*myScreen); + labelX22.Width = (int) (labelX22.Width*myScreen); + labelX24.Width = (int) (labelX24.Width*myScreen); } sideBar1.Visible = false; sideBar1.ExpandedPanel = sideBarPanelItem3; @@ -1031,7 +1031,7 @@ globeControl1.Globe.UserBackgroundColor = Color.White; globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3; + globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3; globeControl1.Globe.EditSnapObject = true; globeControl1.Globe.IsReleaseMemOutOfView = true; globeControl1.Globe.ControlPanel.Visible = true; @@ -1050,7 +1050,7 @@ globeControl2.Globe.UserBackgroundColor = Color.White; globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3; + globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3; globeControl2.Globe.EditSnapObject = true; globeControl2.Globe.IsReleaseMemOutOfView = true; globeControl2.Globe.ControlPanel.Visible = false; @@ -1154,6 +1154,7 @@ initLayerTree(); } + /// /// 加载地球1、2的图层 /// @@ -1224,7 +1225,7 @@ } - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { connectServer(); }); @@ -1291,7 +1292,7 @@ private void MainFrm_Load(object sender, EventArgs e) { - layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示 + layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示 initGlobalControl(); //initGlobalMap(); // initLayerTree(); @@ -1362,12 +1363,12 @@ tempnode.Checked = node.Checked && feature.Visible; tempnode.Tag = feature; node.Nodes.Add(tempnode); - GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature; + GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature; VisitFeature3Ds(featureFolder.Features, tempnode); } else { - TreeNode tempnode = new TreeNode { Text = feature.Name }; + TreeNode tempnode = new TreeNode {Text = feature.Name}; if (feature.Geometry != null) { switch (feature.Geometry.Type) @@ -1562,6 +1563,7 @@ } #endregion + private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Button != MouseButtons.Right) return; @@ -1590,6 +1592,7 @@ } } + //wxl Tag更正 /// /// 删除临时添加的本地数据图层 @@ -1618,6 +1621,7 @@ } } + //wxl Tag更正 private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1629,6 +1633,7 @@ 可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked; layer.Editable = 可编辑ToolStripMenuItem.Checked; } + //wxl Tag更正 private void 保存ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1638,6 +1643,7 @@ if (layer == null) return; layer.Dataset.Save(); } + //wxl Tag更正 private void 定位ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1667,7 +1673,8 @@ if (layer == null) return; if (layer.Caption.Equals("红线")) { - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), + EnumAltitudeMode.Absolute, -4, 50, 1000); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; layer.Visible = true; @@ -1681,6 +1688,7 @@ } } } + //wxl Tag更正 private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { @@ -1693,7 +1701,8 @@ GSOFeature feature = layer.GetAt(0); if (feature != null && feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute); + //, 0, 0, 1000); } else { @@ -1705,7 +1714,8 @@ GSOFeature feature = node.Tag as GSOFeature; if (feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, + 10); } else { @@ -1758,6 +1768,7 @@ globeControl1.Globe.Refresh(); } } + void globeControl2_MouseWheel(object sender, MouseEventArgs e) { if (globeControl2.Globe.CameraState.Distance > 20000000) @@ -1770,6 +1781,7 @@ } #region Fan 横断面 + /// /// 横断面分析、基线剖面分析、道路断面分析等 /// @@ -1812,6 +1824,7 @@ } trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis; } + #endregion /// @@ -1834,14 +1847,16 @@ case "PipelineDistanceStatistics": - FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm1.Show(this); globeControl1.Globe.Action = EnumAction3D.ActionNull; break; case "PipelineSpatialQuery": - FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); globeControl1.Globe.ClearAnalysis(); globeControl1.Globe.Action = EnumAction3D.ActionNull; @@ -1865,7 +1880,8 @@ geoPit.PitDepth = depth; geoPit.PitDepthUsing = true; globeControl1.Globe.AddPit("", geoPit); - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (layerGround != null) { layerGround.Visible = false; @@ -1898,6 +1914,7 @@ break; } } + /// /// 鼠标悬浮提示 /// @@ -1910,11 +1927,12 @@ if (e.Feature == null) return; if (isFeatureContainsBianhao(e.Feature)) { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString()); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, + e.Feature.GetValue(featureIDFieldName).ToString()); } else if (e.Feature.Name != "") { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name); } } catch (Exception ex) @@ -1933,7 +1951,7 @@ if (e.Button != MouseButtons.Left) return; if (enumDesignMode == EnumDesignMode.AddPipe - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线 { GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd; if (layerDest != null) @@ -1949,7 +1967,7 @@ } } if (enumDesignMode == EnumDesignMode.AddTunnel - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道 { GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道"); if (tunnel != null && tunnel.GetAllFeatures().Length > 0) @@ -1961,10 +1979,9 @@ //tunnel.Save(); } } - } if (enumDesignMode == EnumDesignMode.AddCitySevenLine - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线 { CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine; string lineType = citySevenLine.Type; @@ -2000,6 +2017,7 @@ mouseDownX1 = e.X; mouseDownY1 = e.Y; } + /// /// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件 /// @@ -2010,6 +2028,7 @@ mouseDownX2 = e.X; mouseDownY2 = e.Y; } + /// /// /// @@ -2023,6 +2042,7 @@ RightScreenToolMenu.Show(globeControl2, e.X, e.Y); } } + /// /// (完善)#wxl 待整理 /// @@ -2037,7 +2057,7 @@ 通视分析ToolStripMenuItem.Checked = false; return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2053,13 +2073,15 @@ int idx = dataGridViewX2.Rows.Add(); dataGridViewX2.Rows[idx].Tag = feat; dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX2.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2075,7 +2097,9 @@ int idx = dataGridViewLineList.Rows.Add(); dataGridViewLineList.Rows[idx].Tag = feat; dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewLineList.Rows[idx].Cells[1].Value = featureName; } } @@ -2097,13 +2121,15 @@ int idx = dataGridViewX8.Rows.Add(); dataGridViewX8.Rows[idx].Tag = feat; dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX8.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2119,7 +2145,9 @@ int idx = dataGridViewX4.Rows.Add(); dataGridViewX4.Rows[idx].Tag = feat; dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX4.Rows[idx].Cells[1].Value = featureName; } @@ -2127,7 +2155,7 @@ return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2143,7 +2171,9 @@ int idx = dataGridViewX6.Rows.Add(); dataGridViewX6.Rows[idx].Tag = feat; dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX6.Rows[idx].Cells[1].Value = featureName; } } @@ -2196,7 +2226,7 @@ layerTemp.AddFeature(feat); } } - else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 + else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 { if (e.X == mouseDownX1 && e.Y == mouseDownY1) { @@ -2244,7 +2274,8 @@ return result; } - string featureIDFieldName = "编号";//待完善 + string featureIDFieldName = "编号"; //待完善 + private bool isFeatureContainsBianhao(GSOFeature feature) { if (feature.GetFieldDefn("标识器编号") != null) @@ -2268,12 +2299,13 @@ string str1 = ""; if (feature == null) return; - if (feature.GetFieldDefn("图片编码") != null)// + if (feature.GetFieldDefn("图片编码") != null) // { str1 = GetBubbleInfo(feature, globeControl1); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2290,7 +2322,7 @@ balloonEx.HideBalloon(); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2309,7 +2341,8 @@ str1 = GetBubbleInfo(feature, globeControl2); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2326,7 +2359,7 @@ balloonEx2.HideBalloon(); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2337,10 +2370,13 @@ private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl) { if (feature == null) return ""; - string str = "
" + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + fieldNames[j] + "
" + value + "
"; + string str = + "
"; var code = feature.GetFieldAsString("编码"); var title = FeatureTools.GetFeatureTypeByCode(code); - str += ""; + str += + ""; string layerName = feature.Dataset.Name; string queryFields = ""; if (Utility.Query_Fields.ContainsKey(layerName)) @@ -2354,28 +2390,30 @@ } if (queryFields != null) { - string[] param = { "," }; + string[] param = {","}; string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries); - for (int j = 0; j < fieldNames.Length; ) + for (int j = 0; j < fieldNames.Length;) { - int count = 0; - string tmpStr = ""; - while (count<2&&j
" + + tmpStr += + "
"; - count ++; + count++; } j++; } if (count == 1) - {//不够两列 + { +//不够两列 tmpStr += ""; } tmpStr += ""; @@ -2393,6 +2431,7 @@ GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer; return featureAddLayer; } + //遍历最深三层找到目标node. private TreeNode GetDestLayerFeatureAddTreeNode() { @@ -2415,7 +2454,7 @@ { GSOLayer gsoLayer = node.Tag as GSOLayer; if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node; - } + } } } else @@ -2465,6 +2504,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 地下模式 菜单按钮 /// @@ -2501,6 +2541,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 行走模式 菜单按钮 /// @@ -2518,6 +2559,7 @@ globeControl1.Globe.CameraMode = EnumCameraMode.Walk; } + /// /// 地面透明度设置 菜单 /// @@ -2528,11 +2570,12 @@ LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text); globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) layer.Opaque = 100 - sliderGroundTransSet1.Value; optiValue = sliderGroundTransSet1.Value; } + /// /// 图例 菜单按钮 /// @@ -2547,6 +2590,7 @@ legend.Visible = !legend.Visible; globeControl1.Refresh(); } + /// /// 快速定位 菜单按钮 /// @@ -2559,6 +2603,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1); fly.Show(this); } + /// /// 图层管理 菜单按钮 /// @@ -2594,6 +2639,7 @@ Refresh(); } } + /// /// 全屏显示 菜单按钮 /// @@ -2615,23 +2661,25 @@ //任务栏 [DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)] static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow); + int widthOld; int heightOld; int xOld; int yOld; + /// /// 全屏显示功能实现(完善) /// private void FullScreen() { - if (!m_bFullScreen) // 启用全屏 + if (!m_bFullScreen) // 启用全屏 { xOld = Location.X; yOld = Location.Y; widthOld = Width; heightOld = Height; - SuspendLayout();//挂起 + SuspendLayout(); //挂起 FormBorderStyle = FormBorderStyle.Sizable; WindowState = FormWindowState.Maximized; @@ -2665,13 +2713,13 @@ ribbonControl1.Visible = false; pictureBox1.Visible = false; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = true; } - else // 取消全屏 + else // 取消全屏 { - SuspendLayout();//挂起 + SuspendLayout(); //挂起 //////任务栏 IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null); @@ -2699,7 +2747,7 @@ ribbonControl1.Visible = true; pictureBox1.Visible = true; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = false; Focus(); //初始化隐藏图层管理 @@ -2787,10 +2835,12 @@ } Image printImage; + private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(printImage, 10, 10); } + /// /// 输出地图 菜单 /// @@ -2815,7 +2865,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -2835,6 +2885,7 @@ } } } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 目标图层 菜单 @@ -2850,6 +2901,7 @@ GSOLayer layer = node.Tag as GSOLayer; globeControl1.Globe.DestLayerFeatureAdd = layer; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可选择 菜单 @@ -2864,6 +2916,7 @@ LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked; if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可编辑 菜单 @@ -2878,6 +2931,7 @@ LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked; if (layer != null) layer.Editable = LayerEditableMenuItem.Checked; } + /// /// 图层目录树 右键菜单中的 保存 菜单 /// @@ -2904,6 +2958,7 @@ panelOfTable.Visible = false; clearFeatureHighLight(); } + /// /// 主窗体关闭事件处理 /// @@ -2918,6 +2973,7 @@ } #region 完善(各种净距分析) + /// /// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2941,6 +2997,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2948,7 +3005,7 @@ /// private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxEx4.Enabled = checkBoxX8.Checked; if (checkBoxX8.Checked) { @@ -2964,6 +3021,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2989,6 +3047,7 @@ comboBoxEx1.Enabled = true; } } + /// /// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2996,7 +3055,7 @@ /// private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxX7.Checked) { comboBoxEx4.SelectedItem = null; @@ -3014,6 +3073,7 @@ comboBoxEx4.Enabled = true; } } + /// /// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3038,6 +3098,7 @@ dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3062,9 +3123,10 @@ dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name; } } + Dictionary featCount = new Dictionary(); Dictionary featLenth = new Dictionary(); - Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置 + Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置 /// /// 垂直净距分析 功能界面中的 开始分析按钮 事件处理 @@ -3111,7 +3173,7 @@ GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature; if (selectedFeature == null) continue; selectState = 1; - VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun); + VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun); } } else if (checkBoxX2.Checked) // 选择图层 @@ -3160,7 +3222,8 @@ /// /// /// - private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible) + private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, + GSOPoint3d pntIntersect2, double distance, bool markerVisible) { if (pntIntersect1 == null || pntIntersect2 == null) { @@ -3175,9 +3238,9 @@ GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格 //设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255 style.LineColor = Color.GreenYellow; - style.LineWidth = 3; //设置线的宽度为3 - style.VertexVisible = true; //显示线的节点 - disline.Style = style; //把风格添加到线上 + style.LineWidth = 3; //设置线的宽度为3 + style.VertexVisible = true; //显示线的节点 + disline.Style = style; //把风格添加到线上 disline.AltitudeMode = EnumAltitudeMode.Absolute; GSOFeature line = new GSOFeature(); @@ -3186,7 +3249,7 @@ GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = pntIntersect1.X; dismarker.Y = pntIntersect1.Y; - dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2; + dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2; string disStr = distance.ToString("0.00"); if (disStr != "0.00") @@ -3216,7 +3279,9 @@ return dismarker.Position; } + #region wxl + /// /// wxl重构,碰撞分析 /// @@ -3225,7 +3290,8 @@ /// private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames) { - List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames); + List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, + pipelineLayerNames); if (result == null) { selectState = 0; @@ -3245,14 +3311,16 @@ dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name; GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; - if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false) + if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == + false) { GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = featureAnalysisInfo.point1.X; dismarker.Y = featureAnalysisInfo.point1.Y; - dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2; + dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2; dismarker.AltitudeMode = EnumAltitudeMode.Absolute; - m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录 + m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, + dismarker.Position); //添加飞行位置记录 } if (featCount.ContainsKey(feat2Caption)) { @@ -3273,16 +3341,19 @@ } } + /// /// wxl重构,垂直净距分析 /// /// /// /// - private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance) + private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, + double verticalDistance) { - List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames, - verticalDistance); + List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, + selectedFeature, pipelineLayerNames, + verticalDistance); if (result == null) { selectState = 0; @@ -3304,7 +3375,8 @@ GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米"; - GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true); + GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, + featureAnalysisInfo.point2, markerInfo, true); if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false) { m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录 @@ -3342,7 +3414,8 @@ DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y); if (hittestinfo.RowIndex > -1) { - string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); @@ -3399,7 +3472,7 @@ MessageBox.Show("没有不符合净距标准的管线!", "提示"); } - for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++) + for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++) { if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) @@ -3413,7 +3486,9 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + #region wxl 水平净距分析重构 + /// /// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能 /// @@ -3422,8 +3497,9 @@ /// private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis) { - - Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature, + + Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1, + selectedFeature, _pipelineLayerNames, dis); if (featureMap == null) { @@ -3463,6 +3539,7 @@ } } } + #endregion /// @@ -3482,7 +3559,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3492,6 +3569,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 碰撞分析 功能界面中 开始分析按钮 事件处理 /// @@ -3516,7 +3594,7 @@ m_FeaturesWithBianhao.Clear(); globeControl1.Globe.Action = EnumAction3D.ActionNull; Cursor = Cursors.WaitCursor; - if (checkBoxX3.Checked) // 选择管线 + if (checkBoxX3.Checked) // 选择管线 { for (int i = 0; i < dataGridViewX4.Rows.Count; i++) { @@ -3524,7 +3602,7 @@ if (selectedFeature == null) continue; selectState = 1; // VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0); - CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames); + CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames); } } else if (checkBoxX4.Checked) // 选择图层 @@ -3548,7 +3626,8 @@ { if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer)) { - listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米"); + listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + + featLenth[pipelineLayer].ToString("0.00") + "米"); } } } @@ -3564,6 +3643,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 碰撞分析功能界面中 表格的 双击定位 功能 /// @@ -3574,12 +3654,14 @@ if (e.Button != MouseButtons.Left) return; DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y); if (hittestinfo.RowIndex <= -1) return; - string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); } } + /// /// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理 /// @@ -3605,6 +3687,7 @@ comboBoxEx3.Enabled = true; } } + /// /// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理 /// @@ -3628,6 +3711,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理 /// @@ -3653,6 +3737,7 @@ dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 覆土分析功能操作界面中的 开始分析 按钮事件处理 /// @@ -3690,7 +3775,9 @@ { GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature; if (rowFeature == null) continue; - string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name; + string featureName = isFeatureContainsBianhao(rowFeature) + ? rowFeature.GetValue(featureIDFieldName).ToString() + : rowFeature.Name; GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) @@ -3715,28 +3802,32 @@ dataGridViewX7.Rows[idx].Tag = rowFeature; dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } } } } - else if (checkBoxX6.Checked) // 覆土分析 选择图层 + else if (checkBoxX6.Checked) // 覆土分析 选择图层 { GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString()); GSOFeatureLayer flayer = layer as GSOFeatureLayer; - if (flayer == null)return; + if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); for (int i = 0; i < feats.Length; i++) { GSOFeature f = feats[i]; string featureName = ""; - featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name; + featureName = isFeatureContainsBianhao(feats[i]) + ? feats[i].GetValue(featureIDFieldName).ToString() + : feats[i].Name; GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D; if (line == null) continue; GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D; @@ -3752,12 +3843,14 @@ dataGridViewX7.Rows[idx].Tag = f; dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } @@ -3776,6 +3869,7 @@ } Cursor = Cursors.Default; } + /// /// 覆土分析中 表格的 双击定位 功能 /// @@ -3793,7 +3887,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3803,6 +3897,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 覆土分析功能操作界面中的 导出Excel按钮 事件处理 /// @@ -3819,6 +3914,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 覆土分析功能操作界面底部的 关闭 按钮事件处理 /// @@ -3850,6 +3946,7 @@ //Refresh(); } + /// /// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3872,6 +3969,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3894,6 +3992,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析功能界面中 关闭按钮 事件处理 /// @@ -3926,6 +4025,7 @@ Refresh(); } + /// /// 水平净距分析功能界面中 删除缓冲区按钮 事件处理 /// @@ -3954,6 +4054,7 @@ Refresh(); } + /// /// 导出指定DataGridView控件中的内容 /// @@ -4040,6 +4141,7 @@ } } } + /// /// 垂直净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4056,6 +4158,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 水平净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4071,7 +4174,8 @@ { MessageBox.Show("表格内容为空!", "提示"); } - } + } + /// /// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理 /// @@ -4097,6 +4201,7 @@ comboBoxEx2.Enabled = true; } } + /// /// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理 /// @@ -4120,6 +4225,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理 /// @@ -4132,7 +4238,7 @@ dataGridViewX4.Rows.Clear(); dataGridViewX5.Rows.Clear(); GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString()); - + GSOFeatureLayer flayer = layer as GSOFeatureLayer; if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); @@ -4143,6 +4249,7 @@ dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 清除所有图层中的所有feature对象的高亮状态 功能 /// @@ -4180,6 +4287,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } } + /// /// 碰撞分析功能界面中 清除分析结果按钮 事件处理 /// @@ -4201,6 +4309,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 导出Excel按钮 事件处理 /// @@ -4217,6 +4326,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 碰撞分析 功能界面中 关闭按钮 事件处理 /// @@ -4239,6 +4349,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 覆土分析 功能界面中的 清除分析结果 按钮事件处理 /// @@ -4260,6 +4371,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准 /// @@ -4352,9 +4464,13 @@ { for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { - if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) + if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && + featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) { - listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米"); + listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + + "米"); } } } @@ -4370,6 +4486,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 间距分析 清除分析结果 /// @@ -4391,6 +4508,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出 /// @@ -4407,6 +4525,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 间距分析 关闭按钮 /// @@ -4428,6 +4547,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 间距分析 分析结果表格双击定位 /// @@ -4445,8 +4565,9 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); - GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); + GSOPoint3d point3d = + lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5); } @@ -4455,6 +4576,7 @@ } } } + /// /// 间距分析 选择管线复选框 /// @@ -4462,7 +4584,7 @@ /// private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxSelectPipeline.Checked) { comboBoxLayer.SelectedItem = null; @@ -4480,6 +4602,7 @@ comboBoxLayer.Enabled = true; } } + /// /// 间距分析 选择图层复选框 /// @@ -4487,7 +4610,7 @@ /// private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxLayer.Enabled = checkBoxSelectLayer.Checked; if (checkBoxSelectLayer.Checked) { @@ -4502,6 +4625,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 选择图层下拉框 /// @@ -4529,6 +4653,7 @@ } } } + /// /// 碰撞分析 /// @@ -4559,6 +4684,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 覆土分析 /// @@ -4588,6 +4714,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 间距分析 /// @@ -4621,6 +4748,7 @@ Refresh(); } + /// /// 垂直净距分析 /// @@ -4651,6 +4779,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距分析 /// @@ -4681,6 +4810,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 碰撞审查 /// @@ -4713,6 +4843,7 @@ Refresh(); } + /// /// 覆土审查 /// @@ -4743,6 +4874,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距审查 /// @@ -4773,6 +4905,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 垂直净距审查 /// @@ -4811,6 +4944,7 @@ sideBar1.Refresh(); Refresh(); } + #endregion /// @@ -4864,7 +4998,7 @@ node.ImageIndex = 0; node.SelectedImageIndex = 0; node.Checked = layer.Visible; - layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Nodes.Insert(0, node); newlayername = layer.Caption; } else @@ -4889,6 +5023,7 @@ } return objRes; } + /// /// 连接数据库 菜单事件处理 /// @@ -4906,6 +5041,7 @@ } } } + /// /// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中 /// @@ -4934,8 +5070,8 @@ /// private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { - if (e.Button != MouseButtons.Right||e.Node.Parent==null) return; - if (e.Node.Parent.Text.Equals("标注管理") ) + if (e.Button != MouseButtons.Right || e.Node.Parent == null) return; + if (e.Node.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y); @@ -4949,7 +5085,7 @@ } else { - if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return; + if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return; if (e.Node.Parent.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; @@ -4964,6 +5100,7 @@ } } } + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单 /// @@ -4988,14 +5125,14 @@ private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode) { layerTreeNode.Nodes.Clear(); - GSOLayer layer = (GSOLayer)layerTreeNode.Tag; + GSOLayer layer = (GSOLayer) layerTreeNode.Tag; // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中 if (layer.Dataset is GSOFeatureDataset) { VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode); } } - + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单 /// @@ -5011,6 +5148,7 @@ globeControl1.Globe.Refresh(); node.Remove(); } + /// /// 图层目录树的 节点对应的复选框选中状态改变事件处理 /// @@ -5021,10 +5159,10 @@ if (e.Action != TreeViewAction.Unknown) { //wxl优化标注管理树形结构 - TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node); + TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node); } } - + /// /// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单 /// @@ -5039,6 +5177,7 @@ node.Nodes.Clear(); globeControl1.Refresh(); } + /// /// 一键审核---导入数据 /// @@ -5071,6 +5210,7 @@ MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示"); } } + /// ///自动导出图片 /// @@ -5079,7 +5219,7 @@ private void buttonItem130_Click_1(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "导出审核图"); - + Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0)); Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height)); @@ -5096,7 +5236,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -5116,6 +5256,7 @@ } } } + /// /// 一键审核功能 /// @@ -5125,11 +5266,12 @@ { LogManager.saveLog(Utility.userName, buttonItem128.Text); if (boolfrmShResult) - {//关闭等待窗口,否则会一直存在下去 + { +//关闭等待窗口,否则会一直存在下去 MessageBox.Show("正在审核或关闭上次审核结果才能进行审核"); return; } - frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode + frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode if (frmSh.ShowDialog() == DialogResult.OK) { boolfrmShResult = true; @@ -5149,7 +5291,7 @@ { try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer); }); @@ -5170,7 +5312,7 @@ try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { frmShResult.Show(); returnShTap(); @@ -5198,6 +5340,7 @@ if (redLayer != null) redLayer.Visible = false; } + /// /// 清除渲染结果 /// @@ -5215,6 +5358,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 审核入库 /// @@ -5226,6 +5370,7 @@ FrmShRK frmShrk = new FrmShRK(globeControl1); frmShrk.Show(); } + /// /// 模拟设计修改 /// @@ -5243,6 +5388,7 @@ frmModify.Show(); boolfrmModify = true; } + /// /// 一键审核中调节透明度 /// @@ -5259,6 +5405,7 @@ layer.Opaque = 100 - sliderItem1.Value; optiValue = sliderItem1.Value; } + /// /// 红线审核中的透明度分析 /// @@ -5274,9 +5421,12 @@ layer.Opaque = 100 - sliderItem3.Value; optiValue = sliderItem3.Value; } + #region yanxiaowei + //初始化DataGridViewX1控件 public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid); + /// /// 代理函数,操作DatgridViewX1 /// @@ -5301,7 +5451,9 @@ globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注 } } + FrmAnalysisGuiHuaResult from; + /// /// 主窗体下方属性表格 双击定位 功能 /// @@ -5371,6 +5523,7 @@ } } } + /// /// 空间查询 /// @@ -5384,17 +5537,19 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 关键字查询 /// /// /// private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e) - { + { LogManager.saveLog(Utility.userName, "关键字查询"); FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 编号查询 /// @@ -5406,6 +5561,7 @@ FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 坐标查询 /// @@ -5417,6 +5573,7 @@ FrmSetLatLonPos.ShowForm(globeControl1); } + /// /// 附属物查询 /// @@ -5428,6 +5585,7 @@ FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1); } + /// /// 管径查询 /// @@ -5439,6 +5597,7 @@ FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 材质查询 /// @@ -5450,6 +5609,7 @@ FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 基本查询 /// @@ -5461,6 +5621,7 @@ FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 复合查询 /// @@ -5472,6 +5633,7 @@ FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 关联查询 /// @@ -5494,14 +5656,19 @@ GSOLayer layer = null; globeControl1.Globe.GetSelectObject(j, out feature, out layer); - if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D - || feature.Geometry.Type == EnumGeometryType.GeoWater)) + if (feature == null && feature.Geometry == null || + (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D + || feature.Geometry.Type == EnumGeometryType.GeoWater)) return; - ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames, - Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance); + ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, + Utility.workwellLayerNames, + Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, + valueAllowance); } } + #endregion + /// /// 清除分析(完善) /// @@ -5531,14 +5698,14 @@ NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1); - globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线 + globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线 // ClearUpDownTraceAnalysis(); //清除上下游分析 - globeControl1.Globe.RemoveAllPits();//清除所有坑 - MarkTools.removeAllMarker(globeControl1);//清除所有标注 - clearFeatureHighLight();//取消管线高亮 + globeControl1.Globe.RemoveAllPits(); //清除所有坑 + MarkTools.removeAllMarker(globeControl1); //清除所有标注 + clearFeatureHighLight(); //取消管线高亮 - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layerGround != null) { layerGround.Visible = true; @@ -5549,6 +5716,7 @@ globeControl1.Refresh(); globeControl2.Refresh(); } + /// /// 管线长度全区域统计 /// @@ -5557,9 +5725,11 @@ private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "管线长度统计"); - FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 管线长度绘制区域统计 /// @@ -5573,6 +5743,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 阀门数量全区域统计 /// @@ -5586,6 +5757,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } + /// /// 阀门数量绘制区域统计 /// @@ -5599,6 +5771,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 井盖数量全区域统计 /// @@ -5609,6 +5782,7 @@ FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1); frm.Show(this); } + /// /// 井盖数量绘制区域统计 /// @@ -5622,6 +5796,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 管径分段统计全区域统计 /// @@ -5633,6 +5808,7 @@ Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分段统计绘制区域统计 /// @@ -5645,6 +5821,7 @@ trackflag = null; Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 埋深分段统计全区域统计 /// @@ -5655,6 +5832,7 @@ LogManager.saveLog(Utility.userName, "埋深分段统计"); FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 埋深分段统计绘制区域统计 /// @@ -5666,6 +5844,7 @@ trackflag = null; FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 管径分类统计全区域统计 /// @@ -5677,6 +5856,7 @@ FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分类统计绘制区域统计 /// @@ -5689,6 +5869,7 @@ trackflag = null; FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 材质分类统计全区域统计 /// @@ -5700,6 +5881,7 @@ FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 材质分类统计绘制区域统计 /// @@ -5712,6 +5894,7 @@ trackflag = null; FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 附属物分类统计全区域统计 /// @@ -5723,6 +5906,7 @@ FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0); } + /// /// 附属物分类统计绘制区域统计 /// @@ -5735,7 +5919,9 @@ trackflag = null; FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1); } + #region Predaotr,断面分析 + /// /// 横断面分析 /// @@ -5748,6 +5934,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis; } + /// /// 纵断面分析 /// @@ -5767,7 +5954,8 @@ GSOFeature feature; GSOLayer layer; globeControl1.Globe.GetSelectObject(i, out feature, out layer); - if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) + if (feature != null && feature.Geometry != null && + feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) { selectFeatures.Add(feature); } @@ -5777,6 +5965,7 @@ FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats); frm.Show(this); } + /// /// 道路断面分析 /// @@ -5789,6 +5978,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis; } + /// /// 基线剖面分析 /// @@ -5801,7 +5991,9 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis; } + #endregion + /// /// 创建拓扑 /// @@ -5815,7 +6007,9 @@ FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1); frm.Show(this); } + #region Predator :拓扑分析 + /// /// 上游分析 /// @@ -5827,6 +6021,7 @@ LogManager.saveLog(Utility.userName, "上游分析"); NetworkTraceUpDown(true); } + /// /// 下游分析 /// @@ -5838,6 +6033,7 @@ LogManager.saveLog(Utility.userName, "下游分析"); NetworkTraceUpDown(false); } + /// /// 上下游追踪 功能 /// @@ -5845,7 +6041,8 @@ private void NetworkTraceUpDown(Boolean bTraceUp) { GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5853,8 +6050,9 @@ GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer; NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp, - selLineFeature, selLayer); + selLineFeature, selLayer); } + /// /// 流向分析 /// @@ -5868,6 +6066,7 @@ FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 关阀分析 /// @@ -5907,6 +6106,7 @@ MessageBox.Show("未找到关闭阀门"); } } + /// /// 连通分析 /// @@ -5933,6 +6133,7 @@ } NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0); } + /// /// 爆管分析 /// @@ -5940,10 +6141,11 @@ /// private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e) { - NetworkTraceUpDown(true); //上游追踪: + NetworkTraceUpDown(true); //上游追踪: GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5954,7 +6156,9 @@ 关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析: } + #endregion + /// /// 多边形开挖 /// @@ -5968,6 +6172,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上 } + /// /// 挖方量分析 /// @@ -5981,6 +6186,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 沿线开挖 /// @@ -5994,6 +6200,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis; } + /// /// 创建隧道 /// @@ -6012,9 +6219,9 @@ globeControl1.Globe.DestLayerFeatureAdd = tunnel; tunnel.Editable = true; enumDesignMode = EnumDesignMode.AddTunnel; - } } + /// /// 隐藏隧道 /// @@ -6030,6 +6237,7 @@ layer.Visible = !layer.Visible; } } + /// /// 删除隧道 /// @@ -6066,6 +6274,7 @@ MessageBox.Show("请选中要删除的隧道!", "提示"); } } + /// /// 通视分析 /// @@ -6076,8 +6285,11 @@ //日志记录 LogManager.saveLog(Utility.userName, "通视分析"); - globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull; + globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis + ? EnumAction3D.VisibilityAnalysis + : EnumAction3D.ActionNull; } + /// /// 可视域分析 /// @@ -6089,6 +6301,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis; } + /// /// 可视包络分析 /// @@ -6100,6 +6313,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis; } + /// /// 缓冲区分析 /// @@ -6134,6 +6348,7 @@ } } + /// /// 附属物分析 /// @@ -6147,6 +6362,7 @@ FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp); dlg.Show(this); } + /// /// 无源淹没分析 /// @@ -6159,6 +6375,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; trackflag = "FloodAnalysis"; } + /// /// 水平距离 /// @@ -6173,6 +6390,7 @@ globeControl1.Globe.DistanceRuler.SpaceMeasure = false; 高度量算ToolStripMenuItem1.Checked = false; } + /// /// 垂直距离 /// @@ -6187,6 +6405,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureHeight; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 空间距离 /// @@ -6201,6 +6420,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = true; } + /// /// 地表距离 /// @@ -6215,6 +6435,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 高度量算 /// @@ -6230,6 +6451,7 @@ if (!高度量算ToolStripMenuItem1.Checked) return; globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 水平面积 /// @@ -6244,6 +6466,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureArea; globeControl1.Globe.AreaRuler.SpaceMeasure = true; } + /// /// 地表面积 /// @@ -6261,6 +6484,7 @@ } # region Fan 重构标注代码 + /// /// 标高标注 /// @@ -6283,6 +6507,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Altitude, ""); } + /// /// 管径标注 /// @@ -6302,8 +6527,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Diameter, ""); + globeControl1, EnumMarkLayer.Mark_Diameter, ""); } + /// /// 埋深标注 /// @@ -6327,6 +6553,7 @@ globeControl1, EnumMarkLayer.Mark_Depth, ""); } + /// /// 坐标标注 /// @@ -6348,6 +6575,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Location, ""); } + /// /// 距离标注 /// @@ -6361,6 +6589,7 @@ trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis; } + /// /// 自定义标注 /// @@ -6376,6 +6605,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText); } } + /// /// 扯旗标注 /// @@ -6391,6 +6621,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent); } } + /// /// 坡度标注 /// @@ -6411,8 +6642,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Slope, ""); + globeControl1, EnumMarkLayer.Mark_Slope, ""); } + /// /// 属性标注 /// @@ -6428,6 +6660,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText); } } + /// /// 标注管理 /// @@ -6490,6 +6723,7 @@ } #endregion + /// /// 飞行到目标点 /// @@ -6502,6 +6736,7 @@ FrmSetFlytoPos.ShowForm(globeControl1); } + /// /// 自定义飞行 /// @@ -6539,6 +6774,7 @@ globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false); } } + /// /// 绕中心点飞行 /// @@ -6552,6 +6788,7 @@ globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds); globeControl1.Globe.CurFlyID = 1; } + /// /// 绕眼睛飞行 /// @@ -6565,6 +6802,7 @@ globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees); globeControl1.Globe.CurFlyID = 2; } + /// /// 权限管理 /// @@ -6578,6 +6816,7 @@ FrmUserRoleMgr frm = new FrmUserRoleMgr(); frm.ShowDialog(); } + /// /// 数据库管理 /// @@ -6592,6 +6831,7 @@ FrmDbManager frm = new FrmDbManager(); frm.ShowDialog(); } + /// /// 用户列表 /// @@ -6605,6 +6845,7 @@ FrmUserManager frm = new FrmUserManager(); frm.ShowDialog(); } + /// /// 创建新用户 /// @@ -6618,6 +6859,7 @@ FrmUserAdd frm = new FrmUserAdd(-1); frm.ShowDialog(); } + /// /// 人员修改 /// @@ -6631,6 +6873,7 @@ FrmAppUSER appUser = new FrmAppUSER(); appUser.ShowDialog(); } + /// /// 增加人员 /// @@ -6644,6 +6887,7 @@ FrmAppUSERRESET appUserReset = new FrmAppUSERRESET(); appUserReset.ShowDialog(); } + /// /// 热点功能统计 /// @@ -6738,6 +6982,7 @@ FrmAPPregion appregion = new FrmAPPregion("拷贝审核"); appregion.Show(); } + private void buttonItemSPSZ_Click(object sender, EventArgs e) { //日志记录 @@ -6746,6 +6991,7 @@ FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2); frm.Show(this); } + /// /// 综合规划区域审查 /// @@ -6758,6 +7004,7 @@ FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 数据质量检查 /// @@ -6770,6 +7017,7 @@ FrmValiData frm = new FrmValiData(globeControl1); frm.ShowDialog(); } + /// /// 数据预处理 /// @@ -6783,6 +7031,7 @@ FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1); frm.ShowDialog(this); } + /// /// 连接数据库 /// @@ -6803,6 +7052,7 @@ } } } + /// /// 管线入库 /// @@ -6827,6 +7077,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 附属物入库 /// @@ -6852,6 +7103,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 坐标转换 /// @@ -6865,6 +7117,7 @@ FrmProject frm = new FrmProject(); frm.ShowDialog(); } + /// /// 元数据基本管理 /// @@ -6878,6 +7131,7 @@ FrmMetadata frmmd = new FrmMetadata(); frmmd.ShowDialog(); } + /// /// 元数据查询管理 /// @@ -6891,6 +7145,7 @@ FrmMetadataStat frmmds = new FrmMetadataStat(); frmmds.ShowDialog(); } + /// /// 操作日志管理 /// @@ -6904,6 +7159,7 @@ FrmLogOper frmlo = new FrmLogOper(); frmlo.ShowDialog(); } + /// /// 数据字典管理 /// @@ -6917,6 +7173,7 @@ FrmMDDictory frmmdd = new FrmMDDictory(); frmmdd.ShowDialog(); } + /// /// 数据库备份 /// @@ -6931,7 +7188,9 @@ FrmBACKORACLE backOracle = new FrmBACKORACLE(); backOracle.Show(); } + #region 模拟规划:Fan + /// /// 创建管段 /// @@ -6949,6 +7208,7 @@ globeControl1.Globe.Action = EnumAction3D.DrawPolyline; } } + /// /// 创建附属物 /// @@ -6968,6 +7228,7 @@ dlg.Show(this); } } + /// /// 创建特征管点 /// @@ -6987,6 +7248,7 @@ dlg.Show(this); } } + /// /// 绘制城市七线 /// @@ -7013,7 +7275,9 @@ layer.Editable = true; } } + #endregion + /// /// 选中对象 /// @@ -7026,6 +7290,7 @@ globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 平移对象 /// @@ -7038,6 +7303,7 @@ globeControl1.Globe.Action = EnumAction3D.MoveObject; } + /// /// 升降对象 /// @@ -7050,6 +7316,7 @@ globeControl1.Globe.Action = EnumAction3D.ElevateObject; } + /// /// 旋转对象 /// @@ -7062,6 +7329,7 @@ globeControl1.Globe.Action = EnumAction3D.RotateObject; } + /// /// 连接管段 /// @@ -7079,6 +7347,7 @@ } globeControl1.Globe.InsertJointPipeline(false); } + /// /// 后退 /// @@ -7089,6 +7358,7 @@ LogManager.saveLog(Utility.userName, "后退"); globeControl1.Globe.UnDoEdit(); } + /// /// 前进 /// @@ -7100,6 +7370,7 @@ globeControl1.Globe.ReDoEdit(); } + /// /// 导出CAD /// @@ -7111,13 +7382,14 @@ LogManager.saveLog(Utility.userName, "导出CAD"); #region 导出成dxf格式 + List listVectorNames = new List(); for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通" - || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" - || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" - || Utility.m_PipelineLayerNames[i] == "供电") + || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" + || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" + || Utility.m_PipelineLayerNames[i] == "供电") { continue; } @@ -7155,10 +7427,12 @@ } } - FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames); + FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames); frm.ShowDialog(); + #endregion } + /// /// 导出矢量 /// @@ -7231,14 +7505,14 @@ globeControl1.Globe.GetSelectObject(i, out f, out layer); if (layer != null) globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete); - bool result = FeatureTools.DeleteFeature(f); + bool result = FeatureTools.DeleteFeature(f); if (result) delSuccessCount++; globeControl1.Refresh(); - + } - MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示"); + MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示"); globeControl1.Globe.Action = EnumAction3D.ActionNull; } @@ -7279,6 +7553,7 @@ LogHelper.WriteLog(typeof(MainFrm), ex); } } + void addRedLineDataToDataGridView(List dt, DataGridView dataGridView) { DataTable table = new DataTable(); @@ -7345,12 +7620,12 @@ LogManager.saveLog(Utility.userName, sliderItem2.Text); globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; } - layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; @@ -7359,6 +7634,7 @@ optiValue = sliderItem2.Value; } + /// /// 数据管理导入文件 /// @@ -7370,7 +7646,8 @@ LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text); OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; dlg.Multiselect = true; if (dlg.ShowDialog() == DialogResult.OK) { @@ -7402,6 +7679,7 @@ } } } + /// /// 导入红线(完善) /// @@ -7411,14 +7689,19 @@ { LogManager.saveLog(Utility.userName, buttonItemHX1.Text); - GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword); + GSODataSource dataSpace = + globeControl1.Globe.DataManager.OpenOracleDataSource( + Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, + Utility.DBPassword); string filepath = ""; //日志记录 OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; dlg.Multiselect = true; #region 临时图层显示 + if (dlg.ShowDialog() == DialogResult.OK) { #region @@ -7429,7 +7712,8 @@ GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath); if (layer == null) - {//wxl + { +//wxl LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空"); continue; } @@ -7438,7 +7722,7 @@ layerRedRegion = layer; // CheckDatasetGeoReference(layer.Dataset, strDataPath); bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath); - if (!checkresult) continue;//wxl 没通过检查,跳过此次循环 + if (!checkresult) continue; //wxl 没通过检查,跳过此次循环 TreeNode node = new TreeNode(); node.Tag = layer; node.Text = layer.Dataset.Caption; @@ -7482,7 +7766,8 @@ globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); + GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (roadlayer != null) { roadlayer.Opaque = 100 - sliderGroundTransSet1.Value; @@ -7502,8 +7787,10 @@ #endregion } + #endregion } + /// /// 定位 /// @@ -7516,6 +7803,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2); fly.Show(this); } + /// /// 红线审核 /// @@ -7529,7 +7817,8 @@ globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent; globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent; - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, + -4, 50, 800); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; globeControl1.Refresh(); @@ -7551,6 +7840,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础工具 /// @@ -7582,6 +7872,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 一键审核 /// @@ -7613,7 +7904,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - + /// /// 双屏对比 /// @@ -7647,6 +7938,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 文档管理 /// @@ -7678,6 +7970,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础管理 /// @@ -7709,6 +8002,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 权限管理 /// @@ -7754,6 +8048,7 @@ int width = Width; FrmCompareFeature.ShowForm(globeControl1, globeControl2, width); } + /// /// 红线审核导出图片 /// @@ -7779,7 +8074,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -7799,6 +8094,7 @@ } } } + /// /// 标识器全区域统计 /// @@ -7810,6 +8106,7 @@ FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null); bsqStatis.Show(this); } + /// /// 标识器绘制区域统计 /// @@ -7844,6 +8141,7 @@ globeControl1.Refresh(); } } + /// /// 规划数据入库 /// @@ -7905,7 +8203,7 @@ frm.ShowDialog(); } } - + //文档管理 操作 private void btn_document_info_Click(object sender, EventArgs e) { @@ -7945,7 +8243,8 @@ GSORect2d rd = lyr.LatLonBounds; GSOPoint2d rdcenter = rd.Center; - globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100); + globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, + 100); globeControl1.Refresh(); } @@ -8016,6 +8315,7 @@ } #region 右屏管纵数据控制 + private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e) { lendendGZ50.Visible = true; @@ -8108,6 +8408,7 @@ lendendGZ24_2.Visible = false; lendendGZ24_3.Visible = false; } + #endregion private void buttonItemPasswordReset_Click(object sender, EventArgs e) @@ -8117,10 +8418,32 @@ } private void pictureBox1_Paint(object sender, PaintEventArgs e) - { + { string welcomeUser = "欢迎您:" + Utility.userName; e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50); } + //电子标识系统合并 + private void btn_flag_Click(object sender, EventArgs e) + { + if (FrmFlagManagers.IS_OPEN) + { + return; + } + FrmFlagManagers frm = new FrmFlagManagers(globeControl1); + frm.Show(this); + } + + private void slider4ground_ValueChanged(object sender, EventArgs e) + { + LogManager.saveLog(Utility.userName, slider4ground.Text); + + globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value; + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + if (layer != null) + layer.Opaque = 100 - slider4ground.Value; + optiValue = slider4ground.Value; + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 1495bcd..b086c69 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -89,6 +89,7 @@ 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(); @@ -243,6 +244,23 @@ this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl(); + this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_flag = new DevComponents.DotNetBar.ButtonItem(); + this.slider4ground = new DevComponents.DotNetBar.SliderItem(); + this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_document_info = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); + this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem(); + this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem(); this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem(); @@ -254,19 +272,15 @@ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem(); this.btn_check_history = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel5 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItemHX1 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem(); - this.sliderItem3 = new DevComponents.DotNetBar.SliderItem(); - this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemLocation = new DevComponents.DotNetBar.ButtonItem(); - this.sliderItem2 = new DevComponents.DotNetBar.SliderItem(); - this.buttonItemGBJC = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_user_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_role_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem(); + this.btn_user_role = new DevComponents.DotNetBar.ButtonItem(); + this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem(); this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem(); @@ -322,28 +336,19 @@ this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); - this.btn_user_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_role_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem(); - this.btn_user_role = new DevComponents.DotNetBar.ButtonItem(); - this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); - this.btn_document_info = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); - this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem(); - this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemLocation = new DevComponents.DotNetBar.ButtonItem(); + this.sliderItem2 = new DevComponents.DotNetBar.SliderItem(); + this.buttonItemGBJC = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel5 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItemHX1 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem(); + this.sliderItem3 = new DevComponents.DotNetBar.SliderItem(); this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem(); @@ -351,6 +356,7 @@ this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem(); + this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem(); this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem(); @@ -528,7 +534,6 @@ this.labelX16 = new DevComponents.DotNetBar.LabelX(); this.labelX17 = new DevComponents.DotNetBar.LabelX(); this.panelEx4 = new DevComponents.DotNetBar.PanelEx(); - this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -539,13 +544,14 @@ this.contextMenuStrip3.SuspendLayout(); this.contextMenuStripDeleteLayerNode.SuspendLayout(); this.ribbonControl1.SuspendLayout(); - this.ribbonPanel12.SuspendLayout(); - this.ribbonPanel5.SuspendLayout(); - this.ribbonPanel6.SuspendLayout(); - this.ribbonPanel15.SuspendLayout(); - this.ribbonPanel2.SuspendLayout(); + this.ribbonPanel3.SuspendLayout(); this.ribbonPanel4.SuspendLayout(); this.ribbonPanel1.SuspendLayout(); + this.ribbonPanel12.SuspendLayout(); + this.ribbonPanel2.SuspendLayout(); + this.ribbonPanel15.SuspendLayout(); + this.ribbonPanel6.SuspendLayout(); + this.ribbonPanel5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.panelOfTable.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit(); @@ -966,6 +972,18 @@ this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); this.layerSensorTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); // + // 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); + this.layerTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseClick); + this.layerTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); + // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2158,13 +2176,14 @@ // 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.ribbonPanel4); + this.ribbonControl1.Controls.Add(this.ribbonPanel1); + this.ribbonControl1.Controls.Add(this.ribbonPanel12); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Controls.Add(this.ribbonPanel6); this.ribbonControl1.Controls.Add(this.ribbonPanel5); - this.ribbonControl1.Controls.Add(this.ribbonPanel12); - this.ribbonControl1.Controls.Add(this.ribbonPanel1); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -2174,7 +2193,8 @@ this.ribbonTabItem9, this.ribbonTabItem4, this.ribbonTabItem14, - this.ribbonTabItem2}); + this.ribbonTabItem2, + this.ribbonTabItemBSQ}); this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F); this.ribbonControl1.Location = new System.Drawing.Point(0, 82); this.ribbonControl1.MdiSystemItemVisible = false; @@ -2206,6 +2226,302 @@ this.ribbonControl1.Text = "ribbonControl1"; this.ribbonControl1.UseCustomizeDialog = false; // + // ribbonPanel3 + // + this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel3.Controls.Add(this.ribbonBar4); + this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + 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.Style.Class = ""; + this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel3.StyleMouseDown.Class = ""; + this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel3.StyleMouseOver.Class = ""; + this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel3.TabIndex = 40; + // + // ribbonBar4 + // + this.ribbonBar4.AutoOverflowEnabled = true; + // + // + // + this.ribbonBar4.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar4.BackgroundStyle.Class = ""; + this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar4.ContainerControlProcessDialogKey = true; + this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_flag, + this.slider4ground}); + this.ribbonBar4.Location = new System.Drawing.Point(3, 0); + this.ribbonBar4.Name = "ribbonBar4"; + this.ribbonBar4.Size = new System.Drawing.Size(304, 59); + this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar4.TabIndex = 0; + // + // + // + this.ribbonBar4.TitleStyle.Class = ""; + this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar4.TitleStyleMouseOver.Class = ""; + this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar4.TitleVisible = false; + // + // btn_flag + // + this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover; + this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_flag.Name = "btn_flag"; + this.btn_flag.SubItemsExpandWidth = 14; + this.btn_flag.Text = "标识器管理"; + this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click); + // + // slider4ground + // + this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.slider4ground.LabelWidth = 50; + this.slider4ground.Name = "slider4ground"; + this.slider4ground.Text = "地面透明度"; + this.slider4ground.TextColor = System.Drawing.Color.Black; + this.slider4ground.Value = 0; + this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged); + // + // ribbonPanel4 + // + this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel4.Controls.Add(this.ribbonBar1); + this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel4.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel4.Name = "ribbonPanel4"; + this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95); + // + // + // + this.ribbonPanel4.Style.Class = ""; + this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel4.StyleMouseDown.Class = ""; + this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel4.StyleMouseOver.Class = ""; + this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel4.TabIndex = 36; + this.ribbonPanel4.Visible = false; + // + // ribbonBar1 + // + this.ribbonBar1.AutoOverflowEnabled = true; + // + // + // + this.ribbonBar1.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar1.BackgroundStyle.Class = ""; + this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar1.ContainerControlProcessDialogKey = true; + this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_document_info}); + this.ribbonBar1.Location = new System.Drawing.Point(3, 0); + this.ribbonBar1.Name = "ribbonBar1"; + this.ribbonBar1.Size = new System.Drawing.Size(88, 92); + this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar1.TabIndex = 0; + // + // + // + this.ribbonBar1.TitleStyle.Class = ""; + this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar1.TitleStyleMouseOver.Class = ""; + this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar1.TitleVisible = false; + // + // btn_document_info + // + this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image"))); + this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_document_info.Name = "btn_document_info"; + this.btn_document_info.SubItemsExpandWidth = 14; + this.btn_document_info.Text = "文档管理"; + this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click); + // + // ribbonPanel1 + // + this.ribbonPanel1.AutoSize = true; + this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray; + 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.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.Style.Class = ""; + this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel1.StyleMouseDown.Class = ""; + this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel1.StyleMouseOver.Class = ""; + this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel1.TabIndex = 1; + this.ribbonPanel1.Visible = false; + // + // ribbonBar21 + // + this.ribbonBar21.AutoOverflowEnabled = true; + this.ribbonBar21.BackColor = System.Drawing.Color.White; + // + // + // + this.ribbonBar21.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar21.BackgroundStyle.Class = ""; + this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar21.ContainerControlProcessDialogKey = true; + this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItem87, + this.buttonItem88, + this.buttonItem27, + this.sliderGroundTransSet1, + this.buttonItem91, + this.buttonItem1, + this.btnlegendSet, + this.buttonItem89, + this.btnOutputJPG}); + this.ribbonBar21.Location = new System.Drawing.Point(3, 0); + this.ribbonBar21.Name = "ribbonBar21"; + this.ribbonBar21.Size = new System.Drawing.Size(649, 59); + this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar21.TabIndex = 2; + this.ribbonBar21.Text = "浏览模式"; + // + // + // + this.ribbonBar21.TitleStyle.Class = ""; + this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar21.TitleStyleMouseOver.Class = ""; + this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar21.TitleVisible = false; + // + // buttonItem87 + // + this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image"))); + this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem87.Name = "buttonItem87"; + this.buttonItem87.SubItemsExpandWidth = 14; + this.buttonItem87.Text = "地上模式"; + this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click); + // + // buttonItem88 + // + this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image"))); + this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem88.Name = "buttonItem88"; + this.buttonItem88.SubItemsExpandWidth = 14; + this.buttonItem88.Text = "地下模式"; + this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click); + // + // buttonItem27 + // + this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image"))); + this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem27.Name = "buttonItem27"; + this.buttonItem27.SubItemsExpandWidth = 14; + this.buttonItem27.Text = "行走模式"; + this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click); + // + // buttonItem91 + // + this.buttonItem91.ForeColor = System.Drawing.Color.Black; + this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image"))); + this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem91.Name = "buttonItem91"; + this.buttonItem91.SubItemsExpandWidth = 14; + this.buttonItem91.Text = "快速定位"; + this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click); + // + // buttonItem1 + // + this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image"))); + this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem1.Name = "buttonItem1"; + this.buttonItem1.SubItemsExpandWidth = 14; + this.buttonItem1.Text = "图层管理"; + this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click); + // + // btnlegendSet + // + this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image"))); + this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btnlegendSet.Name = "btnlegendSet"; + this.btnlegendSet.SubItemsExpandWidth = 14; + this.btnlegendSet.Text = "图例"; + this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click); + // + // buttonItem89 + // + this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image"))); + this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem89.Name = "buttonItem89"; + this.buttonItem89.SubItemsExpandWidth = 14; + this.buttonItem89.Text = "全屏显示"; + this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click); + // + // btnOutputJPG + // + this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image"))); + this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btnOutputJPG.Name = "btnOutputJPG"; + this.btnOutputJPG.SubItemsExpandWidth = 14; + this.btnOutputJPG.Text = "导出图片"; + this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click); + // // ribbonPanel12 // this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -2376,228 +2692,146 @@ this.btn_check_history.Text = "审核历史"; this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click); // - // ribbonPanel5 + // ribbonPanel2 // - this.ribbonPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel5.Controls.Add(this.ribbonBar2); - this.ribbonPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel5.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel5.Name = "ribbonPanel5"; - this.ribbonPanel5.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel5.Size = new System.Drawing.Size(1328, 95); + this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel2.Controls.Add(this.ribbonBar3); + this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + 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, 95); // // // - this.ribbonPanel5.Style.Class = ""; - this.ribbonPanel5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.Style.Class = ""; + this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel5.StyleMouseDown.Class = ""; - this.ribbonPanel5.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.StyleMouseDown.Class = ""; + this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel5.StyleMouseOver.Class = ""; - this.ribbonPanel5.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel5.TabIndex = 37; - this.ribbonPanel5.Visible = false; + this.ribbonPanel2.StyleMouseOver.Class = ""; + this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.TabIndex = 39; + this.ribbonPanel2.Visible = false; // - // ribbonBar2 + // ribbonBar3 // - this.ribbonBar2.AutoOverflowEnabled = true; + this.ribbonBar3.AutoOverflowEnabled = true; // // // - this.ribbonBar2.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar2.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar2.BackgroundStyle.Class = ""; - this.ribbonBar2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar2.ContainerControlProcessDialogKey = true; - this.ribbonBar2.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItemHX1, - this.buttonItemHX2, - this.buttonItemDCTP, - this.sliderItem3}); - this.ribbonBar2.Location = new System.Drawing.Point(3, 0); - this.ribbonBar2.Name = "ribbonBar2"; - this.ribbonBar2.Size = new System.Drawing.Size(350, 92); - this.ribbonBar2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar2.TabIndex = 0; + this.ribbonBar3.BackgroundStyle.Class = ""; + this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.ContainerControlProcessDialogKey = true; + this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_user_info, + this.btn_role_info, + this.btn_resc_info, + this.btn_role_resc, + this.btn_user_role, + this.btn_password_edit, + this.buttonItemPasswordReset}); + this.ribbonBar3.Location = new System.Drawing.Point(3, 0); + this.ribbonBar3.Name = "ribbonBar3"; + this.ribbonBar3.Size = new System.Drawing.Size(551, 92); + this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar3.TabIndex = 1; // // // - this.ribbonBar2.TitleStyle.Class = ""; - this.ribbonBar2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.TitleStyle.Class = ""; + this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar2.TitleStyleMouseOver.Class = ""; - this.ribbonBar2.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar2.TitleVisible = false; + this.ribbonBar3.TitleStyleMouseOver.Class = ""; + this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.TitleVisible = false; // - // buttonItemHX1 + // btn_user_info // - this.buttonItemHX1.AutoExpandOnClick = true; - this.buttonItemHX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX1.Image"))); - this.buttonItemHX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemHX1.Name = "buttonItemHX1"; - this.buttonItemHX1.SubItemsExpandWidth = 14; - this.buttonItemHX1.Text = "导入红线"; - this.buttonItemHX1.Click += new System.EventHandler(this.buttonItemHX1_Click); + this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image"))); + this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_user_info.Name = "btn_user_info"; + this.btn_user_info.SubItemsExpandWidth = 14; + this.btn_user_info.Text = "用户管理"; + this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click); // - // buttonItemHX2 + // btn_role_info // - this.buttonItemHX2.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX2.Image"))); - this.buttonItemHX2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemHX2.Name = "buttonItemHX2"; - this.buttonItemHX2.SubItemsExpandWidth = 14; - this.buttonItemHX2.Text = "红线审核"; - this.buttonItemHX2.Click += new System.EventHandler(this.buttonItemHX2_Click); + this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image"))); + this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_role_info.Name = "btn_role_info"; + this.btn_role_info.SubItemsExpandWidth = 14; + this.btn_role_info.Text = "角色管理"; + this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click); // - // buttonItemDCTP + // btn_resc_info // - this.buttonItemDCTP.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemDCTP.Image"))); - this.buttonItemDCTP.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemDCTP.Name = "buttonItemDCTP"; - this.buttonItemDCTP.SubItemsExpandWidth = 14; - this.buttonItemDCTP.Text = "导出图片"; - this.buttonItemDCTP.Click += new System.EventHandler(this.buttonItemDCTP_Click); + this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image"))); + this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_resc_info.Name = "btn_resc_info"; + this.btn_resc_info.SubItemsExpandWidth = 14; + this.btn_resc_info.Text = "资源管理"; + this.btn_resc_info.Visible = false; + this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click); // - // sliderItem3 + // btn_role_resc // - this.sliderItem3.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; - this.sliderItem3.LabelWidth = 50; - this.sliderItem3.Name = "sliderItem3"; - this.sliderItem3.Text = "地面透明度"; - this.sliderItem3.TextColor = System.Drawing.Color.Black; - this.sliderItem3.Value = 0; - this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged); - // - // ribbonPanel6 - // - this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel6.Controls.Add(this.ribbonBar6); - this.ribbonPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel6.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel6.Name = "ribbonPanel6"; - this.ribbonPanel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel6.Size = new System.Drawing.Size(1328, 95); - // - // - // - this.ribbonPanel6.Style.Class = ""; - this.ribbonPanel6.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel6.StyleMouseDown.Class = ""; - this.ribbonPanel6.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel6.StyleMouseOver.Class = ""; - this.ribbonPanel6.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel6.TabIndex = 38; - this.ribbonPanel6.Visible = false; - // - // ribbonBar6 - // - this.ribbonBar6.AutoOverflowEnabled = true; - // - // - // - this.ribbonBar6.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar6.BackgroundStyle.Class = ""; - this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar6.ContainerControlProcessDialogKey = true; - this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItemSPSZ, - this.buttonItem8, - this.buttonItemLocation, - this.sliderItem2, - this.buttonItemGBJC}); - this.ribbonBar6.Location = new System.Drawing.Point(3, 0); - this.ribbonBar6.Name = "ribbonBar6"; - this.ribbonBar6.Size = new System.Drawing.Size(427, 92); - this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar6.TabIndex = 0; - // - // - // - this.ribbonBar6.TitleStyle.Class = ""; - this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar6.TitleStyleMouseOver.Class = ""; - this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar6.TitleVisible = false; - // - // buttonItemSPSZ - // - this.buttonItemSPSZ.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemSPSZ.Image"))); - this.buttonItemSPSZ.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemSPSZ.Name = "buttonItemSPSZ"; - this.buttonItemSPSZ.SubItemsExpandWidth = 14; - this.buttonItemSPSZ.Text = "双屏设置"; - this.buttonItemSPSZ.Click += new System.EventHandler(this.buttonItemSPSZ_Click); - // - // buttonItem8 - // - this.buttonItem8.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem8.Image"))); - this.buttonItem8.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem8.Name = "buttonItem8"; - this.buttonItem8.SubItemsExpandWidth = 14; - this.buttonItem8.Text = "双屏分析"; - this.buttonItem8.Click += new System.EventHandler(this.buttonItem8_Click); + this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image"))); + this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_role_resc.Name = "btn_role_resc"; + this.btn_role_resc.SubItemsExpandWidth = 14; + this.btn_role_resc.Text = "角色授权"; + this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click); // - // buttonItemLocation + // btn_user_role // - this.buttonItemLocation.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemLocation.Image"))); - this.buttonItemLocation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemLocation.Name = "buttonItemLocation"; - this.buttonItemLocation.SubItemsExpandWidth = 14; - this.buttonItemLocation.Text = "快速定位"; - this.buttonItemLocation.Click += new System.EventHandler(this.buttonItemLocation_Click); + this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image"))); + this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_user_role.Name = "btn_user_role"; + this.btn_user_role.SubItemsExpandWidth = 14; + this.btn_user_role.Text = "用户授权"; + this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click); // - // sliderItem2 + // btn_password_edit // - this.sliderItem2.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; - this.sliderItem2.LabelWidth = 50; - this.sliderItem2.Name = "sliderItem2"; - this.sliderItem2.Text = "地面透明度"; - this.sliderItem2.TextColor = System.Drawing.Color.Black; - this.sliderItem2.Value = 0; - this.sliderItem2.ValueChanged += new System.EventHandler(this.sliderItem2_ValueChanged); + this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image"))); + this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_password_edit.Name = "btn_password_edit"; + this.btn_password_edit.SubItemsExpandWidth = 14; + this.btn_password_edit.Text = "密码修改"; + this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click); // - // buttonItemGBJC + // buttonItemPasswordReset // - this.buttonItemGBJC.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemGBJC.Image"))); - this.buttonItemGBJC.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemGBJC.Name = "buttonItemGBJC"; - this.buttonItemGBJC.SubItemsExpandWidth = 14; - this.buttonItemGBJC.Text = "国标检测"; - this.buttonItemGBJC.Click += new System.EventHandler(this.buttonItemGBJC_Click); + this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image"))); + this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemPasswordReset.Name = "buttonItemPasswordReset"; + this.buttonItemPasswordReset.SubItemsExpandWidth = 14; + this.buttonItemPasswordReset.Text = "重置密码"; + this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click); // // ribbonPanel15 // this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel15.Controls.Add(this.ribbonBar20); this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel15.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel15.Location = new System.Drawing.Point(0, 0); this.ribbonPanel15.Name = "ribbonPanel15"; this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95); // // // @@ -2614,6 +2848,7 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; + this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -2637,7 +2872,7 @@ this.buttonItemXTGL}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(283, 59); + this.ribbonBar20.Size = new System.Drawing.Size(283, 92); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -3068,352 +3303,218 @@ this.buttonItemXT4_2.Text = "人员修改"; this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click); // - // ribbonPanel2 + // ribbonPanel6 // - this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel2.Controls.Add(this.ribbonBar3); - this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); - 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.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel6.Controls.Add(this.ribbonBar6); + this.ribbonPanel6.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel6.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel6.Name = "ribbonPanel6"; + this.ribbonPanel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel6.Size = new System.Drawing.Size(1328, 95); // // // - this.ribbonPanel2.Style.Class = ""; - this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.Style.Class = ""; + this.ribbonPanel6.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel2.StyleMouseDown.Class = ""; - this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.StyleMouseDown.Class = ""; + this.ribbonPanel6.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel2.StyleMouseOver.Class = ""; - this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel2.TabIndex = 39; - this.ribbonPanel2.Visible = false; + this.ribbonPanel6.StyleMouseOver.Class = ""; + this.ribbonPanel6.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.TabIndex = 38; + this.ribbonPanel6.Visible = false; // - // ribbonBar3 + // ribbonBar6 // - this.ribbonBar3.AutoOverflowEnabled = true; + this.ribbonBar6.AutoOverflowEnabled = true; // // // - this.ribbonBar3.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar3.BackgroundStyle.Class = ""; - this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.ContainerControlProcessDialogKey = true; - this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btn_user_info, - this.btn_role_info, - this.btn_resc_info, - this.btn_role_resc, - this.btn_user_role, - this.btn_password_edit, - this.buttonItemPasswordReset}); - this.ribbonBar3.Location = new System.Drawing.Point(3, 0); - this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(551, 59); - this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar3.TabIndex = 1; + this.ribbonBar6.BackgroundStyle.Class = ""; + this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.ContainerControlProcessDialogKey = true; + this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItemSPSZ, + this.buttonItem8, + this.buttonItemLocation, + this.sliderItem2, + this.buttonItemGBJC}); + this.ribbonBar6.Location = new System.Drawing.Point(3, 0); + this.ribbonBar6.Name = "ribbonBar6"; + this.ribbonBar6.Size = new System.Drawing.Size(427, 92); + this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar6.TabIndex = 0; // // // - this.ribbonBar3.TitleStyle.Class = ""; - this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.TitleStyle.Class = ""; + this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar3.TitleStyleMouseOver.Class = ""; - this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.TitleVisible = false; + this.ribbonBar6.TitleStyleMouseOver.Class = ""; + this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.TitleVisible = false; // - // btn_user_info + // buttonItemSPSZ // - this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image"))); - this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_user_info.Name = "btn_user_info"; - this.btn_user_info.SubItemsExpandWidth = 14; - this.btn_user_info.Text = "用户管理"; - this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click); + this.buttonItemSPSZ.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemSPSZ.Image"))); + this.buttonItemSPSZ.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemSPSZ.Name = "buttonItemSPSZ"; + this.buttonItemSPSZ.SubItemsExpandWidth = 14; + this.buttonItemSPSZ.Text = "双屏设置"; + this.buttonItemSPSZ.Click += new System.EventHandler(this.buttonItemSPSZ_Click); // - // btn_role_info + // buttonItem8 // - this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image"))); - this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_role_info.Name = "btn_role_info"; - this.btn_role_info.SubItemsExpandWidth = 14; - this.btn_role_info.Text = "角色管理"; - this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click); + this.buttonItem8.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem8.Image"))); + this.buttonItem8.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem8.Name = "buttonItem8"; + this.buttonItem8.SubItemsExpandWidth = 14; + this.buttonItem8.Text = "双屏分析"; + this.buttonItem8.Click += new System.EventHandler(this.buttonItem8_Click); // - // btn_resc_info + // buttonItemLocation // - this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image"))); - this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_resc_info.Name = "btn_resc_info"; - this.btn_resc_info.SubItemsExpandWidth = 14; - this.btn_resc_info.Text = "资源管理"; - this.btn_resc_info.Visible = false; - this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click); + this.buttonItemLocation.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemLocation.Image"))); + this.buttonItemLocation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemLocation.Name = "buttonItemLocation"; + this.buttonItemLocation.SubItemsExpandWidth = 14; + this.buttonItemLocation.Text = "快速定位"; + this.buttonItemLocation.Click += new System.EventHandler(this.buttonItemLocation_Click); // - // btn_role_resc + // sliderItem2 // - this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image"))); - this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_role_resc.Name = "btn_role_resc"; - this.btn_role_resc.SubItemsExpandWidth = 14; - this.btn_role_resc.Text = "角色授权"; - this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click); + this.sliderItem2.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.sliderItem2.LabelWidth = 50; + this.sliderItem2.Name = "sliderItem2"; + this.sliderItem2.Text = "地面透明度"; + this.sliderItem2.TextColor = System.Drawing.Color.Black; + this.sliderItem2.Value = 0; + this.sliderItem2.ValueChanged += new System.EventHandler(this.sliderItem2_ValueChanged); // - // btn_user_role + // buttonItemGBJC // - this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image"))); - this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_user_role.Name = "btn_user_role"; - this.btn_user_role.SubItemsExpandWidth = 14; - this.btn_user_role.Text = "用户授权"; - this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click); + this.buttonItemGBJC.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemGBJC.Image"))); + this.buttonItemGBJC.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemGBJC.Name = "buttonItemGBJC"; + this.buttonItemGBJC.SubItemsExpandWidth = 14; + this.buttonItemGBJC.Text = "国标检测"; + this.buttonItemGBJC.Click += new System.EventHandler(this.buttonItemGBJC_Click); // - // btn_password_edit + // ribbonPanel5 // - this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image"))); - this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_password_edit.Name = "btn_password_edit"; - this.btn_password_edit.SubItemsExpandWidth = 14; - this.btn_password_edit.Text = "密码修改"; - this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click); + this.ribbonPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel5.Controls.Add(this.ribbonBar2); + this.ribbonPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel5.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel5.Name = "ribbonPanel5"; + this.ribbonPanel5.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel5.Size = new System.Drawing.Size(1328, 95); // - // buttonItemPasswordReset // - this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image"))); - this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemPasswordReset.Name = "buttonItemPasswordReset"; - this.buttonItemPasswordReset.SubItemsExpandWidth = 14; - this.buttonItemPasswordReset.Text = "重置密码"; - this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click); // - // ribbonPanel4 + this.ribbonPanel5.Style.Class = ""; + this.ribbonPanel5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel4.Controls.Add(this.ribbonBar1); - this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel4.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel4.Name = "ribbonPanel4"; - this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95); // // + this.ribbonPanel5.StyleMouseDown.Class = ""; + this.ribbonPanel5.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonPanel4.Style.Class = ""; - this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // + this.ribbonPanel5.StyleMouseOver.Class = ""; + this.ribbonPanel5.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel5.TabIndex = 37; + this.ribbonPanel5.Visible = false; // - this.ribbonPanel4.StyleMouseDown.Class = ""; - this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // ribbonBar2 // + this.ribbonBar2.AutoOverflowEnabled = true; // // - this.ribbonPanel4.StyleMouseOver.Class = ""; - this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel4.TabIndex = 36; - this.ribbonPanel4.Visible = false; // - // ribbonBar1 + this.ribbonBar2.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar2.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonBar1.AutoOverflowEnabled = true; // // - // - this.ribbonBar1.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar1.BackgroundStyle.Class = ""; - this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar1.ContainerControlProcessDialogKey = true; - this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btn_document_info}); - this.ribbonBar1.Location = new System.Drawing.Point(3, 0); - this.ribbonBar1.Name = "ribbonBar1"; - this.ribbonBar1.Size = new System.Drawing.Size(88, 92); - this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar1.TabIndex = 0; - // - // - // - this.ribbonBar1.TitleStyle.Class = ""; - this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar1.TitleStyleMouseOver.Class = ""; - this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar1.TitleVisible = false; - // - // btn_document_info - // - this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image"))); - this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_document_info.Name = "btn_document_info"; - this.btn_document_info.SubItemsExpandWidth = 14; - this.btn_document_info.Text = "文档管理"; - this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click); - // - // ribbonPanel1 - // - this.ribbonPanel1.AutoSize = true; - this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray; - 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, 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, 95); - // - // - // - this.ribbonPanel1.Style.Class = ""; - this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseDown.Class = ""; - this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseOver.Class = ""; - this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel1.TabIndex = 1; - this.ribbonPanel1.Visible = false; - // - // ribbonBar21 - // - this.ribbonBar21.AutoOverflowEnabled = true; - this.ribbonBar21.BackColor = System.Drawing.Color.White; - // - // - // - this.ribbonBar21.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar21.BackgroundStyle.Class = ""; - this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar21.ContainerControlProcessDialogKey = true; - this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItem87, - this.buttonItem88, - this.buttonItem27, - this.sliderGroundTransSet1, - this.buttonItem91, - this.buttonItem1, - this.btnlegendSet, - this.buttonItem89, - this.btnOutputJPG}); - this.ribbonBar21.Location = new System.Drawing.Point(3, 0); - this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(649, 92); - this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar21.TabIndex = 2; - this.ribbonBar21.Text = "浏览模式"; - // - // - // - this.ribbonBar21.TitleStyle.Class = ""; - this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar21.TitleStyleMouseOver.Class = ""; - this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar21.TitleVisible = false; - // - // buttonItem87 - // - this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image"))); - this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem87.Name = "buttonItem87"; - this.buttonItem87.SubItemsExpandWidth = 14; - this.buttonItem87.Text = "地上模式"; - this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click); + this.ribbonBar2.BackgroundStyle.Class = ""; + this.ribbonBar2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar2.ContainerControlProcessDialogKey = true; + this.ribbonBar2.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItemHX1, + this.buttonItemHX2, + this.buttonItemDCTP, + this.sliderItem3}); + this.ribbonBar2.Location = new System.Drawing.Point(3, 0); + this.ribbonBar2.Name = "ribbonBar2"; + this.ribbonBar2.Size = new System.Drawing.Size(350, 92); + this.ribbonBar2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar2.TabIndex = 0; // - // buttonItem88 // - this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image"))); - this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem88.Name = "buttonItem88"; - this.buttonItem88.SubItemsExpandWidth = 14; - this.buttonItem88.Text = "地下模式"; - this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click); // - // buttonItem27 + this.ribbonBar2.TitleStyle.Class = ""; + this.ribbonBar2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image"))); - this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem27.Name = "buttonItem27"; - this.buttonItem27.SubItemsExpandWidth = 14; - this.buttonItem27.Text = "行走模式"; - this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click); // - // buttonItem91 // - this.buttonItem91.ForeColor = System.Drawing.Color.Black; - this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image"))); - this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem91.Name = "buttonItem91"; - this.buttonItem91.SubItemsExpandWidth = 14; - this.buttonItem91.Text = "快速定位"; - this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click); + this.ribbonBar2.TitleStyleMouseOver.Class = ""; + this.ribbonBar2.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar2.TitleVisible = false; // - // buttonItem1 + // buttonItemHX1 // - this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image"))); - this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem1.Name = "buttonItem1"; - this.buttonItem1.SubItemsExpandWidth = 14; - this.buttonItem1.Text = "图层管理"; - this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click); + this.buttonItemHX1.AutoExpandOnClick = true; + this.buttonItemHX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX1.Image"))); + this.buttonItemHX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemHX1.Name = "buttonItemHX1"; + this.buttonItemHX1.SubItemsExpandWidth = 14; + this.buttonItemHX1.Text = "导入红线"; + this.buttonItemHX1.Click += new System.EventHandler(this.buttonItemHX1_Click); // - // btnlegendSet + // buttonItemHX2 // - this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image"))); - this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnlegendSet.Name = "btnlegendSet"; - this.btnlegendSet.SubItemsExpandWidth = 14; - this.btnlegendSet.Text = "图例"; - this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click); + this.buttonItemHX2.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX2.Image"))); + this.buttonItemHX2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemHX2.Name = "buttonItemHX2"; + this.buttonItemHX2.SubItemsExpandWidth = 14; + this.buttonItemHX2.Text = "红线审核"; + this.buttonItemHX2.Click += new System.EventHandler(this.buttonItemHX2_Click); // - // buttonItem89 + // buttonItemDCTP // - this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image"))); - this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem89.Name = "buttonItem89"; - this.buttonItem89.SubItemsExpandWidth = 14; - this.buttonItem89.Text = "全屏显示"; - this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click); + this.buttonItemDCTP.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemDCTP.Image"))); + this.buttonItemDCTP.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemDCTP.Name = "buttonItemDCTP"; + this.buttonItemDCTP.SubItemsExpandWidth = 14; + this.buttonItemDCTP.Text = "导出图片"; + this.buttonItemDCTP.Click += new System.EventHandler(this.buttonItemDCTP_Click); // - // btnOutputJPG + // sliderItem3 // - this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image"))); - this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnOutputJPG.Name = "btnOutputJPG"; - this.btnOutputJPG.SubItemsExpandWidth = 14; - this.btnOutputJPG.Text = "导出图片"; - this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click); + this.sliderItem3.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.sliderItem3.LabelWidth = 50; + this.sliderItem3.Name = "sliderItem3"; + this.sliderItem3.Text = "地面透明度"; + this.sliderItem3.TextColor = System.Drawing.Color.Black; + this.sliderItem3.Value = 0; + this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged); // // ribbonTabItem1 // @@ -3468,7 +3569,6 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage"))); this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image"))); this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -3486,6 +3586,13 @@ this.ribbonTabItem2.Text = "权限管理"; this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown); // + // ribbonTabItemBSQ + // + this.ribbonTabItemBSQ.Checked = true; + this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ"; + this.ribbonTabItemBSQ.Panel = this.ribbonPanel3; + this.ribbonTabItemBSQ.Text = "标识器管理"; + // // buttonItem19 // this.buttonItem19.Name = "buttonItem19"; @@ -4463,7 +4570,7 @@ this.dataGridViewX2.ReadOnly = true; this.dataGridViewX2.RowHeadersVisible = false; this.dataGridViewX2.RowTemplate.Height = 23; - this.dataGridViewX2.Size = new System.Drawing.Size(28705, 92); + this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92); this.dataGridViewX2.TabIndex = 11; // // dataGridViewTextBoxColumn10 @@ -4557,7 +4664,7 @@ this.dataGridViewX3.ReadOnly = true; this.dataGridViewX3.RowHeadersVisible = false; this.dataGridViewX3.RowTemplate.Height = 23; - this.dataGridViewX3.Size = new System.Drawing.Size(28704, 127); + this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127); this.dataGridViewX3.TabIndex = 5; this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick); // @@ -5731,18 +5838,6 @@ this.panelEx4.TabIndex = 26; this.panelEx4.Text = "panelEx4"; // - // 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); - this.layerTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseClick); - this.layerTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); - // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; @@ -5786,13 +5881,14 @@ this.contextMenuStripDeleteLayerNode.ResumeLayout(false); this.ribbonControl1.ResumeLayout(false); this.ribbonControl1.PerformLayout(); - this.ribbonPanel12.ResumeLayout(false); - this.ribbonPanel5.ResumeLayout(false); - this.ribbonPanel6.ResumeLayout(false); - this.ribbonPanel15.ResumeLayout(false); - this.ribbonPanel2.ResumeLayout(false); + this.ribbonPanel3.ResumeLayout(false); this.ribbonPanel4.ResumeLayout(false); this.ribbonPanel1.ResumeLayout(false); + this.ribbonPanel12.ResumeLayout(false); + this.ribbonPanel2.ResumeLayout(false); + this.ribbonPanel15.ResumeLayout(false); + this.ribbonPanel6.ResumeLayout(false); + this.ribbonPanel5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.panelOfTable.ResumeLayout(false); this.panelOfTable.PerformLayout(); @@ -6315,6 +6411,11 @@ private LabelX labelX16; private LabelX labelX17; private PanelEx panelEx4; + private RibbonPanel ribbonPanel3; + private RibbonBar ribbonBar4; + private ButtonItem btn_flag; + private RibbonTabItem ribbonTabItemBSQ; + private SliderItem slider4ground; } } diff --git a/MainFrm.resx b/MainFrm.resx index 4151cb6..8287937 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -351,6 +351,782 @@ 766, 54 + + + iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAADZmlUWHRYTUw6Y29tLmFkb2Jl + LnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQi + Pz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENv + cmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJE +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8J9PeFMsRDnJSLE - H38DsXEJSEhKAaOzod88hMjXt+KTz/PQ2WtCLyfl8wE2RbyKkyWFqJLUQdqu4ASvPBBojE4KH9wVtxel - v5Tj5zopuU5MSQOjt6NG0swJtmHtCxtwrUePHsMDQaA3J/9rfJpTgDY1CwWjDwq6dHYK37BzdwJqZe3I - E3yP9ENHsG//u+TsvcNH8dXZMryVlo4ioYjmA73ZnCA7T4BO1gqV1hp8izr6f6fwDafOlKLgdAlidsXj - 29JKJHOCFrWOnAXga4F8gIjN21Df1k1nUYFSY6bwwUvSVjy/bgN2cILKmnokvf0O8r8pRvr7H5JMcwdL - zvkcn1/cvxgqaGVMFL6BX6Nj9+BLQREuXLyCvSkHEB65BcXll2ju8LETyPqikOaXgwqudhlCQkAQ8p/M - R2K5fxKLWbbp/7Dc0CBY8Q+pPmOq0VkzzQAAAABJRU5ErkJggg== - - iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs new file mode 100644 index 0000000..9fe14fb --- /dev/null +++ b/FrmFlagManagers.Designer.cs @@ -0,0 +1,180 @@ +namespace Cyberpipe +{ + partial class FrmFlagManagers + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.标识对象ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.bar1 = new DevComponents.DotNetBar.Bar(); + this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); + this.txt_no = new DevComponents.DotNetBar.TextBoxItem(); + this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); + this.combo_street = new DevComponents.DotNetBar.ComboBoxItem(); + this.btn_query = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_batch = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_menu = new DevComponents.DotNetBar.ButtonItem(); + this.winGridViewPager1 = new WHC.Pager.WinControl.WinGridViewPager(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.标识对象ToolStripMenuItem, + this.toolStripMenuItem2}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(125, 48); + // + // 标识对象ToolStripMenuItem + // + this.标识对象ToolStripMenuItem.Name = "标识对象ToolStripMenuItem"; + this.标识对象ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.标识对象ToolStripMenuItem.Text = "标识对象"; + this.标识对象ToolStripMenuItem.Click += new System.EventHandler(this.标识对象ToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Text = "查看位置"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // bar1 + // + this.bar1.AntiAlias = true; + this.bar1.Dock = System.Windows.Forms.DockStyle.Top; + this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.labelItem1, + this.txt_no, + this.labelItem2, + this.combo_street, + this.btn_query, + this.btn_add_batch, + this.btn_add_menu}); + this.bar1.Location = new System.Drawing.Point(0, 0); + this.bar1.Name = "bar1"; + this.bar1.Size = new System.Drawing.Size(881, 28); + this.bar1.Stretch = true; + this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.bar1.TabIndex = 8; + this.bar1.TabStop = false; + this.bar1.Text = "bar1"; + // + // labelItem1 + // + this.labelItem1.Name = "labelItem1"; + this.labelItem1.Text = "编号"; + // + // txt_no + // + this.txt_no.Name = "txt_no"; + this.txt_no.TextBoxWidth = 200; + this.txt_no.WatermarkColor = System.Drawing.SystemColors.GrayText; + // + // labelItem2 + // + this.labelItem2.Name = "labelItem2"; + this.labelItem2.Text = "街道"; + // + // combo_street + // + this.combo_street.ComboWidth = 200; + this.combo_street.DropDownHeight = 106; + this.combo_street.ItemHeight = 17; + this.combo_street.Name = "combo_street"; + // + // btn_query + // + this.btn_query.Name = "btn_query"; + this.btn_query.Text = "查询"; + this.btn_query.Click += new System.EventHandler(this.btn_query_Click); + // + // btn_add_batch + // + this.btn_add_batch.Name = "btn_add_batch"; + this.btn_add_batch.Text = "批量添加"; + this.btn_add_batch.Click += new System.EventHandler(this.btn_add_batch_Click); + // + // btn_add_menu + // + this.btn_add_menu.Name = "btn_add_menu"; + this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); + // + // winGridViewPager1 + // + this.winGridViewPager1.AppendedMenu = null; + this.winGridViewPager1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.winGridViewPager1.DataSource = null; + this.winGridViewPager1.DisplayColumns = ""; + this.winGridViewPager1.Dock = System.Windows.Forms.DockStyle.Fill; + this.winGridViewPager1.Location = new System.Drawing.Point(0, 28); + this.winGridViewPager1.MinimumSize = new System.Drawing.Size(540, 0); + this.winGridViewPager1.Name = "winGridViewPager1"; + this.winGridViewPager1.PrintTitle = ""; + this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); + this.winGridViewPager1.TabIndex = 9; + // + // FrmFlagManagers + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(881, 474); + this.Controls.Add(this.winGridViewPager1); + this.Controls.Add(this.bar1); + this.DoubleBuffered = true; + this.Name = "FrmFlagManagers"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器管理"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagManagers_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagManagers_Load); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem 标识对象ToolStripMenuItem; + private DevComponents.DotNetBar.Bar bar1; + private DevComponents.DotNetBar.LabelItem labelItem1; + private DevComponents.DotNetBar.TextBoxItem txt_no; + private DevComponents.DotNetBar.LabelItem labelItem2; + private DevComponents.DotNetBar.ComboBoxItem combo_street; + private DevComponents.DotNetBar.ButtonItem btn_query; + private DevComponents.DotNetBar.ButtonItem btn_add_batch; + private DevComponents.DotNetBar.ButtonItem btn_add_menu; + private WHC.Pager.WinControl.WinGridViewPager winGridViewPager1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + } +} \ No newline at end of file diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs new file mode 100644 index 0000000..1e433c0 --- /dev/null +++ b/FrmFlagManagers.cs @@ -0,0 +1,459 @@ +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; +using DevComponents.DotNetBar; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.IO; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagManagers : Office2007Form + { + GSOGlobeControl globeControl1 = null; + int maxPageIndex = 20; + public static bool IS_OPEN = false; + int rows = 0; + public static GSODataSource ds = null; + TreeNode layerManagerNode = null; + string LSSYS_ID_VALUE = "标识器自增编号"; + + public FrmFlagManagers(GSOGlobeControl _globeControl1) + { + this.globeControl1 = _globeControl1; + InitializeComponent(); + winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); + this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 + this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + + this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); + winGridViewPager1.dataGridView1.MultiSelect = false; + } + + 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; + } + + /// + /// 初始化分页表格 + /// + 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("备注", "备注"); + + this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + + //隐藏右键功能按钮 + 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[2].Text = "属性编辑"; + winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; + + winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + + //右键菜单宽度 + winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; + winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; + //控制间隔的颜色 + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + //控制每页显示的最大数据量 + winGridViewPager1.PagerInfo.RecordCount = rows; + winGridViewPager1.PagerInfo.PageSize = maxPageIndex; + winGridViewPager1.dataGridView1.Refresh(); + } + /// + /// 页面刷新 + /// + /// + /// + private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) + { + LoadData(); + + } + + /// + /// 属性编辑 + /// + /// + /// + private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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); + frm.refresh += new FrmFlagEdits.Handle(LoadData); //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + /// + /// 标识器报废 + /// + /// + /// + private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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) + { + bindComboxStreet(); + LoadData(); + + IS_OPEN = true; + } + + private void LoadData() + { + int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + winGridViewPager1.Refresh(); + } + + private void LoadData(int pageIndex) + { + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + 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"; + + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private string GetSql(int pageIndex) + { + int minPage = (pageIndex - 1) * maxPageIndex + 1; + 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 使用状态 = '使用中'"; + + + if (!String.IsNullOrEmpty(txt_no.Text.Trim())) + { + sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + sqlData += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + } + if (null != combo_street.SelectedItem && !String.IsNullOrEmpty(combo_street.SelectedItem.ToString().Trim())) + { + sqlData += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + sqlCount += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + } + + sqlData += " order by 编号)b " + + "where(b.row_num between " + minPage + " and " + maxPage + ")"; + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private void bindComboxStreet() + { + ComboBoxItem item = new ComboBoxItem(); + + String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow row in table.Rows) + { + item = new ComboBoxItem(); + item.Text = row[0].ToString(); + if (!item.Text.Equals("")) + combo_street.Items.Add(item); + } + } + + private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) + { + IS_OPEN = false; + globeControl1.Globe.MemoryLayer.RemoveAllFeature(); + + globeControl1.Refresh(); + + } + private void doSave(Object e) + { + try + { + globeControl1.Globe.Layers["标识器"].Save(); + } + catch (Exception ex) + { + LogHelper.WriteLog(typeof(FrmFlagManagers), ex); + } + } + + private void btn_query_Click(object sender, EventArgs e) + { + try + { + LoadData(1); + } + catch (Exception ex) + { + MessageBox.Show("查询失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_add_batch_Click(object sender, EventArgs e) + { + if (ds == null && null != globeControl1) + { + FrmFlagDatabase frmDB = new FrmFlagDatabase(globeControl1); + if (frmDB.ShowDialog() == DialogResult.OK) + { + ds = FrmFlagDatabase.ds; + } + } + + if (ds != null && null != globeControl1) + { + FrmAddFlagBatch frmFlag = new FrmAddFlagBatch(globeControl1, ds); + if (frmFlag.ShowDialog() == DialogResult.OK) + { + addNodeToLayerManagerNode(frmFlag.flags); + } + } + } + + private Boolean CheckDatasetGeoReference(GSODataset dataset) + { + Boolean bSuccess = false; + if (dataset.GeoReferenceType == EnumGeoReferenceType.Flat) + { + if (MessageBox.Show("数据没有空间参考信息,请设置空间参考信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) == DialogResult.OK) + { + String strPath = Path.GetDirectoryName(Application.ExecutablePath) + "\\Coordinate Systems"; + OpenFileDialog dlg = new OpenFileDialog(); + + dlg.InitialDirectory = strPath; + dlg.RestoreDirectory = true; + + dlg.Filter = "投影文件|*.prj||"; + if (dlg.ShowDialog() == DialogResult.OK) + { + bSuccess = dataset.LoadProjectionFromESRIFile(dlg.FileName); + } + } + } + else + { + return true; + } + return bSuccess; + } + + private void addNodeToLayerManagerNode(GSOLayer layer) + { + if (layer != null) + { + GSODataset dataset = layer.Dataset; + CheckDatasetGeoReference(layer.Dataset); + TreeNode node = new TreeNode(); + node.Tag = layer; + node.Text = layer.Dataset.Caption; + node.ImageIndex = 0; + node.SelectedImageIndex = 0; + node.Checked = layer.Visible; + layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Expand(); + } + } + + private void btn_add_menu_Click(object sender, EventArgs e) + { + if (null != globeControl1) + { + FrmAddSinMark frm = new FrmAddSinMark(globeControl1); + frm.Show(); + } + } + + private void 标识对象ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + { + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.Hide(); + string id = row.Cells["编号"].Value.ToString(); + FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); + p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 + p.Show(); + } + catch (Exception ex) + { + MessageBox.Show("失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } + + private void showThisForm() + { + this.Show(); + } + /// + /// 位置查看 + /// + /// + /// + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.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.标识器型号,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" + + "所属道路:" + 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(); + + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx new file mode 100644 index 0000000..f3050a7 --- /dev/null +++ b/FrmFlagManagers.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 45 + + \ No newline at end of file diff --git a/MainFrm.cs b/MainFrm.cs index ec7d43e..d33c5a0 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -40,7 +40,7 @@ GSOBalloon featureTooltip2; GSOBalloonEx balloonEx2; - GSOLayer layerTemp;//wxl注释,Globe1的临时图层 + GSOLayer layerTemp; //wxl注释,Globe1的临时图层 FrmRedlineResult frmredResult = null; FrmMnModify frmModify; public bool frmRedlineResult = false; @@ -877,37 +877,37 @@ double dsw = SW; if (SW > 1440) { - double myScreen = dsw / 1440; - buttonX1.Width = (int)(buttonX1.Width * myScreen); - buttonX2.Width = (int)(buttonX2.Width * myScreen); - buttonX4.Width = (int)(buttonX4.Width * myScreen); - buttonX5.Width = (int)(buttonX5.Width * myScreen); - buttonX6.Width = (int)(buttonX6.Width * myScreen); - buttonX7.Width = (int)(buttonX8.Width * myScreen); - buttonX8.Width = (int)(buttonX8.Width * myScreen); - buttonX9.Width = (int)(buttonX9.Width * myScreen); - buttonX12.Width = (int)(buttonX12.Width * myScreen); - buttonX14.Width = (int)(buttonX14.Width * myScreen); - buttonX15.Width = (int)(buttonX15.Width * myScreen); - buttonX16.Width = (int)(buttonX16.Width * myScreen); - buttonX17.Width = (int)(buttonX17.Width * myScreen); + double myScreen = dsw/1440; + buttonX1.Width = (int) (buttonX1.Width*myScreen); + buttonX2.Width = (int) (buttonX2.Width*myScreen); + buttonX4.Width = (int) (buttonX4.Width*myScreen); + buttonX5.Width = (int) (buttonX5.Width*myScreen); + buttonX6.Width = (int) (buttonX6.Width*myScreen); + buttonX7.Width = (int) (buttonX8.Width*myScreen); + buttonX8.Width = (int) (buttonX8.Width*myScreen); + buttonX9.Width = (int) (buttonX9.Width*myScreen); + buttonX12.Width = (int) (buttonX12.Width*myScreen); + buttonX14.Width = (int) (buttonX14.Width*myScreen); + buttonX15.Width = (int) (buttonX15.Width*myScreen); + buttonX16.Width = (int) (buttonX16.Width*myScreen); + buttonX17.Width = (int) (buttonX17.Width*myScreen); - labelX1.Width = (int)(labelX1.Width * myScreen); - labelX2.Width = (int)(labelX2.Width * myScreen); - labelX3.Width = (int)(labelX3.Width * myScreen); - labelX6.Width = (int)(labelX6.Width * myScreen); - labelX8.Width = (int)(labelX8.Width * myScreen); - labelX9.Width = (int)(labelX9.Width * myScreen); - labelX12.Width = (int)(labelX12.Width * myScreen); - labelX13.Width = (int)(labelX13.Width * myScreen); - labelX14.Width = (int)(labelX14.Width * myScreen); - labelX16.Width = (int)(labelX16.Width * myScreen); - labelX17.Width = (int)(labelX17.Width * myScreen); - labelX11.Width = (int)(labelX11.Width * myScreen); - labelX19.Width = (int)(labelX19.Width * myScreen); - labelX21.Width = (int)(labelX21.Width * myScreen); - labelX22.Width = (int)(labelX22.Width * myScreen); - labelX24.Width = (int)(labelX24.Width * myScreen); + labelX1.Width = (int) (labelX1.Width*myScreen); + labelX2.Width = (int) (labelX2.Width*myScreen); + labelX3.Width = (int) (labelX3.Width*myScreen); + labelX6.Width = (int) (labelX6.Width*myScreen); + labelX8.Width = (int) (labelX8.Width*myScreen); + labelX9.Width = (int) (labelX9.Width*myScreen); + labelX12.Width = (int) (labelX12.Width*myScreen); + labelX13.Width = (int) (labelX13.Width*myScreen); + labelX14.Width = (int) (labelX14.Width*myScreen); + labelX16.Width = (int) (labelX16.Width*myScreen); + labelX17.Width = (int) (labelX17.Width*myScreen); + labelX11.Width = (int) (labelX11.Width*myScreen); + labelX19.Width = (int) (labelX19.Width*myScreen); + labelX21.Width = (int) (labelX21.Width*myScreen); + labelX22.Width = (int) (labelX22.Width*myScreen); + labelX24.Width = (int) (labelX24.Width*myScreen); } sideBar1.Visible = false; sideBar1.ExpandedPanel = sideBarPanelItem3; @@ -1031,7 +1031,7 @@ globeControl1.Globe.UserBackgroundColor = Color.White; globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3; + globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3; globeControl1.Globe.EditSnapObject = true; globeControl1.Globe.IsReleaseMemOutOfView = true; globeControl1.Globe.ControlPanel.Visible = true; @@ -1050,7 +1050,7 @@ globeControl2.Globe.UserBackgroundColor = Color.White; globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3; + globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3; globeControl2.Globe.EditSnapObject = true; globeControl2.Globe.IsReleaseMemOutOfView = true; globeControl2.Globe.ControlPanel.Visible = false; @@ -1154,6 +1154,7 @@ initLayerTree(); } + /// /// 加载地球1、2的图层 /// @@ -1224,7 +1225,7 @@ } - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { connectServer(); }); @@ -1291,7 +1292,7 @@ private void MainFrm_Load(object sender, EventArgs e) { - layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示 + layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示 initGlobalControl(); //initGlobalMap(); // initLayerTree(); @@ -1362,12 +1363,12 @@ tempnode.Checked = node.Checked && feature.Visible; tempnode.Tag = feature; node.Nodes.Add(tempnode); - GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature; + GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature; VisitFeature3Ds(featureFolder.Features, tempnode); } else { - TreeNode tempnode = new TreeNode { Text = feature.Name }; + TreeNode tempnode = new TreeNode {Text = feature.Name}; if (feature.Geometry != null) { switch (feature.Geometry.Type) @@ -1562,6 +1563,7 @@ } #endregion + private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Button != MouseButtons.Right) return; @@ -1590,6 +1592,7 @@ } } + //wxl Tag更正 /// /// 删除临时添加的本地数据图层 @@ -1618,6 +1621,7 @@ } } + //wxl Tag更正 private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1629,6 +1633,7 @@ 可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked; layer.Editable = 可编辑ToolStripMenuItem.Checked; } + //wxl Tag更正 private void 保存ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1638,6 +1643,7 @@ if (layer == null) return; layer.Dataset.Save(); } + //wxl Tag更正 private void 定位ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1667,7 +1673,8 @@ if (layer == null) return; if (layer.Caption.Equals("红线")) { - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), + EnumAltitudeMode.Absolute, -4, 50, 1000); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; layer.Visible = true; @@ -1681,6 +1688,7 @@ } } } + //wxl Tag更正 private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { @@ -1693,7 +1701,8 @@ GSOFeature feature = layer.GetAt(0); if (feature != null && feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute); + //, 0, 0, 1000); } else { @@ -1705,7 +1714,8 @@ GSOFeature feature = node.Tag as GSOFeature; if (feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, + 10); } else { @@ -1758,6 +1768,7 @@ globeControl1.Globe.Refresh(); } } + void globeControl2_MouseWheel(object sender, MouseEventArgs e) { if (globeControl2.Globe.CameraState.Distance > 20000000) @@ -1770,6 +1781,7 @@ } #region Fan 横断面 + /// /// 横断面分析、基线剖面分析、道路断面分析等 /// @@ -1812,6 +1824,7 @@ } trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis; } + #endregion /// @@ -1834,14 +1847,16 @@ case "PipelineDistanceStatistics": - FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm1.Show(this); globeControl1.Globe.Action = EnumAction3D.ActionNull; break; case "PipelineSpatialQuery": - FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); globeControl1.Globe.ClearAnalysis(); globeControl1.Globe.Action = EnumAction3D.ActionNull; @@ -1865,7 +1880,8 @@ geoPit.PitDepth = depth; geoPit.PitDepthUsing = true; globeControl1.Globe.AddPit("", geoPit); - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (layerGround != null) { layerGround.Visible = false; @@ -1898,6 +1914,7 @@ break; } } + /// /// 鼠标悬浮提示 /// @@ -1910,11 +1927,12 @@ if (e.Feature == null) return; if (isFeatureContainsBianhao(e.Feature)) { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString()); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, + e.Feature.GetValue(featureIDFieldName).ToString()); } else if (e.Feature.Name != "") { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name); } } catch (Exception ex) @@ -1933,7 +1951,7 @@ if (e.Button != MouseButtons.Left) return; if (enumDesignMode == EnumDesignMode.AddPipe - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线 { GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd; if (layerDest != null) @@ -1949,7 +1967,7 @@ } } if (enumDesignMode == EnumDesignMode.AddTunnel - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道 { GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道"); if (tunnel != null && tunnel.GetAllFeatures().Length > 0) @@ -1961,10 +1979,9 @@ //tunnel.Save(); } } - } if (enumDesignMode == EnumDesignMode.AddCitySevenLine - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线 { CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine; string lineType = citySevenLine.Type; @@ -2000,6 +2017,7 @@ mouseDownX1 = e.X; mouseDownY1 = e.Y; } + /// /// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件 /// @@ -2010,6 +2028,7 @@ mouseDownX2 = e.X; mouseDownY2 = e.Y; } + /// /// /// @@ -2023,6 +2042,7 @@ RightScreenToolMenu.Show(globeControl2, e.X, e.Y); } } + /// /// (完善)#wxl 待整理 /// @@ -2037,7 +2057,7 @@ 通视分析ToolStripMenuItem.Checked = false; return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2053,13 +2073,15 @@ int idx = dataGridViewX2.Rows.Add(); dataGridViewX2.Rows[idx].Tag = feat; dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX2.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2075,7 +2097,9 @@ int idx = dataGridViewLineList.Rows.Add(); dataGridViewLineList.Rows[idx].Tag = feat; dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewLineList.Rows[idx].Cells[1].Value = featureName; } } @@ -2097,13 +2121,15 @@ int idx = dataGridViewX8.Rows.Add(); dataGridViewX8.Rows[idx].Tag = feat; dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX8.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2119,7 +2145,9 @@ int idx = dataGridViewX4.Rows.Add(); dataGridViewX4.Rows[idx].Tag = feat; dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX4.Rows[idx].Cells[1].Value = featureName; } @@ -2127,7 +2155,7 @@ return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2143,7 +2171,9 @@ int idx = dataGridViewX6.Rows.Add(); dataGridViewX6.Rows[idx].Tag = feat; dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX6.Rows[idx].Cells[1].Value = featureName; } } @@ -2196,7 +2226,7 @@ layerTemp.AddFeature(feat); } } - else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 + else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 { if (e.X == mouseDownX1 && e.Y == mouseDownY1) { @@ -2244,7 +2274,8 @@ return result; } - string featureIDFieldName = "编号";//待完善 + string featureIDFieldName = "编号"; //待完善 + private bool isFeatureContainsBianhao(GSOFeature feature) { if (feature.GetFieldDefn("标识器编号") != null) @@ -2268,12 +2299,13 @@ string str1 = ""; if (feature == null) return; - if (feature.GetFieldDefn("图片编码") != null)// + if (feature.GetFieldDefn("图片编码") != null) // { str1 = GetBubbleInfo(feature, globeControl1); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2290,7 +2322,7 @@ balloonEx.HideBalloon(); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2309,7 +2341,8 @@ str1 = GetBubbleInfo(feature, globeControl2); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2326,7 +2359,7 @@ balloonEx2.HideBalloon(); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2337,10 +2370,13 @@ private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl) { if (feature == null) return ""; - string str = "
" + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + fieldNames[j] + "
" + value + "
"; + string str = + "
"; var code = feature.GetFieldAsString("编码"); var title = FeatureTools.GetFeatureTypeByCode(code); - str += ""; + str += + ""; string layerName = feature.Dataset.Name; string queryFields = ""; if (Utility.Query_Fields.ContainsKey(layerName)) @@ -2354,28 +2390,30 @@ } if (queryFields != null) { - string[] param = { "," }; + string[] param = {","}; string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries); - for (int j = 0; j < fieldNames.Length; ) + for (int j = 0; j < fieldNames.Length;) { - int count = 0; - string tmpStr = ""; - while (count<2&&j
" + + tmpStr += + "
"; - count ++; + count++; } j++; } if (count == 1) - {//不够两列 + { +//不够两列 tmpStr += ""; } tmpStr += ""; @@ -2393,6 +2431,7 @@ GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer; return featureAddLayer; } + //遍历最深三层找到目标node. private TreeNode GetDestLayerFeatureAddTreeNode() { @@ -2415,7 +2454,7 @@ { GSOLayer gsoLayer = node.Tag as GSOLayer; if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node; - } + } } } else @@ -2465,6 +2504,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 地下模式 菜单按钮 /// @@ -2501,6 +2541,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 行走模式 菜单按钮 /// @@ -2518,6 +2559,7 @@ globeControl1.Globe.CameraMode = EnumCameraMode.Walk; } + /// /// 地面透明度设置 菜单 /// @@ -2528,11 +2570,12 @@ LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text); globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) layer.Opaque = 100 - sliderGroundTransSet1.Value; optiValue = sliderGroundTransSet1.Value; } + /// /// 图例 菜单按钮 /// @@ -2547,6 +2590,7 @@ legend.Visible = !legend.Visible; globeControl1.Refresh(); } + /// /// 快速定位 菜单按钮 /// @@ -2559,6 +2603,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1); fly.Show(this); } + /// /// 图层管理 菜单按钮 /// @@ -2594,6 +2639,7 @@ Refresh(); } } + /// /// 全屏显示 菜单按钮 /// @@ -2615,23 +2661,25 @@ //任务栏 [DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)] static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow); + int widthOld; int heightOld; int xOld; int yOld; + /// /// 全屏显示功能实现(完善) /// private void FullScreen() { - if (!m_bFullScreen) // 启用全屏 + if (!m_bFullScreen) // 启用全屏 { xOld = Location.X; yOld = Location.Y; widthOld = Width; heightOld = Height; - SuspendLayout();//挂起 + SuspendLayout(); //挂起 FormBorderStyle = FormBorderStyle.Sizable; WindowState = FormWindowState.Maximized; @@ -2665,13 +2713,13 @@ ribbonControl1.Visible = false; pictureBox1.Visible = false; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = true; } - else // 取消全屏 + else // 取消全屏 { - SuspendLayout();//挂起 + SuspendLayout(); //挂起 //////任务栏 IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null); @@ -2699,7 +2747,7 @@ ribbonControl1.Visible = true; pictureBox1.Visible = true; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = false; Focus(); //初始化隐藏图层管理 @@ -2787,10 +2835,12 @@ } Image printImage; + private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(printImage, 10, 10); } + /// /// 输出地图 菜单 /// @@ -2815,7 +2865,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -2835,6 +2885,7 @@ } } } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 目标图层 菜单 @@ -2850,6 +2901,7 @@ GSOLayer layer = node.Tag as GSOLayer; globeControl1.Globe.DestLayerFeatureAdd = layer; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可选择 菜单 @@ -2864,6 +2916,7 @@ LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked; if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可编辑 菜单 @@ -2878,6 +2931,7 @@ LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked; if (layer != null) layer.Editable = LayerEditableMenuItem.Checked; } + /// /// 图层目录树 右键菜单中的 保存 菜单 /// @@ -2904,6 +2958,7 @@ panelOfTable.Visible = false; clearFeatureHighLight(); } + /// /// 主窗体关闭事件处理 /// @@ -2918,6 +2973,7 @@ } #region 完善(各种净距分析) + /// /// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2941,6 +2997,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2948,7 +3005,7 @@ /// private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxEx4.Enabled = checkBoxX8.Checked; if (checkBoxX8.Checked) { @@ -2964,6 +3021,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2989,6 +3047,7 @@ comboBoxEx1.Enabled = true; } } + /// /// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2996,7 +3055,7 @@ /// private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxX7.Checked) { comboBoxEx4.SelectedItem = null; @@ -3014,6 +3073,7 @@ comboBoxEx4.Enabled = true; } } + /// /// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3038,6 +3098,7 @@ dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3062,9 +3123,10 @@ dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name; } } + Dictionary featCount = new Dictionary(); Dictionary featLenth = new Dictionary(); - Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置 + Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置 /// /// 垂直净距分析 功能界面中的 开始分析按钮 事件处理 @@ -3111,7 +3173,7 @@ GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature; if (selectedFeature == null) continue; selectState = 1; - VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun); + VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun); } } else if (checkBoxX2.Checked) // 选择图层 @@ -3160,7 +3222,8 @@ /// /// /// - private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible) + private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, + GSOPoint3d pntIntersect2, double distance, bool markerVisible) { if (pntIntersect1 == null || pntIntersect2 == null) { @@ -3175,9 +3238,9 @@ GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格 //设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255 style.LineColor = Color.GreenYellow; - style.LineWidth = 3; //设置线的宽度为3 - style.VertexVisible = true; //显示线的节点 - disline.Style = style; //把风格添加到线上 + style.LineWidth = 3; //设置线的宽度为3 + style.VertexVisible = true; //显示线的节点 + disline.Style = style; //把风格添加到线上 disline.AltitudeMode = EnumAltitudeMode.Absolute; GSOFeature line = new GSOFeature(); @@ -3186,7 +3249,7 @@ GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = pntIntersect1.X; dismarker.Y = pntIntersect1.Y; - dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2; + dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2; string disStr = distance.ToString("0.00"); if (disStr != "0.00") @@ -3216,7 +3279,9 @@ return dismarker.Position; } + #region wxl + /// /// wxl重构,碰撞分析 /// @@ -3225,7 +3290,8 @@ /// private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames) { - List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames); + List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, + pipelineLayerNames); if (result == null) { selectState = 0; @@ -3245,14 +3311,16 @@ dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name; GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; - if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false) + if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == + false) { GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = featureAnalysisInfo.point1.X; dismarker.Y = featureAnalysisInfo.point1.Y; - dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2; + dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2; dismarker.AltitudeMode = EnumAltitudeMode.Absolute; - m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录 + m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, + dismarker.Position); //添加飞行位置记录 } if (featCount.ContainsKey(feat2Caption)) { @@ -3273,16 +3341,19 @@ } } + /// /// wxl重构,垂直净距分析 /// /// /// /// - private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance) + private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, + double verticalDistance) { - List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames, - verticalDistance); + List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, + selectedFeature, pipelineLayerNames, + verticalDistance); if (result == null) { selectState = 0; @@ -3304,7 +3375,8 @@ GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米"; - GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true); + GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, + featureAnalysisInfo.point2, markerInfo, true); if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false) { m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录 @@ -3342,7 +3414,8 @@ DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y); if (hittestinfo.RowIndex > -1) { - string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); @@ -3399,7 +3472,7 @@ MessageBox.Show("没有不符合净距标准的管线!", "提示"); } - for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++) + for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++) { if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) @@ -3413,7 +3486,9 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + #region wxl 水平净距分析重构 + /// /// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能 /// @@ -3422,8 +3497,9 @@ /// private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis) { - - Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature, + + Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1, + selectedFeature, _pipelineLayerNames, dis); if (featureMap == null) { @@ -3463,6 +3539,7 @@ } } } + #endregion /// @@ -3482,7 +3559,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3492,6 +3569,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 碰撞分析 功能界面中 开始分析按钮 事件处理 /// @@ -3516,7 +3594,7 @@ m_FeaturesWithBianhao.Clear(); globeControl1.Globe.Action = EnumAction3D.ActionNull; Cursor = Cursors.WaitCursor; - if (checkBoxX3.Checked) // 选择管线 + if (checkBoxX3.Checked) // 选择管线 { for (int i = 0; i < dataGridViewX4.Rows.Count; i++) { @@ -3524,7 +3602,7 @@ if (selectedFeature == null) continue; selectState = 1; // VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0); - CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames); + CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames); } } else if (checkBoxX4.Checked) // 选择图层 @@ -3548,7 +3626,8 @@ { if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer)) { - listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米"); + listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + + featLenth[pipelineLayer].ToString("0.00") + "米"); } } } @@ -3564,6 +3643,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 碰撞分析功能界面中 表格的 双击定位 功能 /// @@ -3574,12 +3654,14 @@ if (e.Button != MouseButtons.Left) return; DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y); if (hittestinfo.RowIndex <= -1) return; - string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); } } + /// /// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理 /// @@ -3605,6 +3687,7 @@ comboBoxEx3.Enabled = true; } } + /// /// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理 /// @@ -3628,6 +3711,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理 /// @@ -3653,6 +3737,7 @@ dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 覆土分析功能操作界面中的 开始分析 按钮事件处理 /// @@ -3690,7 +3775,9 @@ { GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature; if (rowFeature == null) continue; - string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name; + string featureName = isFeatureContainsBianhao(rowFeature) + ? rowFeature.GetValue(featureIDFieldName).ToString() + : rowFeature.Name; GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) @@ -3715,28 +3802,32 @@ dataGridViewX7.Rows[idx].Tag = rowFeature; dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } } } } - else if (checkBoxX6.Checked) // 覆土分析 选择图层 + else if (checkBoxX6.Checked) // 覆土分析 选择图层 { GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString()); GSOFeatureLayer flayer = layer as GSOFeatureLayer; - if (flayer == null)return; + if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); for (int i = 0; i < feats.Length; i++) { GSOFeature f = feats[i]; string featureName = ""; - featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name; + featureName = isFeatureContainsBianhao(feats[i]) + ? feats[i].GetValue(featureIDFieldName).ToString() + : feats[i].Name; GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D; if (line == null) continue; GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D; @@ -3752,12 +3843,14 @@ dataGridViewX7.Rows[idx].Tag = f; dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } @@ -3776,6 +3869,7 @@ } Cursor = Cursors.Default; } + /// /// 覆土分析中 表格的 双击定位 功能 /// @@ -3793,7 +3887,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3803,6 +3897,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 覆土分析功能操作界面中的 导出Excel按钮 事件处理 /// @@ -3819,6 +3914,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 覆土分析功能操作界面底部的 关闭 按钮事件处理 /// @@ -3850,6 +3946,7 @@ //Refresh(); } + /// /// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3872,6 +3969,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3894,6 +3992,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析功能界面中 关闭按钮 事件处理 /// @@ -3926,6 +4025,7 @@ Refresh(); } + /// /// 水平净距分析功能界面中 删除缓冲区按钮 事件处理 /// @@ -3954,6 +4054,7 @@ Refresh(); } + /// /// 导出指定DataGridView控件中的内容 /// @@ -4040,6 +4141,7 @@ } } } + /// /// 垂直净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4056,6 +4158,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 水平净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4071,7 +4174,8 @@ { MessageBox.Show("表格内容为空!", "提示"); } - } + } + /// /// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理 /// @@ -4097,6 +4201,7 @@ comboBoxEx2.Enabled = true; } } + /// /// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理 /// @@ -4120,6 +4225,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理 /// @@ -4132,7 +4238,7 @@ dataGridViewX4.Rows.Clear(); dataGridViewX5.Rows.Clear(); GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString()); - + GSOFeatureLayer flayer = layer as GSOFeatureLayer; if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); @@ -4143,6 +4249,7 @@ dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 清除所有图层中的所有feature对象的高亮状态 功能 /// @@ -4180,6 +4287,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } } + /// /// 碰撞分析功能界面中 清除分析结果按钮 事件处理 /// @@ -4201,6 +4309,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 导出Excel按钮 事件处理 /// @@ -4217,6 +4326,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 碰撞分析 功能界面中 关闭按钮 事件处理 /// @@ -4239,6 +4349,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 覆土分析 功能界面中的 清除分析结果 按钮事件处理 /// @@ -4260,6 +4371,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准 /// @@ -4352,9 +4464,13 @@ { for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { - if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) + if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && + featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) { - listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米"); + listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + + "米"); } } } @@ -4370,6 +4486,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 间距分析 清除分析结果 /// @@ -4391,6 +4508,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出 /// @@ -4407,6 +4525,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 间距分析 关闭按钮 /// @@ -4428,6 +4547,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 间距分析 分析结果表格双击定位 /// @@ -4445,8 +4565,9 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); - GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); + GSOPoint3d point3d = + lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5); } @@ -4455,6 +4576,7 @@ } } } + /// /// 间距分析 选择管线复选框 /// @@ -4462,7 +4584,7 @@ /// private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxSelectPipeline.Checked) { comboBoxLayer.SelectedItem = null; @@ -4480,6 +4602,7 @@ comboBoxLayer.Enabled = true; } } + /// /// 间距分析 选择图层复选框 /// @@ -4487,7 +4610,7 @@ /// private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxLayer.Enabled = checkBoxSelectLayer.Checked; if (checkBoxSelectLayer.Checked) { @@ -4502,6 +4625,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 选择图层下拉框 /// @@ -4529,6 +4653,7 @@ } } } + /// /// 碰撞分析 /// @@ -4559,6 +4684,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 覆土分析 /// @@ -4588,6 +4714,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 间距分析 /// @@ -4621,6 +4748,7 @@ Refresh(); } + /// /// 垂直净距分析 /// @@ -4651,6 +4779,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距分析 /// @@ -4681,6 +4810,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 碰撞审查 /// @@ -4713,6 +4843,7 @@ Refresh(); } + /// /// 覆土审查 /// @@ -4743,6 +4874,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距审查 /// @@ -4773,6 +4905,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 垂直净距审查 /// @@ -4811,6 +4944,7 @@ sideBar1.Refresh(); Refresh(); } + #endregion /// @@ -4864,7 +4998,7 @@ node.ImageIndex = 0; node.SelectedImageIndex = 0; node.Checked = layer.Visible; - layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Nodes.Insert(0, node); newlayername = layer.Caption; } else @@ -4889,6 +5023,7 @@ } return objRes; } + /// /// 连接数据库 菜单事件处理 /// @@ -4906,6 +5041,7 @@ } } } + /// /// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中 /// @@ -4934,8 +5070,8 @@ /// private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { - if (e.Button != MouseButtons.Right||e.Node.Parent==null) return; - if (e.Node.Parent.Text.Equals("标注管理") ) + if (e.Button != MouseButtons.Right || e.Node.Parent == null) return; + if (e.Node.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y); @@ -4949,7 +5085,7 @@ } else { - if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return; + if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return; if (e.Node.Parent.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; @@ -4964,6 +5100,7 @@ } } } + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单 /// @@ -4988,14 +5125,14 @@ private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode) { layerTreeNode.Nodes.Clear(); - GSOLayer layer = (GSOLayer)layerTreeNode.Tag; + GSOLayer layer = (GSOLayer) layerTreeNode.Tag; // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中 if (layer.Dataset is GSOFeatureDataset) { VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode); } } - + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单 /// @@ -5011,6 +5148,7 @@ globeControl1.Globe.Refresh(); node.Remove(); } + /// /// 图层目录树的 节点对应的复选框选中状态改变事件处理 /// @@ -5021,10 +5159,10 @@ if (e.Action != TreeViewAction.Unknown) { //wxl优化标注管理树形结构 - TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node); + TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node); } } - + /// /// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单 /// @@ -5039,6 +5177,7 @@ node.Nodes.Clear(); globeControl1.Refresh(); } + /// /// 一键审核---导入数据 /// @@ -5071,6 +5210,7 @@ MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示"); } } + /// ///自动导出图片 /// @@ -5079,7 +5219,7 @@ private void buttonItem130_Click_1(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "导出审核图"); - + Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0)); Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height)); @@ -5096,7 +5236,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -5116,6 +5256,7 @@ } } } + /// /// 一键审核功能 /// @@ -5125,11 +5266,12 @@ { LogManager.saveLog(Utility.userName, buttonItem128.Text); if (boolfrmShResult) - {//关闭等待窗口,否则会一直存在下去 + { +//关闭等待窗口,否则会一直存在下去 MessageBox.Show("正在审核或关闭上次审核结果才能进行审核"); return; } - frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode + frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode if (frmSh.ShowDialog() == DialogResult.OK) { boolfrmShResult = true; @@ -5149,7 +5291,7 @@ { try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer); }); @@ -5170,7 +5312,7 @@ try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { frmShResult.Show(); returnShTap(); @@ -5198,6 +5340,7 @@ if (redLayer != null) redLayer.Visible = false; } + /// /// 清除渲染结果 /// @@ -5215,6 +5358,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 审核入库 /// @@ -5226,6 +5370,7 @@ FrmShRK frmShrk = new FrmShRK(globeControl1); frmShrk.Show(); } + /// /// 模拟设计修改 /// @@ -5243,6 +5388,7 @@ frmModify.Show(); boolfrmModify = true; } + /// /// 一键审核中调节透明度 /// @@ -5259,6 +5405,7 @@ layer.Opaque = 100 - sliderItem1.Value; optiValue = sliderItem1.Value; } + /// /// 红线审核中的透明度分析 /// @@ -5274,9 +5421,12 @@ layer.Opaque = 100 - sliderItem3.Value; optiValue = sliderItem3.Value; } + #region yanxiaowei + //初始化DataGridViewX1控件 public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid); + /// /// 代理函数,操作DatgridViewX1 /// @@ -5301,7 +5451,9 @@ globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注 } } + FrmAnalysisGuiHuaResult from; + /// /// 主窗体下方属性表格 双击定位 功能 /// @@ -5371,6 +5523,7 @@ } } } + /// /// 空间查询 /// @@ -5384,17 +5537,19 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 关键字查询 /// /// /// private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e) - { + { LogManager.saveLog(Utility.userName, "关键字查询"); FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 编号查询 /// @@ -5406,6 +5561,7 @@ FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 坐标查询 /// @@ -5417,6 +5573,7 @@ FrmSetLatLonPos.ShowForm(globeControl1); } + /// /// 附属物查询 /// @@ -5428,6 +5585,7 @@ FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1); } + /// /// 管径查询 /// @@ -5439,6 +5597,7 @@ FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 材质查询 /// @@ -5450,6 +5609,7 @@ FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 基本查询 /// @@ -5461,6 +5621,7 @@ FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 复合查询 /// @@ -5472,6 +5633,7 @@ FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 关联查询 /// @@ -5494,14 +5656,19 @@ GSOLayer layer = null; globeControl1.Globe.GetSelectObject(j, out feature, out layer); - if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D - || feature.Geometry.Type == EnumGeometryType.GeoWater)) + if (feature == null && feature.Geometry == null || + (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D + || feature.Geometry.Type == EnumGeometryType.GeoWater)) return; - ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames, - Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance); + ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, + Utility.workwellLayerNames, + Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, + valueAllowance); } } + #endregion + /// /// 清除分析(完善) /// @@ -5531,14 +5698,14 @@ NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1); - globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线 + globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线 // ClearUpDownTraceAnalysis(); //清除上下游分析 - globeControl1.Globe.RemoveAllPits();//清除所有坑 - MarkTools.removeAllMarker(globeControl1);//清除所有标注 - clearFeatureHighLight();//取消管线高亮 + globeControl1.Globe.RemoveAllPits(); //清除所有坑 + MarkTools.removeAllMarker(globeControl1); //清除所有标注 + clearFeatureHighLight(); //取消管线高亮 - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layerGround != null) { layerGround.Visible = true; @@ -5549,6 +5716,7 @@ globeControl1.Refresh(); globeControl2.Refresh(); } + /// /// 管线长度全区域统计 /// @@ -5557,9 +5725,11 @@ private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "管线长度统计"); - FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 管线长度绘制区域统计 /// @@ -5573,6 +5743,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 阀门数量全区域统计 /// @@ -5586,6 +5757,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } + /// /// 阀门数量绘制区域统计 /// @@ -5599,6 +5771,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 井盖数量全区域统计 /// @@ -5609,6 +5782,7 @@ FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1); frm.Show(this); } + /// /// 井盖数量绘制区域统计 /// @@ -5622,6 +5796,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 管径分段统计全区域统计 /// @@ -5633,6 +5808,7 @@ Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分段统计绘制区域统计 /// @@ -5645,6 +5821,7 @@ trackflag = null; Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 埋深分段统计全区域统计 /// @@ -5655,6 +5832,7 @@ LogManager.saveLog(Utility.userName, "埋深分段统计"); FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 埋深分段统计绘制区域统计 /// @@ -5666,6 +5844,7 @@ trackflag = null; FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 管径分类统计全区域统计 /// @@ -5677,6 +5856,7 @@ FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分类统计绘制区域统计 /// @@ -5689,6 +5869,7 @@ trackflag = null; FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 材质分类统计全区域统计 /// @@ -5700,6 +5881,7 @@ FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 材质分类统计绘制区域统计 /// @@ -5712,6 +5894,7 @@ trackflag = null; FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 附属物分类统计全区域统计 /// @@ -5723,6 +5906,7 @@ FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0); } + /// /// 附属物分类统计绘制区域统计 /// @@ -5735,7 +5919,9 @@ trackflag = null; FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1); } + #region Predaotr,断面分析 + /// /// 横断面分析 /// @@ -5748,6 +5934,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis; } + /// /// 纵断面分析 /// @@ -5767,7 +5954,8 @@ GSOFeature feature; GSOLayer layer; globeControl1.Globe.GetSelectObject(i, out feature, out layer); - if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) + if (feature != null && feature.Geometry != null && + feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) { selectFeatures.Add(feature); } @@ -5777,6 +5965,7 @@ FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats); frm.Show(this); } + /// /// 道路断面分析 /// @@ -5789,6 +5978,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis; } + /// /// 基线剖面分析 /// @@ -5801,7 +5991,9 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis; } + #endregion + /// /// 创建拓扑 /// @@ -5815,7 +6007,9 @@ FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1); frm.Show(this); } + #region Predator :拓扑分析 + /// /// 上游分析 /// @@ -5827,6 +6021,7 @@ LogManager.saveLog(Utility.userName, "上游分析"); NetworkTraceUpDown(true); } + /// /// 下游分析 /// @@ -5838,6 +6033,7 @@ LogManager.saveLog(Utility.userName, "下游分析"); NetworkTraceUpDown(false); } + /// /// 上下游追踪 功能 /// @@ -5845,7 +6041,8 @@ private void NetworkTraceUpDown(Boolean bTraceUp) { GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5853,8 +6050,9 @@ GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer; NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp, - selLineFeature, selLayer); + selLineFeature, selLayer); } + /// /// 流向分析 /// @@ -5868,6 +6066,7 @@ FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 关阀分析 /// @@ -5907,6 +6106,7 @@ MessageBox.Show("未找到关闭阀门"); } } + /// /// 连通分析 /// @@ -5933,6 +6133,7 @@ } NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0); } + /// /// 爆管分析 /// @@ -5940,10 +6141,11 @@ /// private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e) { - NetworkTraceUpDown(true); //上游追踪: + NetworkTraceUpDown(true); //上游追踪: GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5954,7 +6156,9 @@ 关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析: } + #endregion + /// /// 多边形开挖 /// @@ -5968,6 +6172,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上 } + /// /// 挖方量分析 /// @@ -5981,6 +6186,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 沿线开挖 /// @@ -5994,6 +6200,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis; } + /// /// 创建隧道 /// @@ -6012,9 +6219,9 @@ globeControl1.Globe.DestLayerFeatureAdd = tunnel; tunnel.Editable = true; enumDesignMode = EnumDesignMode.AddTunnel; - } } + /// /// 隐藏隧道 /// @@ -6030,6 +6237,7 @@ layer.Visible = !layer.Visible; } } + /// /// 删除隧道 /// @@ -6066,6 +6274,7 @@ MessageBox.Show("请选中要删除的隧道!", "提示"); } } + /// /// 通视分析 /// @@ -6076,8 +6285,11 @@ //日志记录 LogManager.saveLog(Utility.userName, "通视分析"); - globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull; + globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis + ? EnumAction3D.VisibilityAnalysis + : EnumAction3D.ActionNull; } + /// /// 可视域分析 /// @@ -6089,6 +6301,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis; } + /// /// 可视包络分析 /// @@ -6100,6 +6313,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis; } + /// /// 缓冲区分析 /// @@ -6134,6 +6348,7 @@ } } + /// /// 附属物分析 /// @@ -6147,6 +6362,7 @@ FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp); dlg.Show(this); } + /// /// 无源淹没分析 /// @@ -6159,6 +6375,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; trackflag = "FloodAnalysis"; } + /// /// 水平距离 /// @@ -6173,6 +6390,7 @@ globeControl1.Globe.DistanceRuler.SpaceMeasure = false; 高度量算ToolStripMenuItem1.Checked = false; } + /// /// 垂直距离 /// @@ -6187,6 +6405,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureHeight; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 空间距离 /// @@ -6201,6 +6420,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = true; } + /// /// 地表距离 /// @@ -6215,6 +6435,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 高度量算 /// @@ -6230,6 +6451,7 @@ if (!高度量算ToolStripMenuItem1.Checked) return; globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 水平面积 /// @@ -6244,6 +6466,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureArea; globeControl1.Globe.AreaRuler.SpaceMeasure = true; } + /// /// 地表面积 /// @@ -6261,6 +6484,7 @@ } # region Fan 重构标注代码 + /// /// 标高标注 /// @@ -6283,6 +6507,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Altitude, ""); } + /// /// 管径标注 /// @@ -6302,8 +6527,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Diameter, ""); + globeControl1, EnumMarkLayer.Mark_Diameter, ""); } + /// /// 埋深标注 /// @@ -6327,6 +6553,7 @@ globeControl1, EnumMarkLayer.Mark_Depth, ""); } + /// /// 坐标标注 /// @@ -6348,6 +6575,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Location, ""); } + /// /// 距离标注 /// @@ -6361,6 +6589,7 @@ trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis; } + /// /// 自定义标注 /// @@ -6376,6 +6605,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText); } } + /// /// 扯旗标注 /// @@ -6391,6 +6621,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent); } } + /// /// 坡度标注 /// @@ -6411,8 +6642,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Slope, ""); + globeControl1, EnumMarkLayer.Mark_Slope, ""); } + /// /// 属性标注 /// @@ -6428,6 +6660,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText); } } + /// /// 标注管理 /// @@ -6490,6 +6723,7 @@ } #endregion + /// /// 飞行到目标点 /// @@ -6502,6 +6736,7 @@ FrmSetFlytoPos.ShowForm(globeControl1); } + /// /// 自定义飞行 /// @@ -6539,6 +6774,7 @@ globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false); } } + /// /// 绕中心点飞行 /// @@ -6552,6 +6788,7 @@ globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds); globeControl1.Globe.CurFlyID = 1; } + /// /// 绕眼睛飞行 /// @@ -6565,6 +6802,7 @@ globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees); globeControl1.Globe.CurFlyID = 2; } + /// /// 权限管理 /// @@ -6578,6 +6816,7 @@ FrmUserRoleMgr frm = new FrmUserRoleMgr(); frm.ShowDialog(); } + /// /// 数据库管理 /// @@ -6592,6 +6831,7 @@ FrmDbManager frm = new FrmDbManager(); frm.ShowDialog(); } + /// /// 用户列表 /// @@ -6605,6 +6845,7 @@ FrmUserManager frm = new FrmUserManager(); frm.ShowDialog(); } + /// /// 创建新用户 /// @@ -6618,6 +6859,7 @@ FrmUserAdd frm = new FrmUserAdd(-1); frm.ShowDialog(); } + /// /// 人员修改 /// @@ -6631,6 +6873,7 @@ FrmAppUSER appUser = new FrmAppUSER(); appUser.ShowDialog(); } + /// /// 增加人员 /// @@ -6644,6 +6887,7 @@ FrmAppUSERRESET appUserReset = new FrmAppUSERRESET(); appUserReset.ShowDialog(); } + /// /// 热点功能统计 /// @@ -6738,6 +6982,7 @@ FrmAPPregion appregion = new FrmAPPregion("拷贝审核"); appregion.Show(); } + private void buttonItemSPSZ_Click(object sender, EventArgs e) { //日志记录 @@ -6746,6 +6991,7 @@ FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2); frm.Show(this); } + /// /// 综合规划区域审查 /// @@ -6758,6 +7004,7 @@ FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 数据质量检查 /// @@ -6770,6 +7017,7 @@ FrmValiData frm = new FrmValiData(globeControl1); frm.ShowDialog(); } + /// /// 数据预处理 /// @@ -6783,6 +7031,7 @@ FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1); frm.ShowDialog(this); } + /// /// 连接数据库 /// @@ -6803,6 +7052,7 @@ } } } + /// /// 管线入库 /// @@ -6827,6 +7077,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 附属物入库 /// @@ -6852,6 +7103,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 坐标转换 /// @@ -6865,6 +7117,7 @@ FrmProject frm = new FrmProject(); frm.ShowDialog(); } + /// /// 元数据基本管理 /// @@ -6878,6 +7131,7 @@ FrmMetadata frmmd = new FrmMetadata(); frmmd.ShowDialog(); } + /// /// 元数据查询管理 /// @@ -6891,6 +7145,7 @@ FrmMetadataStat frmmds = new FrmMetadataStat(); frmmds.ShowDialog(); } + /// /// 操作日志管理 /// @@ -6904,6 +7159,7 @@ FrmLogOper frmlo = new FrmLogOper(); frmlo.ShowDialog(); } + /// /// 数据字典管理 /// @@ -6917,6 +7173,7 @@ FrmMDDictory frmmdd = new FrmMDDictory(); frmmdd.ShowDialog(); } + /// /// 数据库备份 /// @@ -6931,7 +7188,9 @@ FrmBACKORACLE backOracle = new FrmBACKORACLE(); backOracle.Show(); } + #region 模拟规划:Fan + /// /// 创建管段 /// @@ -6949,6 +7208,7 @@ globeControl1.Globe.Action = EnumAction3D.DrawPolyline; } } + /// /// 创建附属物 /// @@ -6968,6 +7228,7 @@ dlg.Show(this); } } + /// /// 创建特征管点 /// @@ -6987,6 +7248,7 @@ dlg.Show(this); } } + /// /// 绘制城市七线 /// @@ -7013,7 +7275,9 @@ layer.Editable = true; } } + #endregion + /// /// 选中对象 /// @@ -7026,6 +7290,7 @@ globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 平移对象 /// @@ -7038,6 +7303,7 @@ globeControl1.Globe.Action = EnumAction3D.MoveObject; } + /// /// 升降对象 /// @@ -7050,6 +7316,7 @@ globeControl1.Globe.Action = EnumAction3D.ElevateObject; } + /// /// 旋转对象 /// @@ -7062,6 +7329,7 @@ globeControl1.Globe.Action = EnumAction3D.RotateObject; } + /// /// 连接管段 /// @@ -7079,6 +7347,7 @@ } globeControl1.Globe.InsertJointPipeline(false); } + /// /// 后退 /// @@ -7089,6 +7358,7 @@ LogManager.saveLog(Utility.userName, "后退"); globeControl1.Globe.UnDoEdit(); } + /// /// 前进 /// @@ -7100,6 +7370,7 @@ globeControl1.Globe.ReDoEdit(); } + /// /// 导出CAD /// @@ -7111,13 +7382,14 @@ LogManager.saveLog(Utility.userName, "导出CAD"); #region 导出成dxf格式 + List listVectorNames = new List(); for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通" - || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" - || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" - || Utility.m_PipelineLayerNames[i] == "供电") + || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" + || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" + || Utility.m_PipelineLayerNames[i] == "供电") { continue; } @@ -7155,10 +7427,12 @@ } } - FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames); + FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames); frm.ShowDialog(); + #endregion } + /// /// 导出矢量 /// @@ -7231,14 +7505,14 @@ globeControl1.Globe.GetSelectObject(i, out f, out layer); if (layer != null) globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete); - bool result = FeatureTools.DeleteFeature(f); + bool result = FeatureTools.DeleteFeature(f); if (result) delSuccessCount++; globeControl1.Refresh(); - + } - MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示"); + MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示"); globeControl1.Globe.Action = EnumAction3D.ActionNull; } @@ -7279,6 +7553,7 @@ LogHelper.WriteLog(typeof(MainFrm), ex); } } + void addRedLineDataToDataGridView(List dt, DataGridView dataGridView) { DataTable table = new DataTable(); @@ -7345,12 +7620,12 @@ LogManager.saveLog(Utility.userName, sliderItem2.Text); globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; } - layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; @@ -7359,6 +7634,7 @@ optiValue = sliderItem2.Value; } + /// /// 数据管理导入文件 /// @@ -7370,7 +7646,8 @@ LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text); OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; dlg.Multiselect = true; if (dlg.ShowDialog() == DialogResult.OK) { @@ -7402,6 +7679,7 @@ } } } + /// /// 导入红线(完善) /// @@ -7411,14 +7689,19 @@ { LogManager.saveLog(Utility.userName, buttonItemHX1.Text); - GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword); + GSODataSource dataSpace = + globeControl1.Globe.DataManager.OpenOracleDataSource( + Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, + Utility.DBPassword); string filepath = ""; //日志记录 OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; dlg.Multiselect = true; #region 临时图层显示 + if (dlg.ShowDialog() == DialogResult.OK) { #region @@ -7429,7 +7712,8 @@ GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath); if (layer == null) - {//wxl + { +//wxl LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空"); continue; } @@ -7438,7 +7722,7 @@ layerRedRegion = layer; // CheckDatasetGeoReference(layer.Dataset, strDataPath); bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath); - if (!checkresult) continue;//wxl 没通过检查,跳过此次循环 + if (!checkresult) continue; //wxl 没通过检查,跳过此次循环 TreeNode node = new TreeNode(); node.Tag = layer; node.Text = layer.Dataset.Caption; @@ -7482,7 +7766,8 @@ globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); + GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (roadlayer != null) { roadlayer.Opaque = 100 - sliderGroundTransSet1.Value; @@ -7502,8 +7787,10 @@ #endregion } + #endregion } + /// /// 定位 /// @@ -7516,6 +7803,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2); fly.Show(this); } + /// /// 红线审核 /// @@ -7529,7 +7817,8 @@ globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent; globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent; - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, + -4, 50, 800); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; globeControl1.Refresh(); @@ -7551,6 +7840,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础工具 /// @@ -7582,6 +7872,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 一键审核 /// @@ -7613,7 +7904,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - + /// /// 双屏对比 /// @@ -7647,6 +7938,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 文档管理 /// @@ -7678,6 +7970,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础管理 /// @@ -7709,6 +8002,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 权限管理 /// @@ -7754,6 +8048,7 @@ int width = Width; FrmCompareFeature.ShowForm(globeControl1, globeControl2, width); } + /// /// 红线审核导出图片 /// @@ -7779,7 +8074,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -7799,6 +8094,7 @@ } } } + /// /// 标识器全区域统计 /// @@ -7810,6 +8106,7 @@ FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null); bsqStatis.Show(this); } + /// /// 标识器绘制区域统计 /// @@ -7844,6 +8141,7 @@ globeControl1.Refresh(); } } + /// /// 规划数据入库 /// @@ -7905,7 +8203,7 @@ frm.ShowDialog(); } } - + //文档管理 操作 private void btn_document_info_Click(object sender, EventArgs e) { @@ -7945,7 +8243,8 @@ GSORect2d rd = lyr.LatLonBounds; GSOPoint2d rdcenter = rd.Center; - globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100); + globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, + 100); globeControl1.Refresh(); } @@ -8016,6 +8315,7 @@ } #region 右屏管纵数据控制 + private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e) { lendendGZ50.Visible = true; @@ -8108,6 +8408,7 @@ lendendGZ24_2.Visible = false; lendendGZ24_3.Visible = false; } + #endregion private void buttonItemPasswordReset_Click(object sender, EventArgs e) @@ -8117,10 +8418,32 @@ } private void pictureBox1_Paint(object sender, PaintEventArgs e) - { + { string welcomeUser = "欢迎您:" + Utility.userName; e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50); } + //电子标识系统合并 + private void btn_flag_Click(object sender, EventArgs e) + { + if (FrmFlagManagers.IS_OPEN) + { + return; + } + FrmFlagManagers frm = new FrmFlagManagers(globeControl1); + frm.Show(this); + } + + private void slider4ground_ValueChanged(object sender, EventArgs e) + { + LogManager.saveLog(Utility.userName, slider4ground.Text); + + globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value; + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + if (layer != null) + layer.Opaque = 100 - slider4ground.Value; + optiValue = slider4ground.Value; + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 1495bcd..b086c69 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -89,6 +89,7 @@ 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(); @@ -243,6 +244,23 @@ this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl(); + this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_flag = new DevComponents.DotNetBar.ButtonItem(); + this.slider4ground = new DevComponents.DotNetBar.SliderItem(); + this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_document_info = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); + this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem(); + this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem(); this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem(); @@ -254,19 +272,15 @@ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem(); this.btn_check_history = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel5 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItemHX1 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem(); - this.sliderItem3 = new DevComponents.DotNetBar.SliderItem(); - this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemLocation = new DevComponents.DotNetBar.ButtonItem(); - this.sliderItem2 = new DevComponents.DotNetBar.SliderItem(); - this.buttonItemGBJC = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_user_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_role_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem(); + this.btn_user_role = new DevComponents.DotNetBar.ButtonItem(); + this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem(); this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem(); @@ -322,28 +336,19 @@ this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); - this.btn_user_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_role_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem(); - this.btn_user_role = new DevComponents.DotNetBar.ButtonItem(); - this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); - this.btn_document_info = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); - this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem(); - this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemLocation = new DevComponents.DotNetBar.ButtonItem(); + this.sliderItem2 = new DevComponents.DotNetBar.SliderItem(); + this.buttonItemGBJC = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel5 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItemHX1 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem(); + this.sliderItem3 = new DevComponents.DotNetBar.SliderItem(); this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem(); @@ -351,6 +356,7 @@ this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem(); + this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem(); this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem(); @@ -528,7 +534,6 @@ this.labelX16 = new DevComponents.DotNetBar.LabelX(); this.labelX17 = new DevComponents.DotNetBar.LabelX(); this.panelEx4 = new DevComponents.DotNetBar.PanelEx(); - this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -539,13 +544,14 @@ this.contextMenuStrip3.SuspendLayout(); this.contextMenuStripDeleteLayerNode.SuspendLayout(); this.ribbonControl1.SuspendLayout(); - this.ribbonPanel12.SuspendLayout(); - this.ribbonPanel5.SuspendLayout(); - this.ribbonPanel6.SuspendLayout(); - this.ribbonPanel15.SuspendLayout(); - this.ribbonPanel2.SuspendLayout(); + this.ribbonPanel3.SuspendLayout(); this.ribbonPanel4.SuspendLayout(); this.ribbonPanel1.SuspendLayout(); + this.ribbonPanel12.SuspendLayout(); + this.ribbonPanel2.SuspendLayout(); + this.ribbonPanel15.SuspendLayout(); + this.ribbonPanel6.SuspendLayout(); + this.ribbonPanel5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.panelOfTable.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit(); @@ -966,6 +972,18 @@ this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); this.layerSensorTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); // + // 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); + this.layerTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseClick); + this.layerTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); + // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2158,13 +2176,14 @@ // 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.ribbonPanel4); + this.ribbonControl1.Controls.Add(this.ribbonPanel1); + this.ribbonControl1.Controls.Add(this.ribbonPanel12); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Controls.Add(this.ribbonPanel6); this.ribbonControl1.Controls.Add(this.ribbonPanel5); - this.ribbonControl1.Controls.Add(this.ribbonPanel12); - this.ribbonControl1.Controls.Add(this.ribbonPanel1); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -2174,7 +2193,8 @@ this.ribbonTabItem9, this.ribbonTabItem4, this.ribbonTabItem14, - this.ribbonTabItem2}); + this.ribbonTabItem2, + this.ribbonTabItemBSQ}); this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F); this.ribbonControl1.Location = new System.Drawing.Point(0, 82); this.ribbonControl1.MdiSystemItemVisible = false; @@ -2206,6 +2226,302 @@ this.ribbonControl1.Text = "ribbonControl1"; this.ribbonControl1.UseCustomizeDialog = false; // + // ribbonPanel3 + // + this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel3.Controls.Add(this.ribbonBar4); + this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + 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.Style.Class = ""; + this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel3.StyleMouseDown.Class = ""; + this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel3.StyleMouseOver.Class = ""; + this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel3.TabIndex = 40; + // + // ribbonBar4 + // + this.ribbonBar4.AutoOverflowEnabled = true; + // + // + // + this.ribbonBar4.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar4.BackgroundStyle.Class = ""; + this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar4.ContainerControlProcessDialogKey = true; + this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_flag, + this.slider4ground}); + this.ribbonBar4.Location = new System.Drawing.Point(3, 0); + this.ribbonBar4.Name = "ribbonBar4"; + this.ribbonBar4.Size = new System.Drawing.Size(304, 59); + this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar4.TabIndex = 0; + // + // + // + this.ribbonBar4.TitleStyle.Class = ""; + this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar4.TitleStyleMouseOver.Class = ""; + this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar4.TitleVisible = false; + // + // btn_flag + // + this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover; + this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_flag.Name = "btn_flag"; + this.btn_flag.SubItemsExpandWidth = 14; + this.btn_flag.Text = "标识器管理"; + this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click); + // + // slider4ground + // + this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.slider4ground.LabelWidth = 50; + this.slider4ground.Name = "slider4ground"; + this.slider4ground.Text = "地面透明度"; + this.slider4ground.TextColor = System.Drawing.Color.Black; + this.slider4ground.Value = 0; + this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged); + // + // ribbonPanel4 + // + this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel4.Controls.Add(this.ribbonBar1); + this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel4.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel4.Name = "ribbonPanel4"; + this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95); + // + // + // + this.ribbonPanel4.Style.Class = ""; + this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel4.StyleMouseDown.Class = ""; + this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel4.StyleMouseOver.Class = ""; + this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel4.TabIndex = 36; + this.ribbonPanel4.Visible = false; + // + // ribbonBar1 + // + this.ribbonBar1.AutoOverflowEnabled = true; + // + // + // + this.ribbonBar1.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar1.BackgroundStyle.Class = ""; + this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar1.ContainerControlProcessDialogKey = true; + this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_document_info}); + this.ribbonBar1.Location = new System.Drawing.Point(3, 0); + this.ribbonBar1.Name = "ribbonBar1"; + this.ribbonBar1.Size = new System.Drawing.Size(88, 92); + this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar1.TabIndex = 0; + // + // + // + this.ribbonBar1.TitleStyle.Class = ""; + this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar1.TitleStyleMouseOver.Class = ""; + this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar1.TitleVisible = false; + // + // btn_document_info + // + this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image"))); + this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_document_info.Name = "btn_document_info"; + this.btn_document_info.SubItemsExpandWidth = 14; + this.btn_document_info.Text = "文档管理"; + this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click); + // + // ribbonPanel1 + // + this.ribbonPanel1.AutoSize = true; + this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray; + 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.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.Style.Class = ""; + this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel1.StyleMouseDown.Class = ""; + this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel1.StyleMouseOver.Class = ""; + this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel1.TabIndex = 1; + this.ribbonPanel1.Visible = false; + // + // ribbonBar21 + // + this.ribbonBar21.AutoOverflowEnabled = true; + this.ribbonBar21.BackColor = System.Drawing.Color.White; + // + // + // + this.ribbonBar21.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar21.BackgroundStyle.Class = ""; + this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar21.ContainerControlProcessDialogKey = true; + this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItem87, + this.buttonItem88, + this.buttonItem27, + this.sliderGroundTransSet1, + this.buttonItem91, + this.buttonItem1, + this.btnlegendSet, + this.buttonItem89, + this.btnOutputJPG}); + this.ribbonBar21.Location = new System.Drawing.Point(3, 0); + this.ribbonBar21.Name = "ribbonBar21"; + this.ribbonBar21.Size = new System.Drawing.Size(649, 59); + this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar21.TabIndex = 2; + this.ribbonBar21.Text = "浏览模式"; + // + // + // + this.ribbonBar21.TitleStyle.Class = ""; + this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar21.TitleStyleMouseOver.Class = ""; + this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar21.TitleVisible = false; + // + // buttonItem87 + // + this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image"))); + this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem87.Name = "buttonItem87"; + this.buttonItem87.SubItemsExpandWidth = 14; + this.buttonItem87.Text = "地上模式"; + this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click); + // + // buttonItem88 + // + this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image"))); + this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem88.Name = "buttonItem88"; + this.buttonItem88.SubItemsExpandWidth = 14; + this.buttonItem88.Text = "地下模式"; + this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click); + // + // buttonItem27 + // + this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image"))); + this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem27.Name = "buttonItem27"; + this.buttonItem27.SubItemsExpandWidth = 14; + this.buttonItem27.Text = "行走模式"; + this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click); + // + // buttonItem91 + // + this.buttonItem91.ForeColor = System.Drawing.Color.Black; + this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image"))); + this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem91.Name = "buttonItem91"; + this.buttonItem91.SubItemsExpandWidth = 14; + this.buttonItem91.Text = "快速定位"; + this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click); + // + // buttonItem1 + // + this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image"))); + this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem1.Name = "buttonItem1"; + this.buttonItem1.SubItemsExpandWidth = 14; + this.buttonItem1.Text = "图层管理"; + this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click); + // + // btnlegendSet + // + this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image"))); + this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btnlegendSet.Name = "btnlegendSet"; + this.btnlegendSet.SubItemsExpandWidth = 14; + this.btnlegendSet.Text = "图例"; + this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click); + // + // buttonItem89 + // + this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image"))); + this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem89.Name = "buttonItem89"; + this.buttonItem89.SubItemsExpandWidth = 14; + this.buttonItem89.Text = "全屏显示"; + this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click); + // + // btnOutputJPG + // + this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image"))); + this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btnOutputJPG.Name = "btnOutputJPG"; + this.btnOutputJPG.SubItemsExpandWidth = 14; + this.btnOutputJPG.Text = "导出图片"; + this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click); + // // ribbonPanel12 // this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -2376,228 +2692,146 @@ this.btn_check_history.Text = "审核历史"; this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click); // - // ribbonPanel5 + // ribbonPanel2 // - this.ribbonPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel5.Controls.Add(this.ribbonBar2); - this.ribbonPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel5.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel5.Name = "ribbonPanel5"; - this.ribbonPanel5.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel5.Size = new System.Drawing.Size(1328, 95); + this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel2.Controls.Add(this.ribbonBar3); + this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + 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, 95); // // // - this.ribbonPanel5.Style.Class = ""; - this.ribbonPanel5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.Style.Class = ""; + this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel5.StyleMouseDown.Class = ""; - this.ribbonPanel5.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.StyleMouseDown.Class = ""; + this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel5.StyleMouseOver.Class = ""; - this.ribbonPanel5.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel5.TabIndex = 37; - this.ribbonPanel5.Visible = false; + this.ribbonPanel2.StyleMouseOver.Class = ""; + this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.TabIndex = 39; + this.ribbonPanel2.Visible = false; // - // ribbonBar2 + // ribbonBar3 // - this.ribbonBar2.AutoOverflowEnabled = true; + this.ribbonBar3.AutoOverflowEnabled = true; // // // - this.ribbonBar2.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar2.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar2.BackgroundStyle.Class = ""; - this.ribbonBar2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar2.ContainerControlProcessDialogKey = true; - this.ribbonBar2.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItemHX1, - this.buttonItemHX2, - this.buttonItemDCTP, - this.sliderItem3}); - this.ribbonBar2.Location = new System.Drawing.Point(3, 0); - this.ribbonBar2.Name = "ribbonBar2"; - this.ribbonBar2.Size = new System.Drawing.Size(350, 92); - this.ribbonBar2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar2.TabIndex = 0; + this.ribbonBar3.BackgroundStyle.Class = ""; + this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.ContainerControlProcessDialogKey = true; + this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_user_info, + this.btn_role_info, + this.btn_resc_info, + this.btn_role_resc, + this.btn_user_role, + this.btn_password_edit, + this.buttonItemPasswordReset}); + this.ribbonBar3.Location = new System.Drawing.Point(3, 0); + this.ribbonBar3.Name = "ribbonBar3"; + this.ribbonBar3.Size = new System.Drawing.Size(551, 92); + this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar3.TabIndex = 1; // // // - this.ribbonBar2.TitleStyle.Class = ""; - this.ribbonBar2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.TitleStyle.Class = ""; + this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar2.TitleStyleMouseOver.Class = ""; - this.ribbonBar2.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar2.TitleVisible = false; + this.ribbonBar3.TitleStyleMouseOver.Class = ""; + this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.TitleVisible = false; // - // buttonItemHX1 + // btn_user_info // - this.buttonItemHX1.AutoExpandOnClick = true; - this.buttonItemHX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX1.Image"))); - this.buttonItemHX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemHX1.Name = "buttonItemHX1"; - this.buttonItemHX1.SubItemsExpandWidth = 14; - this.buttonItemHX1.Text = "导入红线"; - this.buttonItemHX1.Click += new System.EventHandler(this.buttonItemHX1_Click); + this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image"))); + this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_user_info.Name = "btn_user_info"; + this.btn_user_info.SubItemsExpandWidth = 14; + this.btn_user_info.Text = "用户管理"; + this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click); // - // buttonItemHX2 + // btn_role_info // - this.buttonItemHX2.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX2.Image"))); - this.buttonItemHX2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemHX2.Name = "buttonItemHX2"; - this.buttonItemHX2.SubItemsExpandWidth = 14; - this.buttonItemHX2.Text = "红线审核"; - this.buttonItemHX2.Click += new System.EventHandler(this.buttonItemHX2_Click); + this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image"))); + this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_role_info.Name = "btn_role_info"; + this.btn_role_info.SubItemsExpandWidth = 14; + this.btn_role_info.Text = "角色管理"; + this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click); // - // buttonItemDCTP + // btn_resc_info // - this.buttonItemDCTP.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemDCTP.Image"))); - this.buttonItemDCTP.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemDCTP.Name = "buttonItemDCTP"; - this.buttonItemDCTP.SubItemsExpandWidth = 14; - this.buttonItemDCTP.Text = "导出图片"; - this.buttonItemDCTP.Click += new System.EventHandler(this.buttonItemDCTP_Click); + this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image"))); + this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_resc_info.Name = "btn_resc_info"; + this.btn_resc_info.SubItemsExpandWidth = 14; + this.btn_resc_info.Text = "资源管理"; + this.btn_resc_info.Visible = false; + this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click); // - // sliderItem3 + // btn_role_resc // - this.sliderItem3.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; - this.sliderItem3.LabelWidth = 50; - this.sliderItem3.Name = "sliderItem3"; - this.sliderItem3.Text = "地面透明度"; - this.sliderItem3.TextColor = System.Drawing.Color.Black; - this.sliderItem3.Value = 0; - this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged); - // - // ribbonPanel6 - // - this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel6.Controls.Add(this.ribbonBar6); - this.ribbonPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel6.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel6.Name = "ribbonPanel6"; - this.ribbonPanel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel6.Size = new System.Drawing.Size(1328, 95); - // - // - // - this.ribbonPanel6.Style.Class = ""; - this.ribbonPanel6.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel6.StyleMouseDown.Class = ""; - this.ribbonPanel6.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel6.StyleMouseOver.Class = ""; - this.ribbonPanel6.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel6.TabIndex = 38; - this.ribbonPanel6.Visible = false; - // - // ribbonBar6 - // - this.ribbonBar6.AutoOverflowEnabled = true; - // - // - // - this.ribbonBar6.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar6.BackgroundStyle.Class = ""; - this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar6.ContainerControlProcessDialogKey = true; - this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItemSPSZ, - this.buttonItem8, - this.buttonItemLocation, - this.sliderItem2, - this.buttonItemGBJC}); - this.ribbonBar6.Location = new System.Drawing.Point(3, 0); - this.ribbonBar6.Name = "ribbonBar6"; - this.ribbonBar6.Size = new System.Drawing.Size(427, 92); - this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar6.TabIndex = 0; - // - // - // - this.ribbonBar6.TitleStyle.Class = ""; - this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar6.TitleStyleMouseOver.Class = ""; - this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar6.TitleVisible = false; - // - // buttonItemSPSZ - // - this.buttonItemSPSZ.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemSPSZ.Image"))); - this.buttonItemSPSZ.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemSPSZ.Name = "buttonItemSPSZ"; - this.buttonItemSPSZ.SubItemsExpandWidth = 14; - this.buttonItemSPSZ.Text = "双屏设置"; - this.buttonItemSPSZ.Click += new System.EventHandler(this.buttonItemSPSZ_Click); - // - // buttonItem8 - // - this.buttonItem8.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem8.Image"))); - this.buttonItem8.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem8.Name = "buttonItem8"; - this.buttonItem8.SubItemsExpandWidth = 14; - this.buttonItem8.Text = "双屏分析"; - this.buttonItem8.Click += new System.EventHandler(this.buttonItem8_Click); + this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image"))); + this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_role_resc.Name = "btn_role_resc"; + this.btn_role_resc.SubItemsExpandWidth = 14; + this.btn_role_resc.Text = "角色授权"; + this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click); // - // buttonItemLocation + // btn_user_role // - this.buttonItemLocation.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemLocation.Image"))); - this.buttonItemLocation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemLocation.Name = "buttonItemLocation"; - this.buttonItemLocation.SubItemsExpandWidth = 14; - this.buttonItemLocation.Text = "快速定位"; - this.buttonItemLocation.Click += new System.EventHandler(this.buttonItemLocation_Click); + this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image"))); + this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_user_role.Name = "btn_user_role"; + this.btn_user_role.SubItemsExpandWidth = 14; + this.btn_user_role.Text = "用户授权"; + this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click); // - // sliderItem2 + // btn_password_edit // - this.sliderItem2.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; - this.sliderItem2.LabelWidth = 50; - this.sliderItem2.Name = "sliderItem2"; - this.sliderItem2.Text = "地面透明度"; - this.sliderItem2.TextColor = System.Drawing.Color.Black; - this.sliderItem2.Value = 0; - this.sliderItem2.ValueChanged += new System.EventHandler(this.sliderItem2_ValueChanged); + this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image"))); + this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_password_edit.Name = "btn_password_edit"; + this.btn_password_edit.SubItemsExpandWidth = 14; + this.btn_password_edit.Text = "密码修改"; + this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click); // - // buttonItemGBJC + // buttonItemPasswordReset // - this.buttonItemGBJC.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemGBJC.Image"))); - this.buttonItemGBJC.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemGBJC.Name = "buttonItemGBJC"; - this.buttonItemGBJC.SubItemsExpandWidth = 14; - this.buttonItemGBJC.Text = "国标检测"; - this.buttonItemGBJC.Click += new System.EventHandler(this.buttonItemGBJC_Click); + this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image"))); + this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemPasswordReset.Name = "buttonItemPasswordReset"; + this.buttonItemPasswordReset.SubItemsExpandWidth = 14; + this.buttonItemPasswordReset.Text = "重置密码"; + this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click); // // ribbonPanel15 // this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel15.Controls.Add(this.ribbonBar20); this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel15.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel15.Location = new System.Drawing.Point(0, 0); this.ribbonPanel15.Name = "ribbonPanel15"; this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95); // // // @@ -2614,6 +2848,7 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; + this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -2637,7 +2872,7 @@ this.buttonItemXTGL}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(283, 59); + this.ribbonBar20.Size = new System.Drawing.Size(283, 92); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -3068,352 +3303,218 @@ this.buttonItemXT4_2.Text = "人员修改"; this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click); // - // ribbonPanel2 + // ribbonPanel6 // - this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel2.Controls.Add(this.ribbonBar3); - this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); - 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.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel6.Controls.Add(this.ribbonBar6); + this.ribbonPanel6.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel6.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel6.Name = "ribbonPanel6"; + this.ribbonPanel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel6.Size = new System.Drawing.Size(1328, 95); // // // - this.ribbonPanel2.Style.Class = ""; - this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.Style.Class = ""; + this.ribbonPanel6.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel2.StyleMouseDown.Class = ""; - this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.StyleMouseDown.Class = ""; + this.ribbonPanel6.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel2.StyleMouseOver.Class = ""; - this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel2.TabIndex = 39; - this.ribbonPanel2.Visible = false; + this.ribbonPanel6.StyleMouseOver.Class = ""; + this.ribbonPanel6.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.TabIndex = 38; + this.ribbonPanel6.Visible = false; // - // ribbonBar3 + // ribbonBar6 // - this.ribbonBar3.AutoOverflowEnabled = true; + this.ribbonBar6.AutoOverflowEnabled = true; // // // - this.ribbonBar3.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar3.BackgroundStyle.Class = ""; - this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.ContainerControlProcessDialogKey = true; - this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btn_user_info, - this.btn_role_info, - this.btn_resc_info, - this.btn_role_resc, - this.btn_user_role, - this.btn_password_edit, - this.buttonItemPasswordReset}); - this.ribbonBar3.Location = new System.Drawing.Point(3, 0); - this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(551, 59); - this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar3.TabIndex = 1; + this.ribbonBar6.BackgroundStyle.Class = ""; + this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.ContainerControlProcessDialogKey = true; + this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItemSPSZ, + this.buttonItem8, + this.buttonItemLocation, + this.sliderItem2, + this.buttonItemGBJC}); + this.ribbonBar6.Location = new System.Drawing.Point(3, 0); + this.ribbonBar6.Name = "ribbonBar6"; + this.ribbonBar6.Size = new System.Drawing.Size(427, 92); + this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar6.TabIndex = 0; // // // - this.ribbonBar3.TitleStyle.Class = ""; - this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.TitleStyle.Class = ""; + this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar3.TitleStyleMouseOver.Class = ""; - this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.TitleVisible = false; + this.ribbonBar6.TitleStyleMouseOver.Class = ""; + this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.TitleVisible = false; // - // btn_user_info + // buttonItemSPSZ // - this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image"))); - this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_user_info.Name = "btn_user_info"; - this.btn_user_info.SubItemsExpandWidth = 14; - this.btn_user_info.Text = "用户管理"; - this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click); + this.buttonItemSPSZ.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemSPSZ.Image"))); + this.buttonItemSPSZ.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemSPSZ.Name = "buttonItemSPSZ"; + this.buttonItemSPSZ.SubItemsExpandWidth = 14; + this.buttonItemSPSZ.Text = "双屏设置"; + this.buttonItemSPSZ.Click += new System.EventHandler(this.buttonItemSPSZ_Click); // - // btn_role_info + // buttonItem8 // - this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image"))); - this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_role_info.Name = "btn_role_info"; - this.btn_role_info.SubItemsExpandWidth = 14; - this.btn_role_info.Text = "角色管理"; - this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click); + this.buttonItem8.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem8.Image"))); + this.buttonItem8.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem8.Name = "buttonItem8"; + this.buttonItem8.SubItemsExpandWidth = 14; + this.buttonItem8.Text = "双屏分析"; + this.buttonItem8.Click += new System.EventHandler(this.buttonItem8_Click); // - // btn_resc_info + // buttonItemLocation // - this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image"))); - this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_resc_info.Name = "btn_resc_info"; - this.btn_resc_info.SubItemsExpandWidth = 14; - this.btn_resc_info.Text = "资源管理"; - this.btn_resc_info.Visible = false; - this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click); + this.buttonItemLocation.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemLocation.Image"))); + this.buttonItemLocation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemLocation.Name = "buttonItemLocation"; + this.buttonItemLocation.SubItemsExpandWidth = 14; + this.buttonItemLocation.Text = "快速定位"; + this.buttonItemLocation.Click += new System.EventHandler(this.buttonItemLocation_Click); // - // btn_role_resc + // sliderItem2 // - this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image"))); - this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_role_resc.Name = "btn_role_resc"; - this.btn_role_resc.SubItemsExpandWidth = 14; - this.btn_role_resc.Text = "角色授权"; - this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click); + this.sliderItem2.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.sliderItem2.LabelWidth = 50; + this.sliderItem2.Name = "sliderItem2"; + this.sliderItem2.Text = "地面透明度"; + this.sliderItem2.TextColor = System.Drawing.Color.Black; + this.sliderItem2.Value = 0; + this.sliderItem2.ValueChanged += new System.EventHandler(this.sliderItem2_ValueChanged); // - // btn_user_role + // buttonItemGBJC // - this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image"))); - this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_user_role.Name = "btn_user_role"; - this.btn_user_role.SubItemsExpandWidth = 14; - this.btn_user_role.Text = "用户授权"; - this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click); + this.buttonItemGBJC.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemGBJC.Image"))); + this.buttonItemGBJC.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemGBJC.Name = "buttonItemGBJC"; + this.buttonItemGBJC.SubItemsExpandWidth = 14; + this.buttonItemGBJC.Text = "国标检测"; + this.buttonItemGBJC.Click += new System.EventHandler(this.buttonItemGBJC_Click); // - // btn_password_edit + // ribbonPanel5 // - this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image"))); - this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_password_edit.Name = "btn_password_edit"; - this.btn_password_edit.SubItemsExpandWidth = 14; - this.btn_password_edit.Text = "密码修改"; - this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click); + this.ribbonPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel5.Controls.Add(this.ribbonBar2); + this.ribbonPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel5.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel5.Name = "ribbonPanel5"; + this.ribbonPanel5.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel5.Size = new System.Drawing.Size(1328, 95); // - // buttonItemPasswordReset // - this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image"))); - this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemPasswordReset.Name = "buttonItemPasswordReset"; - this.buttonItemPasswordReset.SubItemsExpandWidth = 14; - this.buttonItemPasswordReset.Text = "重置密码"; - this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click); // - // ribbonPanel4 + this.ribbonPanel5.Style.Class = ""; + this.ribbonPanel5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel4.Controls.Add(this.ribbonBar1); - this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel4.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel4.Name = "ribbonPanel4"; - this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95); // // + this.ribbonPanel5.StyleMouseDown.Class = ""; + this.ribbonPanel5.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonPanel4.Style.Class = ""; - this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // + this.ribbonPanel5.StyleMouseOver.Class = ""; + this.ribbonPanel5.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel5.TabIndex = 37; + this.ribbonPanel5.Visible = false; // - this.ribbonPanel4.StyleMouseDown.Class = ""; - this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // ribbonBar2 // + this.ribbonBar2.AutoOverflowEnabled = true; // // - this.ribbonPanel4.StyleMouseOver.Class = ""; - this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel4.TabIndex = 36; - this.ribbonPanel4.Visible = false; // - // ribbonBar1 + this.ribbonBar2.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar2.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonBar1.AutoOverflowEnabled = true; // // - // - this.ribbonBar1.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar1.BackgroundStyle.Class = ""; - this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar1.ContainerControlProcessDialogKey = true; - this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btn_document_info}); - this.ribbonBar1.Location = new System.Drawing.Point(3, 0); - this.ribbonBar1.Name = "ribbonBar1"; - this.ribbonBar1.Size = new System.Drawing.Size(88, 92); - this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar1.TabIndex = 0; - // - // - // - this.ribbonBar1.TitleStyle.Class = ""; - this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar1.TitleStyleMouseOver.Class = ""; - this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar1.TitleVisible = false; - // - // btn_document_info - // - this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image"))); - this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_document_info.Name = "btn_document_info"; - this.btn_document_info.SubItemsExpandWidth = 14; - this.btn_document_info.Text = "文档管理"; - this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click); - // - // ribbonPanel1 - // - this.ribbonPanel1.AutoSize = true; - this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray; - 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, 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, 95); - // - // - // - this.ribbonPanel1.Style.Class = ""; - this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseDown.Class = ""; - this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseOver.Class = ""; - this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel1.TabIndex = 1; - this.ribbonPanel1.Visible = false; - // - // ribbonBar21 - // - this.ribbonBar21.AutoOverflowEnabled = true; - this.ribbonBar21.BackColor = System.Drawing.Color.White; - // - // - // - this.ribbonBar21.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar21.BackgroundStyle.Class = ""; - this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar21.ContainerControlProcessDialogKey = true; - this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItem87, - this.buttonItem88, - this.buttonItem27, - this.sliderGroundTransSet1, - this.buttonItem91, - this.buttonItem1, - this.btnlegendSet, - this.buttonItem89, - this.btnOutputJPG}); - this.ribbonBar21.Location = new System.Drawing.Point(3, 0); - this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(649, 92); - this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar21.TabIndex = 2; - this.ribbonBar21.Text = "浏览模式"; - // - // - // - this.ribbonBar21.TitleStyle.Class = ""; - this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar21.TitleStyleMouseOver.Class = ""; - this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar21.TitleVisible = false; - // - // buttonItem87 - // - this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image"))); - this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem87.Name = "buttonItem87"; - this.buttonItem87.SubItemsExpandWidth = 14; - this.buttonItem87.Text = "地上模式"; - this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click); + this.ribbonBar2.BackgroundStyle.Class = ""; + this.ribbonBar2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar2.ContainerControlProcessDialogKey = true; + this.ribbonBar2.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItemHX1, + this.buttonItemHX2, + this.buttonItemDCTP, + this.sliderItem3}); + this.ribbonBar2.Location = new System.Drawing.Point(3, 0); + this.ribbonBar2.Name = "ribbonBar2"; + this.ribbonBar2.Size = new System.Drawing.Size(350, 92); + this.ribbonBar2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar2.TabIndex = 0; // - // buttonItem88 // - this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image"))); - this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem88.Name = "buttonItem88"; - this.buttonItem88.SubItemsExpandWidth = 14; - this.buttonItem88.Text = "地下模式"; - this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click); // - // buttonItem27 + this.ribbonBar2.TitleStyle.Class = ""; + this.ribbonBar2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image"))); - this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem27.Name = "buttonItem27"; - this.buttonItem27.SubItemsExpandWidth = 14; - this.buttonItem27.Text = "行走模式"; - this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click); // - // buttonItem91 // - this.buttonItem91.ForeColor = System.Drawing.Color.Black; - this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image"))); - this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem91.Name = "buttonItem91"; - this.buttonItem91.SubItemsExpandWidth = 14; - this.buttonItem91.Text = "快速定位"; - this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click); + this.ribbonBar2.TitleStyleMouseOver.Class = ""; + this.ribbonBar2.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar2.TitleVisible = false; // - // buttonItem1 + // buttonItemHX1 // - this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image"))); - this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem1.Name = "buttonItem1"; - this.buttonItem1.SubItemsExpandWidth = 14; - this.buttonItem1.Text = "图层管理"; - this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click); + this.buttonItemHX1.AutoExpandOnClick = true; + this.buttonItemHX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX1.Image"))); + this.buttonItemHX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemHX1.Name = "buttonItemHX1"; + this.buttonItemHX1.SubItemsExpandWidth = 14; + this.buttonItemHX1.Text = "导入红线"; + this.buttonItemHX1.Click += new System.EventHandler(this.buttonItemHX1_Click); // - // btnlegendSet + // buttonItemHX2 // - this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image"))); - this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnlegendSet.Name = "btnlegendSet"; - this.btnlegendSet.SubItemsExpandWidth = 14; - this.btnlegendSet.Text = "图例"; - this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click); + this.buttonItemHX2.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX2.Image"))); + this.buttonItemHX2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemHX2.Name = "buttonItemHX2"; + this.buttonItemHX2.SubItemsExpandWidth = 14; + this.buttonItemHX2.Text = "红线审核"; + this.buttonItemHX2.Click += new System.EventHandler(this.buttonItemHX2_Click); // - // buttonItem89 + // buttonItemDCTP // - this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image"))); - this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem89.Name = "buttonItem89"; - this.buttonItem89.SubItemsExpandWidth = 14; - this.buttonItem89.Text = "全屏显示"; - this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click); + this.buttonItemDCTP.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemDCTP.Image"))); + this.buttonItemDCTP.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemDCTP.Name = "buttonItemDCTP"; + this.buttonItemDCTP.SubItemsExpandWidth = 14; + this.buttonItemDCTP.Text = "导出图片"; + this.buttonItemDCTP.Click += new System.EventHandler(this.buttonItemDCTP_Click); // - // btnOutputJPG + // sliderItem3 // - this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image"))); - this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnOutputJPG.Name = "btnOutputJPG"; - this.btnOutputJPG.SubItemsExpandWidth = 14; - this.btnOutputJPG.Text = "导出图片"; - this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click); + this.sliderItem3.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.sliderItem3.LabelWidth = 50; + this.sliderItem3.Name = "sliderItem3"; + this.sliderItem3.Text = "地面透明度"; + this.sliderItem3.TextColor = System.Drawing.Color.Black; + this.sliderItem3.Value = 0; + this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged); // // ribbonTabItem1 // @@ -3468,7 +3569,6 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage"))); this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image"))); this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -3486,6 +3586,13 @@ this.ribbonTabItem2.Text = "权限管理"; this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown); // + // ribbonTabItemBSQ + // + this.ribbonTabItemBSQ.Checked = true; + this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ"; + this.ribbonTabItemBSQ.Panel = this.ribbonPanel3; + this.ribbonTabItemBSQ.Text = "标识器管理"; + // // buttonItem19 // this.buttonItem19.Name = "buttonItem19"; @@ -4463,7 +4570,7 @@ this.dataGridViewX2.ReadOnly = true; this.dataGridViewX2.RowHeadersVisible = false; this.dataGridViewX2.RowTemplate.Height = 23; - this.dataGridViewX2.Size = new System.Drawing.Size(28705, 92); + this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92); this.dataGridViewX2.TabIndex = 11; // // dataGridViewTextBoxColumn10 @@ -4557,7 +4664,7 @@ this.dataGridViewX3.ReadOnly = true; this.dataGridViewX3.RowHeadersVisible = false; this.dataGridViewX3.RowTemplate.Height = 23; - this.dataGridViewX3.Size = new System.Drawing.Size(28704, 127); + this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127); this.dataGridViewX3.TabIndex = 5; this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick); // @@ -5731,18 +5838,6 @@ this.panelEx4.TabIndex = 26; this.panelEx4.Text = "panelEx4"; // - // 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); - this.layerTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseClick); - this.layerTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); - // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; @@ -5786,13 +5881,14 @@ this.contextMenuStripDeleteLayerNode.ResumeLayout(false); this.ribbonControl1.ResumeLayout(false); this.ribbonControl1.PerformLayout(); - this.ribbonPanel12.ResumeLayout(false); - this.ribbonPanel5.ResumeLayout(false); - this.ribbonPanel6.ResumeLayout(false); - this.ribbonPanel15.ResumeLayout(false); - this.ribbonPanel2.ResumeLayout(false); + this.ribbonPanel3.ResumeLayout(false); this.ribbonPanel4.ResumeLayout(false); this.ribbonPanel1.ResumeLayout(false); + this.ribbonPanel12.ResumeLayout(false); + this.ribbonPanel2.ResumeLayout(false); + this.ribbonPanel15.ResumeLayout(false); + this.ribbonPanel6.ResumeLayout(false); + this.ribbonPanel5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.panelOfTable.ResumeLayout(false); this.panelOfTable.PerformLayout(); @@ -6315,6 +6411,11 @@ private LabelX labelX16; private LabelX labelX17; private PanelEx panelEx4; + private RibbonPanel ribbonPanel3; + private RibbonBar ribbonBar4; + private ButtonItem btn_flag; + private RibbonTabItem ribbonTabItemBSQ; + private SliderItem slider4ground; } } diff --git a/MainFrm.resx b/MainFrm.resx index 4151cb6..8287937 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -351,6 +351,782 @@ 766, 54 + + + iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAADZmlUWHRYTUw6Y29tLmFkb2Jl + LnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQi + Pz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENv + cmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJE + RiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8 + cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNv + bS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlw + ZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1w + TU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjJGQzkyMzc0Rjk0OUU0MTE5NjNCQjRENDMzQjlC + MUM4IiB4bXBNTTpEb2N1bWVudElEPSJ4bXA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Q+pPmOq0VkzzQAAAABJRU5ErkJggg== - - iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 diff --git a/Utility.cs b/Utility.cs index c4a4e28..c48176b 100644 --- a/Utility.cs +++ b/Utility.cs @@ -16,7 +16,6 @@ { public class Utility { - //public static string ConnectionString; public static string dbdatabase; public static string userID; @@ -77,6 +76,7 @@ public static string filenameDbconfig = Application.StartupPath + "\\databaseConfig.xml"; public static string filenameLocation = Application.StartupPath + "\\Location.xml"; public static string layerConfigFile = Application.StartupPath + "\\layerConfig.xml"; + #region wxl 从MainFrm重构来,读取一遍config.xml public static List m_PipelineLayerNames = new List();//线图层名称 public static List workwellLayerNames = new List();//工井图层名称 @@ -118,20 +118,6 @@ balloonEx.SetBorder(Color.White, 1, 1); balloonEx.SetColorBkType(EnumBkColorTypeEx.SKY); } - - //public static GSOFeature FindFeatureByUserID(GSOFeatureDataset featdataset, string fieldname, string value) - //{ - // GSOFeatures feats = featdataset.GetAllFeatures(); - // for (int i = 0; i < feats.Length; i++) - // { - // GSOFeature feat = feats[i]; - // if (feat.GetFieldAsString(fieldname) == value) - // { - // return feat; - // } - // } - // return null; - //} public static GSOPoint2d XYZ_2_Latlon(double x, double y) { @@ -200,8 +186,6 @@ string featureName = row["编号"].ToString(); featureName = featureName.Trim(); - - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByID((int)(Utility.LayerLabel_LayerIDs[currentQueryLayer])); GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(currentQueryLayer); GSOFeatures tempfeatures = layer.GetFeatureByName(featureName, false); if (tempfeatures.Length > 0) @@ -415,6 +399,7 @@ } } #endregion + #region 读取 filenameSensor "sensorConfig.xml" sensorMarkerLayers = new List(); if (File.Exists(filenameSensor)) @@ -638,26 +623,6 @@ } */ - //////根据图层中的对象特征来划分内容 - //public static string getCodeByName(string name) - //{ - // string code = ""; - // if (listPipelineType != null) - // { - // List list = listPipelineType; - - // for (int i = 0; i < list.Count; i++) - // { - // PipelineType pipelineType = listPipelineType[i]; - // if (name == pipelineType.name) - // { - // code = pipelineType.code; - // break; - // } - // } - // } - // return code; - //} //TODO LIST:下面两个方法移到featueTools.cs中 //根据附属物图层名字得到里面含有的附属物 diff --git a/ClassExecuteSQL.cs b/ClassExecuteSQL.cs new file mode 100644 index 0000000..bee1e28 --- /dev/null +++ b/ClassExecuteSQL.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cyberpipe +{ + class ClassExecuteSQL + { + } +} diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj index 90b9430..9dd7009 100644 --- a/Cyberpipe.csproj +++ b/Cyberpipe.csproj @@ -245,6 +245,42 @@ FormDocumentManager.cs + + Form + + + FrmAddFlagBatch.cs + + + Form + + + FrmAddSinMark.cs + + + Form + + + FrmFlagDatabase.cs + + + Form + + + FrmFlagDetail.cs + + + Form + + + FrmFlagEdits.cs + + + Form + + + FrmFlagManagers.cs + Form @@ -1152,6 +1188,24 @@ FormDocumentManager.cs + + FrmAddFlagBatch.cs + + + FrmAddSinMark.cs + + + FrmFlagDatabase.cs + + + FrmFlagDetail.cs + + + FrmFlagEdits.cs + + + FrmFlagManagers.cs + FrmGBJCresult.cs diff --git a/Cyberpipe.suo b/Cyberpipe.suo index ed9584a..db17b0e 100644 --- a/Cyberpipe.suo +++ b/Cyberpipe.suo Binary files differ diff --git a/ExpEXCEL.cs b/ExpEXCEL.cs index 608f061..63d9a77 100644 --- a/ExpEXCEL.cs +++ b/ExpEXCEL.cs @@ -20,7 +20,7 @@ /// /// /// - public static void ExpToExcel(DataGridView dt, string strSaveFile,string str) + public static void ExpToExcel(DataGridView dt, string strSaveFile, string str) { //创建一个EXCEL应用程序 Application excel = new Application(); diff --git a/FrmAddFlagBatch.Designer.cs b/FrmAddFlagBatch.Designer.cs new file mode 100644 index 0000000..fdc20a0 --- /dev/null +++ b/FrmAddFlagBatch.Designer.cs @@ -0,0 +1,323 @@ +namespace Cyberpipe +{ + partial class FrmAddFlagBatch + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.btn_imp = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.btn_file_select); + this.groupPanel1.Controls.Add(this.combo_z_value); + this.groupPanel1.Controls.Add(this.combo_model_path); + this.groupPanel1.Controls.Add(this.combo_model_name); + this.groupPanel1.Controls.Add(this.txt_layer_name); + this.groupPanel1.Controls.Add(this.txt_layer_file); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.labelX5); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Location = new System.Drawing.Point(0, 59); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(441, 266); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 0; + this.groupPanel1.Text = "导入信息"; + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.SystemColors.MenuText; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelX1.ForeColor = System.Drawing.Color.Red; + this.labelX1.Location = new System.Drawing.Point(0, 0); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(441, 57); + this.labelX1.TabIndex = 0; + 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; + this.btn_imp.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_imp.Location = new System.Drawing.Point(352, 345); + this.btn_imp.Name = "btn_imp"; + this.btn_imp.Size = new System.Drawing.Size(75, 23); + this.btn_imp.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_imp.TabIndex = 1; + this.btn_imp.Text = "导入"; + this.btn_imp.Click += new System.EventHandler(this.btn_imp_Click); + // + // FrmAddFlagBatch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(441, 380); + this.Controls.Add(this.btn_imp); + this.Controls.Add(this.labelX1); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddFlagBatch"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "批量入库"; + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.ButtonX btn_file_select; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_z_value; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_path; + private DevComponents.DotNetBar.Controls.ComboBoxEx combo_model_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_name; + private DevComponents.DotNetBar.Controls.TextBoxX txt_layer_file; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.StyleManager styleManager1; + private DevComponents.DotNetBar.ButtonX btn_imp; + } +} \ No newline at end of file diff --git a/FrmAddFlagBatch.cs b/FrmAddFlagBatch.cs new file mode 100644 index 0000000..d643245 --- /dev/null +++ b/FrmAddFlagBatch.cs @@ -0,0 +1,368 @@ +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.Engine; +using System.Collections; +using GeoScene.Data; +using System.Text.RegularExpressions; + +namespace Cyberpipe +{ + public partial class FrmAddFlagBatch : Office2007Form + { + GSOGlobeControl globeControl1; + GSODataSource ds; + GSOLayer layer; + string selectLayerName = ""; + public GSOLayer flags = null; + private Hashtable fm_types = new Hashtable(); + private Hashtable fm_cns = new Hashtable(); + + public FrmAddFlagBatch(GSOGlobeControl _globeControl1, GSODataSource _ds) + { + InitializeComponent(); + this.globeControl1 = _globeControl1; + this.ds = _ds; + } + + private void btn_file_select_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog dlg = new OpenFileDialog(); + dlg.Filter = "*.shp|*.shp"; + dlg.Multiselect = false; + if (dlg.ShowDialog() == DialogResult.OK) + { + layer = globeControl1.Globe.Layers.Add(dlg.FileName); + string txtMessage = valiValvedata(layer); + if (txtMessage != "") + { + btn_imp.Enabled = false; + txt_layer_file.Text = ""; + txt_layer_name.Text = ""; + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + globeControl1.Globe.Layers.Remove(layer); + FrmValiDataShowErrorMessage showErrorMessage = new FrmValiDataShowErrorMessage(dlg.FileName, txtMessage); + showErrorMessage.Show(); + return; + } + else + { + btn_imp.Enabled = true; + txt_layer_file.Text = dlg.FileName; + selectLayerName = layer.Caption; + txt_layer_name.Text = layer.Caption; + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + return; + + combo_model_path.Items.Clear(); + combo_z_value.Items.Clear(); + combo_model_name.Items.Clear(); + + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + combo_model_path.Items.Add(fielddef.Name); + combo_z_value.Items.Add(fielddef.Name); + combo_model_name.Items.Add(fielddef.Name); + } + combo_model_name.SelectedItem = "编号"; + combo_z_value.SelectedItem = "标识器埋深"; + combo_model_path.SelectedItem = "模型路径"; + } + } + } + catch (Exception ex) + { + MessageBox.Show("SHP文件选取失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_imp_Click(object sender, EventArgs e) + { + try + { + if (String.IsNullOrEmpty(txt_layer_file.Text.Trim())) + { + MessageBox.Show("请选择一个图层文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + if (String.IsNullOrEmpty(txt_layer_name.Text.Trim())) + { + MessageBox.Show("图层名称为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //判断是数字或者存在特殊字符串 + string SuiD = txt_layer_name.Text.Trim(); + Regex reg = new Regex("^[0-9]");//判断是不是数据,要不是就表示没有选择。则从隐藏域里读出来 + Match ma = reg.Match(SuiD); + if (ma.Success) + { + MessageBox.Show("图层名称不能以数字开头!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + + GSODataset dataset = ds.GetDatasetByName(txt_layer_name.Text.Trim()); + GSOFeatureDataset featdataset = null; + if (dataset != null) + { + DialogResult result = MessageBox.Show("标识器图层名称在数据库中已存在!是否向该表追加", "提示", MessageBoxButtons.YesNo); + if (result == DialogResult.Yes) + { + featdataset = dataset as GSOFeatureDataset; + } + else + { + return; + } + } + else + { + featdataset = CreateDBFeatureDataset(txt_layer_name.Text.Trim()); + } + + featdataset.Open(); + + GSOLayer shpLayer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + + GSOFeatures features = shpLayer.GetAllFeatures(true); + if (dataset != null) + { + //根据编号删除数据库图层中已经存在的记录即要素 + string sql = "delete from " + txt_layer_name.Text.Trim() + " where 编号 in ("; + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + if (f != null && f.IsFieldValueNull("编号") == false) + { + string fieldID = f.GetFieldAsString("编号").Trim(); + if (!String.IsNullOrEmpty(fieldID)) + { + sql += "'" + fieldID + "',"; + } + } + } + sql = sql.Substring(0, sql.Length - 1); + sql += ")"; + OracleUtils.ExecuteNonQuery(OracleUtils.ConnectionString, CommandType.Text, sql); + } + + featdataset.Close(); + featdataset.Open(); + + for (int j = 0; j < features.Length; j++) + { + GSOFeature f = features[j]; + GSOGeoPoint3D shpPoint = f.Geometry as GSOGeoPoint3D; + + //double z = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double deep = f.GetFieldAsDouble(combo_z_value.SelectedItem.ToString()); + + double z = deep / 100; + + GSOFeature feature = featdataset.CreateFeature(); + GSOGeoModel model = new GSOGeoModel(); + GSOPoint3d pt = new GSOPoint3d(); + pt.X = shpPoint.X; + pt.Y = shpPoint.Y; + pt.Z = -z; + + model.Position = pt; + //model.Align = EnumEntityAlign.TopCenter; //接口已修复作用 + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + //model.FilePath = Application.StartupPath + "\\" + f.GetFieldAsString(combo_model_path.SelectedItem.ToString()); + model.FilePath = Application.StartupPath + "\\" + "管道配件gcm\\电子标识器\\电子标识器黑.gcm"; + model.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Name = f.GetValue(combo_model_name.SelectedItem.ToString()).ToString(); + feature.Geometry = model; + + for (int i = 0; i < feature.GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(f.GetFieldDefn(i)); + if (fielddef == null) + continue; + + object obu = f.GetValue(fielddef.Name); + if (obu != null) + { + string fieldName = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + feature.SetValue(fieldName, obu); + } + } + featdataset.AddFeature(feature); + } + featdataset.Save(); + MessageBox.Show("入库成功!", "提示"); + if (shpLayer == null) + { + globeControl1.Globe.Layers.Remove(shpLayer); + } + GSOLayer layer = globeControl1.Globe.Layers.Add(featdataset); + this.layer = layer; + this.DialogResult = DialogResult.OK; + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("批量导入失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + #region 自定义方法 + + private GSOFeatureDataset CreateDBFeatureDataset(string name) + { + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(selectLayerName); + GSOFeatures features = layer.GetAllFeatures(); + if (features.Length == 0) + { + MessageBox.Show("图层要素个数为0!", "提示"); + return null; + } + + GSOFeatureDataset featDs = ds.CreateFeatureDataset(name); + if (featDs == null) + { + MessageBox.Show("图层名称不符合要求!", "提示"); + return null; + } + for (int i = 0; i < features[0].GetFieldCount(); i++) + { + GeoScene.Data.GSOFieldDefn fielddef = (GeoScene.Data.GSOFieldDefn)(features[0].GetFieldDefn(i)); + + GSOFieldAttr field = new GSOFieldAttr(); + + field.Name = fm_cns.ContainsKey(fielddef.Name) == true ? fm_cns[fielddef.Name].ToString() : fielddef.Name; + switch (fielddef.Type) + { + case EnumFieldType.Text: + field.Type = EnumFieldType.Text; + field.Width = 8000; + break; + case EnumFieldType.INT32: + field.Type = EnumFieldType.INT32; + field.Width = 4; + break; + case EnumFieldType.Double: + field.Type = EnumFieldType.Double; + field.Width = 8; + break; + case EnumFieldType.Date: + field.Type = EnumFieldType.Date; + field.Width = 10; + break; + } + bool res = featDs.AddField(field); + } + featDs.Save(); + return featDs; + } + + private string valiValvedata(GSOLayer layer) + { + string txtMessage = ""; + if (layer != null) + { + GSOFeatureDataset featDataSet = layer.Dataset as GSOFeatureDataset; + List lstField = new List(); + List listFieldType_Text = new List(); + for (int i = 0; i < featDataSet.FieldCount; i++) + { + string fieldName = featDataSet.GetField(i).Name; + lstField.Add(fieldName); + if (fm_types.ContainsKey(fieldName)) + { + string fieldType = fm_types[fieldName].ToString().ToUpper(); + switch (featDataSet.GetField(i).Type) + { + case EnumFieldType.Text: + if (fieldType != "string".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + listFieldType_Text.Add(fieldName); + break; + case EnumFieldType.INT32: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.INT16: + if (fieldType != "int".ToUpper() && fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Double: + if (fieldType != "double".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + case EnumFieldType.Date: + if (fieldType != "date".ToUpper()) + { + txtMessage += "" + fieldName + "数据类型不正确\r\n"; + } + break; + } + } + + } + if (!lstField.Contains("编号")) + { + txtMessage += "编号字段不存在!\r\n"; + } + if (!lstField.Contains("模型路径")) + { + txtMessage += "模型路径字段不存在!\r\n"; + } + if (!lstField.Contains("标识器埋深")) + { + txtMessage += "标识器埋深字段不存在!\r\n"; + } + else + { + GSOFieldAttr fieldZ = featDataSet.GetField("标识器埋深"); + if (fieldZ.Type != EnumFieldType.Double && fieldZ.Type != EnumFieldType.Float && fieldZ.Type != EnumFieldType.INT16 && fieldZ.Type != EnumFieldType.INT32) + { + txtMessage += "\"标识器埋深\"字段必须为数值类型 \r\n"; + } + } + for (int i = 0; i < layer.GetAllFeatures().Length; i++) + { + GSOFeature f = layer.GetAt(i); + for (int j = 0; j < listFieldType_Text.Count; j++) + { + string fieldName = listFieldType_Text[j]; + if (fm_types.ContainsKey(fieldName)) + { + if (f.GetValue(fieldName).ToString().Trim().Length > 8000) + { + txtMessage += "名称为" + f.Name + "的要素的字段" + fieldName + "的长度大于8000 !\r\n"; + } + } + } + } + } + return txtMessage; + } + + #endregion + } +} diff --git a/FrmAddFlagBatch.resx b/FrmAddFlagBatch.resx new file mode 100644 index 0000000..851991c --- /dev/null +++ b/FrmAddFlagBatch.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/FrmAddSinMark.cs b/FrmAddSinMark.cs new file mode 100644 index 0000000..5b1fc08 --- /dev/null +++ b/FrmAddSinMark.cs @@ -0,0 +1,535 @@ +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 System.IO; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.Runtime.InteropServices; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmAddSinMark : Form + { + public GSOPlane3DControl plane3DControl; + private GSOGlobeControl globeControl1; + private GSOFeature feature; + GSOFeature markerFeature = null; + public GSOGeoPoint3D point; + List bhList = new List(); + string modelPath; + private GSOLayer modelLayer; + string modelObj="TRO7红色.gcm"; + double xValue; + double yValue; + List list = new List(); + + public FrmAddSinMark(GSOGlobeControl ctl) + { + InitializeComponent(); + this.globeControl1 = ctl; + modelLayer = globeControl1.Globe.Layers.GetLayerByCaption("标识器"); + this.point = new GSOGeoPoint3D(ctl.Globe.CameraState.Longitude, ctl.Globe.CameraState.Latitude, 0); + + plane3DControl = new GSOPlane3DControl(); + panel1.Controls.Add(plane3DControl); + plane3DControl.Dock = DockStyle.Fill; + } + + private void btnAdd_Click(object sender, EventArgs e) + { + try + { + if (textBox3.Text == "") + { + MessageBox.Show("请填写标识器编号!", "提示"); + return; + } + else + { + string sql = "select count(*) from 标识器 t where t.编号='" + textBox3.Text.ToString().Trim() + "'"; + int count = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sql).ToString()); + if (count > 0) + { + MessageBox.Show("该标识器编号已存在!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + } + + if (textBox1.Text == "") + { + MessageBox.Show("请填写标识器ID号!", "警告",MessageBoxButtons.OK,MessageBoxIcon.Warning); + + return; + } + + if (textBox4.Text == "") + { + MessageBox.Show("请填写标识对象编号!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox5.Text == "") + { + MessageBox.Show("请填写标识对象类型!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + return; + } + + if (textBox6.Text == "") + { + MessageBox.Show("请填写标识对象名称!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + if (comboBox2.Text == "") + { + MessageBox.Show("请填写标识所属道路!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + + string mark_ID = textBox3.Text; + string mark_Mac = textBox1.Text; + string markObjCode = textBox4.Text; + string markObjType = textBox5.Text; + string markObjName = textBox6.Text; + string belong = textBox9.Text; + string bulidTime = dateTimePicker1.Value.ToString(); + string Street = comboBox2.Text; + string design = textBox10.Text; + string designPer = textBox11.Text; + string buildCom = textBox12.Text; + string buildPer = textBox13.Text; + string monitor = textBox14.Text; + string monitorPer = textBox15.Text; + string mon = textBox16.Text; + double deep = Convert.ToDouble(textBoxX4.Text); + string MarkType = comboBox1.Text; + double elevation = Convert.ToDouble(textBoxX1.Text); + xValue = Convert.ToDouble(textBox7.Text); + yValue = Convert.ToDouble(textBox2.Text); + string useState = comboBox3.Text; + string modelPath = "管道配件gcm\\电子标识器\\" + modelObj; + string modelPath2 = Application.StartupPath + @"\\管道配件gcm\电子标识器\" + modelObj; + + + if (feature != null) + { + if (markerFeature != null) + { + markerFeature.Delete(); + } + + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(yValue, xValue); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Inverse(pt2d, ID); + + GSOPoint3d pt = new GSOPoint3d(); + pt.X = point.X; + pt.Y = point.Y; + pt.Z = point.Z; + + GSOPoint3d pt2 = new GSOPoint3d(); + pt2.X = result.X; + pt2.Y = result.Y; + pt2.Z = -0.4; + + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = modelPath2; + model.Position = pt2; + //model.AltitudeMode = EnumAltitudeMode.Absolute; + model.AltitudeMode = EnumAltitudeMode.RelativeToGround; + + feature = new GSOFeature(); + feature.Geometry = model; + modelLayer.Editable = true; + //feature. + + GSOFieldDefn defn = new GSOFieldDefn(); + defn.Name = "编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + + feature.SetFieldValue("编号", mark_ID); + + defn.Name = "标识器ID号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器ID号", mark_Mac); + + defn.Name = "标识器型号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("标识器型号", MarkType); + + defn.Name = "地面高程"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + elevation = Math.Round(elevation, 3); + feature.SetFieldValue("地面高程", elevation); + + defn.Name = "X坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + xValue = Math.Round(xValue, 3); + feature.SetFieldValue("X坐标", xValue); + + defn.Name = "Y坐标"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + yValue = Math.Round(yValue, 3); + feature.SetFieldValue("Y坐标", yValue); + + defn.Name = "标识器埋深"; + defn.Type = EnumFieldType.Float; + feature.AddField(defn); + deep = Convert.ToDouble(deep.ToString("0.000")); + deep = Math.Round(deep, 3); + feature.SetFieldValue("标识器埋深", deep); + + defn.Name = "对象编号"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象编号", markObjCode); + + defn.Name = "对象类型"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象类型", markObjType); + + defn.Name = "对象名称"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("对象名称", markObjName); + + defn.Name = "埋设时间"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("埋设时间", bulidTime); + + defn.Name = "所属道路"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("所属道路", comboBox2.Text); + + defn.Name = "使用状态"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("使用状态", useState); + + defn.Name = "权属单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("权属单位", belong); + + defn.Name = "设计单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计单位", design); + + defn.Name = "设计人姓名"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("设计人姓名", designPer); + + defn.Name = "施工单位"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工单位", buildCom); + + defn.Name = "施工责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工责任人", buildPer); + + defn.Name = "施工监理"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("施工监理", monitor); + + defn.Name = "监理责任人"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("监理责任人", monitorPer); + + defn.Name = "模型路径"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("模型路径", modelPath); + + defn.Name = "备注"; + defn.Type = EnumFieldType.Text; + defn.Width = 100; + feature.AddField(defn); + feature.SetFieldValue("备注", mon); + modelLayer.AddFeature(feature); + + globeControl1.Globe.JumpToFeature(feature, 2.5); + globeControl1.Refresh(); + modelLayer.Save(); + modelLayer.Editable = false; + MessageBox.Show("标识器添加成功!", "提示"); + this.Close(); + } + else + { + MessageBox.Show("请指定模型规格!", "提示"); + return; + } + } + catch (Exception ex) + { + MessageBox.Show("标识器添加失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e) + { + if (listBoxSize.SelectedIndex != -1) + { + string path = Application.StartupPath + @"\\管道配件gcm\\电子标识器\\" + list[listBoxSize.SelectedIndex]; + modelObj=list[listBoxSize.SelectedIndex]; + GSOGeoModel model = new GSOGeoModel(); + model.FilePath = path; + modelPath = path; + model.SetPosition(0, 0, 0); + feature = new GSOFeature(); + feature.Geometry = model; + feature.Geometry.LatLonCoord = false; + feature.HighLight = false; + this.plane3DControl.Plane3DScene.RemoveAllFeature(); + this.plane3DControl.Plane3DScene.AddFeature(feature); + } + } + + private void FrmAddSinMark_Load(object sender, EventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick += new MouseEventHandler(globeControl1_MouseClick); + } + this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"; + if (point != null) + { + textBoxXLon.Text = point.X.ToString(); + textBoxXLat.Text = point.Y.ToString(); + + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Application.StartupPath + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + string path = Application.StartupPath + @"\管道配件gcm\"; + DirectoryInfo theFolder = new DirectoryInfo(path); + if (!theFolder.Exists) + { + MessageBox.Show("文件夹【" + path + "】不存在!", "提示"); + } + + listBoxSize.Items.Clear(); + list.Clear(); + string path1 = Application.StartupPath + @"\管道配件gcm\" + "电子标识器" + @"\"; + DirectoryInfo theFolder1 = new DirectoryInfo(path1); + foreach (FileInfo nextFile in theFolder1.GetFiles()) + { + if (nextFile.Name.IndexOf("3DS") > -1 || nextFile.Name.IndexOf("gcm") > -1) + { + this.listBoxSize.Items.Add(nextFile.Name.Substring(0, nextFile.Name.IndexOf("."))); + list.Add(nextFile.Name); + } + } + comboBox1.DropDownStyle = ComboBoxStyle.DropDown; + comboBox1.Items.Add("BIRMM-EM14"); + comboBox1.Items.Add("BIRMM-EM30"); + comboBox1.Text = "BIRMM-EM14"; + + comboBox3.DropDownStyle = ComboBoxStyle.DropDown; + comboBox3.Items.Add("使用中"); + comboBox3.Items.Add("废弃"); + comboBox3.Text = "使用中"; + + comboBox2.DropDownStyle = ComboBoxStyle.DropDown; + foreach (Location l in Utility.locationList) + comboBox2.Items.Add(l.NAME); + + textBox9.Text = "管委会"; + textBox10.Text = "北京无线电计量测试研究所"; + textBoxX1.Text = "0"; + textBoxX4.Text = "0.4"; + } + + private void globeControl1_MouseClick(object sender, MouseEventArgs e) + { + try + { + if (e.Button == MouseButtons.Left) + { + GSOPoint3d p = globeControl1.Globe.ScreenToScene(e.X, e.Y); + textBoxXLon.Text = p.X.ToString(); + textBoxXLat.Text = p.Y.ToString(); + + point.X = p.X; + point.Y = p.Y; + if (markerFeature != null && markerFeature.Geometry != null) + { + GSOGeoMarker marker = markerFeature.Geometry as GSOGeoMarker; + marker.SetPosition(point.X, point.Y, point.Z);//设定位置点 + } + else + { + markerFeature = new GSOFeature(); + GSOGeoMarker marker = new GSOGeoMarker(); + GSOMarkerStyle3D style = new GSOMarkerStyle3D(); + style.IconPath = Path.GetDirectoryName(Application.ExecutablePath) + "/Resource/CrossIcon.png"; + marker.Style = style; + marker.SetPosition(point.X, point.Y, point.Z); + marker.AltitudeMode = EnumAltitudeMode.ClampToGround; + markerFeature.Name = "目标点"; + markerFeature.CustomID = 001; + markerFeature.Geometry = marker; + globeControl1.Globe.MemoryLayer.AddFeature(markerFeature); + } + globeControl1.Refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btnCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + //经度 + private void textBoxXLon_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLon.Text.Trim() != "" && textBoxXLat.Text.Trim() != "") + { + string longitude = textBoxXLon.Text.Trim(); + double dLon = 0.0; + if (!double.TryParse(longitude, out dLon)) + { + textBoxXLon.Text = ""; + } + else + { + if (dLon > 180) + { + textBoxXLon.Text = 180 + ""; + point.X = 180; + } + else if (dLon < -180) + { + textBoxXLon.Text = -180 + ""; + point.X = -180; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = 0; + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + //textBoxX3.Text = result.Y.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("X坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + //纬度 + private void textBoxXLat_TextChanged(object sender, EventArgs e) + { + try + { + if (textBoxXLat.Text.Trim() != "" && textBoxXLon.Text.Trim() != "") + { + string latitude = textBoxXLat.Text.Trim(); + double dLat = 0.0; + if (!double.TryParse(latitude, out dLat)) + { + textBoxXLat.Text = ""; + } + else + { + if (dLat > 90) + { + textBoxXLat.Text = 90 + ""; + point.Y = 90; + } + else if (dLat < -90) + { + textBoxXLat.Text = -90 + ""; + point.Y = -90; + } + } + int ID = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=499885 +y_0=6 +a=6378140 +b=6356755.288157528 +units=m +no_defs"); + double x = Convert.ToDouble(textBoxXLon.Text); + double y = Convert.ToDouble(textBoxXLat.Text); + GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y); + GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, ID); + textBox7.Text = result.Y.ToString(); + textBox2.Text = result.X.ToString(); + } + } + catch (Exception ex) + { + MessageBox.Show("Y坐标转换失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void FrmAddSinMark_FormClosing(object sender, FormClosingEventArgs e) + { + if (globeControl1 != null) + { + globeControl1.MouseClick -= new MouseEventHandler(globeControl1_MouseClick); + } + if (markerFeature != null) + { + markerFeature.Delete(); + globeControl1.Refresh(); + } + } + + } +} diff --git a/FrmAddSinMark.designer.cs b/FrmAddSinMark.designer.cs new file mode 100644 index 0000000..2e2fed3 --- /dev/null +++ b/FrmAddSinMark.designer.cs @@ -0,0 +1,823 @@ +namespace Cyberpipe +{ + partial class FrmAddSinMark + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnCancel = new DevComponents.DotNetBar.ButtonX(); + this.btnAdd = new DevComponents.DotNetBar.ButtonX(); + this.listBoxSize = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBoxXLat = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxXLon = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelLat = new System.Windows.Forms.Label(); + this.groupPanel3 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.textBox7 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.labelLon = new System.Windows.Forms.Label(); + this.groupPanel2 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.textBox16 = new System.Windows.Forms.TextBox(); + this.textBox15 = new System.Windows.Forms.TextBox(); + this.textBox14 = new System.Windows.Forms.TextBox(); + this.textBox13 = new System.Windows.Forms.TextBox(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupPanel1.SuspendLayout(); + this.groupPanel3.SuspendLayout(); + this.groupPanel2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // btnCancel + // + this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCancel.Location = new System.Drawing.Point(189, 514); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCancel.TabIndex = 18; + this.btnCancel.Text = "关闭"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // btnAdd + // + this.btnAdd.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnAdd.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnAdd.Location = new System.Drawing.Point(43, 514); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnAdd.TabIndex = 17; + this.btnAdd.Text = "添加"; + this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); + // + // listBoxSize + // + this.listBoxSize.FormattingEnabled = true; + this.listBoxSize.ItemHeight = 12; + this.listBoxSize.Location = new System.Drawing.Point(72, 9); + this.listBoxSize.Name = "listBoxSize"; + this.listBoxSize.Size = new System.Drawing.Size(177, 112); + this.listBoxSize.TabIndex = 8; + this.listBoxSize.SelectedIndexChanged += new System.EventHandler(this.listBoxSize_SelectedIndexChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("宋体", 9F); + this.label2.Location = new System.Drawing.Point(6, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.TabIndex = 1; + this.label2.Text = "模型规格:"; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.listBoxSize); + this.groupPanel1.Controls.Add(this.label2); + this.groupPanel1.Location = new System.Drawing.Point(12, 70); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(268, 136); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 19; + // + // textBoxXLat + // + // + // + // + this.textBoxXLat.Border.Class = "TextBoxBorder"; + this.textBoxXLat.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLat.Location = new System.Drawing.Point(229, 2); + this.textBoxXLat.Name = "textBoxXLat"; + this.textBoxXLat.Size = new System.Drawing.Size(128, 21); + this.textBoxXLat.TabIndex = 3; + this.textBoxXLat.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxXLon + // + // + // + // + this.textBoxXLon.Border.Class = "TextBoxBorder"; + this.textBoxXLon.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXLon.Location = new System.Drawing.Point(46, 2); + this.textBoxXLon.Name = "textBoxXLon"; + this.textBoxXLon.Size = new System.Drawing.Size(128, 21); + this.textBoxXLon.TabIndex = 2; + this.textBoxXLon.TextChanged += new System.EventHandler(this.textBoxXLon_TextChanged); + // + // labelLat + // + this.labelLat.AutoSize = true; + this.labelLat.BackColor = System.Drawing.Color.Transparent; + this.labelLat.Font = new System.Drawing.Font("宋体", 9F); + this.labelLat.Location = new System.Drawing.Point(183, 9); + this.labelLat.Name = "labelLat"; + this.labelLat.Size = new System.Drawing.Size(41, 12); + this.labelLat.TabIndex = 1; + this.labelLat.Text = "纬度:"; + // + // groupPanel3 + // + this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel3.Controls.Add(this.textBox7); + this.groupPanel3.Controls.Add(this.textBox2); + this.groupPanel3.Controls.Add(this.textBoxX4); + this.groupPanel3.Controls.Add(this.textBoxX1); + this.groupPanel3.Controls.Add(this.textBoxXLat); + this.groupPanel3.Controls.Add(this.textBoxXLon); + this.groupPanel3.Controls.Add(this.label22); + this.groupPanel3.Controls.Add(this.label5); + this.groupPanel3.Controls.Add(this.label21); + this.groupPanel3.Controls.Add(this.labelLat); + this.groupPanel3.Controls.Add(this.label20); + this.groupPanel3.Controls.Add(this.labelLon); + this.groupPanel3.Location = new System.Drawing.Point(12, 5); + this.groupPanel3.Name = "groupPanel3"; + this.groupPanel3.Size = new System.Drawing.Size(591, 59); + // + // + // + this.groupPanel3.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel3.Style.BackColorGradientAngle = 90; + this.groupPanel3.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel3.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderBottomWidth = 1; + this.groupPanel3.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel3.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderLeftWidth = 1; + this.groupPanel3.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderRightWidth = 1; + this.groupPanel3.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel3.Style.BorderTopWidth = 1; + this.groupPanel3.Style.Class = ""; + this.groupPanel3.Style.CornerDiameter = 4; + this.groupPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel3.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel3.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel3.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel3.StyleMouseDown.Class = ""; + this.groupPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel3.StyleMouseOver.Class = ""; + this.groupPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel3.TabIndex = 20; + // + // textBox7 + // + this.textBox7.Location = new System.Drawing.Point(46, 29); + this.textBox7.Name = "textBox7"; + this.textBox7.Size = new System.Drawing.Size(128, 21); + this.textBox7.TabIndex = 0; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(229, 28); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(128, 21); + this.textBox2.TabIndex = 0; + // + // textBoxX4 + // + // + // + // + this.textBoxX4.Border.Class = "TextBoxBorder"; + this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX4.Location = new System.Drawing.Point(451, 27); + this.textBoxX4.Name = "textBoxX4"; + this.textBoxX4.Size = new System.Drawing.Size(128, 21); + this.textBoxX4.TabIndex = 3; + this.textBoxX4.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxX1.Location = new System.Drawing.Point(451, 2); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.Size = new System.Drawing.Size(128, 21); + this.textBoxX1.TabIndex = 3; + this.textBoxX1.TextChanged += new System.EventHandler(this.textBoxXLat_TextChanged); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("宋体", 9F); + this.label22.Location = new System.Drawing.Point(380, 30); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 12); + this.label22.TabIndex = 1; + this.label22.Text = "标识埋深:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("宋体", 9F); + this.label5.Location = new System.Drawing.Point(380, 7); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 12); + this.label5.TabIndex = 1; + this.label5.Text = "地面高程:"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("宋体", 9F); + this.label21.Location = new System.Drawing.Point(183, 31); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(47, 12); + this.label21.TabIndex = 1; + this.label21.Text = "Y坐标:"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("宋体", 9F); + this.label20.Location = new System.Drawing.Point(3, 33); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(47, 12); + this.label20.TabIndex = 1; + this.label20.Text = "X坐标:"; + // + // labelLon + // + this.labelLon.AutoSize = true; + this.labelLon.BackColor = System.Drawing.Color.Transparent; + this.labelLon.Font = new System.Drawing.Font("宋体", 9F); + this.labelLon.Location = new System.Drawing.Point(3, 9); + this.labelLon.Name = "labelLon"; + this.labelLon.Size = new System.Drawing.Size(41, 12); + this.labelLon.TabIndex = 1; + this.labelLon.Text = "经度:"; + // + // groupPanel2 + // + this.groupPanel2.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel2.Controls.Add(this.panel1); + this.groupPanel2.Location = new System.Drawing.Point(12, 222); + this.groupPanel2.Name = "groupPanel2"; + this.groupPanel2.Size = new System.Drawing.Size(271, 277); + // + // + // + this.groupPanel2.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel2.Style.BackColorGradientAngle = 90; + this.groupPanel2.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel2.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderBottomWidth = 1; + this.groupPanel2.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel2.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderLeftWidth = 1; + this.groupPanel2.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderRightWidth = 1; + this.groupPanel2.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel2.Style.BorderTopWidth = 1; + this.groupPanel2.Style.Class = ""; + this.groupPanel2.Style.CornerDiameter = 4; + this.groupPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel2.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel2.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel2.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel2.StyleMouseDown.Class = ""; + this.groupPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel2.StyleMouseOver.Class = ""; + this.groupPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel2.TabIndex = 21; + this.groupPanel2.Text = "模型预览"; + // + // panel1 + // + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(265, 253); + this.panel1.TabIndex = 0; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dateTimePicker1); + this.groupBox1.Controls.Add(this.comboBox2); + this.groupBox1.Controls.Add(this.comboBox1); + this.groupBox1.Controls.Add(this.comboBox3); + this.groupBox1.Controls.Add(this.textBox16); + this.groupBox1.Controls.Add(this.textBox15); + this.groupBox1.Controls.Add(this.textBox14); + this.groupBox1.Controls.Add(this.textBox13); + this.groupBox1.Controls.Add(this.textBox12); + this.groupBox1.Controls.Add(this.label19); + this.groupBox1.Controls.Add(this.textBox11); + this.groupBox1.Controls.Add(this.textBox10); + this.groupBox1.Controls.Add(this.textBox9); + this.groupBox1.Controls.Add(this.textBox6); + this.groupBox1.Controls.Add(this.textBox5); + this.groupBox1.Controls.Add(this.textBox4); + this.groupBox1.Controls.Add(this.textBox1); + this.groupBox1.Controls.Add(this.textBox3); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label18); + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Location = new System.Drawing.Point(304, 70); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(299, 480); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "标识属性"; + // + // dateTimePicker1 + // + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(94, 185); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); + this.dateTimePicker1.TabIndex = 23; + this.dateTimePicker1.Value = new System.DateTime(2014, 4, 4, 8, 25, 0, 0); + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(93, 215); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(186, 20); + this.comboBox2.TabIndex = 5; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 79); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(186, 20); + this.comboBox1.TabIndex = 5; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(95, 241); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(185, 20); + this.comboBox3.TabIndex = 5; + // + // textBox16 + // + this.textBox16.Location = new System.Drawing.Point(96, 446); + this.textBox16.Name = "textBox16"; + this.textBox16.Size = new System.Drawing.Size(184, 21); + this.textBox16.TabIndex = 3; + // + // textBox15 + // + this.textBox15.Location = new System.Drawing.Point(96, 419); + this.textBox15.Name = "textBox15"; + this.textBox15.Size = new System.Drawing.Size(184, 21); + this.textBox15.TabIndex = 3; + // + // textBox14 + // + this.textBox14.Location = new System.Drawing.Point(96, 395); + this.textBox14.Name = "textBox14"; + this.textBox14.Size = new System.Drawing.Size(184, 21); + this.textBox14.TabIndex = 3; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(95, 370); + this.textBox13.Name = "textBox13"; + this.textBox13.Size = new System.Drawing.Size(185, 21); + this.textBox13.TabIndex = 3; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(96, 346); + this.textBox12.Name = "textBox12"; + this.textBox12.Size = new System.Drawing.Size(184, 21); + this.textBox12.TabIndex = 3; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(19, 451); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(41, 12); + this.label19.TabIndex = 2; + this.label19.Text = "备注:"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(96, 321); + this.textBox11.Name = "textBox11"; + this.textBox11.Size = new System.Drawing.Size(184, 21); + this.textBox11.TabIndex = 3; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(96, 294); + this.textBox10.Name = "textBox10"; + this.textBox10.Size = new System.Drawing.Size(184, 21); + this.textBox10.TabIndex = 3; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(95, 267); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(185, 21); + this.textBox9.TabIndex = 3; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(95, 158); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(185, 21); + this.textBox6.TabIndex = 3; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 132); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(185, 21); + this.textBox5.TabIndex = 3; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(95, 105); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(185, 21); + this.textBox4.TabIndex = 3; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(94, 47); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(186, 21); + this.textBox1.TabIndex = 3; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(94, 18); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(186, 21); + this.textBox3.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 54); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 12); + this.label1.TabIndex = 2; + this.label1.Text = "标识器ID号:"; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(16, 426); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(77, 12); + this.label18.TabIndex = 2; + this.label18.Text = "监理责任人:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 401); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(65, 12); + this.label17.TabIndex = 2; + this.label17.Text = "施工监理:"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(16, 375); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(77, 12); + this.label16.TabIndex = 2; + this.label16.Text = "施工责任人:"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(16, 353); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(65, 12); + this.label15.TabIndex = 2; + this.label15.Text = "施工单位:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 328); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(77, 12); + this.label14.TabIndex = 2; + this.label14.Text = "设计人姓名:"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(16, 301); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(65, 12); + this.label13.TabIndex = 2; + this.label13.Text = "设计单位:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(16, 271); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(65, 12); + this.label12.TabIndex = 2; + this.label12.Text = "权属单位:"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(15, 245); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(65, 12); + this.label11.TabIndex = 2; + this.label11.Text = "使用状态:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(15, 218); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(65, 12); + this.label10.TabIndex = 2; + this.label10.Text = "所属道路:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(16, 192); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(65, 12); + this.label9.TabIndex = 2; + this.label9.Text = "埋设时间:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 164); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(65, 12); + this.label8.TabIndex = 2; + this.label8.Text = "对象名称:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(16, 139); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(65, 12); + this.label6.TabIndex = 2; + this.label6.Text = "对象类型:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 112); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 12); + this.label4.TabIndex = 2; + this.label4.Text = "对象编号:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 85); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 12); + this.label3.TabIndex = 2; + this.label3.Text = "标识器型号:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(15, 24); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(41, 12); + this.label7.TabIndex = 2; + this.label7.Text = "编号:"; + // + // FrmAddSinMark + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + this.ClientSize = new System.Drawing.Size(606, 556); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupPanel2); + this.Controls.Add(this.groupPanel3); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnAdd); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmAddSinMark"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "单个标识器添加"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmAddSinMark_FormClosing); + this.Load += new System.EventHandler(this.FrmAddSinMark_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.groupPanel3.ResumeLayout(false); + this.groupPanel3.PerformLayout(); + this.groupPanel2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btnCancel; + private DevComponents.DotNetBar.ButtonX btnAdd; + private System.Windows.Forms.ListBox listBoxSize; + private System.Windows.Forms.Label label2; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLat; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxXLon; + private System.Windows.Forms.Label labelLat; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel3; + private System.Windows.Forms.Label labelLon; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox textBox15; + private System.Windows.Forms.TextBox textBox14; + private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox16; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.ComboBox comboBox2; + + } +} \ No newline at end of file diff --git a/FrmAddSinMark.resx b/FrmAddSinMark.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmAddSinMark.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmAllPipelineStatis.cs b/FrmAllPipelineStatis.cs index 0911557..56848dc 100644 --- a/FrmAllPipelineStatis.cs +++ b/FrmAllPipelineStatis.cs @@ -12,14 +12,6 @@ { public partial class FrmAllPipelineStatis : Office2007Form { - //Dictionary pipelineLengthAndType = new Dictionary(); - //List list = new List(); - //GSOGlobeControl globeControl1; - //int type; - //static FrmAllPipelineStatis frm; - //private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; - //DataTable table = new DataTable(); - //string strLable = ""; static FrmAllPipelineStatis frm; private MainFrm.DataGridViewDelegate m_InitDataGridViewX1; @@ -30,22 +22,6 @@ private List pipeLayerNames; private static bool isSpaceQuery; - //public static void ShowForm(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // if (frm == null) - // { - // frm = new FrmAllPipelineStatis(_type, pipeLen, _list, ctl, InitDataGridViewX1); - // frm.Show(ctl.Parent); - // } - // else - // { - // if (frm.WindowState == FormWindowState.Minimized) - // { - // frm.WindowState = FormWindowState.Normal; - // } - // } - //} public static void ShowForm(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1,List pipeLayerNames) { isSpaceQuery = true; @@ -59,17 +35,7 @@ frm.WindowState = FormWindowState.Normal; } } - //public FrmAllPipelineStatis(int _type, Dictionary pipeLen, List _list, - // GSOGlobeControl ctl, MainFrm.DataGridViewDelegate InitDataGridViewX1) - //{ - // InitializeComponent(); - // type = _type; - // pipelineLengthAndType = pipeLen; - // list = _list; - // globeControl1 = ctl; - // m_InitDataGridViewX1 = InitDataGridViewX1; - //} public FrmAllPipelineStatis(GSOGlobeControl ctl, GSOGeoPolygon3D polygon, MainFrm.DataGridViewDelegate InitDataGridViewX1, List pipeLayerNames) { InitializeComponent(); @@ -91,14 +57,6 @@ private void drawChart() { try { - //if (type == 0) - //{ - // Text = "管线距离统计"; - //} - //else - //{ - // Text = "空间查询"; - //} chartAllAreaPipeline.Series.Add("管线"); // Set axis title @@ -138,20 +96,7 @@ //GSOFeatures fs = list[indexHit]; string pipetype = chartAllAreaPipeline.Series["管线"].Points[indexHit].AxisLabel+"管线"; - //foreach (string key in nameAndPipesMap.Keys) - //{ - // if (key.StartsWith(pipetype)) - // { - // pipetype = key; - // break; - // } - //} - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(pipetype); - //if (layer == null) - //{ - // return; - //} GSOFeatures fs = nameAndPipesMap[pipetype]; string[] fields = ClassSearchAnalysis.getFields(pipetype, globeControl1); DataTable table = ClassSearchAnalysis.convertGSOFeatures2DataTable(fs, fields); diff --git a/FrmBSQStatis.cs b/FrmBSQStatis.cs index dd63f62..5b05926 100644 --- a/FrmBSQStatis.cs +++ b/FrmBSQStatis.cs @@ -23,10 +23,8 @@ bsq = getBSQNameAndNumMap(polygon); } - private void FrmBSQStatis_Load(object sender, EventArgs e) { - try { chartStatis.Series.Add("标识器"); diff --git a/FrmFlagDatabase.Designer.cs b/FrmFlagDatabase.Designer.cs new file mode 100644 index 0000000..cc7aca8 --- /dev/null +++ b/FrmFlagDatabase.Designer.cs @@ -0,0 +1,265 @@ +namespace Cyberpipe +{ + partial class FrmFlagDatabase + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + 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.txt_ip = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_db = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_user = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.groupPanel1 = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.chk = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.txt_pwd = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(3, 3); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(50, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "服务器"; + this.labelX1.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX2 + // + 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(3, 47); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(50, 23); + this.labelX2.TabIndex = 1; + this.labelX2.Text = "数据库"; + this.labelX2.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX3 + // + 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(3, 98); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(50, 23); + this.labelX3.TabIndex = 2; + this.labelX3.Text = "账号"; + this.labelX3.TextAlignment = System.Drawing.StringAlignment.Far; + // + // labelX4 + // + 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(3, 148); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(50, 23); + this.labelX4.TabIndex = 3; + this.labelX4.Text = "密码"; + this.labelX4.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txt_ip + // + // + // + // + this.txt_ip.Border.Class = "TextBoxBorder"; + this.txt_ip.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_ip.Location = new System.Drawing.Point(69, 2); + this.txt_ip.Name = "txt_ip"; + this.txt_ip.Size = new System.Drawing.Size(167, 21); + this.txt_ip.TabIndex = 4; + // + // txt_db + // + // + // + // + this.txt_db.Border.Class = "TextBoxBorder"; + this.txt_db.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_db.Location = new System.Drawing.Point(69, 47); + this.txt_db.Name = "txt_db"; + this.txt_db.Size = new System.Drawing.Size(167, 21); + this.txt_db.TabIndex = 4; + // + // txt_user + // + // + // + // + this.txt_user.Border.Class = "TextBoxBorder"; + this.txt_user.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_user.Location = new System.Drawing.Point(69, 98); + this.txt_user.Name = "txt_user"; + this.txt_user.Size = new System.Drawing.Size(167, 21); + this.txt_user.TabIndex = 4; + // + // btn_ok + // + 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(197, 249); + this.btn_ok.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 5; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + this.groupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.groupPanel1.Controls.Add(this.txt_pwd); + this.groupPanel1.Controls.Add(this.chk); + this.groupPanel1.Controls.Add(this.labelX1); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.txt_user); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_db); + this.groupPanel1.Controls.Add(this.txt_ip); + this.groupPanel1.Location = new System.Drawing.Point(12, 6); + this.groupPanel1.Name = "groupPanel1"; + this.groupPanel1.Size = new System.Drawing.Size(260, 229); + // + // + // + this.groupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 6; + this.groupPanel1.Text = "数据库信息"; + // + // chk + // + this.chk.AutoSize = true; + // + // + // + this.chk.BackgroundStyle.Class = ""; + this.chk.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.chk.Location = new System.Drawing.Point(166, 180); + this.chk.Name = "chk"; + this.chk.Size = new System.Drawing.Size(70, 16); + this.chk.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.chk.TabIndex = 5; + this.chk.Text = "记住配置"; + // + // txt_pwd + // + // + // + // + this.txt_pwd.Border.Class = "TextBoxBorder"; + this.txt_pwd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_pwd.Location = new System.Drawing.Point(69, 149); + this.txt_pwd.Name = "txt_pwd"; + this.txt_pwd.PasswordChar = '*'; + this.txt_pwd.Size = new System.Drawing.Size(167, 21); + this.txt_pwd.TabIndex = 6; + // + // FrmFlagDatabase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 284); + this.Controls.Add(this.groupPanel1); + this.Controls.Add(this.btn_ok); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagDatabase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器数据库连接"; + this.Load += new System.EventHandler(this.FrmFlagDatabase_Load); + this.groupPanel1.ResumeLayout(false); + this.groupPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.Controls.TextBoxX txt_ip; + private DevComponents.DotNetBar.Controls.TextBoxX txt_db; + private DevComponents.DotNetBar.Controls.TextBoxX txt_user; + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.Controls.GroupPanel groupPanel1; + private DevComponents.DotNetBar.Controls.CheckBoxX chk; + private DevComponents.DotNetBar.Controls.TextBoxX txt_pwd; + } +} \ No newline at end of file diff --git a/FrmFlagDatabase.cs b/FrmFlagDatabase.cs new file mode 100644 index 0000000..5a137c0 --- /dev/null +++ b/FrmFlagDatabase.cs @@ -0,0 +1,183 @@ +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.Engine; +using System.IO; +using System.Xml; + +namespace Cyberpipe +{ + public partial class FrmFlagDatabase : Office2007Form + { + public static string dbServer = ""; + public static string database = ""; + public static string userId = ""; + public static string password = ""; + public static GSODataSource ds = null; + private GSOGlobeControl ctl; + + public FrmFlagDatabase(GSOGlobeControl _ctl) + { + InitializeComponent(); + ctl = _ctl; + } + + private void btn_ok_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(txt_ip.Text.Trim()) || String.IsNullOrEmpty(txt_db.Text.Trim()) || String.IsNullOrEmpty(txt_user.Text.Trim()) || String.IsNullOrEmpty(txt_pwd.Text.Trim())) + { + MessageBox.Show("配置参数不能为空!", "提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); + return; + } + try + { + ds = ctl.Globe.DataManager.OpenOracleDataSource(txt_ip.Text.Trim() + "/" + txt_db.Text.Trim(), "", "", txt_user.Text.Trim(), txt_pwd.Text.Trim()); + if (ds == null) + { + MessageBox.Show("数据库连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + else + { + dbServer = txt_ip.Text.Trim(); + database = txt_db.Text.Trim(); + userId = txt_user.Text.Trim(); + password = txt_pwd.Text.Trim(); + WriteXML(); + } + this.DialogResult = DialogResult.OK; + MessageBox.Show("已成功连接数据库!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Error); + this.Close(); + } + catch (Exception ex) + { + MessageBox.Show("数据库连接失败:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + + private void FrmFlagDatabase_Load(object sender, EventArgs e) + { + try + { + ReadXML(); + } + catch (Exception ex) + { + MessageBox.Show("窗体加载失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ReadXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + if (!File.Exists(strFileName)) + { + return; + } + + //初始化XML文档操作类 + XmlDocument myDoc = new XmlDocument(); + //加载XML文件 + myDoc.Load(strFileName); + //搜索指定的节点 + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + XmlNodeList nodes = null; + if (serverRootNode != null) + { + nodes = myDoc.SelectSingleNode("CyberPipe").ChildNodes; + if (nodes != null) + { + bool bRecorded = false; + XmlNode bRecordNode = serverRootNode.SelectSingleNode("IsRecordedSql"); + if (bRecordNode != null) + { + bool.TryParse(bRecordNode.InnerText, out bRecorded); + chk.Checked = bRecorded; + } + if (bRecorded) + { + foreach (System.Xml.XmlNode xn in nodes) + { + if (xn.Name == "serverIP") + { + txt_ip.Text = xn.InnerText; + } + else if (xn.Name == "pipedb") + { + txt_db.Text = xn.InnerText; + } + else if (xn.Name == "userName") + { + txt_user.Text = xn.InnerText; + } + else if (xn.Name == "password") + { + txt_pwd.Text = xn.InnerText; + } + } + } + } + } + } + + private void WriteXML() + { + string strFileName = Path.GetDirectoryName(Application.ExecutablePath) + "/EMSdatabaseConfig.xml"; + File.WriteAllText(strFileName, " "); + XmlDocument myDoc = new XmlDocument(); + + //加载XML文件 + // XmlElement serverRootNode = null; + try + { + myDoc.Load(strFileName); + + } + catch (Exception e) + { + File.Delete(strFileName); + File.WriteAllText(strFileName, " "); + throw e; + } + XmlNode serverRootNode = myDoc.SelectSingleNode("CyberPipe"); + if (serverRootNode == null) + { + serverRootNode = myDoc.CreateElement("CyberPipe"); + } + XmlElement ele0 = myDoc.CreateElement("IsRecordedSql"); + ele0.InnerText = chk.Checked.ToString(); + serverRootNode.AppendChild(ele0); + + XmlElement ele1 = myDoc.CreateElement("serverIP"); + ele1.InnerText = dbServer; + serverRootNode.AppendChild(ele1); + + XmlElement ele2 = myDoc.CreateElement("pipedb"); + ele2.InnerText = database; + serverRootNode.AppendChild(ele2); + + XmlElement ele3 = myDoc.CreateElement("userName"); + ele3.InnerText = userId; + serverRootNode.AppendChild(ele3); + + XmlElement ele4 = myDoc.CreateElement("password"); + ele4.InnerText = password; + serverRootNode.AppendChild(ele4); + try + { + myDoc.Save(strFileName); + } + catch (Exception exp) + { + throw exp; + } + } + } +} diff --git a/FrmFlagDatabase.resx b/FrmFlagDatabase.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagDatabase.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagDetail.Designer.cs b/FrmFlagDetail.Designer.cs new file mode 100644 index 0000000..982bfc6 --- /dev/null +++ b/FrmFlagDetail.Designer.cs @@ -0,0 +1,103 @@ +namespace Cyberpipe +{ + partial class FrmFlagDetail + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridViewX_markDetail = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.对象类型 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.对象名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewX_markDetail + // + this.dataGridViewX_markDetail.AllowUserToAddRows = false; + this.dataGridViewX_markDetail.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridViewX_markDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewX_markDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.对象类型, + this.对象编号, + this.对象名称}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewX_markDetail.DefaultCellStyle = dataGridViewCellStyle3; + this.dataGridViewX_markDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewX_markDetail.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); + this.dataGridViewX_markDetail.Location = new System.Drawing.Point(0, 0); + this.dataGridViewX_markDetail.Name = "dataGridViewX_markDetail"; + this.dataGridViewX_markDetail.RowTemplate.Height = 23; + this.dataGridViewX_markDetail.Size = new System.Drawing.Size(508, 321); + this.dataGridViewX_markDetail.TabIndex = 0; + // + // 对象类型 + // + this.对象类型.HeaderText = "对象类型"; + this.对象类型.Name = "对象类型"; + // + // 对象编号 + // + this.对象编号.HeaderText = "对象编号"; + this.对象编号.Name = "对象编号"; + // + // 对象名称 + // + this.对象名称.HeaderText = "对象名称"; + this.对象名称.Name = "对象名称"; + // + // FrmFlagDetail + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(508, 321); + this.Controls.Add(this.dataGridViewX_markDetail); + this.Name = "FrmFlagDetail"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识对象信息"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagDetail_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagDetail_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX_markDetail)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX_markDetail; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象类型; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象编号; + private System.Windows.Forms.DataGridViewTextBoxColumn 对象名称; + + } +} \ No newline at end of file diff --git a/FrmFlagDetail.cs b/FrmFlagDetail.cs new file mode 100644 index 0000000..d72eee9 --- /dev/null +++ b/FrmFlagDetail.cs @@ -0,0 +1,74 @@ +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 GeoScene.Globe; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagDetail : Form + { + DataTable dt = new DataTable(); + private GSOGlobeControl globeControl1; + + public delegate void Handle(); + public event Handle showParentForm; + String markId; + + public FrmFlagDetail(GSOGlobeControl globeControl1, String id) + { + InitializeComponent(); + this.markId = id; + } + + private void FrmFlagDetail_FormClosing(object sender, FormClosingEventArgs e) + { + showParentForm(); + } + + private void FrmFlagDetail_Load(object sender, EventArgs e) + { + string objectIds = ""; + string objectTypeCodes = ""; + string sql = "select t.对象编号,t.对象类型 from 标识器 t where t.编号='" + markId + "'"; + using (OracleDataReader reader = OracleUtils.ExecuteReader(OracleUtils.ConnectionString, CommandType.Text, sql)) + { + while (reader.Read()) + { + objectIds = reader.GetString(0); + objectTypeCodes = reader.GetString(1); + } + } + + string[] codeTypes = objectTypeCodes.Split(','); + string[] codeIds = objectIds.Split(','); + int length = 0; + if (codeTypes.Length <= codeIds.Length) + { + length = codeTypes.Length; + } + else + { + length = codeIds.Length; + } + for (int n = 0; n < length; n++) + { + for (int i = 0; i < Utility.listPipelineType.Count; i++) + { + if (Utility.listPipelineType[i].code == codeTypes[n]) + { + int index = this.dataGridViewX_markDetail.Rows.Add(); + this.dataGridViewX_markDetail.Rows[index].Cells[0].Value = Utility.listPipelineType[i].type; + this.dataGridViewX_markDetail.Rows[index].Cells[1].Value = codeIds[n].ToString(); + this.dataGridViewX_markDetail.Rows[index].Cells[2].Value = Utility.listPipelineType[i].name; + } + } + } + } + } +} diff --git a/FrmFlagDetail.resx b/FrmFlagDetail.resx new file mode 100644 index 0000000..e98a8fe --- /dev/null +++ b/FrmFlagDetail.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + \ No newline at end of file diff --git a/FrmFlagEdits.Designer.cs b/FrmFlagEdits.Designer.cs new file mode 100644 index 0000000..205dd3b --- /dev/null +++ b/FrmFlagEdits.Designer.cs @@ -0,0 +1,564 @@ +namespace Cyberpipe +{ + partial class FrmFlagEdits + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ok = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_no = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.txt_flag_type = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_flag_id = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txt_deep = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.txt_street = new DevComponents.DotNetBar.Controls.TextBoxX(); + 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(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.groupPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ok + // + 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.Name = "btn_ok"; + this.btn_ok.Size = new System.Drawing.Size(75, 23); + this.btn_ok.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btn_ok.TabIndex = 4; + this.btn_ok.Text = "确定"; + this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(18, 22); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 0; + this.labelX1.Text = "标识器ID"; + // + // labelX2 + // + 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(251, 23); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(75, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "编号"; + // + // labelX3 + // + 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(474, 23); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(75, 23); + this.labelX3.TabIndex = 0; + this.labelX3.Text = "型号"; + // + // txt_flag_no + // + // + // + // + this.txt_flag_no.Border.Class = "TextBoxBorder"; + this.txt_flag_no.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_no.Location = new System.Drawing.Point(326, 22); + this.txt_flag_no.Name = "txt_flag_no"; + this.txt_flag_no.ReadOnly = true; + this.txt_flag_no.Size = new System.Drawing.Size(128, 21); + this.txt_flag_no.TabIndex = 1; + // + // labelX6 + // + 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(251, 72); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(75, 23); + this.labelX6.TabIndex = 0; + this.labelX6.Text = "埋深(米)*"; + // + // txt_flag_type + // + // + // + // + this.txt_flag_type.Border.Class = "TextBoxBorder"; + this.txt_flag_type.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_type.Location = new System.Drawing.Point(547, 22); + this.txt_flag_type.Name = "txt_flag_type"; + this.txt_flag_type.Size = new System.Drawing.Size(128, 21); + this.txt_flag_type.TabIndex = 1; + // + // txt_flag_id + // + // + // + // + this.txt_flag_id.Border.Class = "TextBoxBorder"; + this.txt_flag_id.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_flag_id.Location = new System.Drawing.Point(103, 22); + this.txt_flag_id.Name = "txt_flag_id"; + this.txt_flag_id.ReadOnly = true; + this.txt_flag_id.Size = new System.Drawing.Size(128, 21); + this.txt_flag_id.TabIndex = 1; + // + // txt_deep + // + // + // + // + this.txt_deep.Border.Class = "TextBoxBorder"; + this.txt_deep.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_deep.Location = new System.Drawing.Point(326, 71); + this.txt_deep.Name = "txt_deep"; + this.txt_deep.Size = new System.Drawing.Size(128, 21); + this.txt_deep.TabIndex = 1; + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.Class = ""; + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Location = new System.Drawing.Point(467, 71); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(75, 23); + this.labelX11.TabIndex = 5; + this.labelX11.Text = "所属道路"; + // + // txt_street + // + // + // + // + this.txt_street.Border.Class = "TextBoxBorder"; + this.txt_street.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txt_street.Location = new System.Drawing.Point(547, 69); + this.txt_street.Name = "txt_street"; + this.txt_street.Size = new System.Drawing.Size(128, 21); + this.txt_street.TabIndex = 12; + // + // groupPanel1 + // + this.groupPanel1.CanvasColor = System.Drawing.SystemColors.Control; + 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); + this.groupPanel1.Controls.Add(this.labelX4); + this.groupPanel1.Controls.Add(this.txt_street); + this.groupPanel1.Controls.Add(this.labelX11); + this.groupPanel1.Controls.Add(this.txt_deep); + this.groupPanel1.Controls.Add(this.txt_flag_id); + this.groupPanel1.Controls.Add(this.txt_flag_type); + this.groupPanel1.Controls.Add(this.labelX6); + this.groupPanel1.Controls.Add(this.txt_flag_no); + this.groupPanel1.Controls.Add(this.labelX3); + this.groupPanel1.Controls.Add(this.labelX2); + this.groupPanel1.Controls.Add(this.labelX1); + 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.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.groupPanel1.Style.BackColorGradientAngle = 90; + this.groupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.groupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderBottomWidth = 1; + this.groupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.groupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderLeftWidth = 1; + this.groupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderRightWidth = 1; + this.groupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.groupPanel1.Style.BorderTopWidth = 1; + this.groupPanel1.Style.Class = ""; + this.groupPanel1.Style.CornerDiameter = 4; + this.groupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.groupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.groupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.groupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.groupPanel1.StyleMouseDown.Class = ""; + this.groupPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.groupPanel1.StyleMouseOver.Class = ""; + this.groupPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.groupPanel1.TabIndex = 2; + this.groupPanel1.Text = "标识器属性信息"; + // + // textBoxbz + // + // + // + // + this.textBoxbz.Border.Class = "TextBoxBorder"; + this.textBoxbz.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxbz.Location = new System.Drawing.Point(326, 216); + this.textBoxbz.Name = "textBoxbz"; + this.textBoxbz.Size = new System.Drawing.Size(128, 21); + this.textBoxbz.TabIndex = 32; + // + // labelX15 + // + this.labelX15.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX15.BackgroundStyle.Class = ""; + this.labelX15.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX15.Location = new System.Drawing.Point(245, 216); + 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 + // + // + // + // + this.textBoxqsdw.Border.Class = "TextBoxBorder"; + this.textBoxqsdw.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxqsdw.Location = new System.Drawing.Point(103, 120); + this.textBoxqsdw.Name = "textBoxqsdw"; + this.textBoxqsdw.Size = new System.Drawing.Size(128, 21); + this.textBoxqsdw.TabIndex = 16; + // + // labelX5 + // + 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(18, 120); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(75, 23); + this.labelX5.TabIndex = 15; + this.labelX5.Text = "权属单位"; + // + // textBoxXgc + // + // + // + // + this.textBoxXgc.Border.Class = "TextBoxBorder"; + this.textBoxXgc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.textBoxXgc.Location = new System.Drawing.Point(102, 72); + this.textBoxXgc.Name = "textBoxXgc"; + this.textBoxXgc.Size = new System.Drawing.Size(128, 21); + this.textBoxXgc.TabIndex = 14; + // + // labelX4 + // + 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(9, 72); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(87, 23); + this.labelX4.TabIndex = 13; + this.labelX4.Text = "地面高程(米)"; + // + // FrmFlagEdits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 356); + this.Controls.Add(this.btn_ok); + this.Controls.Add(this.groupPanel1); + this.DoubleBuffered = true; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmFlagEdits"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器属性编辑"; + this.groupPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevComponents.DotNetBar.ButtonX btn_ok; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_no; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_type; + private DevComponents.DotNetBar.Controls.TextBoxX txt_flag_id; + private DevComponents.DotNetBar.Controls.TextBoxX txt_deep; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.Controls.TextBoxX txt_street; + 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 new file mode 100644 index 0000000..b830ce4 --- /dev/null +++ b/FrmFlagEdits.cs @@ -0,0 +1,89 @@ +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; + +namespace Cyberpipe +{ + public partial class FrmFlagEdits : Office2007Form + { + public FrmFlagEdits() + { + InitializeComponent(); + } + string id = ""; + public delegate void Handle(); + 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) + { + InitializeComponent(); + this.id = id; + txt_flag_id.Text = flagid;//标识器ID + txt_flag_no.Text = flagno;//编号 + txt_flag_type.Text = flagtype;//标识器型号 + textBoxXgc.Text = gc;//地面高程 + 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 + { + double outer; + + if (!double.TryParse(txt_deep.Text.Trim(), out outer)) + { + MessageBox.Show("埋深取值有误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + txt_deep.Focus(); + return; + } + string sql = "update 标识器 t " + + "set t.标识器id号 = '" + txt_flag_id.Text.Trim() + "'," + + "t.编号 = '" + txt_flag_no.Text.Trim() + "'," + + "t.标识器型号 = '" + txt_flag_type.Text.Trim() + "'," + + "t.地面高程 =" + textBoxXgc.Text.Trim() + "," + + "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); + if (MessageBox.Show("属性编辑成功!", "结果", MessageBoxButtons.OK, MessageBoxIcon.Question)==DialogResult.OK) + { + this.Close(); + refresh(); + } + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagEdits.resx b/FrmFlagEdits.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/FrmFlagEdits.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/FrmFlagManagers.Designer.cs b/FrmFlagManagers.Designer.cs new file mode 100644 index 0000000..9fe14fb --- /dev/null +++ b/FrmFlagManagers.Designer.cs @@ -0,0 +1,180 @@ +namespace Cyberpipe +{ + partial class FrmFlagManagers + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.标识对象ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.bar1 = new DevComponents.DotNetBar.Bar(); + this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); + this.txt_no = new DevComponents.DotNetBar.TextBoxItem(); + this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); + this.combo_street = new DevComponents.DotNetBar.ComboBoxItem(); + this.btn_query = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_batch = new DevComponents.DotNetBar.ButtonItem(); + this.btn_add_menu = new DevComponents.DotNetBar.ButtonItem(); + this.winGridViewPager1 = new WHC.Pager.WinControl.WinGridViewPager(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.标识对象ToolStripMenuItem, + this.toolStripMenuItem2}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(125, 48); + // + // 标识对象ToolStripMenuItem + // + this.标识对象ToolStripMenuItem.Name = "标识对象ToolStripMenuItem"; + this.标识对象ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); + this.标识对象ToolStripMenuItem.Text = "标识对象"; + this.标识对象ToolStripMenuItem.Click += new System.EventHandler(this.标识对象ToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); + this.toolStripMenuItem2.Text = "查看位置"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // bar1 + // + this.bar1.AntiAlias = true; + this.bar1.Dock = System.Windows.Forms.DockStyle.Top; + this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.labelItem1, + this.txt_no, + this.labelItem2, + this.combo_street, + this.btn_query, + this.btn_add_batch, + this.btn_add_menu}); + this.bar1.Location = new System.Drawing.Point(0, 0); + this.bar1.Name = "bar1"; + this.bar1.Size = new System.Drawing.Size(881, 28); + this.bar1.Stretch = true; + this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.bar1.TabIndex = 8; + this.bar1.TabStop = false; + this.bar1.Text = "bar1"; + // + // labelItem1 + // + this.labelItem1.Name = "labelItem1"; + this.labelItem1.Text = "编号"; + // + // txt_no + // + this.txt_no.Name = "txt_no"; + this.txt_no.TextBoxWidth = 200; + this.txt_no.WatermarkColor = System.Drawing.SystemColors.GrayText; + // + // labelItem2 + // + this.labelItem2.Name = "labelItem2"; + this.labelItem2.Text = "街道"; + // + // combo_street + // + this.combo_street.ComboWidth = 200; + this.combo_street.DropDownHeight = 106; + this.combo_street.ItemHeight = 17; + this.combo_street.Name = "combo_street"; + // + // btn_query + // + this.btn_query.Name = "btn_query"; + this.btn_query.Text = "查询"; + this.btn_query.Click += new System.EventHandler(this.btn_query_Click); + // + // btn_add_batch + // + this.btn_add_batch.Name = "btn_add_batch"; + this.btn_add_batch.Text = "批量添加"; + this.btn_add_batch.Click += new System.EventHandler(this.btn_add_batch_Click); + // + // btn_add_menu + // + this.btn_add_menu.Name = "btn_add_menu"; + this.btn_add_menu.Text = "手工添加"; + this.btn_add_menu.Click += new System.EventHandler(this.btn_add_menu_Click); + // + // winGridViewPager1 + // + this.winGridViewPager1.AppendedMenu = null; + this.winGridViewPager1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.winGridViewPager1.DataSource = null; + this.winGridViewPager1.DisplayColumns = ""; + this.winGridViewPager1.Dock = System.Windows.Forms.DockStyle.Fill; + this.winGridViewPager1.Location = new System.Drawing.Point(0, 28); + this.winGridViewPager1.MinimumSize = new System.Drawing.Size(540, 0); + this.winGridViewPager1.Name = "winGridViewPager1"; + this.winGridViewPager1.PrintTitle = ""; + this.winGridViewPager1.Size = new System.Drawing.Size(881, 446); + this.winGridViewPager1.TabIndex = 9; + // + // FrmFlagManagers + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(881, 474); + this.Controls.Add(this.winGridViewPager1); + this.Controls.Add(this.bar1); + this.DoubleBuffered = true; + this.Name = "FrmFlagManagers"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "标识器管理"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmFlagManagers_FormClosing); + this.Load += new System.EventHandler(this.FrmFlagManagers_Load); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem 标识对象ToolStripMenuItem; + private DevComponents.DotNetBar.Bar bar1; + private DevComponents.DotNetBar.LabelItem labelItem1; + private DevComponents.DotNetBar.TextBoxItem txt_no; + private DevComponents.DotNetBar.LabelItem labelItem2; + private DevComponents.DotNetBar.ComboBoxItem combo_street; + private DevComponents.DotNetBar.ButtonItem btn_query; + private DevComponents.DotNetBar.ButtonItem btn_add_batch; + private DevComponents.DotNetBar.ButtonItem btn_add_menu; + private WHC.Pager.WinControl.WinGridViewPager winGridViewPager1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + } +} \ No newline at end of file diff --git a/FrmFlagManagers.cs b/FrmFlagManagers.cs new file mode 100644 index 0000000..1e433c0 --- /dev/null +++ b/FrmFlagManagers.cs @@ -0,0 +1,459 @@ +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; +using DevComponents.DotNetBar; +using GeoScene.Globe; +using GeoScene.Data; +using GeoScene.Engine; +using System.IO; +using System.Data.OracleClient; + +namespace Cyberpipe +{ + public partial class FrmFlagManagers : Office2007Form + { + GSOGlobeControl globeControl1 = null; + int maxPageIndex = 20; + public static bool IS_OPEN = false; + int rows = 0; + public static GSODataSource ds = null; + TreeNode layerManagerNode = null; + string LSSYS_ID_VALUE = "标识器自增编号"; + + public FrmFlagManagers(GSOGlobeControl _globeControl1) + { + this.globeControl1 = _globeControl1; + InitializeComponent(); + winGridViewPager1.OnPageChanged += new EventHandler(winGridViewPager1_OnPageChanged); + this.winGridViewPager1.OnEditSelected += new EventHandler(winGridViewPager1_OnEditSelected);//属性编辑 + this.winGridViewPager1.OnDeleteSelected += new EventHandler(winGridViewPager1_OnDeleteSelected);//标识器报废 + + this.winGridViewPager1.OnStartExport += new EventHandler(pager1_OnStartExport); + winGridViewPager1.dataGridView1.MultiSelect = false; + } + + 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; + } + + /// + /// 初始化分页表格 + /// + 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("备注", "备注"); + + this.winGridViewPager1.DisplayColumns = "编号,标识器ID号,标识器型号,地面高程,标识器埋深,所属道路,使用状态,权属单位,设计单位,设计人姓名,施工单位,施工责任人,施工监理,监理责任人,备注"; + this.winGridViewPager1.dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + + //隐藏右键功能按钮 + 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[2].Text = "属性编辑"; + winGridViewPager1.dataGridView1.ContextMenuStrip.Items[3].Text = "标识器报废"; + + winGridViewPager1.AppendedMenu = this.contextMenuStrip1; + + //右键菜单宽度 + winGridViewPager1.dataGridView1.ContextMenuStrip.AutoSize = false; + winGridViewPager1.dataGridView1.ContextMenuStrip.Width = 150; + //控制间隔的颜色 + winGridViewPager1.BackColor = Color.LightCyan;//间隔颜色 + //控制每页显示的最大数据量 + winGridViewPager1.PagerInfo.RecordCount = rows; + winGridViewPager1.PagerInfo.PageSize = maxPageIndex; + winGridViewPager1.dataGridView1.Refresh(); + } + /// + /// 页面刷新 + /// + /// + /// + private void winGridViewPager1_OnPageChanged(object sender, EventArgs e) + { + LoadData(); + + } + + /// + /// 属性编辑 + /// + /// + /// + private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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); + frm.refresh += new FrmFlagEdits.Handle(LoadData); //改变值的事件 + frm.ShowDialog(); + winGridViewPager1.Refresh(); + } + catch (Exception ex) + { + MessageBox.Show("属性编辑失败:" + ex, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + /// + /// 标识器报废 + /// + /// + /// + private void winGridViewPager1_OnDeleteSelected(object sender, EventArgs e) + { + DataGridView grid = sender as DataGridView; + 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) + { + bindComboxStreet(); + LoadData(); + + IS_OPEN = true; + } + + private void LoadData() + { + int pageIndex = winGridViewPager1.PagerInfo.CurrenetPageIndex; + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + winGridViewPager1.Refresh(); + } + + private void LoadData(int pageIndex) + { + string sqlData = GetSql(pageIndex); + initlizeDatagrid(); + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sqlData).Tables[0]; + winGridViewPager1.DataSource = table.DefaultView; + 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"; + + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private string GetSql(int pageIndex) + { + int minPage = (pageIndex - 1) * maxPageIndex + 1; + 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 使用状态 = '使用中'"; + + + if (!String.IsNullOrEmpty(txt_no.Text.Trim())) + { + sqlCount += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + sqlData += " and 编号 like '%" + txt_no.Text.Trim() + "%'"; + } + if (null != combo_street.SelectedItem && !String.IsNullOrEmpty(combo_street.SelectedItem.ToString().Trim())) + { + sqlData += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + sqlCount += " and 所属道路='" + combo_street.SelectedItem.ToString().Trim() + "'"; + } + + sqlData += " order by 编号)b " + + "where(b.row_num between " + minPage + " and " + maxPage + ")"; + rows = int.Parse(OracleUtils.ExecuteScalar(OracleUtils.ConnectionString, CommandType.Text, sqlCount).ToString()); + + return sqlData; + } + + private void bindComboxStreet() + { + ComboBoxItem item = new ComboBoxItem(); + + String sql = "select distinct t.所属道路 from 标识器 t where t.使用状态='使用中'"; + DataTable table = OracleUtils.ExecuteDataset(OracleUtils.ConnectionString, CommandType.Text, sql).Tables[0]; + foreach (DataRow row in table.Rows) + { + item = new ComboBoxItem(); + item.Text = row[0].ToString(); + if (!item.Text.Equals("")) + combo_street.Items.Add(item); + } + } + + private void FrmFlagManagers_FormClosing(object sender, FormClosingEventArgs e) + { + IS_OPEN = false; + globeControl1.Globe.MemoryLayer.RemoveAllFeature(); + + globeControl1.Refresh(); + + } + private void doSave(Object e) + { + try + { + globeControl1.Globe.Layers["标识器"].Save(); + } + catch (Exception ex) + { + LogHelper.WriteLog(typeof(FrmFlagManagers), ex); + } + } + + private void btn_query_Click(object sender, EventArgs e) + { + try + { + LoadData(1); + } + catch (Exception ex) + { + MessageBox.Show("查询失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void btn_add_batch_Click(object sender, EventArgs e) + { + if (ds == null && null != globeControl1) + { + FrmFlagDatabase frmDB = new FrmFlagDatabase(globeControl1); + if (frmDB.ShowDialog() == DialogResult.OK) + { + ds = FrmFlagDatabase.ds; + } + } + + if (ds != null && null != globeControl1) + { + FrmAddFlagBatch frmFlag = new FrmAddFlagBatch(globeControl1, ds); + if (frmFlag.ShowDialog() == DialogResult.OK) + { + addNodeToLayerManagerNode(frmFlag.flags); + } + } + } + + private Boolean CheckDatasetGeoReference(GSODataset dataset) + { + Boolean bSuccess = false; + if (dataset.GeoReferenceType == EnumGeoReferenceType.Flat) + { + if (MessageBox.Show("数据没有空间参考信息,请设置空间参考信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) == DialogResult.OK) + { + String strPath = Path.GetDirectoryName(Application.ExecutablePath) + "\\Coordinate Systems"; + OpenFileDialog dlg = new OpenFileDialog(); + + dlg.InitialDirectory = strPath; + dlg.RestoreDirectory = true; + + dlg.Filter = "投影文件|*.prj||"; + if (dlg.ShowDialog() == DialogResult.OK) + { + bSuccess = dataset.LoadProjectionFromESRIFile(dlg.FileName); + } + } + } + else + { + return true; + } + return bSuccess; + } + + private void addNodeToLayerManagerNode(GSOLayer layer) + { + if (layer != null) + { + GSODataset dataset = layer.Dataset; + CheckDatasetGeoReference(layer.Dataset); + TreeNode node = new TreeNode(); + node.Tag = layer; + node.Text = layer.Dataset.Caption; + node.ImageIndex = 0; + node.SelectedImageIndex = 0; + node.Checked = layer.Visible; + layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Expand(); + } + } + + private void btn_add_menu_Click(object sender, EventArgs e) + { + if (null != globeControl1) + { + FrmAddSinMark frm = new FrmAddSinMark(globeControl1); + frm.Show(); + } + } + + private void 标识对象ToolStripMenuItem_Click(object sender, EventArgs e) + { + if (winGridViewPager1 != null && winGridViewPager1.dataGridView1 != null && winGridViewPager1.dataGridView1.SelectedRows.Count > 0) + { + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.Hide(); + string id = row.Cells["编号"].Value.ToString(); + FrmFlagDetail p = new FrmFlagDetail(globeControl1, id); + p.showParentForm += new FrmFlagDetail.Handle(showThisForm);//改变值的事件 + p.Show(); + } + catch (Exception ex) + { + MessageBox.Show("失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } + + private void showThisForm() + { + this.Show(); + } + /// + /// 位置查看 + /// + /// + /// + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + if (winGridViewPager1 == null || winGridViewPager1.dataGridView1 == null || + winGridViewPager1.dataGridView1.SelectedRows.Count <= 0) return; + + DataGridViewRow row = winGridViewPager1.dataGridView1.SelectedRows[0]; + try + { + this.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.标识器型号,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" + + "所属道路:" + 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(); + + } + catch (Exception ex) + { + MessageBox.Show("标识器定位失败:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + + } +} diff --git a/FrmFlagManagers.resx b/FrmFlagManagers.resx new file mode 100644 index 0000000..f3050a7 --- /dev/null +++ b/FrmFlagManagers.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 45 + + \ No newline at end of file diff --git a/MainFrm.cs b/MainFrm.cs index ec7d43e..d33c5a0 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -40,7 +40,7 @@ GSOBalloon featureTooltip2; GSOBalloonEx balloonEx2; - GSOLayer layerTemp;//wxl注释,Globe1的临时图层 + GSOLayer layerTemp; //wxl注释,Globe1的临时图层 FrmRedlineResult frmredResult = null; FrmMnModify frmModify; public bool frmRedlineResult = false; @@ -877,37 +877,37 @@ double dsw = SW; if (SW > 1440) { - double myScreen = dsw / 1440; - buttonX1.Width = (int)(buttonX1.Width * myScreen); - buttonX2.Width = (int)(buttonX2.Width * myScreen); - buttonX4.Width = (int)(buttonX4.Width * myScreen); - buttonX5.Width = (int)(buttonX5.Width * myScreen); - buttonX6.Width = (int)(buttonX6.Width * myScreen); - buttonX7.Width = (int)(buttonX8.Width * myScreen); - buttonX8.Width = (int)(buttonX8.Width * myScreen); - buttonX9.Width = (int)(buttonX9.Width * myScreen); - buttonX12.Width = (int)(buttonX12.Width * myScreen); - buttonX14.Width = (int)(buttonX14.Width * myScreen); - buttonX15.Width = (int)(buttonX15.Width * myScreen); - buttonX16.Width = (int)(buttonX16.Width * myScreen); - buttonX17.Width = (int)(buttonX17.Width * myScreen); + double myScreen = dsw/1440; + buttonX1.Width = (int) (buttonX1.Width*myScreen); + buttonX2.Width = (int) (buttonX2.Width*myScreen); + buttonX4.Width = (int) (buttonX4.Width*myScreen); + buttonX5.Width = (int) (buttonX5.Width*myScreen); + buttonX6.Width = (int) (buttonX6.Width*myScreen); + buttonX7.Width = (int) (buttonX8.Width*myScreen); + buttonX8.Width = (int) (buttonX8.Width*myScreen); + buttonX9.Width = (int) (buttonX9.Width*myScreen); + buttonX12.Width = (int) (buttonX12.Width*myScreen); + buttonX14.Width = (int) (buttonX14.Width*myScreen); + buttonX15.Width = (int) (buttonX15.Width*myScreen); + buttonX16.Width = (int) (buttonX16.Width*myScreen); + buttonX17.Width = (int) (buttonX17.Width*myScreen); - labelX1.Width = (int)(labelX1.Width * myScreen); - labelX2.Width = (int)(labelX2.Width * myScreen); - labelX3.Width = (int)(labelX3.Width * myScreen); - labelX6.Width = (int)(labelX6.Width * myScreen); - labelX8.Width = (int)(labelX8.Width * myScreen); - labelX9.Width = (int)(labelX9.Width * myScreen); - labelX12.Width = (int)(labelX12.Width * myScreen); - labelX13.Width = (int)(labelX13.Width * myScreen); - labelX14.Width = (int)(labelX14.Width * myScreen); - labelX16.Width = (int)(labelX16.Width * myScreen); - labelX17.Width = (int)(labelX17.Width * myScreen); - labelX11.Width = (int)(labelX11.Width * myScreen); - labelX19.Width = (int)(labelX19.Width * myScreen); - labelX21.Width = (int)(labelX21.Width * myScreen); - labelX22.Width = (int)(labelX22.Width * myScreen); - labelX24.Width = (int)(labelX24.Width * myScreen); + labelX1.Width = (int) (labelX1.Width*myScreen); + labelX2.Width = (int) (labelX2.Width*myScreen); + labelX3.Width = (int) (labelX3.Width*myScreen); + labelX6.Width = (int) (labelX6.Width*myScreen); + labelX8.Width = (int) (labelX8.Width*myScreen); + labelX9.Width = (int) (labelX9.Width*myScreen); + labelX12.Width = (int) (labelX12.Width*myScreen); + labelX13.Width = (int) (labelX13.Width*myScreen); + labelX14.Width = (int) (labelX14.Width*myScreen); + labelX16.Width = (int) (labelX16.Width*myScreen); + labelX17.Width = (int) (labelX17.Width*myScreen); + labelX11.Width = (int) (labelX11.Width*myScreen); + labelX19.Width = (int) (labelX19.Width*myScreen); + labelX21.Width = (int) (labelX21.Width*myScreen); + labelX22.Width = (int) (labelX22.Width*myScreen); + labelX24.Width = (int) (labelX24.Width*myScreen); } sideBar1.Visible = false; sideBar1.ExpandedPanel = sideBarPanelItem3; @@ -1031,7 +1031,7 @@ globeControl1.Globe.UserBackgroundColor = Color.White; globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3; + globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3; globeControl1.Globe.EditSnapObject = true; globeControl1.Globe.IsReleaseMemOutOfView = true; globeControl1.Globe.ControlPanel.Visible = true; @@ -1050,7 +1050,7 @@ globeControl2.Globe.UserBackgroundColor = Color.White; globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed; globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed; - globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3; + globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3; globeControl2.Globe.EditSnapObject = true; globeControl2.Globe.IsReleaseMemOutOfView = true; globeControl2.Globe.ControlPanel.Visible = false; @@ -1154,6 +1154,7 @@ initLayerTree(); } + /// /// 加载地球1、2的图层 /// @@ -1224,7 +1225,7 @@ } - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { connectServer(); }); @@ -1291,7 +1292,7 @@ private void MainFrm_Load(object sender, EventArgs e) { - layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示 + layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示 initGlobalControl(); //initGlobalMap(); // initLayerTree(); @@ -1362,12 +1363,12 @@ tempnode.Checked = node.Checked && feature.Visible; tempnode.Tag = feature; node.Nodes.Add(tempnode); - GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature; + GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature; VisitFeature3Ds(featureFolder.Features, tempnode); } else { - TreeNode tempnode = new TreeNode { Text = feature.Name }; + TreeNode tempnode = new TreeNode {Text = feature.Name}; if (feature.Geometry != null) { switch (feature.Geometry.Type) @@ -1562,6 +1563,7 @@ } #endregion + private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Button != MouseButtons.Right) return; @@ -1590,6 +1592,7 @@ } } + //wxl Tag更正 /// /// 删除临时添加的本地数据图层 @@ -1618,6 +1621,7 @@ } } + //wxl Tag更正 private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1629,6 +1633,7 @@ 可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked; layer.Editable = 可编辑ToolStripMenuItem.Checked; } + //wxl Tag更正 private void 保存ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1638,6 +1643,7 @@ if (layer == null) return; layer.Dataset.Save(); } + //wxl Tag更正 private void 定位ToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1667,7 +1673,8 @@ if (layer == null) return; if (layer.Caption.Equals("红线")) { - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), + EnumAltitudeMode.Absolute, -4, 50, 1000); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; layer.Visible = true; @@ -1681,6 +1688,7 @@ } } } + //wxl Tag更正 private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { @@ -1693,7 +1701,8 @@ GSOFeature feature = layer.GetAt(0); if (feature != null && feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute); + //, 0, 0, 1000); } else { @@ -1705,7 +1714,8 @@ GSOFeature feature = node.Tag as GSOFeature; if (feature.Geometry != null) { - globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10); + globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, + 10); } else { @@ -1758,6 +1768,7 @@ globeControl1.Globe.Refresh(); } } + void globeControl2_MouseWheel(object sender, MouseEventArgs e) { if (globeControl2.Globe.CameraState.Distance > 20000000) @@ -1770,6 +1781,7 @@ } #region Fan 横断面 + /// /// 横断面分析、基线剖面分析、道路断面分析等 /// @@ -1812,6 +1824,7 @@ } trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis; } + #endregion /// @@ -1834,14 +1847,16 @@ case "PipelineDistanceStatistics": - FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm1.Show(this); globeControl1.Globe.Action = EnumAction3D.ActionNull; break; case "PipelineSpatialQuery": - FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, + Utility.m_PipelineLayerNames); globeControl1.Globe.ClearAnalysis(); globeControl1.Globe.Action = EnumAction3D.ActionNull; @@ -1865,7 +1880,8 @@ geoPit.PitDepth = depth; geoPit.PitDepthUsing = true; globeControl1.Globe.AddPit("", geoPit); - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (layerGround != null) { layerGround.Visible = false; @@ -1898,6 +1914,7 @@ break; } } + /// /// 鼠标悬浮提示 /// @@ -1910,11 +1927,12 @@ if (e.Feature == null) return; if (isFeatureContainsBianhao(e.Feature)) { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString()); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, + e.Feature.GetValue(featureIDFieldName).ToString()); } else if (e.Feature.Name != "") { - featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name); + featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name); } } catch (Exception ex) @@ -1933,7 +1951,7 @@ if (e.Button != MouseButtons.Left) return; if (enumDesignMode == EnumDesignMode.AddPipe - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线 { GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd; if (layerDest != null) @@ -1949,7 +1967,7 @@ } } if (enumDesignMode == EnumDesignMode.AddTunnel - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道 { GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道"); if (tunnel != null && tunnel.GetAllFeatures().Length > 0) @@ -1961,10 +1979,9 @@ //tunnel.Save(); } } - } if (enumDesignMode == EnumDesignMode.AddCitySevenLine - && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线 + && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线 { CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine; string lineType = citySevenLine.Type; @@ -2000,6 +2017,7 @@ mouseDownX1 = e.X; mouseDownY1 = e.Y; } + /// /// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件 /// @@ -2010,6 +2028,7 @@ mouseDownX2 = e.X; mouseDownY2 = e.Y; } + /// /// /// @@ -2023,6 +2042,7 @@ RightScreenToolMenu.Show(globeControl2, e.X, e.Y); } } + /// /// (完善)#wxl 待整理 /// @@ -2037,7 +2057,7 @@ 通视分析ToolStripMenuItem.Checked = false; return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2053,13 +2073,15 @@ int idx = dataGridViewX2.Rows.Add(); dataGridViewX2.Rows[idx].Tag = feat; dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX2.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2075,7 +2097,9 @@ int idx = dataGridViewLineList.Rows.Add(); dataGridViewLineList.Rows[idx].Tag = feat; dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewLineList.Rows[idx].Cells[1].Value = featureName; } } @@ -2097,13 +2121,15 @@ int idx = dataGridViewX8.Rows.Add(); dataGridViewX8.Rows[idx].Tag = feat; dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX8.Rows[idx].Cells[1].Value = featureName; } } return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2119,7 +2145,9 @@ int idx = dataGridViewX4.Rows.Add(); dataGridViewX4.Rows[idx].Tag = feat; dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX4.Rows[idx].Cells[1].Value = featureName; } @@ -2127,7 +2155,7 @@ return; } - if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 + if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析 { if (globeControl1.Globe.SelObjectCount > 0) { @@ -2143,7 +2171,9 @@ int idx = dataGridViewX6.Rows.Add(); dataGridViewX6.Rows[idx].Tag = feat; dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption; - var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name; + var featureName = isFeatureContainsBianhao(feat) + ? feat.GetValue(featureIDFieldName).ToString() + : feat.Name; dataGridViewX6.Rows[idx].Cells[1].Value = featureName; } } @@ -2196,7 +2226,7 @@ layerTemp.AddFeature(feat); } } - else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 + else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能 { if (e.X == mouseDownX1 && e.Y == mouseDownY1) { @@ -2244,7 +2274,8 @@ return result; } - string featureIDFieldName = "编号";//待完善 + string featureIDFieldName = "编号"; //待完善 + private bool isFeatureContainsBianhao(GSOFeature feature) { if (feature.GetFieldDefn("标识器编号") != null) @@ -2268,12 +2299,13 @@ string str1 = ""; if (feature == null) return; - if (feature.GetFieldDefn("图片编码") != null)// + if (feature.GetFieldDefn("图片编码") != null) // { str1 = GetBubbleInfo(feature, globeControl1); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2290,7 +2322,7 @@ balloonEx.HideBalloon(); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2309,7 +2341,8 @@ str1 = GetBubbleInfo(feature, globeControl2); if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码"))) { - str1 += ""; + str1 += ""; } else if (RemoteFileExists(Utility.PicDefaultURL)) { @@ -2326,7 +2359,7 @@ balloonEx2.HideBalloon(); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480); balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420); - balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1); + balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1); } /// @@ -2337,10 +2370,13 @@ private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl) { if (feature == null) return ""; - string str = "
" + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + fieldNames[j] + "
" + value + "
"; + string str = + "
"; var code = feature.GetFieldAsString("编码"); var title = FeatureTools.GetFeatureTypeByCode(code); - str += ""; + str += + ""; string layerName = feature.Dataset.Name; string queryFields = ""; if (Utility.Query_Fields.ContainsKey(layerName)) @@ -2354,28 +2390,30 @@ } if (queryFields != null) { - string[] param = { "," }; + string[] param = {","}; string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries); - for (int j = 0; j < fieldNames.Length; ) + for (int j = 0; j < fieldNames.Length;) { - int count = 0; - string tmpStr = ""; - while (count<2&&j
" + + tmpStr += + "
"; - count ++; + count++; } j++; } if (count == 1) - {//不够两列 + { +//不够两列 tmpStr += ""; } tmpStr += ""; @@ -2393,6 +2431,7 @@ GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer; return featureAddLayer; } + //遍历最深三层找到目标node. private TreeNode GetDestLayerFeatureAddTreeNode() { @@ -2415,7 +2454,7 @@ { GSOLayer gsoLayer = node.Tag as GSOLayer; if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node; - } + } } } else @@ -2465,6 +2504,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 地下模式 菜单按钮 /// @@ -2501,6 +2541,7 @@ } globeControl1.Globe.Refresh(); } + /// /// 行走模式 菜单按钮 /// @@ -2518,6 +2559,7 @@ globeControl1.Globe.CameraMode = EnumCameraMode.Walk; } + /// /// 地面透明度设置 菜单 /// @@ -2528,11 +2570,12 @@ LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text); globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) layer.Opaque = 100 - sliderGroundTransSet1.Value; optiValue = sliderGroundTransSet1.Value; } + /// /// 图例 菜单按钮 /// @@ -2547,6 +2590,7 @@ legend.Visible = !legend.Visible; globeControl1.Refresh(); } + /// /// 快速定位 菜单按钮 /// @@ -2559,6 +2603,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1); fly.Show(this); } + /// /// 图层管理 菜单按钮 /// @@ -2594,6 +2639,7 @@ Refresh(); } } + /// /// 全屏显示 菜单按钮 /// @@ -2615,23 +2661,25 @@ //任务栏 [DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)] static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow); + int widthOld; int heightOld; int xOld; int yOld; + /// /// 全屏显示功能实现(完善) /// private void FullScreen() { - if (!m_bFullScreen) // 启用全屏 + if (!m_bFullScreen) // 启用全屏 { xOld = Location.X; yOld = Location.Y; widthOld = Width; heightOld = Height; - SuspendLayout();//挂起 + SuspendLayout(); //挂起 FormBorderStyle = FormBorderStyle.Sizable; WindowState = FormWindowState.Maximized; @@ -2665,13 +2713,13 @@ ribbonControl1.Visible = false; pictureBox1.Visible = false; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = true; } - else // 取消全屏 + else // 取消全屏 { - SuspendLayout();//挂起 + SuspendLayout(); //挂起 //////任务栏 IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null); @@ -2699,7 +2747,7 @@ ribbonControl1.Visible = true; pictureBox1.Visible = true; - ResumeLayout();//重新开始 + ResumeLayout(); //重新开始 m_bFullScreen = false; Focus(); //初始化隐藏图层管理 @@ -2787,10 +2835,12 @@ } Image printImage; + private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(printImage, 10, 10); } + /// /// 输出地图 菜单 /// @@ -2815,7 +2865,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -2835,6 +2885,7 @@ } } } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 目标图层 菜单 @@ -2850,6 +2901,7 @@ GSOLayer layer = node.Tag as GSOLayer; globeControl1.Globe.DestLayerFeatureAdd = layer; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可选择 菜单 @@ -2864,6 +2916,7 @@ LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked; if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked; } + //wxl Tag更正 /// /// 图层目录树 右键菜单中的 可编辑 菜单 @@ -2878,6 +2931,7 @@ LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked; if (layer != null) layer.Editable = LayerEditableMenuItem.Checked; } + /// /// 图层目录树 右键菜单中的 保存 菜单 /// @@ -2904,6 +2958,7 @@ panelOfTable.Visible = false; clearFeatureHighLight(); } + /// /// 主窗体关闭事件处理 /// @@ -2918,6 +2973,7 @@ } #region 完善(各种净距分析) + /// /// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2941,6 +2997,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理 /// @@ -2948,7 +3005,7 @@ /// private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxEx4.Enabled = checkBoxX8.Checked; if (checkBoxX8.Checked) { @@ -2964,6 +3021,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2989,6 +3047,7 @@ comboBoxEx1.Enabled = true; } } + /// /// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理 /// @@ -2996,7 +3055,7 @@ /// private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxX7.Checked) { comboBoxEx4.SelectedItem = null; @@ -3014,6 +3073,7 @@ comboBoxEx4.Enabled = true; } } + /// /// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3038,6 +3098,7 @@ dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理 /// @@ -3062,9 +3123,10 @@ dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name; } } + Dictionary featCount = new Dictionary(); Dictionary featLenth = new Dictionary(); - Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置 + Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置 /// /// 垂直净距分析 功能界面中的 开始分析按钮 事件处理 @@ -3111,7 +3173,7 @@ GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature; if (selectedFeature == null) continue; selectState = 1; - VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun); + VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun); } } else if (checkBoxX2.Checked) // 选择图层 @@ -3160,7 +3222,8 @@ /// /// /// - private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible) + private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, + GSOPoint3d pntIntersect2, double distance, bool markerVisible) { if (pntIntersect1 == null || pntIntersect2 == null) { @@ -3175,9 +3238,9 @@ GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格 //设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255 style.LineColor = Color.GreenYellow; - style.LineWidth = 3; //设置线的宽度为3 - style.VertexVisible = true; //显示线的节点 - disline.Style = style; //把风格添加到线上 + style.LineWidth = 3; //设置线的宽度为3 + style.VertexVisible = true; //显示线的节点 + disline.Style = style; //把风格添加到线上 disline.AltitudeMode = EnumAltitudeMode.Absolute; GSOFeature line = new GSOFeature(); @@ -3186,7 +3249,7 @@ GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = pntIntersect1.X; dismarker.Y = pntIntersect1.Y; - dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2; + dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2; string disStr = distance.ToString("0.00"); if (disStr != "0.00") @@ -3216,7 +3279,9 @@ return dismarker.Position; } + #region wxl + /// /// wxl重构,碰撞分析 /// @@ -3225,7 +3290,8 @@ /// private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames) { - List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames); + List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, + pipelineLayerNames); if (result == null) { selectState = 0; @@ -3245,14 +3311,16 @@ dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name; GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; - if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false) + if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == + false) { GSOGeoMarker dismarker = new GSOGeoMarker(); dismarker.X = featureAnalysisInfo.point1.X; dismarker.Y = featureAnalysisInfo.point1.Y; - dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2; + dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2; dismarker.AltitudeMode = EnumAltitudeMode.Absolute; - m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录 + m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, + dismarker.Position); //添加飞行位置记录 } if (featCount.ContainsKey(feat2Caption)) { @@ -3273,16 +3341,19 @@ } } + /// /// wxl重构,垂直净距分析 /// /// /// /// - private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance) + private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, + double verticalDistance) { - List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames, - verticalDistance); + List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, + selectedFeature, pipelineLayerNames, + verticalDistance); if (result == null) { selectState = 0; @@ -3304,7 +3375,8 @@ GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D; if (line2 == null) continue; string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米"; - GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true); + GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, + featureAnalysisInfo.point2, markerInfo, true); if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false) { m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录 @@ -3342,7 +3414,8 @@ DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y); if (hittestinfo.RowIndex > -1) { - string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); @@ -3399,7 +3472,7 @@ MessageBox.Show("没有不符合净距标准的管线!", "提示"); } - for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++) + for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++) { if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) @@ -3413,7 +3486,9 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + #region wxl 水平净距分析重构 + /// /// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能 /// @@ -3422,8 +3497,9 @@ /// private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis) { - - Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature, + + Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1, + selectedFeature, _pipelineLayerNames, dis); if (featureMap == null) { @@ -3463,6 +3539,7 @@ } } } + #endregion /// @@ -3482,7 +3559,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3492,6 +3569,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 碰撞分析 功能界面中 开始分析按钮 事件处理 /// @@ -3516,7 +3594,7 @@ m_FeaturesWithBianhao.Clear(); globeControl1.Globe.Action = EnumAction3D.ActionNull; Cursor = Cursors.WaitCursor; - if (checkBoxX3.Checked) // 选择管线 + if (checkBoxX3.Checked) // 选择管线 { for (int i = 0; i < dataGridViewX4.Rows.Count; i++) { @@ -3524,7 +3602,7 @@ if (selectedFeature == null) continue; selectState = 1; // VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0); - CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames); + CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames); } } else if (checkBoxX4.Checked) // 选择图层 @@ -3548,7 +3626,8 @@ { if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer)) { - listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米"); + listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + + featLenth[pipelineLayer].ToString("0.00") + "米"); } } } @@ -3564,6 +3643,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 碰撞分析功能界面中 表格的 双击定位 功能 /// @@ -3574,12 +3654,14 @@ if (e.Button != MouseButtons.Left) return; DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y); if (hittestinfo.RowIndex <= -1) return; - string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); + string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim(); if (m_FeaturesWithBianhao.ContainsKey(key)) { globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5); } } + /// /// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理 /// @@ -3605,6 +3687,7 @@ comboBoxEx3.Enabled = true; } } + /// /// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理 /// @@ -3628,6 +3711,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理 /// @@ -3653,6 +3737,7 @@ dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 覆土分析功能操作界面中的 开始分析 按钮事件处理 /// @@ -3690,7 +3775,9 @@ { GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature; if (rowFeature == null) continue; - string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name; + string featureName = isFeatureContainsBianhao(rowFeature) + ? rowFeature.GetValue(featureIDFieldName).ToString() + : rowFeature.Name; GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) @@ -3715,28 +3802,32 @@ dataGridViewX7.Rows[idx].Tag = rowFeature; dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } } } } - else if (checkBoxX6.Checked) // 覆土分析 选择图层 + else if (checkBoxX6.Checked) // 覆土分析 选择图层 { GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString()); GSOFeatureLayer flayer = layer as GSOFeatureLayer; - if (flayer == null)return; + if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); for (int i = 0; i < feats.Length; i++) { GSOFeature f = feats[i]; string featureName = ""; - featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name; + featureName = isFeatureContainsBianhao(feats[i]) + ? feats[i].GetValue(featureIDFieldName).ToString() + : feats[i].Name; GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D; if (line == null) continue; GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D; @@ -3752,12 +3843,14 @@ dataGridViewX7.Rows[idx].Tag = f; dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption; dataGridViewX7.Rows[idx].Cells[1].Value = featureName; - dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); + dataGridViewX7.Rows[idx].Cells[2].Value = + Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00"); pt.X = pts[m].X; pt.Y = pts[m].Y; pt.Z = 0; - LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); + LabelVerticalDistance(layerTemp, pts[m], pt, + Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true); break; } @@ -3776,6 +3869,7 @@ } Cursor = Cursors.Default; } + /// /// 覆土分析中 表格的 双击定位 功能 /// @@ -3793,7 +3887,7 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5); @@ -3803,6 +3897,7 @@ globeControl1.Globe.JumpToFeature(rowFeature, 5); } } + /// /// 覆土分析功能操作界面中的 导出Excel按钮 事件处理 /// @@ -3819,6 +3914,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 覆土分析功能操作界面底部的 关闭 按钮事件处理 /// @@ -3850,6 +3946,7 @@ //Refresh(); } + /// /// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3872,6 +3969,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 水平净距分析 功能界面中 清除分析结果按钮 事件处理 /// @@ -3894,6 +3992,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 垂直净距分析功能界面中 关闭按钮 事件处理 /// @@ -3926,6 +4025,7 @@ Refresh(); } + /// /// 水平净距分析功能界面中 删除缓冲区按钮 事件处理 /// @@ -3954,6 +4054,7 @@ Refresh(); } + /// /// 导出指定DataGridView控件中的内容 /// @@ -4040,6 +4141,7 @@ } } } + /// /// 垂直净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4056,6 +4158,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 水平净距分析功能界面中 导出Excel按钮 事件处理 /// @@ -4071,7 +4174,8 @@ { MessageBox.Show("表格内容为空!", "提示"); } - } + } + /// /// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理 /// @@ -4097,6 +4201,7 @@ comboBoxEx2.Enabled = true; } } + /// /// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理 /// @@ -4120,6 +4225,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理 /// @@ -4132,7 +4238,7 @@ dataGridViewX4.Rows.Clear(); dataGridViewX5.Rows.Clear(); GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString()); - + GSOFeatureLayer flayer = layer as GSOFeatureLayer; if (flayer == null) return; GSOFeatures feats = flayer.GetAllFeatures(); @@ -4143,6 +4249,7 @@ dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name; } } + /// /// 清除所有图层中的所有feature对象的高亮状态 功能 /// @@ -4180,6 +4287,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } } + /// /// 碰撞分析功能界面中 清除分析结果按钮 事件处理 /// @@ -4201,6 +4309,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 碰撞分析功能界面中 导出Excel按钮 事件处理 /// @@ -4217,6 +4326,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 碰撞分析 功能界面中 关闭按钮 事件处理 /// @@ -4239,6 +4349,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 覆土分析 功能界面中的 清除分析结果 按钮事件处理 /// @@ -4260,6 +4371,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准 /// @@ -4352,9 +4464,13 @@ { for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { - if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) + if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && + featLenth.ContainsKey(Utility.m_PipelineLayerNames[i])) { - listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米"); + listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + + "米"); } } } @@ -4370,6 +4486,7 @@ globeControl1.Refresh(); Cursor = Cursors.Default; } + /// /// 间距分析 清除分析结果 /// @@ -4391,6 +4508,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出 /// @@ -4407,6 +4525,7 @@ MessageBox.Show("表格内容为空!", "提示"); } } + /// /// 间距分析 关闭按钮 /// @@ -4428,6 +4547,7 @@ sideBar1.Visible = false; Refresh(); } + /// /// 间距分析 分析结果表格双击定位 /// @@ -4445,8 +4565,9 @@ GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D; if (line == null) return; double length = line.GetSpaceLength(true, 6378137); - GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2); - GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; + GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2); + GSOPoint3d point3d = + lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1]; globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5); } @@ -4455,6 +4576,7 @@ } } } + /// /// 间距分析 选择管线复选框 /// @@ -4462,7 +4584,7 @@ /// private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 if (checkBoxSelectPipeline.Checked) { comboBoxLayer.SelectedItem = null; @@ -4480,6 +4602,7 @@ comboBoxLayer.Enabled = true; } } + /// /// 间距分析 选择图层复选框 /// @@ -4487,7 +4610,7 @@ /// private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e) { - clearFeatureHighLight();//清除高亮 + clearFeatureHighLight(); //清除高亮 comboBoxLayer.Enabled = checkBoxSelectLayer.Checked; if (checkBoxSelectLayer.Checked) { @@ -4502,6 +4625,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 间距分析 选择图层下拉框 /// @@ -4529,6 +4653,7 @@ } } } + /// /// 碰撞分析 /// @@ -4559,6 +4684,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 覆土分析 /// @@ -4588,6 +4714,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 间距分析 /// @@ -4621,6 +4748,7 @@ Refresh(); } + /// /// 垂直净距分析 /// @@ -4651,6 +4779,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距分析 /// @@ -4681,6 +4810,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 碰撞审查 /// @@ -4713,6 +4843,7 @@ Refresh(); } + /// /// 覆土审查 /// @@ -4743,6 +4874,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 水平净距审查 /// @@ -4773,6 +4905,7 @@ sideBar1.Refresh(); Refresh(); } + /// /// 垂直净距审查 /// @@ -4811,6 +4944,7 @@ sideBar1.Refresh(); Refresh(); } + #endregion /// @@ -4864,7 +4998,7 @@ node.ImageIndex = 0; node.SelectedImageIndex = 0; node.Checked = layer.Visible; - layerManagerNode.Nodes.Insert(0, node); + layerManagerNode.Nodes.Insert(0, node); newlayername = layer.Caption; } else @@ -4889,6 +5023,7 @@ } return objRes; } + /// /// 连接数据库 菜单事件处理 /// @@ -4906,6 +5041,7 @@ } } } + /// /// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中 /// @@ -4934,8 +5070,8 @@ /// private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { - if (e.Button != MouseButtons.Right||e.Node.Parent==null) return; - if (e.Node.Parent.Text.Equals("标注管理") ) + if (e.Button != MouseButtons.Right || e.Node.Parent == null) return; + if (e.Node.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y); @@ -4949,7 +5085,7 @@ } else { - if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return; + if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return; if (e.Node.Parent.Parent.Text.Equals("标注管理")) { layerMarkerTree.SelectedNode = e.Node; @@ -4964,6 +5100,7 @@ } } } + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单 /// @@ -4988,14 +5125,14 @@ private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode) { layerTreeNode.Nodes.Clear(); - GSOLayer layer = (GSOLayer)layerTreeNode.Tag; + GSOLayer layer = (GSOLayer) layerTreeNode.Tag; // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中 if (layer.Dataset is GSOFeatureDataset) { VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode); } } - + /// /// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单 /// @@ -5011,6 +5148,7 @@ globeControl1.Globe.Refresh(); node.Remove(); } + /// /// 图层目录树的 节点对应的复选框选中状态改变事件处理 /// @@ -5021,10 +5159,10 @@ if (e.Action != TreeViewAction.Unknown) { //wxl优化标注管理树形结构 - TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node); + TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node); } } - + /// /// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单 /// @@ -5039,6 +5177,7 @@ node.Nodes.Clear(); globeControl1.Refresh(); } + /// /// 一键审核---导入数据 /// @@ -5071,6 +5210,7 @@ MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示"); } } + /// ///自动导出图片 /// @@ -5079,7 +5219,7 @@ private void buttonItem130_Click_1(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "导出审核图"); - + Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0)); Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height)); @@ -5096,7 +5236,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -5116,6 +5256,7 @@ } } } + /// /// 一键审核功能 /// @@ -5125,11 +5266,12 @@ { LogManager.saveLog(Utility.userName, buttonItem128.Text); if (boolfrmShResult) - {//关闭等待窗口,否则会一直存在下去 + { +//关闭等待窗口,否则会一直存在下去 MessageBox.Show("正在审核或关闭上次审核结果才能进行审核"); return; } - frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode + frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode if (frmSh.ShowDialog() == DialogResult.OK) { boolfrmShResult = true; @@ -5149,7 +5291,7 @@ { try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer); }); @@ -5170,7 +5312,7 @@ try { - this.Invoke((EventHandler)delegate + this.Invoke((EventHandler) delegate { frmShResult.Show(); returnShTap(); @@ -5198,6 +5340,7 @@ if (redLayer != null) redLayer.Visible = false; } + /// /// 清除渲染结果 /// @@ -5215,6 +5358,7 @@ layerTemp.RemoveAllFeature(); globeControl1.Refresh(); } + /// /// 审核入库 /// @@ -5226,6 +5370,7 @@ FrmShRK frmShrk = new FrmShRK(globeControl1); frmShrk.Show(); } + /// /// 模拟设计修改 /// @@ -5243,6 +5388,7 @@ frmModify.Show(); boolfrmModify = true; } + /// /// 一键审核中调节透明度 /// @@ -5259,6 +5405,7 @@ layer.Opaque = 100 - sliderItem1.Value; optiValue = sliderItem1.Value; } + /// /// 红线审核中的透明度分析 /// @@ -5274,9 +5421,12 @@ layer.Opaque = 100 - sliderItem3.Value; optiValue = sliderItem3.Value; } + #region yanxiaowei + //初始化DataGridViewX1控件 public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid); + /// /// 代理函数,操作DatgridViewX1 /// @@ -5301,7 +5451,9 @@ globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注 } } + FrmAnalysisGuiHuaResult from; + /// /// 主窗体下方属性表格 双击定位 功能 /// @@ -5371,6 +5523,7 @@ } } } + /// /// 空间查询 /// @@ -5384,17 +5537,19 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 关键字查询 /// /// /// private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e) - { + { LogManager.saveLog(Utility.userName, "关键字查询"); FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 编号查询 /// @@ -5406,6 +5561,7 @@ FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 坐标查询 /// @@ -5417,6 +5573,7 @@ FrmSetLatLonPos.ShowForm(globeControl1); } + /// /// 附属物查询 /// @@ -5428,6 +5585,7 @@ FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1); } + /// /// 管径查询 /// @@ -5439,6 +5597,7 @@ FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 材质查询 /// @@ -5450,6 +5609,7 @@ FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1); } + /// /// 基本查询 /// @@ -5461,6 +5621,7 @@ FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 复合查询 /// @@ -5472,6 +5633,7 @@ FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1); } + /// /// 关联查询 /// @@ -5494,14 +5656,19 @@ GSOLayer layer = null; globeControl1.Globe.GetSelectObject(j, out feature, out layer); - if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D - || feature.Geometry.Type == EnumGeometryType.GeoWater)) + if (feature == null && feature.Geometry == null || + (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D + || feature.Geometry.Type == EnumGeometryType.GeoWater)) return; - ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames, - Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance); + ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, + Utility.workwellLayerNames, + Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, + valueAllowance); } } + #endregion + /// /// 清除分析(完善) /// @@ -5531,14 +5698,14 @@ NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1); - globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线 + globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线 // ClearUpDownTraceAnalysis(); //清除上下游分析 - globeControl1.Globe.RemoveAllPits();//清除所有坑 - MarkTools.removeAllMarker(globeControl1);//清除所有标注 - clearFeatureHighLight();//取消管线高亮 + globeControl1.Globe.RemoveAllPits(); //清除所有坑 + MarkTools.removeAllMarker(globeControl1); //清除所有标注 + clearFeatureHighLight(); //取消管线高亮 - GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layerGround != null) { layerGround.Visible = true; @@ -5549,6 +5716,7 @@ globeControl1.Refresh(); globeControl2.Refresh(); } + /// /// 管线长度全区域统计 /// @@ -5557,9 +5725,11 @@ private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e) { LogManager.saveLog(Utility.userName, "管线长度统计"); - FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames); + FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, + Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 管线长度绘制区域统计 /// @@ -5573,6 +5743,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 阀门数量全区域统计 /// @@ -5586,6 +5757,7 @@ globeControl1.Globe.Action = EnumAction3D.ActionNull; } + /// /// 阀门数量绘制区域统计 /// @@ -5599,6 +5771,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 井盖数量全区域统计 /// @@ -5609,6 +5782,7 @@ FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1); frm.Show(this); } + /// /// 井盖数量绘制区域统计 /// @@ -5622,6 +5796,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 管径分段统计全区域统计 /// @@ -5633,6 +5808,7 @@ Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分段统计绘制区域统计 /// @@ -5645,6 +5821,7 @@ trackflag = null; Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 埋深分段统计全区域统计 /// @@ -5655,6 +5832,7 @@ LogManager.saveLog(Utility.userName, "埋深分段统计"); FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 埋深分段统计绘制区域统计 /// @@ -5666,6 +5844,7 @@ trackflag = null; FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 管径分类统计全区域统计 /// @@ -5677,6 +5856,7 @@ FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 管径分类统计绘制区域统计 /// @@ -5689,6 +5869,7 @@ trackflag = null; FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 材质分类统计全区域统计 /// @@ -5700,6 +5881,7 @@ FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0); } + /// /// 材质分类统计绘制区域统计 /// @@ -5712,6 +5894,7 @@ trackflag = null; FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1); } + /// /// 附属物分类统计全区域统计 /// @@ -5723,6 +5906,7 @@ FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0); } + /// /// 附属物分类统计绘制区域统计 /// @@ -5735,7 +5919,9 @@ trackflag = null; FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1); } + #region Predaotr,断面分析 + /// /// 横断面分析 /// @@ -5748,6 +5934,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis; } + /// /// 纵断面分析 /// @@ -5767,7 +5954,8 @@ GSOFeature feature; GSOLayer layer; globeControl1.Globe.GetSelectObject(i, out feature, out layer); - if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) + if (feature != null && feature.Geometry != null && + feature.Geometry.Type == EnumGeometryType.GeoPolyline3D) { selectFeatures.Add(feature); } @@ -5777,6 +5965,7 @@ FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats); frm.Show(this); } + /// /// 道路断面分析 /// @@ -5789,6 +5978,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis; } + /// /// 基线剖面分析 /// @@ -5801,7 +5991,9 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis; } + #endregion + /// /// 创建拓扑 /// @@ -5815,7 +6007,9 @@ FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1); frm.Show(this); } + #region Predator :拓扑分析 + /// /// 上游分析 /// @@ -5827,6 +6021,7 @@ LogManager.saveLog(Utility.userName, "上游分析"); NetworkTraceUpDown(true); } + /// /// 下游分析 /// @@ -5838,6 +6033,7 @@ LogManager.saveLog(Utility.userName, "下游分析"); NetworkTraceUpDown(false); } + /// /// 上下游追踪 功能 /// @@ -5845,7 +6041,8 @@ private void NetworkTraceUpDown(Boolean bTraceUp) { GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5853,8 +6050,9 @@ GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer; NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp, - selLineFeature, selLayer); + selLineFeature, selLayer); } + /// /// 流向分析 /// @@ -5868,6 +6066,7 @@ FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 关阀分析 /// @@ -5907,6 +6106,7 @@ MessageBox.Show("未找到关闭阀门"); } } + /// /// 连通分析 /// @@ -5933,6 +6133,7 @@ } NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0); } + /// /// 爆管分析 /// @@ -5940,10 +6141,11 @@ /// private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e) { - NetworkTraceUpDown(true); //上游追踪: + NetworkTraceUpDown(true); //上游追踪: GSOFeature selLineFeature = globeControl1.Globe.SelectedObject; - if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) + if (selLineFeature == null || selLineFeature.Geometry == null || + selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D) { MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; @@ -5954,7 +6156,9 @@ 关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析: } + #endregion + /// /// 多边形开挖 /// @@ -5968,6 +6172,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上 } + /// /// 挖方量分析 /// @@ -5981,6 +6186,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; } + /// /// 沿线开挖 /// @@ -5994,6 +6200,7 @@ globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack; trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis; } + /// /// 创建隧道 /// @@ -6012,9 +6219,9 @@ globeControl1.Globe.DestLayerFeatureAdd = tunnel; tunnel.Editable = true; enumDesignMode = EnumDesignMode.AddTunnel; - } } + /// /// 隐藏隧道 /// @@ -6030,6 +6237,7 @@ layer.Visible = !layer.Visible; } } + /// /// 删除隧道 /// @@ -6066,6 +6274,7 @@ MessageBox.Show("请选中要删除的隧道!", "提示"); } } + /// /// 通视分析 /// @@ -6076,8 +6285,11 @@ //日志记录 LogManager.saveLog(Utility.userName, "通视分析"); - globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull; + globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis + ? EnumAction3D.VisibilityAnalysis + : EnumAction3D.ActionNull; } + /// /// 可视域分析 /// @@ -6089,6 +6301,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis; } + /// /// 可视包络分析 /// @@ -6100,6 +6313,7 @@ globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis; } + /// /// 缓冲区分析 /// @@ -6134,6 +6348,7 @@ } } + /// /// 附属物分析 /// @@ -6147,6 +6362,7 @@ FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp); dlg.Show(this); } + /// /// 无源淹没分析 /// @@ -6159,6 +6375,7 @@ globeControl1.Globe.Action = EnumAction3D.TrackPolygon; trackflag = "FloodAnalysis"; } + /// /// 水平距离 /// @@ -6173,6 +6390,7 @@ globeControl1.Globe.DistanceRuler.SpaceMeasure = false; 高度量算ToolStripMenuItem1.Checked = false; } + /// /// 垂直距离 /// @@ -6187,6 +6405,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureHeight; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 空间距离 /// @@ -6201,6 +6420,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = true; } + /// /// 地表距离 /// @@ -6215,6 +6435,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureDistance; globeControl1.Globe.DistanceRuler.SpaceMeasure = false; } + /// /// 高度量算 /// @@ -6230,6 +6451,7 @@ if (!高度量算ToolStripMenuItem1.Checked) return; globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 水平面积 /// @@ -6244,6 +6466,7 @@ globeControl1.Globe.Action = EnumAction3D.MeasureArea; globeControl1.Globe.AreaRuler.SpaceMeasure = true; } + /// /// 地表面积 /// @@ -6261,6 +6484,7 @@ } # region Fan 重构标注代码 + /// /// 标高标注 /// @@ -6283,6 +6507,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Altitude, ""); } + /// /// 管径标注 /// @@ -6302,8 +6527,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Diameter, ""); + globeControl1, EnumMarkLayer.Mark_Diameter, ""); } + /// /// 埋深标注 /// @@ -6327,6 +6553,7 @@ globeControl1, EnumMarkLayer.Mark_Depth, ""); } + /// /// 坐标标注 /// @@ -6348,6 +6575,7 @@ MarkTools.getInstance().showMarker(resFeature, globeControl1, EnumMarkLayer.Mark_Location, ""); } + /// /// 距离标注 /// @@ -6361,6 +6589,7 @@ trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis; } + /// /// 自定义标注 /// @@ -6376,6 +6605,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText); } } + /// /// 扯旗标注 /// @@ -6391,6 +6621,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent); } } + /// /// 坡度标注 /// @@ -6411,8 +6642,9 @@ } MarkTools.getInstance().showMarker(resFeature, - globeControl1, EnumMarkLayer.Mark_Slope, ""); + globeControl1, EnumMarkLayer.Mark_Slope, ""); } + /// /// 属性标注 /// @@ -6428,6 +6660,7 @@ MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText); } } + /// /// 标注管理 /// @@ -6490,6 +6723,7 @@ } #endregion + /// /// 飞行到目标点 /// @@ -6502,6 +6736,7 @@ FrmSetFlytoPos.ShowForm(globeControl1); } + /// /// 自定义飞行 /// @@ -6539,6 +6774,7 @@ globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false); } } + /// /// 绕中心点飞行 /// @@ -6552,6 +6788,7 @@ globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds); globeControl1.Globe.CurFlyID = 1; } + /// /// 绕眼睛飞行 /// @@ -6565,6 +6802,7 @@ globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees); globeControl1.Globe.CurFlyID = 2; } + /// /// 权限管理 /// @@ -6578,6 +6816,7 @@ FrmUserRoleMgr frm = new FrmUserRoleMgr(); frm.ShowDialog(); } + /// /// 数据库管理 /// @@ -6592,6 +6831,7 @@ FrmDbManager frm = new FrmDbManager(); frm.ShowDialog(); } + /// /// 用户列表 /// @@ -6605,6 +6845,7 @@ FrmUserManager frm = new FrmUserManager(); frm.ShowDialog(); } + /// /// 创建新用户 /// @@ -6618,6 +6859,7 @@ FrmUserAdd frm = new FrmUserAdd(-1); frm.ShowDialog(); } + /// /// 人员修改 /// @@ -6631,6 +6873,7 @@ FrmAppUSER appUser = new FrmAppUSER(); appUser.ShowDialog(); } + /// /// 增加人员 /// @@ -6644,6 +6887,7 @@ FrmAppUSERRESET appUserReset = new FrmAppUSERRESET(); appUserReset.ShowDialog(); } + /// /// 热点功能统计 /// @@ -6738,6 +6982,7 @@ FrmAPPregion appregion = new FrmAPPregion("拷贝审核"); appregion.Show(); } + private void buttonItemSPSZ_Click(object sender, EventArgs e) { //日志记录 @@ -6746,6 +6991,7 @@ FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2); frm.Show(this); } + /// /// 综合规划区域审查 /// @@ -6758,6 +7004,7 @@ FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames); frm.Show(this); } + /// /// 数据质量检查 /// @@ -6770,6 +7017,7 @@ FrmValiData frm = new FrmValiData(globeControl1); frm.ShowDialog(); } + /// /// 数据预处理 /// @@ -6783,6 +7031,7 @@ FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1); frm.ShowDialog(this); } + /// /// 连接数据库 /// @@ -6803,6 +7052,7 @@ } } } + /// /// 管线入库 /// @@ -6827,6 +7077,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 附属物入库 /// @@ -6852,6 +7103,7 @@ addNodeToLayerManagerNode(frm.rukuLayer); } } + /// /// 坐标转换 /// @@ -6865,6 +7117,7 @@ FrmProject frm = new FrmProject(); frm.ShowDialog(); } + /// /// 元数据基本管理 /// @@ -6878,6 +7131,7 @@ FrmMetadata frmmd = new FrmMetadata(); frmmd.ShowDialog(); } + /// /// 元数据查询管理 /// @@ -6891,6 +7145,7 @@ FrmMetadataStat frmmds = new FrmMetadataStat(); frmmds.ShowDialog(); } + /// /// 操作日志管理 /// @@ -6904,6 +7159,7 @@ FrmLogOper frmlo = new FrmLogOper(); frmlo.ShowDialog(); } + /// /// 数据字典管理 /// @@ -6917,6 +7173,7 @@ FrmMDDictory frmmdd = new FrmMDDictory(); frmmdd.ShowDialog(); } + /// /// 数据库备份 /// @@ -6931,7 +7188,9 @@ FrmBACKORACLE backOracle = new FrmBACKORACLE(); backOracle.Show(); } + #region 模拟规划:Fan + /// /// 创建管段 /// @@ -6949,6 +7208,7 @@ globeControl1.Globe.Action = EnumAction3D.DrawPolyline; } } + /// /// 创建附属物 /// @@ -6968,6 +7228,7 @@ dlg.Show(this); } } + /// /// 创建特征管点 /// @@ -6987,6 +7248,7 @@ dlg.Show(this); } } + /// /// 绘制城市七线 /// @@ -7013,7 +7275,9 @@ layer.Editable = true; } } + #endregion + /// /// 选中对象 /// @@ -7026,6 +7290,7 @@ globeControl1.Globe.Action = EnumAction3D.SelectObject; } + /// /// 平移对象 /// @@ -7038,6 +7303,7 @@ globeControl1.Globe.Action = EnumAction3D.MoveObject; } + /// /// 升降对象 /// @@ -7050,6 +7316,7 @@ globeControl1.Globe.Action = EnumAction3D.ElevateObject; } + /// /// 旋转对象 /// @@ -7062,6 +7329,7 @@ globeControl1.Globe.Action = EnumAction3D.RotateObject; } + /// /// 连接管段 /// @@ -7079,6 +7347,7 @@ } globeControl1.Globe.InsertJointPipeline(false); } + /// /// 后退 /// @@ -7089,6 +7358,7 @@ LogManager.saveLog(Utility.userName, "后退"); globeControl1.Globe.UnDoEdit(); } + /// /// 前进 /// @@ -7100,6 +7370,7 @@ globeControl1.Globe.ReDoEdit(); } + /// /// 导出CAD /// @@ -7111,13 +7382,14 @@ LogManager.saveLog(Utility.userName, "导出CAD"); #region 导出成dxf格式 + List listVectorNames = new List(); for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++) { if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通" - || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" - || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" - || Utility.m_PipelineLayerNames[i] == "供电") + || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通" + || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号" + || Utility.m_PipelineLayerNames[i] == "供电") { continue; } @@ -7155,10 +7427,12 @@ } } - FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames); + FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames); frm.ShowDialog(); + #endregion } + /// /// 导出矢量 /// @@ -7231,14 +7505,14 @@ globeControl1.Globe.GetSelectObject(i, out f, out layer); if (layer != null) globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete); - bool result = FeatureTools.DeleteFeature(f); + bool result = FeatureTools.DeleteFeature(f); if (result) delSuccessCount++; globeControl1.Refresh(); - + } - MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示"); + MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示"); globeControl1.Globe.Action = EnumAction3D.ActionNull; } @@ -7279,6 +7553,7 @@ LogHelper.WriteLog(typeof(MainFrm), ex); } } + void addRedLineDataToDataGridView(List dt, DataGridView dataGridView) { DataTable table = new DataTable(); @@ -7345,12 +7620,12 @@ LogManager.saveLog(Utility.userName, sliderItem2.Text); globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value; - GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; } - layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd"); + layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); if (layer != null) { layer.Opaque = 100 - sliderItem2.Value; @@ -7359,6 +7634,7 @@ optiValue = sliderItem2.Value; } + /// /// 数据管理导入文件 /// @@ -7370,7 +7646,8 @@ LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text); OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf"; dlg.Multiselect = true; if (dlg.ShowDialog() == DialogResult.OK) { @@ -7402,6 +7679,7 @@ } } } + /// /// 导入红线(完善) /// @@ -7411,14 +7689,19 @@ { LogManager.saveLog(Utility.userName, buttonItemHX1.Text); - GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword); + GSODataSource dataSpace = + globeControl1.Globe.DataManager.OpenOracleDataSource( + Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, + Utility.DBPassword); string filepath = ""; //日志记录 OpenFileDialog dlg = new OpenFileDialog(); - dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; + dlg.Filter = + "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;"; dlg.Multiselect = true; #region 临时图层显示 + if (dlg.ShowDialog() == DialogResult.OK) { #region @@ -7429,7 +7712,8 @@ GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath); if (layer == null) - {//wxl + { +//wxl LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空"); continue; } @@ -7438,7 +7722,7 @@ layerRedRegion = layer; // CheckDatasetGeoReference(layer.Dataset, strDataPath); bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath); - if (!checkresult) continue;//wxl 没通过检查,跳过此次循环 + if (!checkresult) continue; //wxl 没通过检查,跳过此次循环 TreeNode node = new TreeNode(); node.Tag = layer; node.Text = layer.Dataset.Caption; @@ -7482,7 +7766,8 @@ globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value; - GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd"); + GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + //("180fd"); if (roadlayer != null) { roadlayer.Opaque = 100 - sliderGroundTransSet1.Value; @@ -7502,8 +7787,10 @@ #endregion } + #endregion } + /// /// 定位 /// @@ -7516,6 +7803,7 @@ FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2); fly.Show(this); } + /// /// 红线审核 /// @@ -7529,7 +7817,8 @@ globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent; globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent; - globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800); + globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, + -4, 50, 800); globeControl1.Globe.FlyToPointSpeed = 10000000; globeControl1.Globe.Action = EnumAction3D.SelectObject; globeControl1.Refresh(); @@ -7551,6 +7840,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础工具 /// @@ -7582,6 +7872,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 一键审核 /// @@ -7613,7 +7904,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } - + /// /// 双屏对比 /// @@ -7647,6 +7938,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 文档管理 /// @@ -7678,6 +7970,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 基础管理 /// @@ -7709,6 +8002,7 @@ //MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } } + /// /// 权限管理 /// @@ -7754,6 +8048,7 @@ int width = Width; FrmCompareFeature.ShowForm(globeControl1, globeControl2, width); } + /// /// 红线审核导出图片 /// @@ -7779,7 +8074,7 @@ dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif"; if (dlg.ShowDialog() == DialogResult.OK) { - string extension = Path.GetExtension(dlg.FileName);//扩展名 + string extension = Path.GetExtension(dlg.FileName); //扩展名 switch (extension) { case ".jpg": @@ -7799,6 +8094,7 @@ } } } + /// /// 标识器全区域统计 /// @@ -7810,6 +8106,7 @@ FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null); bsqStatis.Show(this); } + /// /// 标识器绘制区域统计 /// @@ -7844,6 +8141,7 @@ globeControl1.Refresh(); } } + /// /// 规划数据入库 /// @@ -7905,7 +8203,7 @@ frm.ShowDialog(); } } - + //文档管理 操作 private void btn_document_info_Click(object sender, EventArgs e) { @@ -7945,7 +8243,8 @@ GSORect2d rd = lyr.LatLonBounds; GSOPoint2d rdcenter = rd.Center; - globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100); + globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, + 100); globeControl1.Refresh(); } @@ -8016,6 +8315,7 @@ } #region 右屏管纵数据控制 + private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e) { lendendGZ50.Visible = true; @@ -8108,6 +8408,7 @@ lendendGZ24_2.Visible = false; lendendGZ24_3.Visible = false; } + #endregion private void buttonItemPasswordReset_Click(object sender, EventArgs e) @@ -8117,10 +8418,32 @@ } private void pictureBox1_Paint(object sender, PaintEventArgs e) - { + { string welcomeUser = "欢迎您:" + Utility.userName; e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50); } + //电子标识系统合并 + private void btn_flag_Click(object sender, EventArgs e) + { + if (FrmFlagManagers.IS_OPEN) + { + return; + } + FrmFlagManagers frm = new FrmFlagManagers(globeControl1); + frm.Show(this); + } + + private void slider4ground_ValueChanged(object sender, EventArgs e) + { + LogManager.saveLog(Utility.userName, slider4ground.Text); + + globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value; + GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); + if (layer != null) + layer.Opaque = 100 - slider4ground.Value; + optiValue = slider4ground.Value; + } + } } \ No newline at end of file diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs index 1495bcd..b086c69 100644 --- a/MainFrm.designer.cs +++ b/MainFrm.designer.cs @@ -89,6 +89,7 @@ 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(); @@ -243,6 +244,23 @@ this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl(); + this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_flag = new DevComponents.DotNetBar.ButtonItem(); + this.slider4ground = new DevComponents.DotNetBar.SliderItem(); + this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_document_info = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); + this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem(); + this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem(); this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem(); @@ -254,19 +272,15 @@ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem(); this.btn_check_history = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel5 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItemHX1 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem(); - this.sliderItem3 = new DevComponents.DotNetBar.SliderItem(); - this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemLocation = new DevComponents.DotNetBar.ButtonItem(); - this.sliderItem2 = new DevComponents.DotNetBar.SliderItem(); - this.buttonItemGBJC = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); + this.btn_user_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_role_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem(); + this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem(); + this.btn_user_role = new DevComponents.DotNetBar.ButtonItem(); + this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem(); this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem(); @@ -322,28 +336,19 @@ this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); - this.btn_user_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_role_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem(); - this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem(); - this.btn_user_role = new DevComponents.DotNetBar.ButtonItem(); - this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); - this.btn_document_info = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); - this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem(); - this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemLocation = new DevComponents.DotNetBar.ButtonItem(); + this.sliderItem2 = new DevComponents.DotNetBar.SliderItem(); + this.buttonItemGBJC = new DevComponents.DotNetBar.ButtonItem(); + this.ribbonPanel5 = new DevComponents.DotNetBar.RibbonPanel(); + this.ribbonBar2 = new DevComponents.DotNetBar.RibbonBar(); + this.buttonItemHX1 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem(); + this.sliderItem3 = new DevComponents.DotNetBar.SliderItem(); this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem(); @@ -351,6 +356,7 @@ this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem(); this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem(); + this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem(); this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem(); @@ -528,7 +534,6 @@ this.labelX16 = new DevComponents.DotNetBar.LabelX(); this.labelX17 = new DevComponents.DotNetBar.LabelX(); this.panelEx4 = new DevComponents.DotNetBar.PanelEx(); - this.layerTree = new Cyberpipe.MyTreeView(); this.statusStrip1.SuspendLayout(); this.sideBar1.SuspendLayout(); this.panelEx3.SuspendLayout(); @@ -539,13 +544,14 @@ this.contextMenuStrip3.SuspendLayout(); this.contextMenuStripDeleteLayerNode.SuspendLayout(); this.ribbonControl1.SuspendLayout(); - this.ribbonPanel12.SuspendLayout(); - this.ribbonPanel5.SuspendLayout(); - this.ribbonPanel6.SuspendLayout(); - this.ribbonPanel15.SuspendLayout(); - this.ribbonPanel2.SuspendLayout(); + this.ribbonPanel3.SuspendLayout(); this.ribbonPanel4.SuspendLayout(); this.ribbonPanel1.SuspendLayout(); + this.ribbonPanel12.SuspendLayout(); + this.ribbonPanel2.SuspendLayout(); + this.ribbonPanel15.SuspendLayout(); + this.ribbonPanel6.SuspendLayout(); + this.ribbonPanel5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.panelOfTable.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit(); @@ -966,6 +972,18 @@ this.layerSensorTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerMarkerTree_NodeMouseClick); this.layerSensorTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); // + // 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); + this.layerTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseClick); + this.layerTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); + // // sideBarPanelItem3 // this.sideBarPanelItem3.FontBold = true; @@ -2158,13 +2176,14 @@ // 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.ribbonPanel4); + this.ribbonControl1.Controls.Add(this.ribbonPanel1); + this.ribbonControl1.Controls.Add(this.ribbonPanel12); + this.ribbonControl1.Controls.Add(this.ribbonPanel2); + this.ribbonControl1.Controls.Add(this.ribbonPanel15); this.ribbonControl1.Controls.Add(this.ribbonPanel6); this.ribbonControl1.Controls.Add(this.ribbonPanel5); - this.ribbonControl1.Controls.Add(this.ribbonPanel12); - this.ribbonControl1.Controls.Add(this.ribbonPanel1); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -2174,7 +2193,8 @@ this.ribbonTabItem9, this.ribbonTabItem4, this.ribbonTabItem14, - this.ribbonTabItem2}); + this.ribbonTabItem2, + this.ribbonTabItemBSQ}); this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F); this.ribbonControl1.Location = new System.Drawing.Point(0, 82); this.ribbonControl1.MdiSystemItemVisible = false; @@ -2206,6 +2226,302 @@ this.ribbonControl1.Text = "ribbonControl1"; this.ribbonControl1.UseCustomizeDialog = false; // + // ribbonPanel3 + // + this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel3.Controls.Add(this.ribbonBar4); + this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel3.Location = new System.Drawing.Point(0, 33); + 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.Style.Class = ""; + this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel3.StyleMouseDown.Class = ""; + this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel3.StyleMouseOver.Class = ""; + this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel3.TabIndex = 40; + // + // ribbonBar4 + // + this.ribbonBar4.AutoOverflowEnabled = true; + // + // + // + this.ribbonBar4.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar4.BackgroundStyle.Class = ""; + this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar4.ContainerControlProcessDialogKey = true; + this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_flag, + this.slider4ground}); + this.ribbonBar4.Location = new System.Drawing.Point(3, 0); + this.ribbonBar4.Name = "ribbonBar4"; + this.ribbonBar4.Size = new System.Drawing.Size(304, 59); + this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar4.TabIndex = 0; + // + // + // + this.ribbonBar4.TitleStyle.Class = ""; + this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar4.TitleStyleMouseOver.Class = ""; + this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar4.TitleVisible = false; + // + // btn_flag + // + this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover; + this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_flag.Name = "btn_flag"; + this.btn_flag.SubItemsExpandWidth = 14; + this.btn_flag.Text = "标识器管理"; + this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click); + // + // slider4ground + // + this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.slider4ground.LabelWidth = 50; + this.slider4ground.Name = "slider4ground"; + this.slider4ground.Text = "地面透明度"; + this.slider4ground.TextColor = System.Drawing.Color.Black; + this.slider4ground.Value = 0; + this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged); + // + // ribbonPanel4 + // + this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel4.Controls.Add(this.ribbonBar1); + this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel4.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel4.Name = "ribbonPanel4"; + this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95); + // + // + // + this.ribbonPanel4.Style.Class = ""; + this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel4.StyleMouseDown.Class = ""; + this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel4.StyleMouseOver.Class = ""; + this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel4.TabIndex = 36; + this.ribbonPanel4.Visible = false; + // + // ribbonBar1 + // + this.ribbonBar1.AutoOverflowEnabled = true; + // + // + // + this.ribbonBar1.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar1.BackgroundStyle.Class = ""; + this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar1.ContainerControlProcessDialogKey = true; + this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_document_info}); + this.ribbonBar1.Location = new System.Drawing.Point(3, 0); + this.ribbonBar1.Name = "ribbonBar1"; + this.ribbonBar1.Size = new System.Drawing.Size(88, 92); + this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar1.TabIndex = 0; + // + // + // + this.ribbonBar1.TitleStyle.Class = ""; + this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar1.TitleStyleMouseOver.Class = ""; + this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar1.TitleVisible = false; + // + // btn_document_info + // + this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image"))); + this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_document_info.Name = "btn_document_info"; + this.btn_document_info.SubItemsExpandWidth = 14; + this.btn_document_info.Text = "文档管理"; + this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click); + // + // ribbonPanel1 + // + this.ribbonPanel1.AutoSize = true; + this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray; + 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.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.Style.Class = ""; + this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel1.StyleMouseDown.Class = ""; + this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonPanel1.StyleMouseOver.Class = ""; + this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel1.TabIndex = 1; + this.ribbonPanel1.Visible = false; + // + // ribbonBar21 + // + this.ribbonBar21.AutoOverflowEnabled = true; + this.ribbonBar21.BackColor = System.Drawing.Color.White; + // + // + // + this.ribbonBar21.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar21.BackgroundStyle.Class = ""; + this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar21.ContainerControlProcessDialogKey = true; + this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItem87, + this.buttonItem88, + this.buttonItem27, + this.sliderGroundTransSet1, + this.buttonItem91, + this.buttonItem1, + this.btnlegendSet, + this.buttonItem89, + this.btnOutputJPG}); + this.ribbonBar21.Location = new System.Drawing.Point(3, 0); + this.ribbonBar21.Name = "ribbonBar21"; + this.ribbonBar21.Size = new System.Drawing.Size(649, 59); + this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar21.TabIndex = 2; + this.ribbonBar21.Text = "浏览模式"; + // + // + // + this.ribbonBar21.TitleStyle.Class = ""; + this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ribbonBar21.TitleStyleMouseOver.Class = ""; + this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar21.TitleVisible = false; + // + // buttonItem87 + // + this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image"))); + this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem87.Name = "buttonItem87"; + this.buttonItem87.SubItemsExpandWidth = 14; + this.buttonItem87.Text = "地上模式"; + this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click); + // + // buttonItem88 + // + this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image"))); + this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem88.Name = "buttonItem88"; + this.buttonItem88.SubItemsExpandWidth = 14; + this.buttonItem88.Text = "地下模式"; + this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click); + // + // buttonItem27 + // + this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image"))); + this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem27.Name = "buttonItem27"; + this.buttonItem27.SubItemsExpandWidth = 14; + this.buttonItem27.Text = "行走模式"; + this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click); + // + // buttonItem91 + // + this.buttonItem91.ForeColor = System.Drawing.Color.Black; + this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image"))); + this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem91.Name = "buttonItem91"; + this.buttonItem91.SubItemsExpandWidth = 14; + this.buttonItem91.Text = "快速定位"; + this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click); + // + // buttonItem1 + // + this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image"))); + this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem1.Name = "buttonItem1"; + this.buttonItem1.SubItemsExpandWidth = 14; + this.buttonItem1.Text = "图层管理"; + this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click); + // + // btnlegendSet + // + this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image"))); + this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btnlegendSet.Name = "btnlegendSet"; + this.btnlegendSet.SubItemsExpandWidth = 14; + this.btnlegendSet.Text = "图例"; + this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click); + // + // buttonItem89 + // + this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image"))); + this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem89.Name = "buttonItem89"; + this.buttonItem89.SubItemsExpandWidth = 14; + this.buttonItem89.Text = "全屏显示"; + this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click); + // + // btnOutputJPG + // + this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image"))); + this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btnOutputJPG.Name = "btnOutputJPG"; + this.btnOutputJPG.SubItemsExpandWidth = 14; + this.btnOutputJPG.Text = "导出图片"; + this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click); + // // ribbonPanel12 // this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -2376,228 +2692,146 @@ this.btn_check_history.Text = "审核历史"; this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click); // - // ribbonPanel5 + // ribbonPanel2 // - this.ribbonPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel5.Controls.Add(this.ribbonBar2); - this.ribbonPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel5.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel5.Name = "ribbonPanel5"; - this.ribbonPanel5.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel5.Size = new System.Drawing.Size(1328, 95); + this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel2.Controls.Add(this.ribbonBar3); + this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + 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, 95); // // // - this.ribbonPanel5.Style.Class = ""; - this.ribbonPanel5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.Style.Class = ""; + this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel5.StyleMouseDown.Class = ""; - this.ribbonPanel5.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.StyleMouseDown.Class = ""; + this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel5.StyleMouseOver.Class = ""; - this.ribbonPanel5.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel5.TabIndex = 37; - this.ribbonPanel5.Visible = false; + this.ribbonPanel2.StyleMouseOver.Class = ""; + this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel2.TabIndex = 39; + this.ribbonPanel2.Visible = false; // - // ribbonBar2 + // ribbonBar3 // - this.ribbonBar2.AutoOverflowEnabled = true; + this.ribbonBar3.AutoOverflowEnabled = true; // // // - this.ribbonBar2.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar2.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar2.BackgroundStyle.Class = ""; - this.ribbonBar2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar2.ContainerControlProcessDialogKey = true; - this.ribbonBar2.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItemHX1, - this.buttonItemHX2, - this.buttonItemDCTP, - this.sliderItem3}); - this.ribbonBar2.Location = new System.Drawing.Point(3, 0); - this.ribbonBar2.Name = "ribbonBar2"; - this.ribbonBar2.Size = new System.Drawing.Size(350, 92); - this.ribbonBar2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar2.TabIndex = 0; + this.ribbonBar3.BackgroundStyle.Class = ""; + this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.ContainerControlProcessDialogKey = true; + this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btn_user_info, + this.btn_role_info, + this.btn_resc_info, + this.btn_role_resc, + this.btn_user_role, + this.btn_password_edit, + this.buttonItemPasswordReset}); + this.ribbonBar3.Location = new System.Drawing.Point(3, 0); + this.ribbonBar3.Name = "ribbonBar3"; + this.ribbonBar3.Size = new System.Drawing.Size(551, 92); + this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar3.TabIndex = 1; // // // - this.ribbonBar2.TitleStyle.Class = ""; - this.ribbonBar2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.TitleStyle.Class = ""; + this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar2.TitleStyleMouseOver.Class = ""; - this.ribbonBar2.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar2.TitleVisible = false; + this.ribbonBar3.TitleStyleMouseOver.Class = ""; + this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar3.TitleVisible = false; // - // buttonItemHX1 + // btn_user_info // - this.buttonItemHX1.AutoExpandOnClick = true; - this.buttonItemHX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX1.Image"))); - this.buttonItemHX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemHX1.Name = "buttonItemHX1"; - this.buttonItemHX1.SubItemsExpandWidth = 14; - this.buttonItemHX1.Text = "导入红线"; - this.buttonItemHX1.Click += new System.EventHandler(this.buttonItemHX1_Click); + this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image"))); + this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_user_info.Name = "btn_user_info"; + this.btn_user_info.SubItemsExpandWidth = 14; + this.btn_user_info.Text = "用户管理"; + this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click); // - // buttonItemHX2 + // btn_role_info // - this.buttonItemHX2.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX2.Image"))); - this.buttonItemHX2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemHX2.Name = "buttonItemHX2"; - this.buttonItemHX2.SubItemsExpandWidth = 14; - this.buttonItemHX2.Text = "红线审核"; - this.buttonItemHX2.Click += new System.EventHandler(this.buttonItemHX2_Click); + this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image"))); + this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_role_info.Name = "btn_role_info"; + this.btn_role_info.SubItemsExpandWidth = 14; + this.btn_role_info.Text = "角色管理"; + this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click); // - // buttonItemDCTP + // btn_resc_info // - this.buttonItemDCTP.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemDCTP.Image"))); - this.buttonItemDCTP.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemDCTP.Name = "buttonItemDCTP"; - this.buttonItemDCTP.SubItemsExpandWidth = 14; - this.buttonItemDCTP.Text = "导出图片"; - this.buttonItemDCTP.Click += new System.EventHandler(this.buttonItemDCTP_Click); + this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image"))); + this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_resc_info.Name = "btn_resc_info"; + this.btn_resc_info.SubItemsExpandWidth = 14; + this.btn_resc_info.Text = "资源管理"; + this.btn_resc_info.Visible = false; + this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click); // - // sliderItem3 + // btn_role_resc // - this.sliderItem3.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; - this.sliderItem3.LabelWidth = 50; - this.sliderItem3.Name = "sliderItem3"; - this.sliderItem3.Text = "地面透明度"; - this.sliderItem3.TextColor = System.Drawing.Color.Black; - this.sliderItem3.Value = 0; - this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged); - // - // ribbonPanel6 - // - this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel6.Controls.Add(this.ribbonBar6); - this.ribbonPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel6.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel6.Name = "ribbonPanel6"; - this.ribbonPanel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel6.Size = new System.Drawing.Size(1328, 95); - // - // - // - this.ribbonPanel6.Style.Class = ""; - this.ribbonPanel6.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel6.StyleMouseDown.Class = ""; - this.ribbonPanel6.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel6.StyleMouseOver.Class = ""; - this.ribbonPanel6.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel6.TabIndex = 38; - this.ribbonPanel6.Visible = false; - // - // ribbonBar6 - // - this.ribbonBar6.AutoOverflowEnabled = true; - // - // - // - this.ribbonBar6.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar6.BackgroundStyle.Class = ""; - this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar6.ContainerControlProcessDialogKey = true; - this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItemSPSZ, - this.buttonItem8, - this.buttonItemLocation, - this.sliderItem2, - this.buttonItemGBJC}); - this.ribbonBar6.Location = new System.Drawing.Point(3, 0); - this.ribbonBar6.Name = "ribbonBar6"; - this.ribbonBar6.Size = new System.Drawing.Size(427, 92); - this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar6.TabIndex = 0; - // - // - // - this.ribbonBar6.TitleStyle.Class = ""; - this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar6.TitleStyleMouseOver.Class = ""; - this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar6.TitleVisible = false; - // - // buttonItemSPSZ - // - this.buttonItemSPSZ.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemSPSZ.Image"))); - this.buttonItemSPSZ.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemSPSZ.Name = "buttonItemSPSZ"; - this.buttonItemSPSZ.SubItemsExpandWidth = 14; - this.buttonItemSPSZ.Text = "双屏设置"; - this.buttonItemSPSZ.Click += new System.EventHandler(this.buttonItemSPSZ_Click); - // - // buttonItem8 - // - this.buttonItem8.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem8.Image"))); - this.buttonItem8.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem8.Name = "buttonItem8"; - this.buttonItem8.SubItemsExpandWidth = 14; - this.buttonItem8.Text = "双屏分析"; - this.buttonItem8.Click += new System.EventHandler(this.buttonItem8_Click); + this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image"))); + this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_role_resc.Name = "btn_role_resc"; + this.btn_role_resc.SubItemsExpandWidth = 14; + this.btn_role_resc.Text = "角色授权"; + this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click); // - // buttonItemLocation + // btn_user_role // - this.buttonItemLocation.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemLocation.Image"))); - this.buttonItemLocation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemLocation.Name = "buttonItemLocation"; - this.buttonItemLocation.SubItemsExpandWidth = 14; - this.buttonItemLocation.Text = "快速定位"; - this.buttonItemLocation.Click += new System.EventHandler(this.buttonItemLocation_Click); + this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image"))); + this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_user_role.Name = "btn_user_role"; + this.btn_user_role.SubItemsExpandWidth = 14; + this.btn_user_role.Text = "用户授权"; + this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click); // - // sliderItem2 + // btn_password_edit // - this.sliderItem2.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; - this.sliderItem2.LabelWidth = 50; - this.sliderItem2.Name = "sliderItem2"; - this.sliderItem2.Text = "地面透明度"; - this.sliderItem2.TextColor = System.Drawing.Color.Black; - this.sliderItem2.Value = 0; - this.sliderItem2.ValueChanged += new System.EventHandler(this.sliderItem2_ValueChanged); + this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image"))); + this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.btn_password_edit.Name = "btn_password_edit"; + this.btn_password_edit.SubItemsExpandWidth = 14; + this.btn_password_edit.Text = "密码修改"; + this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click); // - // buttonItemGBJC + // buttonItemPasswordReset // - this.buttonItemGBJC.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemGBJC.Image"))); - this.buttonItemGBJC.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemGBJC.Name = "buttonItemGBJC"; - this.buttonItemGBJC.SubItemsExpandWidth = 14; - this.buttonItemGBJC.Text = "国标检测"; - this.buttonItemGBJC.Click += new System.EventHandler(this.buttonItemGBJC_Click); + this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image"))); + this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemPasswordReset.Name = "buttonItemPasswordReset"; + this.buttonItemPasswordReset.SubItemsExpandWidth = 14; + this.buttonItemPasswordReset.Text = "重置密码"; + this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click); // // ribbonPanel15 // this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonPanel15.Controls.Add(this.ribbonBar20); this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel15.Location = new System.Drawing.Point(0, 33); + this.ribbonPanel15.Location = new System.Drawing.Point(0, 0); this.ribbonPanel15.Name = "ribbonPanel15"; this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62); + this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95); // // // @@ -2614,6 +2848,7 @@ this.ribbonPanel15.StyleMouseOver.Class = ""; this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel15.TabIndex = 35; + this.ribbonPanel15.Visible = false; // // ribbonBar20 // @@ -2637,7 +2872,7 @@ this.buttonItemXTGL}); this.ribbonBar20.Location = new System.Drawing.Point(3, 0); this.ribbonBar20.Name = "ribbonBar20"; - this.ribbonBar20.Size = new System.Drawing.Size(283, 59); + this.ribbonBar20.Size = new System.Drawing.Size(283, 92); this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonBar20.TabIndex = 0; // @@ -3068,352 +3303,218 @@ this.buttonItemXT4_2.Text = "人员修改"; this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click); // - // ribbonPanel2 + // ribbonPanel6 // - this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel2.Controls.Add(this.ribbonBar3); - this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 33); - 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.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel6.Controls.Add(this.ribbonBar6); + this.ribbonPanel6.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel6.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel6.Name = "ribbonPanel6"; + this.ribbonPanel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel6.Size = new System.Drawing.Size(1328, 95); // // // - this.ribbonPanel2.Style.Class = ""; - this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.Style.Class = ""; + this.ribbonPanel6.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel2.StyleMouseDown.Class = ""; - this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.StyleMouseDown.Class = ""; + this.ribbonPanel6.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonPanel2.StyleMouseOver.Class = ""; - this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel2.TabIndex = 39; - this.ribbonPanel2.Visible = false; + this.ribbonPanel6.StyleMouseOver.Class = ""; + this.ribbonPanel6.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel6.TabIndex = 38; + this.ribbonPanel6.Visible = false; // - // ribbonBar3 + // ribbonBar6 // - this.ribbonBar3.AutoOverflowEnabled = true; + this.ribbonBar6.AutoOverflowEnabled = true; // // // - this.ribbonBar3.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar6.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar3.BackgroundStyle.Class = ""; - this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.ContainerControlProcessDialogKey = true; - this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btn_user_info, - this.btn_role_info, - this.btn_resc_info, - this.btn_role_resc, - this.btn_user_role, - this.btn_password_edit, - this.buttonItemPasswordReset}); - this.ribbonBar3.Location = new System.Drawing.Point(3, 0); - this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(551, 59); - this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar3.TabIndex = 1; + this.ribbonBar6.BackgroundStyle.Class = ""; + this.ribbonBar6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.ContainerControlProcessDialogKey = true; + this.ribbonBar6.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar6.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItemSPSZ, + this.buttonItem8, + this.buttonItemLocation, + this.sliderItem2, + this.buttonItemGBJC}); + this.ribbonBar6.Location = new System.Drawing.Point(3, 0); + this.ribbonBar6.Name = "ribbonBar6"; + this.ribbonBar6.Size = new System.Drawing.Size(427, 92); + this.ribbonBar6.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar6.TabIndex = 0; // // // - this.ribbonBar3.TitleStyle.Class = ""; - this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.TitleStyle.Class = ""; + this.ribbonBar6.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // - this.ribbonBar3.TitleStyleMouseOver.Class = ""; - this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.TitleVisible = false; + this.ribbonBar6.TitleStyleMouseOver.Class = ""; + this.ribbonBar6.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar6.TitleVisible = false; // - // btn_user_info + // buttonItemSPSZ // - this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image"))); - this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_user_info.Name = "btn_user_info"; - this.btn_user_info.SubItemsExpandWidth = 14; - this.btn_user_info.Text = "用户管理"; - this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click); + this.buttonItemSPSZ.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemSPSZ.Image"))); + this.buttonItemSPSZ.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemSPSZ.Name = "buttonItemSPSZ"; + this.buttonItemSPSZ.SubItemsExpandWidth = 14; + this.buttonItemSPSZ.Text = "双屏设置"; + this.buttonItemSPSZ.Click += new System.EventHandler(this.buttonItemSPSZ_Click); // - // btn_role_info + // buttonItem8 // - this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image"))); - this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_role_info.Name = "btn_role_info"; - this.btn_role_info.SubItemsExpandWidth = 14; - this.btn_role_info.Text = "角色管理"; - this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click); + this.buttonItem8.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem8.Image"))); + this.buttonItem8.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItem8.Name = "buttonItem8"; + this.buttonItem8.SubItemsExpandWidth = 14; + this.buttonItem8.Text = "双屏分析"; + this.buttonItem8.Click += new System.EventHandler(this.buttonItem8_Click); // - // btn_resc_info + // buttonItemLocation // - this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image"))); - this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_resc_info.Name = "btn_resc_info"; - this.btn_resc_info.SubItemsExpandWidth = 14; - this.btn_resc_info.Text = "资源管理"; - this.btn_resc_info.Visible = false; - this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click); + this.buttonItemLocation.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemLocation.Image"))); + this.buttonItemLocation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemLocation.Name = "buttonItemLocation"; + this.buttonItemLocation.SubItemsExpandWidth = 14; + this.buttonItemLocation.Text = "快速定位"; + this.buttonItemLocation.Click += new System.EventHandler(this.buttonItemLocation_Click); // - // btn_role_resc + // sliderItem2 // - this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image"))); - this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_role_resc.Name = "btn_role_resc"; - this.btn_role_resc.SubItemsExpandWidth = 14; - this.btn_role_resc.Text = "角色授权"; - this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click); + this.sliderItem2.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.sliderItem2.LabelWidth = 50; + this.sliderItem2.Name = "sliderItem2"; + this.sliderItem2.Text = "地面透明度"; + this.sliderItem2.TextColor = System.Drawing.Color.Black; + this.sliderItem2.Value = 0; + this.sliderItem2.ValueChanged += new System.EventHandler(this.sliderItem2_ValueChanged); // - // btn_user_role + // buttonItemGBJC // - this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image"))); - this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_user_role.Name = "btn_user_role"; - this.btn_user_role.SubItemsExpandWidth = 14; - this.btn_user_role.Text = "用户授权"; - this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click); + this.buttonItemGBJC.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemGBJC.Image"))); + this.buttonItemGBJC.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemGBJC.Name = "buttonItemGBJC"; + this.buttonItemGBJC.SubItemsExpandWidth = 14; + this.buttonItemGBJC.Text = "国标检测"; + this.buttonItemGBJC.Click += new System.EventHandler(this.buttonItemGBJC_Click); // - // btn_password_edit + // ribbonPanel5 // - this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image"))); - this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_password_edit.Name = "btn_password_edit"; - this.btn_password_edit.SubItemsExpandWidth = 14; - this.btn_password_edit.Text = "密码修改"; - this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click); + this.ribbonPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonPanel5.Controls.Add(this.ribbonBar2); + this.ribbonPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.ribbonPanel5.Location = new System.Drawing.Point(0, 0); + this.ribbonPanel5.Name = "ribbonPanel5"; + this.ribbonPanel5.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); + this.ribbonPanel5.Size = new System.Drawing.Size(1328, 95); // - // buttonItemPasswordReset // - this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image"))); - this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItemPasswordReset.Name = "buttonItemPasswordReset"; - this.buttonItemPasswordReset.SubItemsExpandWidth = 14; - this.buttonItemPasswordReset.Text = "重置密码"; - this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click); // - // ribbonPanel4 + this.ribbonPanel5.Style.Class = ""; + this.ribbonPanel5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel4.Controls.Add(this.ribbonBar1); - this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel4.Location = new System.Drawing.Point(0, 0); - this.ribbonPanel4.Name = "ribbonPanel4"; - this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95); // // + this.ribbonPanel5.StyleMouseDown.Class = ""; + this.ribbonPanel5.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonPanel4.Style.Class = ""; - this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // + this.ribbonPanel5.StyleMouseOver.Class = ""; + this.ribbonPanel5.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonPanel5.TabIndex = 37; + this.ribbonPanel5.Visible = false; // - this.ribbonPanel4.StyleMouseDown.Class = ""; - this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // ribbonBar2 // + this.ribbonBar2.AutoOverflowEnabled = true; // // - this.ribbonPanel4.StyleMouseOver.Class = ""; - this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel4.TabIndex = 36; - this.ribbonPanel4.Visible = false; // - // ribbonBar1 + this.ribbonBar2.BackgroundMouseOverStyle.Class = ""; + this.ribbonBar2.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.ribbonBar1.AutoOverflowEnabled = true; // // - // - this.ribbonBar1.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar1.BackgroundStyle.Class = ""; - this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar1.ContainerControlProcessDialogKey = true; - this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btn_document_info}); - this.ribbonBar1.Location = new System.Drawing.Point(3, 0); - this.ribbonBar1.Name = "ribbonBar1"; - this.ribbonBar1.Size = new System.Drawing.Size(88, 92); - this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar1.TabIndex = 0; - // - // - // - this.ribbonBar1.TitleStyle.Class = ""; - this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar1.TitleStyleMouseOver.Class = ""; - this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar1.TitleVisible = false; - // - // btn_document_info - // - this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image"))); - this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btn_document_info.Name = "btn_document_info"; - this.btn_document_info.SubItemsExpandWidth = 14; - this.btn_document_info.Text = "文档管理"; - this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click); - // - // ribbonPanel1 - // - this.ribbonPanel1.AutoSize = true; - this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray; - 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, 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, 95); - // - // - // - this.ribbonPanel1.Style.Class = ""; - this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseDown.Class = ""; - this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseOver.Class = ""; - this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel1.TabIndex = 1; - this.ribbonPanel1.Visible = false; - // - // ribbonBar21 - // - this.ribbonBar21.AutoOverflowEnabled = true; - this.ribbonBar21.BackColor = System.Drawing.Color.White; - // - // - // - this.ribbonBar21.BackgroundMouseOverStyle.Class = ""; - this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar21.BackgroundStyle.Class = ""; - this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar21.ContainerControlProcessDialogKey = true; - this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left; - this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItem87, - this.buttonItem88, - this.buttonItem27, - this.sliderGroundTransSet1, - this.buttonItem91, - this.buttonItem1, - this.btnlegendSet, - this.buttonItem89, - this.btnOutputJPG}); - this.ribbonBar21.Location = new System.Drawing.Point(3, 0); - this.ribbonBar21.Name = "ribbonBar21"; - this.ribbonBar21.Size = new System.Drawing.Size(649, 92); - this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar21.TabIndex = 2; - this.ribbonBar21.Text = "浏览模式"; - // - // - // - this.ribbonBar21.TitleStyle.Class = ""; - this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar21.TitleStyleMouseOver.Class = ""; - this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar21.TitleVisible = false; - // - // buttonItem87 - // - this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image"))); - this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem87.Name = "buttonItem87"; - this.buttonItem87.SubItemsExpandWidth = 14; - this.buttonItem87.Text = "地上模式"; - this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click); + this.ribbonBar2.BackgroundStyle.Class = ""; + this.ribbonBar2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar2.ContainerControlProcessDialogKey = true; + this.ribbonBar2.Dock = System.Windows.Forms.DockStyle.Left; + this.ribbonBar2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItemHX1, + this.buttonItemHX2, + this.buttonItemDCTP, + this.sliderItem3}); + this.ribbonBar2.Location = new System.Drawing.Point(3, 0); + this.ribbonBar2.Name = "ribbonBar2"; + this.ribbonBar2.Size = new System.Drawing.Size(350, 92); + this.ribbonBar2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.ribbonBar2.TabIndex = 0; // - // buttonItem88 // - this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image"))); - this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem88.Name = "buttonItem88"; - this.buttonItem88.SubItemsExpandWidth = 14; - this.buttonItem88.Text = "地下模式"; - this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click); // - // buttonItem27 + this.ribbonBar2.TitleStyle.Class = ""; + this.ribbonBar2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // - this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image"))); - this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem27.Name = "buttonItem27"; - this.buttonItem27.SubItemsExpandWidth = 14; - this.buttonItem27.Text = "行走模式"; - this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click); // - // buttonItem91 // - this.buttonItem91.ForeColor = System.Drawing.Color.Black; - this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image"))); - this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem91.Name = "buttonItem91"; - this.buttonItem91.SubItemsExpandWidth = 14; - this.buttonItem91.Text = "快速定位"; - this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click); + this.ribbonBar2.TitleStyleMouseOver.Class = ""; + this.ribbonBar2.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ribbonBar2.TitleVisible = false; // - // buttonItem1 + // buttonItemHX1 // - this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image"))); - this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem1.Name = "buttonItem1"; - this.buttonItem1.SubItemsExpandWidth = 14; - this.buttonItem1.Text = "图层管理"; - this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click); + this.buttonItemHX1.AutoExpandOnClick = true; + this.buttonItemHX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX1.Image"))); + this.buttonItemHX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemHX1.Name = "buttonItemHX1"; + this.buttonItemHX1.SubItemsExpandWidth = 14; + this.buttonItemHX1.Text = "导入红线"; + this.buttonItemHX1.Click += new System.EventHandler(this.buttonItemHX1_Click); // - // btnlegendSet + // buttonItemHX2 // - this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image"))); - this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnlegendSet.Name = "btnlegendSet"; - this.btnlegendSet.SubItemsExpandWidth = 14; - this.btnlegendSet.Text = "图例"; - this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click); + this.buttonItemHX2.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemHX2.Image"))); + this.buttonItemHX2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemHX2.Name = "buttonItemHX2"; + this.buttonItemHX2.SubItemsExpandWidth = 14; + this.buttonItemHX2.Text = "红线审核"; + this.buttonItemHX2.Click += new System.EventHandler(this.buttonItemHX2_Click); // - // buttonItem89 + // buttonItemDCTP // - this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image"))); - this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem89.Name = "buttonItem89"; - this.buttonItem89.SubItemsExpandWidth = 14; - this.buttonItem89.Text = "全屏显示"; - this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click); + this.buttonItemDCTP.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemDCTP.Image"))); + this.buttonItemDCTP.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; + this.buttonItemDCTP.Name = "buttonItemDCTP"; + this.buttonItemDCTP.SubItemsExpandWidth = 14; + this.buttonItemDCTP.Text = "导出图片"; + this.buttonItemDCTP.Click += new System.EventHandler(this.buttonItemDCTP_Click); // - // btnOutputJPG + // sliderItem3 // - this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image"))); - this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnOutputJPG.Name = "btnOutputJPG"; - this.btnOutputJPG.SubItemsExpandWidth = 14; - this.btnOutputJPG.Text = "导出图片"; - this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click); + this.sliderItem3.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top; + this.sliderItem3.LabelWidth = 50; + this.sliderItem3.Name = "sliderItem3"; + this.sliderItem3.Text = "地面透明度"; + this.sliderItem3.TextColor = System.Drawing.Color.Black; + this.sliderItem3.Value = 0; + this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged); // // ribbonTabItem1 // @@ -3468,7 +3569,6 @@ // ribbonTabItem14 // this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.ribbonTabItem14.Checked = true; this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage"))); this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image"))); this.ribbonTabItem14.Name = "ribbonTabItem14"; @@ -3486,6 +3586,13 @@ this.ribbonTabItem2.Text = "权限管理"; this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown); // + // ribbonTabItemBSQ + // + this.ribbonTabItemBSQ.Checked = true; + this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ"; + this.ribbonTabItemBSQ.Panel = this.ribbonPanel3; + this.ribbonTabItemBSQ.Text = "标识器管理"; + // // buttonItem19 // this.buttonItem19.Name = "buttonItem19"; @@ -4463,7 +4570,7 @@ this.dataGridViewX2.ReadOnly = true; this.dataGridViewX2.RowHeadersVisible = false; this.dataGridViewX2.RowTemplate.Height = 23; - this.dataGridViewX2.Size = new System.Drawing.Size(28705, 92); + this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92); this.dataGridViewX2.TabIndex = 11; // // dataGridViewTextBoxColumn10 @@ -4557,7 +4664,7 @@ this.dataGridViewX3.ReadOnly = true; this.dataGridViewX3.RowHeadersVisible = false; this.dataGridViewX3.RowTemplate.Height = 23; - this.dataGridViewX3.Size = new System.Drawing.Size(28704, 127); + this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127); this.dataGridViewX3.TabIndex = 5; this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick); // @@ -5731,18 +5838,6 @@ this.panelEx4.TabIndex = 26; this.panelEx4.Text = "panelEx4"; // - // 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); - this.layerTree.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseClick); - this.layerTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.layerTree_NodeMouseDoubleClick); - // // MainFrm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; @@ -5786,13 +5881,14 @@ this.contextMenuStripDeleteLayerNode.ResumeLayout(false); this.ribbonControl1.ResumeLayout(false); this.ribbonControl1.PerformLayout(); - this.ribbonPanel12.ResumeLayout(false); - this.ribbonPanel5.ResumeLayout(false); - this.ribbonPanel6.ResumeLayout(false); - this.ribbonPanel15.ResumeLayout(false); - this.ribbonPanel2.ResumeLayout(false); + this.ribbonPanel3.ResumeLayout(false); this.ribbonPanel4.ResumeLayout(false); this.ribbonPanel1.ResumeLayout(false); + this.ribbonPanel12.ResumeLayout(false); + this.ribbonPanel2.ResumeLayout(false); + this.ribbonPanel15.ResumeLayout(false); + this.ribbonPanel6.ResumeLayout(false); + this.ribbonPanel5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.panelOfTable.ResumeLayout(false); this.panelOfTable.PerformLayout(); @@ -6315,6 +6411,11 @@ private LabelX labelX16; private LabelX labelX17; private PanelEx panelEx4; + private RibbonPanel ribbonPanel3; + private RibbonBar ribbonBar4; + private ButtonItem btn_flag; + private RibbonTabItem ribbonTabItemBSQ; + private SliderItem slider4ground; } } diff --git a/MainFrm.resx b/MainFrm.resx index 4151cb6..8287937 100644 --- a/MainFrm.resx +++ b/MainFrm.resx @@ -351,6 +351,782 @@ 766, 54 + + + iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAADZmlUWHRYTUw6Y29tLmFkb2Jl + LnhtcAAA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+tlmOxu2Ecm - 0dglR86FjxEteBZx2Zsgab4KhaoH17lXJFO04nKLDCrus+L7A7OowOLyUsxODwy2EaTm78BrWU/io6KD - YE126KxDaFDKEZ4Rhg8E+1HbKAOjNZP6TYsL0mtNaFYrUCmrAGu2YWBwLCgw2Ecf4qeGakRmPo203D1Q - dPWjz8TdBGYX0guSIK5vgLyDQa/BDr3NTdAYrYg68iI2HliJiitV6DM6ggLWwt0p/8J9PeFMsRDnJSLE - H38DsXEJSEhKAaOzod88hMjXt+KTz/PQ2WtCLyfl8wE2RbyKkyWFqJLUQdqu4ASvPBBojE4KH9wVtxel - v5Tj5zopuU5MSQOjt6NG0swJtmHtCxtwrUePHsMDQaA3J/9rfJpTgDY1CwWjDwq6dHYK37BzdwJqZe3I - E3yP9ENHsG//u+TsvcNH8dXZMryVlo4ioYjmA73ZnCA7T4BO1gqV1hp8izr6f6fwDafOlKLgdAlidsXj - 29JKJHOCFrWOnAXga4F8gIjN21Df1k1nUYFSY6bwwUvSVjy/bgN2cILKmnokvf0O8r8pRvr7H5JMcwdL - zvkcn1/cvxgqaGVMFL6BX6Nj9+BLQREuXLyCvSkHEB65BcXll2ju8LETyPqikOaXgwqudhlCQkAQ8p/M - R2K5fxKLWbbp/7Dc0CBY8Q+pPmOq0VkzzQAAAABJRU5ErkJggg== - - iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 diff --git a/Utility.cs b/Utility.cs index c4a4e28..c48176b 100644 --- a/Utility.cs +++ b/Utility.cs @@ -16,7 +16,6 @@ { public class Utility { - //public static string ConnectionString; public static string dbdatabase; public static string userID; @@ -77,6 +76,7 @@ public static string filenameDbconfig = Application.StartupPath + "\\databaseConfig.xml"; public static string filenameLocation = Application.StartupPath + "\\Location.xml"; public static string layerConfigFile = Application.StartupPath + "\\layerConfig.xml"; + #region wxl 从MainFrm重构来,读取一遍config.xml public static List m_PipelineLayerNames = new List();//线图层名称 public static List workwellLayerNames = new List();//工井图层名称 @@ -118,20 +118,6 @@ balloonEx.SetBorder(Color.White, 1, 1); balloonEx.SetColorBkType(EnumBkColorTypeEx.SKY); } - - //public static GSOFeature FindFeatureByUserID(GSOFeatureDataset featdataset, string fieldname, string value) - //{ - // GSOFeatures feats = featdataset.GetAllFeatures(); - // for (int i = 0; i < feats.Length; i++) - // { - // GSOFeature feat = feats[i]; - // if (feat.GetFieldAsString(fieldname) == value) - // { - // return feat; - // } - // } - // return null; - //} public static GSOPoint2d XYZ_2_Latlon(double x, double y) { @@ -200,8 +186,6 @@ string featureName = row["编号"].ToString(); featureName = featureName.Trim(); - - //GSOLayer layer = globeControl1.Globe.Layers.GetLayerByID((int)(Utility.LayerLabel_LayerIDs[currentQueryLayer])); GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(currentQueryLayer); GSOFeatures tempfeatures = layer.GetFeatureByName(featureName, false); if (tempfeatures.Length > 0) @@ -415,6 +399,7 @@ } } #endregion + #region 读取 filenameSensor "sensorConfig.xml" sensorMarkerLayers = new List(); if (File.Exists(filenameSensor)) @@ -638,26 +623,6 @@ } */ - //////根据图层中的对象特征来划分内容 - //public static string getCodeByName(string name) - //{ - // string code = ""; - // if (listPipelineType != null) - // { - // List list = listPipelineType; - - // for (int i = 0; i < list.Count; i++) - // { - // PipelineType pipelineType = listPipelineType[i]; - // if (name == pipelineType.name) - // { - // code = pipelineType.code; - // break; - // } - // } - // } - // return code; - //} //TODO LIST:下面两个方法移到featueTools.cs中 //根据附属物图层名字得到里面含有的附属物 diff --git a/bin/x86/Debug/LocaLog.txt b/bin/x86/Debug/LocaLog.txt index 3b69f42..60f5d1d 100644 --- a/bin/x86/Debug/LocaLog.txt +++ b/bin/x86/Debug/LocaLog.txt Binary files differ
" + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + + title + " " + feature.GetFieldAsString(featureIDFieldName) + "
" + fieldNames[j] + "
" + value + "