diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmBSQDuoBianXingStatis.Designer.cs b/FrmBSQDuoBianXingStatis.Designer.cs
deleted file mode 100644
index bda6842..0000000
--- a/FrmBSQDuoBianXingStatis.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace Cyberpipe
-{
- partial class FrmBSQDuoBianXingStatis
- {
- ///
- /// 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.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.chart1);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(592, 384);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "统计结果信息";
- //
- // chart1
- //
- chartArea1.AxisX.MajorGrid.Enabled = false;
- chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
- chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
- chartArea1.Name = "ChartArea1";
- this.chart1.ChartAreas.Add(chartArea1);
- this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.chart1.Location = new System.Drawing.Point(3, 17);
- this.chart1.Name = "chart1";
- this.chart1.Size = new System.Drawing.Size(586, 364);
- this.chart1.TabIndex = 0;
- this.chart1.Text = "chart1";
- //
- // FrmBSQDuoBianXingStatis
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(592, 384);
- this.Controls.Add(this.groupBox1);
- this.DoubleBuffered = true;
- this.Name = "FrmBSQDuoBianXingStatis";
- this.ShowIcon = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "多边形区域统计";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBSQDuoBianXingStatis_FormClosing);
- this.Load += new System.EventHandler(this.FrmBSQDuoBianXingStatis_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
- }
-}
\ No newline at end of file
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmBSQDuoBianXingStatis.Designer.cs b/FrmBSQDuoBianXingStatis.Designer.cs
deleted file mode 100644
index bda6842..0000000
--- a/FrmBSQDuoBianXingStatis.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace Cyberpipe
-{
- partial class FrmBSQDuoBianXingStatis
- {
- ///
- /// 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.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.chart1);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(592, 384);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "统计结果信息";
- //
- // chart1
- //
- chartArea1.AxisX.MajorGrid.Enabled = false;
- chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
- chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
- chartArea1.Name = "ChartArea1";
- this.chart1.ChartAreas.Add(chartArea1);
- this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.chart1.Location = new System.Drawing.Point(3, 17);
- this.chart1.Name = "chart1";
- this.chart1.Size = new System.Drawing.Size(586, 364);
- this.chart1.TabIndex = 0;
- this.chart1.Text = "chart1";
- //
- // FrmBSQDuoBianXingStatis
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(592, 384);
- this.Controls.Add(this.groupBox1);
- this.DoubleBuffered = true;
- this.Name = "FrmBSQDuoBianXingStatis";
- this.ShowIcon = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "多边形区域统计";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBSQDuoBianXingStatis_FormClosing);
- this.Load += new System.EventHandler(this.FrmBSQDuoBianXingStatis_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
- }
-}
\ No newline at end of file
diff --git a/FrmBSQDuoBianXingStatis.cs b/FrmBSQDuoBianXingStatis.cs
deleted file mode 100644
index 80b567e..0000000
--- a/FrmBSQDuoBianXingStatis.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-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 System.Data.SqlClient;
-using System.Windows.Forms.DataVisualization.Charting;
-using GeoScene.Data;
-using GeoScene.Engine;
-using GeoScene.Globe;
-using System.Data.OracleClient;
-
-namespace Cyberpipe
-{
- public partial class FrmBSQDuoBianXingStatis : Office2007Form
- {
- Dictionary bsq = new Dictionary();
- Dictionary bsq1 = new Dictionary();
- static FrmBSQDuoBianXingStatis frm;
- GSOGlobeControl globeControl1;
- List list = new List();
- public static List pipeLists = new List();
-
- string[] codeStr = new string[50];
- string[] nameStr = new string[30];
- public static List typeLists;
-
- public FrmBSQDuoBianXingStatis(Dictionary workWellLen, GSOGlobeControl glb,List _list)
- {
- InitializeComponent();
- bsq = workWellLen;
- globeControl1 = glb;
- list = _list;
- }
-
- private void FrmBSQDuoBianXingStatis_Load(object sender, EventArgs e)
- {
- FrmBSQDuoBianXingStatisFenLei();
- try
- {
- chart1.Series.Add("标识器");
- chart1.ChartAreas["ChartArea1"].AxisX.Title = "标识器类型";
- chart1.ChartAreas["ChartArea1"].AxisY.Title = "标识器数量";
- chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
- chart1.Series["标识器"].ChartType = SeriesChartType.Column;
- chart1.Series["标识器"]["DrawingStyle"] = "Cylinder";
-
- chart1.Series["标识器"].Points.DataBindXY(bsq1.Keys, bsq1.Values);
- if (bsq1.Values.Count == 0)
- {
- MessageBox.Show("该区域没有标识器信息", "提示");
- this.Close();
- return;
- }
- else
- {
- for (int m = 0; m < bsq1.Values.Count; m++)
- {
- if (chart1.Series["标识器"].Points[m].YValues[0].ToString() != "0")
- {
- chart1.Series["标识器"].Points[m].Label = chart1.Series[0].Points[m].YValues[0].ToString();
- }
- }
- }
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- }
- }
-
- private void FrmBSQDuoBianXingStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
- frm = null;
- globeControl1.Globe.ClearAnalysis();
- globeControl1.Globe.MemoryLayer.RemoveAllFeature();
- }
-
-
- private void FrmBSQDuoBianXingStatisFenLei()
- {
- try
- {
- bool flag2 = false;
- for (int i = 0; i < Utility.listPipelineType.Count; i++)
- {
-
- for (int j = 0; j < pipeLists.Count; j++)
- {
- if (pipeLists[j] == Utility.listPipelineType[i].type)
- {
- flag2 = true;
- break;
- }
- }
- if (!flag2 && Utility.listPipelineType[i].type != "标识器")
- {
- pipeLists.Add(Utility.listPipelineType[i].type);
- }
- flag2 = false;
- }
-
- typeLists = new List();
- for (int num = 0; num < pipeLists.Count; num++)
- {
- typeList ls = new typeList(0, pipeLists[num]);
- typeLists.Add(ls);
- }
-
- GSOFeatures fs = list[0];
- string pipetype = "标识器";
- foreach (string key in bsq.Keys)
- {
- if (key.StartsWith(pipetype))
- {
- pipetype = key;
- break;
- }
- }
- if (fs.Length > 0)
- {
- for (int i = 0; i < fs.Length; i++)
- {
- string str = fs[i].GetValue("对象名称").ToString();
- codeStr = str.Split(',');
- for (int n = 0; n < codeStr.Length; n++)
- {
- for (int ii = 0; ii < Utility.listPipelineType.Count; ii++)
- {
- if (Utility.listPipelineType[ii].code == codeStr[n])
- {
- for (int m = 0; m < typeLists.Count; m++)
- {
- if (Utility.listPipelineType[ii].type == typeLists[m].type)
- {
- typeLists[m].num++;
- break;
- }
- }
- break;
- }
- }
- }
- }
- }
-
- for (int i = 0; i < typeLists.Count; i++)
- {
- if (typeLists[i].num > 0)
- bsq1.Add(typeLists[i].type, typeLists[i].num);
- }
-
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- //MessageBox.Show(ex.Message);
- }
-
- }
- public class typeList
- {
- public int num;
- public string type;
-
- public typeList(int _num, string _type)
- {
- num = _num;
- type = _type;
- }
- }
-
-
- }
-}
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmBSQDuoBianXingStatis.Designer.cs b/FrmBSQDuoBianXingStatis.Designer.cs
deleted file mode 100644
index bda6842..0000000
--- a/FrmBSQDuoBianXingStatis.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace Cyberpipe
-{
- partial class FrmBSQDuoBianXingStatis
- {
- ///
- /// 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.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.chart1);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(592, 384);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "统计结果信息";
- //
- // chart1
- //
- chartArea1.AxisX.MajorGrid.Enabled = false;
- chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
- chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
- chartArea1.Name = "ChartArea1";
- this.chart1.ChartAreas.Add(chartArea1);
- this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.chart1.Location = new System.Drawing.Point(3, 17);
- this.chart1.Name = "chart1";
- this.chart1.Size = new System.Drawing.Size(586, 364);
- this.chart1.TabIndex = 0;
- this.chart1.Text = "chart1";
- //
- // FrmBSQDuoBianXingStatis
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(592, 384);
- this.Controls.Add(this.groupBox1);
- this.DoubleBuffered = true;
- this.Name = "FrmBSQDuoBianXingStatis";
- this.ShowIcon = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "多边形区域统计";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBSQDuoBianXingStatis_FormClosing);
- this.Load += new System.EventHandler(this.FrmBSQDuoBianXingStatis_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
- }
-}
\ No newline at end of file
diff --git a/FrmBSQDuoBianXingStatis.cs b/FrmBSQDuoBianXingStatis.cs
deleted file mode 100644
index 80b567e..0000000
--- a/FrmBSQDuoBianXingStatis.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-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 System.Data.SqlClient;
-using System.Windows.Forms.DataVisualization.Charting;
-using GeoScene.Data;
-using GeoScene.Engine;
-using GeoScene.Globe;
-using System.Data.OracleClient;
-
-namespace Cyberpipe
-{
- public partial class FrmBSQDuoBianXingStatis : Office2007Form
- {
- Dictionary bsq = new Dictionary();
- Dictionary bsq1 = new Dictionary();
- static FrmBSQDuoBianXingStatis frm;
- GSOGlobeControl globeControl1;
- List list = new List();
- public static List pipeLists = new List();
-
- string[] codeStr = new string[50];
- string[] nameStr = new string[30];
- public static List typeLists;
-
- public FrmBSQDuoBianXingStatis(Dictionary workWellLen, GSOGlobeControl glb,List _list)
- {
- InitializeComponent();
- bsq = workWellLen;
- globeControl1 = glb;
- list = _list;
- }
-
- private void FrmBSQDuoBianXingStatis_Load(object sender, EventArgs e)
- {
- FrmBSQDuoBianXingStatisFenLei();
- try
- {
- chart1.Series.Add("标识器");
- chart1.ChartAreas["ChartArea1"].AxisX.Title = "标识器类型";
- chart1.ChartAreas["ChartArea1"].AxisY.Title = "标识器数量";
- chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
- chart1.Series["标识器"].ChartType = SeriesChartType.Column;
- chart1.Series["标识器"]["DrawingStyle"] = "Cylinder";
-
- chart1.Series["标识器"].Points.DataBindXY(bsq1.Keys, bsq1.Values);
- if (bsq1.Values.Count == 0)
- {
- MessageBox.Show("该区域没有标识器信息", "提示");
- this.Close();
- return;
- }
- else
- {
- for (int m = 0; m < bsq1.Values.Count; m++)
- {
- if (chart1.Series["标识器"].Points[m].YValues[0].ToString() != "0")
- {
- chart1.Series["标识器"].Points[m].Label = chart1.Series[0].Points[m].YValues[0].ToString();
- }
- }
- }
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- }
- }
-
- private void FrmBSQDuoBianXingStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
- frm = null;
- globeControl1.Globe.ClearAnalysis();
- globeControl1.Globe.MemoryLayer.RemoveAllFeature();
- }
-
-
- private void FrmBSQDuoBianXingStatisFenLei()
- {
- try
- {
- bool flag2 = false;
- for (int i = 0; i < Utility.listPipelineType.Count; i++)
- {
-
- for (int j = 0; j < pipeLists.Count; j++)
- {
- if (pipeLists[j] == Utility.listPipelineType[i].type)
- {
- flag2 = true;
- break;
- }
- }
- if (!flag2 && Utility.listPipelineType[i].type != "标识器")
- {
- pipeLists.Add(Utility.listPipelineType[i].type);
- }
- flag2 = false;
- }
-
- typeLists = new List();
- for (int num = 0; num < pipeLists.Count; num++)
- {
- typeList ls = new typeList(0, pipeLists[num]);
- typeLists.Add(ls);
- }
-
- GSOFeatures fs = list[0];
- string pipetype = "标识器";
- foreach (string key in bsq.Keys)
- {
- if (key.StartsWith(pipetype))
- {
- pipetype = key;
- break;
- }
- }
- if (fs.Length > 0)
- {
- for (int i = 0; i < fs.Length; i++)
- {
- string str = fs[i].GetValue("对象名称").ToString();
- codeStr = str.Split(',');
- for (int n = 0; n < codeStr.Length; n++)
- {
- for (int ii = 0; ii < Utility.listPipelineType.Count; ii++)
- {
- if (Utility.listPipelineType[ii].code == codeStr[n])
- {
- for (int m = 0; m < typeLists.Count; m++)
- {
- if (Utility.listPipelineType[ii].type == typeLists[m].type)
- {
- typeLists[m].num++;
- break;
- }
- }
- break;
- }
- }
- }
- }
- }
-
- for (int i = 0; i < typeLists.Count; i++)
- {
- if (typeLists[i].num > 0)
- bsq1.Add(typeLists[i].type, typeLists[i].num);
- }
-
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- //MessageBox.Show(ex.Message);
- }
-
- }
- public class typeList
- {
- public int num;
- public string type;
-
- public typeList(int _num, string _type)
- {
- num = _num;
- type = _type;
- }
- }
-
-
- }
-}
diff --git a/FrmBSQDuoBianXingStatis.resx b/FrmBSQDuoBianXingStatis.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/FrmBSQDuoBianXingStatis.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmBSQDuoBianXingStatis.Designer.cs b/FrmBSQDuoBianXingStatis.Designer.cs
deleted file mode 100644
index bda6842..0000000
--- a/FrmBSQDuoBianXingStatis.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace Cyberpipe
-{
- partial class FrmBSQDuoBianXingStatis
- {
- ///
- /// 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.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.chart1);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(592, 384);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "统计结果信息";
- //
- // chart1
- //
- chartArea1.AxisX.MajorGrid.Enabled = false;
- chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
- chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
- chartArea1.Name = "ChartArea1";
- this.chart1.ChartAreas.Add(chartArea1);
- this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.chart1.Location = new System.Drawing.Point(3, 17);
- this.chart1.Name = "chart1";
- this.chart1.Size = new System.Drawing.Size(586, 364);
- this.chart1.TabIndex = 0;
- this.chart1.Text = "chart1";
- //
- // FrmBSQDuoBianXingStatis
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(592, 384);
- this.Controls.Add(this.groupBox1);
- this.DoubleBuffered = true;
- this.Name = "FrmBSQDuoBianXingStatis";
- this.ShowIcon = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "多边形区域统计";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBSQDuoBianXingStatis_FormClosing);
- this.Load += new System.EventHandler(this.FrmBSQDuoBianXingStatis_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
- }
-}
\ No newline at end of file
diff --git a/FrmBSQDuoBianXingStatis.cs b/FrmBSQDuoBianXingStatis.cs
deleted file mode 100644
index 80b567e..0000000
--- a/FrmBSQDuoBianXingStatis.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-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 System.Data.SqlClient;
-using System.Windows.Forms.DataVisualization.Charting;
-using GeoScene.Data;
-using GeoScene.Engine;
-using GeoScene.Globe;
-using System.Data.OracleClient;
-
-namespace Cyberpipe
-{
- public partial class FrmBSQDuoBianXingStatis : Office2007Form
- {
- Dictionary bsq = new Dictionary();
- Dictionary bsq1 = new Dictionary();
- static FrmBSQDuoBianXingStatis frm;
- GSOGlobeControl globeControl1;
- List list = new List();
- public static List pipeLists = new List();
-
- string[] codeStr = new string[50];
- string[] nameStr = new string[30];
- public static List typeLists;
-
- public FrmBSQDuoBianXingStatis(Dictionary workWellLen, GSOGlobeControl glb,List _list)
- {
- InitializeComponent();
- bsq = workWellLen;
- globeControl1 = glb;
- list = _list;
- }
-
- private void FrmBSQDuoBianXingStatis_Load(object sender, EventArgs e)
- {
- FrmBSQDuoBianXingStatisFenLei();
- try
- {
- chart1.Series.Add("标识器");
- chart1.ChartAreas["ChartArea1"].AxisX.Title = "标识器类型";
- chart1.ChartAreas["ChartArea1"].AxisY.Title = "标识器数量";
- chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
- chart1.Series["标识器"].ChartType = SeriesChartType.Column;
- chart1.Series["标识器"]["DrawingStyle"] = "Cylinder";
-
- chart1.Series["标识器"].Points.DataBindXY(bsq1.Keys, bsq1.Values);
- if (bsq1.Values.Count == 0)
- {
- MessageBox.Show("该区域没有标识器信息", "提示");
- this.Close();
- return;
- }
- else
- {
- for (int m = 0; m < bsq1.Values.Count; m++)
- {
- if (chart1.Series["标识器"].Points[m].YValues[0].ToString() != "0")
- {
- chart1.Series["标识器"].Points[m].Label = chart1.Series[0].Points[m].YValues[0].ToString();
- }
- }
- }
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- }
- }
-
- private void FrmBSQDuoBianXingStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
- frm = null;
- globeControl1.Globe.ClearAnalysis();
- globeControl1.Globe.MemoryLayer.RemoveAllFeature();
- }
-
-
- private void FrmBSQDuoBianXingStatisFenLei()
- {
- try
- {
- bool flag2 = false;
- for (int i = 0; i < Utility.listPipelineType.Count; i++)
- {
-
- for (int j = 0; j < pipeLists.Count; j++)
- {
- if (pipeLists[j] == Utility.listPipelineType[i].type)
- {
- flag2 = true;
- break;
- }
- }
- if (!flag2 && Utility.listPipelineType[i].type != "标识器")
- {
- pipeLists.Add(Utility.listPipelineType[i].type);
- }
- flag2 = false;
- }
-
- typeLists = new List();
- for (int num = 0; num < pipeLists.Count; num++)
- {
- typeList ls = new typeList(0, pipeLists[num]);
- typeLists.Add(ls);
- }
-
- GSOFeatures fs = list[0];
- string pipetype = "标识器";
- foreach (string key in bsq.Keys)
- {
- if (key.StartsWith(pipetype))
- {
- pipetype = key;
- break;
- }
- }
- if (fs.Length > 0)
- {
- for (int i = 0; i < fs.Length; i++)
- {
- string str = fs[i].GetValue("对象名称").ToString();
- codeStr = str.Split(',');
- for (int n = 0; n < codeStr.Length; n++)
- {
- for (int ii = 0; ii < Utility.listPipelineType.Count; ii++)
- {
- if (Utility.listPipelineType[ii].code == codeStr[n])
- {
- for (int m = 0; m < typeLists.Count; m++)
- {
- if (Utility.listPipelineType[ii].type == typeLists[m].type)
- {
- typeLists[m].num++;
- break;
- }
- }
- break;
- }
- }
- }
- }
- }
-
- for (int i = 0; i < typeLists.Count; i++)
- {
- if (typeLists[i].num > 0)
- bsq1.Add(typeLists[i].type, typeLists[i].num);
- }
-
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- //MessageBox.Show(ex.Message);
- }
-
- }
- public class typeList
- {
- public int num;
- public string type;
-
- public typeList(int _num, string _type)
- {
- num = _num;
- type = _type;
- }
- }
-
-
- }
-}
diff --git a/FrmBSQDuoBianXingStatis.resx b/FrmBSQDuoBianXingStatis.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/FrmBSQDuoBianXingStatis.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/FrmBSQStatis.cs b/FrmBSQStatis.cs
index 66767ee..e7c4926 100644
--- a/FrmBSQStatis.cs
+++ b/FrmBSQStatis.cs
@@ -18,9 +18,7 @@
{
public partial class FrmBSQStatis : Office2007Form
{
- public Dictionary bsq = new Dictionary();
- OracleConnection conn;
- string connectString;
+ private Dictionary bsq = new Dictionary();
private GSOGlobeControl globeControl1;
private GSOGeoPolygon3D polygon;
@@ -86,7 +84,7 @@
{
try
{
- conn = OledbHelper.sqlConnection();
+ OracleConnection conn = OledbHelper.sqlConnection();
conn.Open();
OracleCommand cmd;
cmd = new OracleCommand("select 对象类型 from 标识器", conn);
@@ -125,7 +123,7 @@
for (int i = 0; i < bsqFs.Length; i++)
{
- string str = bsqFs[i].GetValue("对象名称").ToString();
+ string str = bsqFs[i].GetValue("对象类型").ToString();
foreach (string key in codeAndType.Keys)
{
@@ -140,9 +138,8 @@
}
private void FrmBSQStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
+ {
globeControl1.Globe.ClearAnalysis();
- this.Close();
}
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmBSQDuoBianXingStatis.Designer.cs b/FrmBSQDuoBianXingStatis.Designer.cs
deleted file mode 100644
index bda6842..0000000
--- a/FrmBSQDuoBianXingStatis.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace Cyberpipe
-{
- partial class FrmBSQDuoBianXingStatis
- {
- ///
- /// 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.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.chart1);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(592, 384);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "统计结果信息";
- //
- // chart1
- //
- chartArea1.AxisX.MajorGrid.Enabled = false;
- chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
- chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
- chartArea1.Name = "ChartArea1";
- this.chart1.ChartAreas.Add(chartArea1);
- this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.chart1.Location = new System.Drawing.Point(3, 17);
- this.chart1.Name = "chart1";
- this.chart1.Size = new System.Drawing.Size(586, 364);
- this.chart1.TabIndex = 0;
- this.chart1.Text = "chart1";
- //
- // FrmBSQDuoBianXingStatis
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(592, 384);
- this.Controls.Add(this.groupBox1);
- this.DoubleBuffered = true;
- this.Name = "FrmBSQDuoBianXingStatis";
- this.ShowIcon = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "多边形区域统计";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBSQDuoBianXingStatis_FormClosing);
- this.Load += new System.EventHandler(this.FrmBSQDuoBianXingStatis_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
- }
-}
\ No newline at end of file
diff --git a/FrmBSQDuoBianXingStatis.cs b/FrmBSQDuoBianXingStatis.cs
deleted file mode 100644
index 80b567e..0000000
--- a/FrmBSQDuoBianXingStatis.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-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 System.Data.SqlClient;
-using System.Windows.Forms.DataVisualization.Charting;
-using GeoScene.Data;
-using GeoScene.Engine;
-using GeoScene.Globe;
-using System.Data.OracleClient;
-
-namespace Cyberpipe
-{
- public partial class FrmBSQDuoBianXingStatis : Office2007Form
- {
- Dictionary bsq = new Dictionary();
- Dictionary bsq1 = new Dictionary();
- static FrmBSQDuoBianXingStatis frm;
- GSOGlobeControl globeControl1;
- List list = new List();
- public static List pipeLists = new List();
-
- string[] codeStr = new string[50];
- string[] nameStr = new string[30];
- public static List typeLists;
-
- public FrmBSQDuoBianXingStatis(Dictionary workWellLen, GSOGlobeControl glb,List _list)
- {
- InitializeComponent();
- bsq = workWellLen;
- globeControl1 = glb;
- list = _list;
- }
-
- private void FrmBSQDuoBianXingStatis_Load(object sender, EventArgs e)
- {
- FrmBSQDuoBianXingStatisFenLei();
- try
- {
- chart1.Series.Add("标识器");
- chart1.ChartAreas["ChartArea1"].AxisX.Title = "标识器类型";
- chart1.ChartAreas["ChartArea1"].AxisY.Title = "标识器数量";
- chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
- chart1.Series["标识器"].ChartType = SeriesChartType.Column;
- chart1.Series["标识器"]["DrawingStyle"] = "Cylinder";
-
- chart1.Series["标识器"].Points.DataBindXY(bsq1.Keys, bsq1.Values);
- if (bsq1.Values.Count == 0)
- {
- MessageBox.Show("该区域没有标识器信息", "提示");
- this.Close();
- return;
- }
- else
- {
- for (int m = 0; m < bsq1.Values.Count; m++)
- {
- if (chart1.Series["标识器"].Points[m].YValues[0].ToString() != "0")
- {
- chart1.Series["标识器"].Points[m].Label = chart1.Series[0].Points[m].YValues[0].ToString();
- }
- }
- }
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- }
- }
-
- private void FrmBSQDuoBianXingStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
- frm = null;
- globeControl1.Globe.ClearAnalysis();
- globeControl1.Globe.MemoryLayer.RemoveAllFeature();
- }
-
-
- private void FrmBSQDuoBianXingStatisFenLei()
- {
- try
- {
- bool flag2 = false;
- for (int i = 0; i < Utility.listPipelineType.Count; i++)
- {
-
- for (int j = 0; j < pipeLists.Count; j++)
- {
- if (pipeLists[j] == Utility.listPipelineType[i].type)
- {
- flag2 = true;
- break;
- }
- }
- if (!flag2 && Utility.listPipelineType[i].type != "标识器")
- {
- pipeLists.Add(Utility.listPipelineType[i].type);
- }
- flag2 = false;
- }
-
- typeLists = new List();
- for (int num = 0; num < pipeLists.Count; num++)
- {
- typeList ls = new typeList(0, pipeLists[num]);
- typeLists.Add(ls);
- }
-
- GSOFeatures fs = list[0];
- string pipetype = "标识器";
- foreach (string key in bsq.Keys)
- {
- if (key.StartsWith(pipetype))
- {
- pipetype = key;
- break;
- }
- }
- if (fs.Length > 0)
- {
- for (int i = 0; i < fs.Length; i++)
- {
- string str = fs[i].GetValue("对象名称").ToString();
- codeStr = str.Split(',');
- for (int n = 0; n < codeStr.Length; n++)
- {
- for (int ii = 0; ii < Utility.listPipelineType.Count; ii++)
- {
- if (Utility.listPipelineType[ii].code == codeStr[n])
- {
- for (int m = 0; m < typeLists.Count; m++)
- {
- if (Utility.listPipelineType[ii].type == typeLists[m].type)
- {
- typeLists[m].num++;
- break;
- }
- }
- break;
- }
- }
- }
- }
- }
-
- for (int i = 0; i < typeLists.Count; i++)
- {
- if (typeLists[i].num > 0)
- bsq1.Add(typeLists[i].type, typeLists[i].num);
- }
-
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- //MessageBox.Show(ex.Message);
- }
-
- }
- public class typeList
- {
- public int num;
- public string type;
-
- public typeList(int _num, string _type)
- {
- num = _num;
- type = _type;
- }
- }
-
-
- }
-}
diff --git a/FrmBSQDuoBianXingStatis.resx b/FrmBSQDuoBianXingStatis.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/FrmBSQDuoBianXingStatis.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/FrmBSQStatis.cs b/FrmBSQStatis.cs
index 66767ee..e7c4926 100644
--- a/FrmBSQStatis.cs
+++ b/FrmBSQStatis.cs
@@ -18,9 +18,7 @@
{
public partial class FrmBSQStatis : Office2007Form
{
- public Dictionary bsq = new Dictionary();
- OracleConnection conn;
- string connectString;
+ private Dictionary bsq = new Dictionary();
private GSOGlobeControl globeControl1;
private GSOGeoPolygon3D polygon;
@@ -86,7 +84,7 @@
{
try
{
- conn = OledbHelper.sqlConnection();
+ OracleConnection conn = OledbHelper.sqlConnection();
conn.Open();
OracleCommand cmd;
cmd = new OracleCommand("select 对象类型 from 标识器", conn);
@@ -125,7 +123,7 @@
for (int i = 0; i < bsqFs.Length; i++)
{
- string str = bsqFs[i].GetValue("对象名称").ToString();
+ string str = bsqFs[i].GetValue("对象类型").ToString();
foreach (string key in codeAndType.Keys)
{
@@ -140,9 +138,8 @@
}
private void FrmBSQStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
+ {
globeControl1.Globe.ClearAnalysis();
- this.Close();
}
diff --git a/bin/x86/Debug/Cyberpipe.exe b/bin/x86/Debug/Cyberpipe.exe
index 15ba7e2..74fa226 100644
--- a/bin/x86/Debug/Cyberpipe.exe
+++ b/bin/x86/Debug/Cyberpipe.exe
Binary files differ
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmBSQDuoBianXingStatis.Designer.cs b/FrmBSQDuoBianXingStatis.Designer.cs
deleted file mode 100644
index bda6842..0000000
--- a/FrmBSQDuoBianXingStatis.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace Cyberpipe
-{
- partial class FrmBSQDuoBianXingStatis
- {
- ///
- /// 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.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.chart1);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(592, 384);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "统计结果信息";
- //
- // chart1
- //
- chartArea1.AxisX.MajorGrid.Enabled = false;
- chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
- chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
- chartArea1.Name = "ChartArea1";
- this.chart1.ChartAreas.Add(chartArea1);
- this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.chart1.Location = new System.Drawing.Point(3, 17);
- this.chart1.Name = "chart1";
- this.chart1.Size = new System.Drawing.Size(586, 364);
- this.chart1.TabIndex = 0;
- this.chart1.Text = "chart1";
- //
- // FrmBSQDuoBianXingStatis
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(592, 384);
- this.Controls.Add(this.groupBox1);
- this.DoubleBuffered = true;
- this.Name = "FrmBSQDuoBianXingStatis";
- this.ShowIcon = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "多边形区域统计";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBSQDuoBianXingStatis_FormClosing);
- this.Load += new System.EventHandler(this.FrmBSQDuoBianXingStatis_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
- }
-}
\ No newline at end of file
diff --git a/FrmBSQDuoBianXingStatis.cs b/FrmBSQDuoBianXingStatis.cs
deleted file mode 100644
index 80b567e..0000000
--- a/FrmBSQDuoBianXingStatis.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-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 System.Data.SqlClient;
-using System.Windows.Forms.DataVisualization.Charting;
-using GeoScene.Data;
-using GeoScene.Engine;
-using GeoScene.Globe;
-using System.Data.OracleClient;
-
-namespace Cyberpipe
-{
- public partial class FrmBSQDuoBianXingStatis : Office2007Form
- {
- Dictionary bsq = new Dictionary();
- Dictionary bsq1 = new Dictionary();
- static FrmBSQDuoBianXingStatis frm;
- GSOGlobeControl globeControl1;
- List list = new List();
- public static List pipeLists = new List();
-
- string[] codeStr = new string[50];
- string[] nameStr = new string[30];
- public static List typeLists;
-
- public FrmBSQDuoBianXingStatis(Dictionary workWellLen, GSOGlobeControl glb,List _list)
- {
- InitializeComponent();
- bsq = workWellLen;
- globeControl1 = glb;
- list = _list;
- }
-
- private void FrmBSQDuoBianXingStatis_Load(object sender, EventArgs e)
- {
- FrmBSQDuoBianXingStatisFenLei();
- try
- {
- chart1.Series.Add("标识器");
- chart1.ChartAreas["ChartArea1"].AxisX.Title = "标识器类型";
- chart1.ChartAreas["ChartArea1"].AxisY.Title = "标识器数量";
- chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
- chart1.Series["标识器"].ChartType = SeriesChartType.Column;
- chart1.Series["标识器"]["DrawingStyle"] = "Cylinder";
-
- chart1.Series["标识器"].Points.DataBindXY(bsq1.Keys, bsq1.Values);
- if (bsq1.Values.Count == 0)
- {
- MessageBox.Show("该区域没有标识器信息", "提示");
- this.Close();
- return;
- }
- else
- {
- for (int m = 0; m < bsq1.Values.Count; m++)
- {
- if (chart1.Series["标识器"].Points[m].YValues[0].ToString() != "0")
- {
- chart1.Series["标识器"].Points[m].Label = chart1.Series[0].Points[m].YValues[0].ToString();
- }
- }
- }
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- }
- }
-
- private void FrmBSQDuoBianXingStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
- frm = null;
- globeControl1.Globe.ClearAnalysis();
- globeControl1.Globe.MemoryLayer.RemoveAllFeature();
- }
-
-
- private void FrmBSQDuoBianXingStatisFenLei()
- {
- try
- {
- bool flag2 = false;
- for (int i = 0; i < Utility.listPipelineType.Count; i++)
- {
-
- for (int j = 0; j < pipeLists.Count; j++)
- {
- if (pipeLists[j] == Utility.listPipelineType[i].type)
- {
- flag2 = true;
- break;
- }
- }
- if (!flag2 && Utility.listPipelineType[i].type != "标识器")
- {
- pipeLists.Add(Utility.listPipelineType[i].type);
- }
- flag2 = false;
- }
-
- typeLists = new List();
- for (int num = 0; num < pipeLists.Count; num++)
- {
- typeList ls = new typeList(0, pipeLists[num]);
- typeLists.Add(ls);
- }
-
- GSOFeatures fs = list[0];
- string pipetype = "标识器";
- foreach (string key in bsq.Keys)
- {
- if (key.StartsWith(pipetype))
- {
- pipetype = key;
- break;
- }
- }
- if (fs.Length > 0)
- {
- for (int i = 0; i < fs.Length; i++)
- {
- string str = fs[i].GetValue("对象名称").ToString();
- codeStr = str.Split(',');
- for (int n = 0; n < codeStr.Length; n++)
- {
- for (int ii = 0; ii < Utility.listPipelineType.Count; ii++)
- {
- if (Utility.listPipelineType[ii].code == codeStr[n])
- {
- for (int m = 0; m < typeLists.Count; m++)
- {
- if (Utility.listPipelineType[ii].type == typeLists[m].type)
- {
- typeLists[m].num++;
- break;
- }
- }
- break;
- }
- }
- }
- }
- }
-
- for (int i = 0; i < typeLists.Count; i++)
- {
- if (typeLists[i].num > 0)
- bsq1.Add(typeLists[i].type, typeLists[i].num);
- }
-
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- //MessageBox.Show(ex.Message);
- }
-
- }
- public class typeList
- {
- public int num;
- public string type;
-
- public typeList(int _num, string _type)
- {
- num = _num;
- type = _type;
- }
- }
-
-
- }
-}
diff --git a/FrmBSQDuoBianXingStatis.resx b/FrmBSQDuoBianXingStatis.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/FrmBSQDuoBianXingStatis.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/FrmBSQStatis.cs b/FrmBSQStatis.cs
index 66767ee..e7c4926 100644
--- a/FrmBSQStatis.cs
+++ b/FrmBSQStatis.cs
@@ -18,9 +18,7 @@
{
public partial class FrmBSQStatis : Office2007Form
{
- public Dictionary bsq = new Dictionary();
- OracleConnection conn;
- string connectString;
+ private Dictionary bsq = new Dictionary();
private GSOGlobeControl globeControl1;
private GSOGeoPolygon3D polygon;
@@ -86,7 +84,7 @@
{
try
{
- conn = OledbHelper.sqlConnection();
+ OracleConnection conn = OledbHelper.sqlConnection();
conn.Open();
OracleCommand cmd;
cmd = new OracleCommand("select 对象类型 from 标识器", conn);
@@ -125,7 +123,7 @@
for (int i = 0; i < bsqFs.Length; i++)
{
- string str = bsqFs[i].GetValue("对象名称").ToString();
+ string str = bsqFs[i].GetValue("对象类型").ToString();
foreach (string key in codeAndType.Keys)
{
@@ -140,9 +138,8 @@
}
private void FrmBSQStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
+ {
globeControl1.Globe.ClearAnalysis();
- this.Close();
}
diff --git a/bin/x86/Debug/Cyberpipe.exe b/bin/x86/Debug/Cyberpipe.exe
index 15ba7e2..74fa226 100644
--- a/bin/x86/Debug/Cyberpipe.exe
+++ b/bin/x86/Debug/Cyberpipe.exe
Binary files differ
diff --git a/bin/x86/Debug/Cyberpipe.pdb b/bin/x86/Debug/Cyberpipe.pdb
index 111a519..6a41a02 100644
--- a/bin/x86/Debug/Cyberpipe.pdb
+++ b/bin/x86/Debug/Cyberpipe.pdb
Binary files differ
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmBSQDuoBianXingStatis.Designer.cs b/FrmBSQDuoBianXingStatis.Designer.cs
deleted file mode 100644
index bda6842..0000000
--- a/FrmBSQDuoBianXingStatis.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace Cyberpipe
-{
- partial class FrmBSQDuoBianXingStatis
- {
- ///
- /// 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.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.chart1);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(592, 384);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "统计结果信息";
- //
- // chart1
- //
- chartArea1.AxisX.MajorGrid.Enabled = false;
- chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
- chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
- chartArea1.Name = "ChartArea1";
- this.chart1.ChartAreas.Add(chartArea1);
- this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.chart1.Location = new System.Drawing.Point(3, 17);
- this.chart1.Name = "chart1";
- this.chart1.Size = new System.Drawing.Size(586, 364);
- this.chart1.TabIndex = 0;
- this.chart1.Text = "chart1";
- //
- // FrmBSQDuoBianXingStatis
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(592, 384);
- this.Controls.Add(this.groupBox1);
- this.DoubleBuffered = true;
- this.Name = "FrmBSQDuoBianXingStatis";
- this.ShowIcon = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "多边形区域统计";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBSQDuoBianXingStatis_FormClosing);
- this.Load += new System.EventHandler(this.FrmBSQDuoBianXingStatis_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
- }
-}
\ No newline at end of file
diff --git a/FrmBSQDuoBianXingStatis.cs b/FrmBSQDuoBianXingStatis.cs
deleted file mode 100644
index 80b567e..0000000
--- a/FrmBSQDuoBianXingStatis.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-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 System.Data.SqlClient;
-using System.Windows.Forms.DataVisualization.Charting;
-using GeoScene.Data;
-using GeoScene.Engine;
-using GeoScene.Globe;
-using System.Data.OracleClient;
-
-namespace Cyberpipe
-{
- public partial class FrmBSQDuoBianXingStatis : Office2007Form
- {
- Dictionary bsq = new Dictionary();
- Dictionary bsq1 = new Dictionary();
- static FrmBSQDuoBianXingStatis frm;
- GSOGlobeControl globeControl1;
- List list = new List();
- public static List pipeLists = new List();
-
- string[] codeStr = new string[50];
- string[] nameStr = new string[30];
- public static List typeLists;
-
- public FrmBSQDuoBianXingStatis(Dictionary workWellLen, GSOGlobeControl glb,List _list)
- {
- InitializeComponent();
- bsq = workWellLen;
- globeControl1 = glb;
- list = _list;
- }
-
- private void FrmBSQDuoBianXingStatis_Load(object sender, EventArgs e)
- {
- FrmBSQDuoBianXingStatisFenLei();
- try
- {
- chart1.Series.Add("标识器");
- chart1.ChartAreas["ChartArea1"].AxisX.Title = "标识器类型";
- chart1.ChartAreas["ChartArea1"].AxisY.Title = "标识器数量";
- chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
- chart1.Series["标识器"].ChartType = SeriesChartType.Column;
- chart1.Series["标识器"]["DrawingStyle"] = "Cylinder";
-
- chart1.Series["标识器"].Points.DataBindXY(bsq1.Keys, bsq1.Values);
- if (bsq1.Values.Count == 0)
- {
- MessageBox.Show("该区域没有标识器信息", "提示");
- this.Close();
- return;
- }
- else
- {
- for (int m = 0; m < bsq1.Values.Count; m++)
- {
- if (chart1.Series["标识器"].Points[m].YValues[0].ToString() != "0")
- {
- chart1.Series["标识器"].Points[m].Label = chart1.Series[0].Points[m].YValues[0].ToString();
- }
- }
- }
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- }
- }
-
- private void FrmBSQDuoBianXingStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
- frm = null;
- globeControl1.Globe.ClearAnalysis();
- globeControl1.Globe.MemoryLayer.RemoveAllFeature();
- }
-
-
- private void FrmBSQDuoBianXingStatisFenLei()
- {
- try
- {
- bool flag2 = false;
- for (int i = 0; i < Utility.listPipelineType.Count; i++)
- {
-
- for (int j = 0; j < pipeLists.Count; j++)
- {
- if (pipeLists[j] == Utility.listPipelineType[i].type)
- {
- flag2 = true;
- break;
- }
- }
- if (!flag2 && Utility.listPipelineType[i].type != "标识器")
- {
- pipeLists.Add(Utility.listPipelineType[i].type);
- }
- flag2 = false;
- }
-
- typeLists = new List();
- for (int num = 0; num < pipeLists.Count; num++)
- {
- typeList ls = new typeList(0, pipeLists[num]);
- typeLists.Add(ls);
- }
-
- GSOFeatures fs = list[0];
- string pipetype = "标识器";
- foreach (string key in bsq.Keys)
- {
- if (key.StartsWith(pipetype))
- {
- pipetype = key;
- break;
- }
- }
- if (fs.Length > 0)
- {
- for (int i = 0; i < fs.Length; i++)
- {
- string str = fs[i].GetValue("对象名称").ToString();
- codeStr = str.Split(',');
- for (int n = 0; n < codeStr.Length; n++)
- {
- for (int ii = 0; ii < Utility.listPipelineType.Count; ii++)
- {
- if (Utility.listPipelineType[ii].code == codeStr[n])
- {
- for (int m = 0; m < typeLists.Count; m++)
- {
- if (Utility.listPipelineType[ii].type == typeLists[m].type)
- {
- typeLists[m].num++;
- break;
- }
- }
- break;
- }
- }
- }
- }
- }
-
- for (int i = 0; i < typeLists.Count; i++)
- {
- if (typeLists[i].num > 0)
- bsq1.Add(typeLists[i].type, typeLists[i].num);
- }
-
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- //MessageBox.Show(ex.Message);
- }
-
- }
- public class typeList
- {
- public int num;
- public string type;
-
- public typeList(int _num, string _type)
- {
- num = _num;
- type = _type;
- }
- }
-
-
- }
-}
diff --git a/FrmBSQDuoBianXingStatis.resx b/FrmBSQDuoBianXingStatis.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/FrmBSQDuoBianXingStatis.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/FrmBSQStatis.cs b/FrmBSQStatis.cs
index 66767ee..e7c4926 100644
--- a/FrmBSQStatis.cs
+++ b/FrmBSQStatis.cs
@@ -18,9 +18,7 @@
{
public partial class FrmBSQStatis : Office2007Form
{
- public Dictionary bsq = new Dictionary();
- OracleConnection conn;
- string connectString;
+ private Dictionary bsq = new Dictionary();
private GSOGlobeControl globeControl1;
private GSOGeoPolygon3D polygon;
@@ -86,7 +84,7 @@
{
try
{
- conn = OledbHelper.sqlConnection();
+ OracleConnection conn = OledbHelper.sqlConnection();
conn.Open();
OracleCommand cmd;
cmd = new OracleCommand("select 对象类型 from 标识器", conn);
@@ -125,7 +123,7 @@
for (int i = 0; i < bsqFs.Length; i++)
{
- string str = bsqFs[i].GetValue("对象名称").ToString();
+ string str = bsqFs[i].GetValue("对象类型").ToString();
foreach (string key in codeAndType.Keys)
{
@@ -140,9 +138,8 @@
}
private void FrmBSQStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
+ {
globeControl1.Globe.ClearAnalysis();
- this.Close();
}
diff --git a/bin/x86/Debug/Cyberpipe.exe b/bin/x86/Debug/Cyberpipe.exe
index 15ba7e2..74fa226 100644
--- a/bin/x86/Debug/Cyberpipe.exe
+++ b/bin/x86/Debug/Cyberpipe.exe
Binary files differ
diff --git a/bin/x86/Debug/Cyberpipe.pdb b/bin/x86/Debug/Cyberpipe.pdb
index 111a519..6a41a02 100644
--- a/bin/x86/Debug/Cyberpipe.pdb
+++ b/bin/x86/Debug/Cyberpipe.pdb
Binary files differ
diff --git a/bin/x86/Debug/Cyberpipe.vshost.exe.manifest b/bin/x86/Debug/Cyberpipe.vshost.exe.manifest
deleted file mode 100644
index 061c9ca..0000000
--- a/bin/x86/Debug/Cyberpipe.vshost.exe.manifest
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 3a45ad8..d22f590 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -402,12 +402,6 @@
FrmBACKORACLE.cs
-
- Form
-
-
- FrmBSQDuoBianXingStatis.cs
-
Form
@@ -1271,9 +1265,6 @@
FrmBACKORACLE.cs
-
- FrmBSQDuoBianXingStatis.cs
-
FrmBSQStatis.cs
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index 526669a..c8e0001 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmBSQDuoBianXingStatis.Designer.cs b/FrmBSQDuoBianXingStatis.Designer.cs
deleted file mode 100644
index bda6842..0000000
--- a/FrmBSQDuoBianXingStatis.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace Cyberpipe
-{
- partial class FrmBSQDuoBianXingStatis
- {
- ///
- /// 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.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.chart1);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(592, 384);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "统计结果信息";
- //
- // chart1
- //
- chartArea1.AxisX.MajorGrid.Enabled = false;
- chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
- chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
- chartArea1.Name = "ChartArea1";
- this.chart1.ChartAreas.Add(chartArea1);
- this.chart1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.chart1.Location = new System.Drawing.Point(3, 17);
- this.chart1.Name = "chart1";
- this.chart1.Size = new System.Drawing.Size(586, 364);
- this.chart1.TabIndex = 0;
- this.chart1.Text = "chart1";
- //
- // FrmBSQDuoBianXingStatis
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(592, 384);
- this.Controls.Add(this.groupBox1);
- this.DoubleBuffered = true;
- this.Name = "FrmBSQDuoBianXingStatis";
- this.ShowIcon = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "多边形区域统计";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBSQDuoBianXingStatis_FormClosing);
- this.Load += new System.EventHandler(this.FrmBSQDuoBianXingStatis_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
- }
-}
\ No newline at end of file
diff --git a/FrmBSQDuoBianXingStatis.cs b/FrmBSQDuoBianXingStatis.cs
deleted file mode 100644
index 80b567e..0000000
--- a/FrmBSQDuoBianXingStatis.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-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 System.Data.SqlClient;
-using System.Windows.Forms.DataVisualization.Charting;
-using GeoScene.Data;
-using GeoScene.Engine;
-using GeoScene.Globe;
-using System.Data.OracleClient;
-
-namespace Cyberpipe
-{
- public partial class FrmBSQDuoBianXingStatis : Office2007Form
- {
- Dictionary bsq = new Dictionary();
- Dictionary bsq1 = new Dictionary();
- static FrmBSQDuoBianXingStatis frm;
- GSOGlobeControl globeControl1;
- List list = new List();
- public static List pipeLists = new List();
-
- string[] codeStr = new string[50];
- string[] nameStr = new string[30];
- public static List typeLists;
-
- public FrmBSQDuoBianXingStatis(Dictionary workWellLen, GSOGlobeControl glb,List _list)
- {
- InitializeComponent();
- bsq = workWellLen;
- globeControl1 = glb;
- list = _list;
- }
-
- private void FrmBSQDuoBianXingStatis_Load(object sender, EventArgs e)
- {
- FrmBSQDuoBianXingStatisFenLei();
- try
- {
- chart1.Series.Add("标识器");
- chart1.ChartAreas["ChartArea1"].AxisX.Title = "标识器类型";
- chart1.ChartAreas["ChartArea1"].AxisY.Title = "标识器数量";
- chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
- chart1.Series["标识器"].ChartType = SeriesChartType.Column;
- chart1.Series["标识器"]["DrawingStyle"] = "Cylinder";
-
- chart1.Series["标识器"].Points.DataBindXY(bsq1.Keys, bsq1.Values);
- if (bsq1.Values.Count == 0)
- {
- MessageBox.Show("该区域没有标识器信息", "提示");
- this.Close();
- return;
- }
- else
- {
- for (int m = 0; m < bsq1.Values.Count; m++)
- {
- if (chart1.Series["标识器"].Points[m].YValues[0].ToString() != "0")
- {
- chart1.Series["标识器"].Points[m].Label = chart1.Series[0].Points[m].YValues[0].ToString();
- }
- }
- }
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- }
- }
-
- private void FrmBSQDuoBianXingStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
- frm = null;
- globeControl1.Globe.ClearAnalysis();
- globeControl1.Globe.MemoryLayer.RemoveAllFeature();
- }
-
-
- private void FrmBSQDuoBianXingStatisFenLei()
- {
- try
- {
- bool flag2 = false;
- for (int i = 0; i < Utility.listPipelineType.Count; i++)
- {
-
- for (int j = 0; j < pipeLists.Count; j++)
- {
- if (pipeLists[j] == Utility.listPipelineType[i].type)
- {
- flag2 = true;
- break;
- }
- }
- if (!flag2 && Utility.listPipelineType[i].type != "标识器")
- {
- pipeLists.Add(Utility.listPipelineType[i].type);
- }
- flag2 = false;
- }
-
- typeLists = new List();
- for (int num = 0; num < pipeLists.Count; num++)
- {
- typeList ls = new typeList(0, pipeLists[num]);
- typeLists.Add(ls);
- }
-
- GSOFeatures fs = list[0];
- string pipetype = "标识器";
- foreach (string key in bsq.Keys)
- {
- if (key.StartsWith(pipetype))
- {
- pipetype = key;
- break;
- }
- }
- if (fs.Length > 0)
- {
- for (int i = 0; i < fs.Length; i++)
- {
- string str = fs[i].GetValue("对象名称").ToString();
- codeStr = str.Split(',');
- for (int n = 0; n < codeStr.Length; n++)
- {
- for (int ii = 0; ii < Utility.listPipelineType.Count; ii++)
- {
- if (Utility.listPipelineType[ii].code == codeStr[n])
- {
- for (int m = 0; m < typeLists.Count; m++)
- {
- if (Utility.listPipelineType[ii].type == typeLists[m].type)
- {
- typeLists[m].num++;
- break;
- }
- }
- break;
- }
- }
- }
- }
- }
-
- for (int i = 0; i < typeLists.Count; i++)
- {
- if (typeLists[i].num > 0)
- bsq1.Add(typeLists[i].type, typeLists[i].num);
- }
-
- }
- catch (Exception ex)
- {
- //ErrorLog.PublishError(ex);
- //MessageBox.Show(ex.Message);
- }
-
- }
- public class typeList
- {
- public int num;
- public string type;
-
- public typeList(int _num, string _type)
- {
- num = _num;
- type = _type;
- }
- }
-
-
- }
-}
diff --git a/FrmBSQDuoBianXingStatis.resx b/FrmBSQDuoBianXingStatis.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/FrmBSQDuoBianXingStatis.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/FrmBSQStatis.cs b/FrmBSQStatis.cs
index 66767ee..e7c4926 100644
--- a/FrmBSQStatis.cs
+++ b/FrmBSQStatis.cs
@@ -18,9 +18,7 @@
{
public partial class FrmBSQStatis : Office2007Form
{
- public Dictionary bsq = new Dictionary();
- OracleConnection conn;
- string connectString;
+ private Dictionary bsq = new Dictionary();
private GSOGlobeControl globeControl1;
private GSOGeoPolygon3D polygon;
@@ -86,7 +84,7 @@
{
try
{
- conn = OledbHelper.sqlConnection();
+ OracleConnection conn = OledbHelper.sqlConnection();
conn.Open();
OracleCommand cmd;
cmd = new OracleCommand("select 对象类型 from 标识器", conn);
@@ -125,7 +123,7 @@
for (int i = 0; i < bsqFs.Length; i++)
{
- string str = bsqFs[i].GetValue("对象名称").ToString();
+ string str = bsqFs[i].GetValue("对象类型").ToString();
foreach (string key in codeAndType.Keys)
{
@@ -140,9 +138,8 @@
}
private void FrmBSQStatis_FormClosing(object sender, FormClosingEventArgs e)
- {
+ {
globeControl1.Globe.ClearAnalysis();
- this.Close();
}
diff --git a/bin/x86/Debug/Cyberpipe.exe b/bin/x86/Debug/Cyberpipe.exe
index 15ba7e2..74fa226 100644
--- a/bin/x86/Debug/Cyberpipe.exe
+++ b/bin/x86/Debug/Cyberpipe.exe
Binary files differ
diff --git a/bin/x86/Debug/Cyberpipe.pdb b/bin/x86/Debug/Cyberpipe.pdb
index 111a519..6a41a02 100644
--- a/bin/x86/Debug/Cyberpipe.pdb
+++ b/bin/x86/Debug/Cyberpipe.pdb
Binary files differ
diff --git a/bin/x86/Debug/Cyberpipe.vshost.exe.manifest b/bin/x86/Debug/Cyberpipe.vshost.exe.manifest
deleted file mode 100644
index 061c9ca..0000000
--- a/bin/x86/Debug/Cyberpipe.vshost.exe.manifest
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/bin/x86/Debug/log/2016/201611/20161107.txt b/bin/x86/Debug/log/2016/201611/20161107.txt
new file mode 100644
index 0000000..d588178
--- /dev/null
+++ b/bin/x86/Debug/log/2016/201611/20161107.txt
@@ -0,0 +1,16 @@
+
+
+��¼ʱ�䣺2016-11-07 10:30:22,327
+�߳�ID:[9]
+��־���� ERROR
+�����ࣺCyberpipe.FrmBSQStatis property: [(null)] -
+����������1
+
+
+
+��¼ʱ�䣺2016-11-07 10:30:40,660
+�߳�ID:[9]
+��־���� ERROR
+�����ࣺCyberpipe.FrmBSQStatis property: [(null)] -
+����������0
+