Ver código fonte

Merge branch 'master' of http://49.232.243.74:3000/mux/jiance-analysis

# Conflicts:
#	DPTools/DevFrmMain.Designer.cs
#	DPTools/DevFrmMain.resx
#	DPTools/Uninpho.Railway.Tools.csproj
mux 2 meses atrás
pai
commit
e968a5d7df

+ 113 - 199
DPTools/DevFrmMain.Designer.cs

@@ -729,7 +729,6 @@
             this.gridColumn74 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.repositoryItemCheckEdit4 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
             this.panelControl5 = new DevExpress.XtraEditors.PanelControl();
-            this.DWGLcheckEdit = new DevExpress.XtraEditors.CheckEdit();
             this.DWGLdelBtn = new DevExpress.XtraEditors.SimpleButton();
             this.DWGLimportfileBtn = new DevExpress.XtraEditors.SimpleButton();
             this.DWGLanalysisBtn = new DevExpress.XtraEditors.SimpleButton();
@@ -749,10 +748,10 @@
             this.gridColumn75 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.repositoryItemCheckEdit5 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
             this.panelControl6 = new DevExpress.XtraEditors.PanelControl();
-            this.DWQKcheckEdit = new DevExpress.XtraEditors.CheckEdit();
             this.DWQKdelBtn = new DevExpress.XtraEditors.SimpleButton();
             this.DWQKimportfileBtn = new DevExpress.XtraEditors.SimpleButton();
             this.DWQKanalysisBtn = new DevExpress.XtraEditors.SimpleButton();
+            this.xtraTabPageDWZS = new DevExpress.XtraTab.XtraTabPage();
             this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
             ((System.ComponentModel.ISupportInitialize)(this.xrDesignRibbonController1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.ribbon)).BeginInit();
@@ -823,14 +822,12 @@
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit4)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).BeginInit();
             this.panelControl5.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DWGLcheckEdit.Properties)).BeginInit();
             this.xtraTabPageQK.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.gridControl5)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.gridView5)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit5)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.panelControl6)).BeginInit();
             this.panelControl6.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DWQKcheckEdit.Properties)).BeginInit();
             this.SuspendLayout();
             // 
             // xrDesignRibbonController1
@@ -1020,7 +1017,6 @@
             this.barButtonItem30,
             this.barButtonItem31});
             this.ribbon.Location = new System.Drawing.Point(0, 0);
-            this.ribbon.Margin = new System.Windows.Forms.Padding(4);
             this.ribbon.MaxItemId = 216;
             this.ribbon.MiniToolbars.Add(this.ribbonMiniToolbar1);
             this.ribbon.Name = "ribbon";
@@ -1037,7 +1033,7 @@
             this.repositoryItemCheckedComboBoxEdit1,
             this.repositoryItemCheckEdit1});
             this.ribbon.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2007;
-            this.ribbon.Size = new System.Drawing.Size(1664, 184);
+            this.ribbon.Size = new System.Drawing.Size(1331, 147);
             this.ribbon.StatusBar = this.ribbonStatusBar;
             this.ribbon.TransparentEditors = true;
             this.ribbon.Click += new System.EventHandler(this.ribbon_Click);
@@ -3598,7 +3594,6 @@
             this.DWSJBtn.Id = 209;
             this.DWSJBtn.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("DWSJBtn.LargeGlyph")));
             this.DWSJBtn.Name = "DWSJBtn";
-            this.DWSJBtn.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
             this.DWSJBtn.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.DWSJBtn_ItemClick);
             // 
             // barButtonItem29
@@ -3786,11 +3781,10 @@
             this.ribbonStatusBar.ItemLinks.Add(this.barButtonItem8);
             this.ribbonStatusBar.ItemLinks.Add(this.printPreviewStaticItem2);
             this.ribbonStatusBar.ItemLinks.Add(this.zoomTrackBarEditItem1);
-            this.ribbonStatusBar.Location = new System.Drawing.Point(0, 841);
-            this.ribbonStatusBar.Margin = new System.Windows.Forms.Padding(4);
+            this.ribbonStatusBar.Location = new System.Drawing.Point(0, 674);
             this.ribbonStatusBar.Name = "ribbonStatusBar";
             this.ribbonStatusBar.Ribbon = this.ribbon;
-            this.ribbonStatusBar.Size = new System.Drawing.Size(1664, 40);
+            this.ribbonStatusBar.Size = new System.Drawing.Size(1331, 31);
             this.ribbonStatusBar.Visible = false;
             // 
             // xrDesignDockManager1
@@ -4100,32 +4094,28 @@
             // 
             // xtraTabDataManager
             // 
-            this.xtraTabDataManager.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabDataManager.Name = "xtraTabDataManager";
-            this.xtraTabDataManager.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabDataManager.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabDataManager.Text = "工务数据展示";
             // 
             // xtraTabPageLGL
             // 
             this.xtraTabPageLGL.Controls.Add(this.gridControl3);
             this.xtraTabPageLGL.Controls.Add(this.panelControl4);
-            this.xtraTabPageLGL.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabPageLGL.Name = "xtraTabPageLGL";
             this.xtraTabPageLGL.PageVisible = false;
-            this.xtraTabPageLGL.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageLGL.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageLGL.Text = "轮轨力数据分析";
             // 
             // gridControl3
             // 
             this.gridControl3.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.gridControl3.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
-            this.gridControl3.Location = new System.Drawing.Point(0, 60);
+            this.gridControl3.Location = new System.Drawing.Point(0, 48);
             this.gridControl3.MainView = this.gridView3;
-            this.gridControl3.Margin = new System.Windows.Forms.Padding(4);
             this.gridControl3.Name = "gridControl3";
             this.gridControl3.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
             this.repositoryItemCheckEdit2});
-            this.gridControl3.Size = new System.Drawing.Size(1657, 561);
+            this.gridControl3.Size = new System.Drawing.Size(1325, 450);
             this.gridControl3.TabIndex = 15;
             this.gridControl3.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
             this.gridView3});
@@ -4294,27 +4284,24 @@
             this.panelControl4.Controls.Add(this.LGLjiancecheBtn);
             this.panelControl4.Dock = System.Windows.Forms.DockStyle.Top;
             this.panelControl4.Location = new System.Drawing.Point(0, 0);
-            this.panelControl4.Margin = new System.Windows.Forms.Padding(4);
             this.panelControl4.Name = "panelControl4";
-            this.panelControl4.Size = new System.Drawing.Size(1657, 60);
+            this.panelControl4.Size = new System.Drawing.Size(1325, 48);
             this.panelControl4.TabIndex = 11;
             // 
             // LGLTQBtn
             // 
-            this.LGLTQBtn.Location = new System.Drawing.Point(432, 19);
-            this.LGLTQBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.LGLTQBtn.Location = new System.Drawing.Point(346, 15);
             this.LGLTQBtn.Name = "LGLTQBtn";
-            this.LGLTQBtn.Size = new System.Drawing.Size(94, 29);
+            this.LGLTQBtn.Size = new System.Drawing.Size(75, 23);
             this.LGLTQBtn.TabIndex = 5;
             this.LGLTQBtn.Text = "轮轨力分析";
             this.LGLTQBtn.Click += new System.EventHandler(this.LGLTQBtn_Click);
             // 
             // LGLFXBtn
             // 
-            this.LGLFXBtn.Location = new System.Drawing.Point(571, 19);
-            this.LGLFXBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.LGLFXBtn.Location = new System.Drawing.Point(457, 15);
             this.LGLFXBtn.Name = "LGLFXBtn";
-            this.LGLFXBtn.Size = new System.Drawing.Size(94, 29);
+            this.LGLFXBtn.Size = new System.Drawing.Size(75, 23);
             this.LGLFXBtn.TabIndex = 5;
             this.LGLFXBtn.Text = "道岔分析";
             this.LGLFXBtn.Visible = false;
@@ -4323,54 +4310,49 @@
             // LGLdelBtn
             // 
             this.LGLdelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.LGLdelBtn.Location = new System.Drawing.Point(1522, 19);
-            this.LGLdelBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.LGLdelBtn.Location = new System.Drawing.Point(1217, 15);
             this.LGLdelBtn.Name = "LGLdelBtn";
-            this.LGLdelBtn.Size = new System.Drawing.Size(90, 29);
+            this.LGLdelBtn.Size = new System.Drawing.Size(72, 23);
             this.LGLdelBtn.TabIndex = 5;
             this.LGLdelBtn.Text = " 删除选中";
             this.LGLdelBtn.Click += new System.EventHandler(this.DelJHFXBtn_Click);
             // 
             // LGLJCCcomboBoxEdit
             // 
-            this.LGLJCCcomboBoxEdit.Location = new System.Drawing.Point(89, 20);
-            this.LGLJCCcomboBoxEdit.Margin = new System.Windows.Forms.Padding(4);
+            this.LGLJCCcomboBoxEdit.Location = new System.Drawing.Point(71, 16);
             this.LGLJCCcomboBoxEdit.MenuManager = this.xrDesignRibbonController1;
             this.LGLJCCcomboBoxEdit.Name = "LGLJCCcomboBoxEdit";
             this.LGLJCCcomboBoxEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
-            this.LGLJCCcomboBoxEdit.Size = new System.Drawing.Size(152, 24);
+            this.LGLJCCcomboBoxEdit.Size = new System.Drawing.Size(122, 20);
             this.LGLJCCcomboBoxEdit.TabIndex = 9;
             // 
             // LGLcheckEdit
             // 
             this.LGLcheckEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.LGLcheckEdit.Location = new System.Drawing.Point(1345, 20);
-            this.LGLcheckEdit.Margin = new System.Windows.Forms.Padding(4);
+            this.LGLcheckEdit.Location = new System.Drawing.Point(1075, 16);
             this.LGLcheckEdit.MenuManager = this.xrDesignRibbonController1;
             this.LGLcheckEdit.Name = "LGLcheckEdit";
             this.LGLcheckEdit.Properties.Caption = "浏览文件夹";
-            this.LGLcheckEdit.Size = new System.Drawing.Size(111, 22);
+            this.LGLcheckEdit.Size = new System.Drawing.Size(89, 19);
             this.LGLcheckEdit.TabIndex = 5;
             this.LGLcheckEdit.Visible = false;
             // 
             // LGLOpenfileBtn
             // 
             this.LGLOpenfileBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.LGLOpenfileBtn.Location = new System.Drawing.Point(1242, 19);
-            this.LGLOpenfileBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.LGLOpenfileBtn.Location = new System.Drawing.Point(993, 15);
             this.LGLOpenfileBtn.Name = "LGLOpenfileBtn";
-            this.LGLOpenfileBtn.Size = new System.Drawing.Size(94, 29);
+            this.LGLOpenfileBtn.Size = new System.Drawing.Size(75, 23);
             this.LGLOpenfileBtn.TabIndex = 0;
             this.LGLOpenfileBtn.Text = "浏览";
             this.LGLOpenfileBtn.Click += new System.EventHandler(this.LGLOpenfileBtn_Click);
             // 
             // LGLgengxinBtn
             // 
-            this.LGLgengxinBtn.Location = new System.Drawing.Point(26, 19);
-            this.LGLgengxinBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.LGLgengxinBtn.Location = new System.Drawing.Point(21, 15);
             this.LGLgengxinBtn.Name = "LGLgengxinBtn";
-            this.LGLgengxinBtn.Size = new System.Drawing.Size(55, 29);
+            this.LGLgengxinBtn.Size = new System.Drawing.Size(44, 23);
             this.LGLgengxinBtn.TabIndex = 5;
             this.LGLgengxinBtn.Text = "更新";
             this.LGLgengxinBtn.ToolTip = "更新检测车信息";
@@ -4378,10 +4360,9 @@
             // 
             // LGLjiancecheBtn
             // 
-            this.LGLjiancecheBtn.Location = new System.Drawing.Point(249, 19);
-            this.LGLjiancecheBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.LGLjiancecheBtn.Location = new System.Drawing.Point(199, 15);
             this.LGLjiancecheBtn.Name = "LGLjiancecheBtn";
-            this.LGLjiancecheBtn.Size = new System.Drawing.Size(125, 29);
+            this.LGLjiancecheBtn.Size = new System.Drawing.Size(100, 23);
             this.LGLjiancecheBtn.TabIndex = 5;
             this.LGLjiancecheBtn.Text = " 修正检测车信息";
             this.LGLjiancecheBtn.ToolTip = "修正选中文件的检测车信息";
@@ -4391,22 +4372,19 @@
             // 
             this.xtraTabPageJH.Controls.Add(this.gridControl2);
             this.xtraTabPageJH.Controls.Add(this.panelControl1);
-            this.xtraTabPageJH.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabPageJH.Name = "xtraTabPageJH";
-            this.xtraTabPageJH.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageJH.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageJH.Text = "轨道几何数据分析";
             // 
             // gridControl2
             // 
             this.gridControl2.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.gridControl2.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
-            this.gridControl2.Location = new System.Drawing.Point(0, 60);
+            this.gridControl2.Location = new System.Drawing.Point(0, 48);
             this.gridControl2.MainView = this.gridView2;
-            this.gridControl2.Margin = new System.Windows.Forms.Padding(4);
             this.gridControl2.Name = "gridControl2";
             this.gridControl2.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
             this.repositoryItemCheckEdit3});
-            this.gridControl2.Size = new System.Drawing.Size(1657, 561);
+            this.gridControl2.Size = new System.Drawing.Size(1325, 450);
             this.gridControl2.TabIndex = 14;
             this.gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
             this.gridView2});
@@ -4588,18 +4566,16 @@
             this.panelControl1.Controls.Add(this.JHFXJCCcomboBoxEdit);
             this.panelControl1.Dock = System.Windows.Forms.DockStyle.Top;
             this.panelControl1.Location = new System.Drawing.Point(0, 0);
-            this.panelControl1.Margin = new System.Windows.Forms.Padding(4);
             this.panelControl1.Name = "panelControl1";
-            this.panelControl1.Size = new System.Drawing.Size(1657, 60);
+            this.panelControl1.Size = new System.Drawing.Size(1325, 48);
             this.panelControl1.TabIndex = 3;
             // 
             // JHdelBtn
             // 
             this.JHdelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.JHdelBtn.Location = new System.Drawing.Point(1522, 19);
-            this.JHdelBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.JHdelBtn.Location = new System.Drawing.Point(1217, 15);
             this.JHdelBtn.Name = "JHdelBtn";
-            this.JHdelBtn.Size = new System.Drawing.Size(90, 29);
+            this.JHdelBtn.Size = new System.Drawing.Size(72, 23);
             this.JHdelBtn.TabIndex = 9;
             this.JHdelBtn.Text = " 删除选中";
             this.JHdelBtn.Click += new System.EventHandler(this.DelJHFXBtn_Click);
@@ -4607,41 +4583,37 @@
             // JHFXcheckEdit
             // 
             this.JHFXcheckEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.JHFXcheckEdit.Location = new System.Drawing.Point(1345, 20);
-            this.JHFXcheckEdit.Margin = new System.Windows.Forms.Padding(4);
+            this.JHFXcheckEdit.Location = new System.Drawing.Point(1075, 16);
             this.JHFXcheckEdit.MenuManager = this.xrDesignRibbonController1;
             this.JHFXcheckEdit.Name = "JHFXcheckEdit";
             this.JHFXcheckEdit.Properties.Caption = "浏览文件夹";
-            this.JHFXcheckEdit.Size = new System.Drawing.Size(111, 22);
+            this.JHFXcheckEdit.Size = new System.Drawing.Size(89, 19);
             this.JHFXcheckEdit.TabIndex = 4;
             this.JHFXcheckEdit.Visible = false;
             // 
             // WXSFBtn
             // 
-            this.WXSFBtn.Location = new System.Drawing.Point(574, 19);
-            this.WXSFBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.WXSFBtn.Location = new System.Drawing.Point(459, 15);
             this.WXSFBtn.Name = "WXSFBtn";
-            this.WXSFBtn.Size = new System.Drawing.Size(94, 29);
+            this.WXSFBtn.Size = new System.Drawing.Size(75, 23);
             this.WXSFBtn.TabIndex = 5;
             this.WXSFBtn.Text = "微小算法";
             this.WXSFBtn.Click += new System.EventHandler(this.WXSFBtn_Click);
             // 
             // JHTQBtn
             // 
-            this.JHTQBtn.Location = new System.Drawing.Point(432, 19);
-            this.JHTQBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.JHTQBtn.Location = new System.Drawing.Point(346, 15);
             this.JHTQBtn.Name = "JHTQBtn";
-            this.JHTQBtn.Size = new System.Drawing.Size(94, 29);
+            this.JHTQBtn.Size = new System.Drawing.Size(75, 23);
             this.JHTQBtn.TabIndex = 5;
             this.JHTQBtn.Text = "几何分析";
             this.JHTQBtn.Click += new System.EventHandler(this.JHTQBtn_Click);
             // 
             // JHgengxinBtn
             // 
-            this.JHgengxinBtn.Location = new System.Drawing.Point(29, 19);
-            this.JHgengxinBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.JHgengxinBtn.Location = new System.Drawing.Point(23, 15);
             this.JHgengxinBtn.Name = "JHgengxinBtn";
-            this.JHgengxinBtn.Size = new System.Drawing.Size(55, 29);
+            this.JHgengxinBtn.Size = new System.Drawing.Size(44, 23);
             this.JHgengxinBtn.TabIndex = 10;
             this.JHgengxinBtn.Text = "更新";
             this.JHgengxinBtn.ToolTip = "更新检测车信息";
@@ -4649,10 +4621,9 @@
             // 
             // JHFXjiancecheBtn
             // 
-            this.JHFXjiancecheBtn.Location = new System.Drawing.Point(251, 19);
-            this.JHFXjiancecheBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.JHFXjiancecheBtn.Location = new System.Drawing.Point(201, 15);
             this.JHFXjiancecheBtn.Name = "JHFXjiancecheBtn";
-            this.JHFXjiancecheBtn.Size = new System.Drawing.Size(125, 29);
+            this.JHFXjiancecheBtn.Size = new System.Drawing.Size(100, 23);
             this.JHFXjiancecheBtn.TabIndex = 8;
             this.JHFXjiancecheBtn.Text = " 修正检测车信息";
             this.JHFXjiancecheBtn.ToolTip = "修正选中文件的检测车信息";
@@ -4661,41 +4632,38 @@
             // JHFXopenfileBtn
             // 
             this.JHFXopenfileBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.JHFXopenfileBtn.Location = new System.Drawing.Point(1242, 19);
-            this.JHFXopenfileBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.JHFXopenfileBtn.Location = new System.Drawing.Point(993, 15);
             this.JHFXopenfileBtn.Name = "JHFXopenfileBtn";
-            this.JHFXopenfileBtn.Size = new System.Drawing.Size(94, 29);
+            this.JHFXopenfileBtn.Size = new System.Drawing.Size(75, 23);
             this.JHFXopenfileBtn.TabIndex = 0;
             this.JHFXopenfileBtn.Text = "浏览";
             this.JHFXopenfileBtn.Click += new System.EventHandler(this.JHFXopenfileBtn_Click);
             // 
             // JHFXJCCcomboBoxEdit
             // 
-            this.JHFXJCCcomboBoxEdit.Location = new System.Drawing.Point(91, 20);
-            this.JHFXJCCcomboBoxEdit.Margin = new System.Windows.Forms.Padding(4);
+            this.JHFXJCCcomboBoxEdit.Location = new System.Drawing.Point(73, 16);
             this.JHFXJCCcomboBoxEdit.MenuManager = this.xrDesignRibbonController1;
             this.JHFXJCCcomboBoxEdit.Name = "JHFXJCCcomboBoxEdit";
             this.JHFXJCCcomboBoxEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
-            this.JHFXJCCcomboBoxEdit.Size = new System.Drawing.Size(152, 24);
+            this.JHFXJCCcomboBoxEdit.Size = new System.Drawing.Size(122, 20);
             this.JHFXJCCcomboBoxEdit.TabIndex = 7;
             this.JHFXJCCcomboBoxEdit.SelectedIndexChanged += new System.EventHandler(this.JHFXJCCcomboBoxEdit_SelectedIndexChanged);
             // 
             // xtraTabPageGJ
             // 
             this.xtraTabPageGJ.Controls.Add(this.gjInform9);
-            this.xtraTabPageGJ.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabPageGJ.Name = "xtraTabPageGJ";
-            this.xtraTabPageGJ.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageGJ.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageGJ.Text = "管界信息管理";
             // 
             // gjInform9
             // 
             this.gjInform9.Dock = System.Windows.Forms.DockStyle.Fill;
             this.gjInform9.Location = new System.Drawing.Point(0, 0);
-            this.gjInform9.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.gjInform9.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
             this.gjInform9.Name = "gjInform9";
-            this.gjInform9.Size = new System.Drawing.Size(1657, 621);
+            this.gjInform9.Size = new System.Drawing.Size(1325, 498);
             this.gjInform9.TabIndex = 0;
             this.gjInform9.Load += new System.EventHandler(this.gjInform9_Load);
             // 
@@ -4704,22 +4672,19 @@
             this.xtraTabPageQX.Controls.Add(this.gridControl1);
             this.xtraTabPageQX.Controls.Add(this.panelControl3);
             this.xtraTabPageQX.Controls.Add(this.panelControl2);
-            this.xtraTabPageQX.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabPageQX.Name = "xtraTabPageQX";
             this.xtraTabPageQX.ShowCloseButton = DevExpress.Utils.DefaultBoolean.False;
-            this.xtraTabPageQX.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageQX.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageQX.Text = "曲线信息管理";
             // 
             // gridControl1
             // 
             this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.gridControl1.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
-            this.gridControl1.Location = new System.Drawing.Point(0, 46);
+            this.gridControl1.Location = new System.Drawing.Point(0, 37);
             this.gridControl1.MainView = this.railwaybureau;
-            this.gridControl1.Margin = new System.Windows.Forms.Padding(4);
             this.gridControl1.MenuManager = this.xrDesignRibbonController1;
             this.gridControl1.Name = "gridControl1";
-            this.gridControl1.Size = new System.Drawing.Size(1657, 575);
+            this.gridControl1.Size = new System.Drawing.Size(1325, 461);
             this.gridControl1.TabIndex = 0;
             this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
             this.railwaybureau,
@@ -4961,10 +4926,9 @@
             // panelControl3
             // 
             this.panelControl3.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.panelControl3.Location = new System.Drawing.Point(0, 46);
-            this.panelControl3.Margin = new System.Windows.Forms.Padding(4);
+            this.panelControl3.Location = new System.Drawing.Point(0, 37);
             this.panelControl3.Name = "panelControl3";
-            this.panelControl3.Size = new System.Drawing.Size(1657, 575);
+            this.panelControl3.Size = new System.Drawing.Size(1325, 461);
             this.panelControl3.TabIndex = 2;
             // 
             // panelControl2
@@ -4972,17 +4936,15 @@
             this.panelControl2.Controls.Add(this.deleteroebtnqx);
             this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top;
             this.panelControl2.Location = new System.Drawing.Point(0, 0);
-            this.panelControl2.Margin = new System.Windows.Forms.Padding(4);
             this.panelControl2.Name = "panelControl2";
-            this.panelControl2.Size = new System.Drawing.Size(1657, 46);
+            this.panelControl2.Size = new System.Drawing.Size(1325, 37);
             this.panelControl2.TabIndex = 1;
             // 
             // deleteroebtnqx
             // 
-            this.deleteroebtnqx.Location = new System.Drawing.Point(26, 10);
-            this.deleteroebtnqx.Margin = new System.Windows.Forms.Padding(4);
+            this.deleteroebtnqx.Location = new System.Drawing.Point(21, 8);
             this.deleteroebtnqx.Name = "deleteroebtnqx";
-            this.deleteroebtnqx.Size = new System.Drawing.Size(94, 29);
+            this.deleteroebtnqx.Size = new System.Drawing.Size(75, 23);
             this.deleteroebtnqx.TabIndex = 0;
             this.deleteroebtnqx.Text = "删除选中行";
             this.deleteroebtnqx.Click += new System.EventHandler(this.deleteroebtnqx_Click);
@@ -4991,11 +4953,10 @@
             // 
             this.xtraTabControl1.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InAllTabPageHeaders;
             this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.xtraTabControl1.Location = new System.Drawing.Point(0, 184);
-            this.xtraTabControl1.Margin = new System.Windows.Forms.Padding(4);
+            this.xtraTabControl1.Location = new System.Drawing.Point(0, 147);
             this.xtraTabControl1.Name = "xtraTabControl1";
             this.xtraTabControl1.SelectedTabPage = this.xtraTabPageQX;
-            this.xtraTabControl1.Size = new System.Drawing.Size(1664, 657);
+            this.xtraTabControl1.Size = new System.Drawing.Size(1331, 527);
             this.xtraTabControl1.TabIndex = 2;
             this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
             this.xtraTabPageQX,
@@ -5010,15 +4971,15 @@
             this.xtraTabPageXXXW,
             this.xtraTabDataManager,
             this.xtraTabPageGL,
-            this.xtraTabPageQK});
+            this.xtraTabPageQK,
+            this.xtraTabPageDWZS});
             this.xtraTabControl1.CloseButtonClick += new System.EventHandler(this.xtraTabControl1_CloseButtonClick);
             // 
             // xtraTabPageDC
             // 
             this.xtraTabPageDC.Controls.Add(this.dcInform8);
-            this.xtraTabPageDC.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabPageDC.Name = "xtraTabPageDC";
-            this.xtraTabPageDC.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageDC.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageDC.Text = "道岔信息管理";
             this.xtraTabPageDC.Paint += new System.Windows.Forms.PaintEventHandler(this.xtraTabPage2_Paint);
             // 
@@ -5026,9 +4987,9 @@
             // 
             this.dcInform8.Dock = System.Windows.Forms.DockStyle.Fill;
             this.dcInform8.Location = new System.Drawing.Point(0, 0);
-            this.dcInform8.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.dcInform8.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
             this.dcInform8.Name = "dcInform8";
-            this.dcInform8.Size = new System.Drawing.Size(1657, 621);
+            this.dcInform8.Size = new System.Drawing.Size(1325, 498);
             this.dcInform8.TabIndex = 0;
             this.dcInform8.Load += new System.EventHandler(this.dcInform8_Load);
             // 
@@ -5038,20 +4999,18 @@
             this.xtraTabPageGLData.Controls.Add(this.panelControl7);
             this.xtraTabPageGLData.Margin = new System.Windows.Forms.Padding(2);
             this.xtraTabPageGLData.Name = "xtraTabPageGLData";
-            this.xtraTabPageGLData.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageGLData.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageGLData.Text = "功率数据管理";
             // 
             // gridControl6
             // 
             this.gridControl6.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.gridControl6.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
-            this.gridControl6.Location = new System.Drawing.Point(0, 60);
+            this.gridControl6.Location = new System.Drawing.Point(0, 48);
             this.gridControl6.MainView = this.gridView6;
-            this.gridControl6.Margin = new System.Windows.Forms.Padding(4);
             this.gridControl6.Name = "gridControl6";
             this.gridControl6.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
             this.repositoryItemCheckEdit6});
-            this.gridControl6.Size = new System.Drawing.Size(1657, 561);
+            this.gridControl6.Size = new System.Drawing.Size(1325, 450);
             this.gridControl6.TabIndex = 20;
             this.gridControl6.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
             this.gridView6});
@@ -5131,18 +5090,16 @@
             this.panelControl7.Controls.Add(this.deleteGLdata);
             this.panelControl7.Dock = System.Windows.Forms.DockStyle.Top;
             this.panelControl7.Location = new System.Drawing.Point(0, 0);
-            this.panelControl7.Margin = new System.Windows.Forms.Padding(4);
             this.panelControl7.Name = "panelControl7";
-            this.panelControl7.Size = new System.Drawing.Size(1657, 60);
+            this.panelControl7.Size = new System.Drawing.Size(1325, 48);
             this.panelControl7.TabIndex = 19;
             // 
             // importGLData
             // 
             this.importGLData.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.importGLData.Location = new System.Drawing.Point(1415, 19);
-            this.importGLData.Margin = new System.Windows.Forms.Padding(4);
+            this.importGLData.Location = new System.Drawing.Point(1131, 15);
             this.importGLData.Name = "importGLData";
-            this.importGLData.Size = new System.Drawing.Size(90, 29);
+            this.importGLData.Size = new System.Drawing.Size(72, 23);
             this.importGLData.TabIndex = 6;
             this.importGLData.Text = "导入";
             this.importGLData.Click += new System.EventHandler(this.importGLData_Click);
@@ -5150,10 +5107,9 @@
             // deleteGLdata
             // 
             this.deleteGLdata.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.deleteGLdata.Location = new System.Drawing.Point(1522, 19);
-            this.deleteGLdata.Margin = new System.Windows.Forms.Padding(4);
+            this.deleteGLdata.Location = new System.Drawing.Point(1217, 15);
             this.deleteGLdata.Name = "deleteGLdata";
-            this.deleteGLdata.Size = new System.Drawing.Size(90, 29);
+            this.deleteGLdata.Size = new System.Drawing.Size(72, 23);
             this.deleteGLdata.TabIndex = 5;
             this.deleteGLdata.Text = " 删除选中";
             this.deleteGLdata.Click += new System.EventHandler(this.deleteGLdata_Click);
@@ -5164,20 +5120,18 @@
             this.xtraTabPageQKData.Controls.Add(this.panelControl8);
             this.xtraTabPageQKData.Margin = new System.Windows.Forms.Padding(2);
             this.xtraTabPageQKData.Name = "xtraTabPageQKData";
-            this.xtraTabPageQKData.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageQKData.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageQKData.Text = "缺口数据管理";
             // 
             // gridControl7
             // 
             this.gridControl7.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.gridControl7.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
-            this.gridControl7.Location = new System.Drawing.Point(0, 60);
+            this.gridControl7.Location = new System.Drawing.Point(0, 48);
             this.gridControl7.MainView = this.gridView7;
-            this.gridControl7.Margin = new System.Windows.Forms.Padding(4);
             this.gridControl7.Name = "gridControl7";
             this.gridControl7.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
             this.repositoryItemCheckEdit7});
-            this.gridControl7.Size = new System.Drawing.Size(1657, 561);
+            this.gridControl7.Size = new System.Drawing.Size(1325, 450);
             this.gridControl7.TabIndex = 22;
             this.gridControl7.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
             this.gridView7});
@@ -5267,18 +5221,16 @@
             this.panelControl8.Controls.Add(this.deleteQKdata);
             this.panelControl8.Dock = System.Windows.Forms.DockStyle.Top;
             this.panelControl8.Location = new System.Drawing.Point(0, 0);
-            this.panelControl8.Margin = new System.Windows.Forms.Padding(4);
             this.panelControl8.Name = "panelControl8";
-            this.panelControl8.Size = new System.Drawing.Size(1657, 60);
+            this.panelControl8.Size = new System.Drawing.Size(1325, 48);
             this.panelControl8.TabIndex = 21;
             // 
             // simpleButton1
             // 
             this.simpleButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.simpleButton1.Location = new System.Drawing.Point(1415, 19);
-            this.simpleButton1.Margin = new System.Windows.Forms.Padding(4);
+            this.simpleButton1.Location = new System.Drawing.Point(1131, 15);
             this.simpleButton1.Name = "simpleButton1";
-            this.simpleButton1.Size = new System.Drawing.Size(90, 29);
+            this.simpleButton1.Size = new System.Drawing.Size(72, 23);
             this.simpleButton1.TabIndex = 6;
             this.simpleButton1.Text = "导入";
             this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
@@ -5286,36 +5238,32 @@
             // deleteQKdata
             // 
             this.deleteQKdata.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.deleteQKdata.Location = new System.Drawing.Point(1522, 19);
-            this.deleteQKdata.Margin = new System.Windows.Forms.Padding(4);
+            this.deleteQKdata.Location = new System.Drawing.Point(1217, 15);
             this.deleteQKdata.Name = "deleteQKdata";
-            this.deleteQKdata.Size = new System.Drawing.Size(90, 29);
+            this.deleteQKdata.Size = new System.Drawing.Size(72, 23);
             this.deleteQKdata.TabIndex = 5;
             this.deleteQKdata.Text = " 删除选中";
             this.deleteQKdata.Click += new System.EventHandler(this.deleteQKdata_Click);
             // 
             // xtraTabPageMTLF
             // 
-            this.xtraTabPageMTLF.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabPageMTLF.Name = "xtraTabPageMTLF";
             this.xtraTabPageMTLF.PageVisible = false;
-            this.xtraTabPageMTLF.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageMTLF.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageMTLF.Text = "密贴离缝";
             // 
             // xtraTabPageZZJH
             // 
-            this.xtraTabPageZZJH.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabPageZZJH.Name = "xtraTabPageZZJH";
             this.xtraTabPageZZJH.PageVisible = false;
-            this.xtraTabPageZZJH.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageZZJH.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageZZJH.Text = "逐枕几何";
             // 
             // xtraTabPageXXXW
             // 
-            this.xtraTabPageXXXW.Margin = new System.Windows.Forms.Padding(4);
             this.xtraTabPageXXXW.Name = "xtraTabPageXXXW";
             this.xtraTabPageXXXW.PageVisible = false;
-            this.xtraTabPageXXXW.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageXXXW.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageXXXW.Text = "线形线位";
             // 
             // xtraTabPageGL
@@ -5324,20 +5272,18 @@
             this.xtraTabPageGL.Controls.Add(this.panelControl5);
             this.xtraTabPageGL.Margin = new System.Windows.Forms.Padding(2);
             this.xtraTabPageGL.Name = "xtraTabPageGL";
-            this.xtraTabPageGL.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageGL.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageGL.Text = "功率分析";
             // 
             // gridControl4
             // 
             this.gridControl4.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.gridControl4.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
-            this.gridControl4.Location = new System.Drawing.Point(0, 60);
+            this.gridControl4.Location = new System.Drawing.Point(0, 48);
             this.gridControl4.MainView = this.gridView4;
-            this.gridControl4.Margin = new System.Windows.Forms.Padding(4);
             this.gridControl4.Name = "gridControl4";
             this.gridControl4.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
             this.repositoryItemCheckEdit4});
-            this.gridControl4.Size = new System.Drawing.Size(1657, 561);
+            this.gridControl4.Size = new System.Drawing.Size(1325, 450);
             this.gridControl4.TabIndex = 17;
             this.gridControl4.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
             this.gridView4});
@@ -5482,36 +5428,21 @@
             // 
             // panelControl5
             // 
-            this.panelControl5.Controls.Add(this.DWGLcheckEdit);
             this.panelControl5.Controls.Add(this.DWGLdelBtn);
             this.panelControl5.Controls.Add(this.DWGLimportfileBtn);
             this.panelControl5.Controls.Add(this.DWGLanalysisBtn);
             this.panelControl5.Dock = System.Windows.Forms.DockStyle.Top;
             this.panelControl5.Location = new System.Drawing.Point(0, 0);
-            this.panelControl5.Margin = new System.Windows.Forms.Padding(4);
             this.panelControl5.Name = "panelControl5";
-            this.panelControl5.Size = new System.Drawing.Size(1657, 60);
+            this.panelControl5.Size = new System.Drawing.Size(1325, 48);
             this.panelControl5.TabIndex = 12;
             // 
-            // DWGLcheckEdit
-            // 
-            this.DWGLcheckEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.DWGLcheckEdit.Location = new System.Drawing.Point(1356, 20);
-            this.DWGLcheckEdit.Margin = new System.Windows.Forms.Padding(2);
-            this.DWGLcheckEdit.MenuManager = this.xrDesignRibbonController1;
-            this.DWGLcheckEdit.Name = "DWGLcheckEdit";
-            this.DWGLcheckEdit.Properties.Caption = "浏览文件夹";
-            this.DWGLcheckEdit.Size = new System.Drawing.Size(121, 22);
-            this.DWGLcheckEdit.TabIndex = 17;
-            this.DWGLcheckEdit.Visible = false;
-            // 
             // DWGLdelBtn
             // 
             this.DWGLdelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.DWGLdelBtn.Location = new System.Drawing.Point(1522, 19);
-            this.DWGLdelBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.DWGLdelBtn.Location = new System.Drawing.Point(1217, 15);
             this.DWGLdelBtn.Name = "DWGLdelBtn";
-            this.DWGLdelBtn.Size = new System.Drawing.Size(90, 29);
+            this.DWGLdelBtn.Size = new System.Drawing.Size(72, 23);
             this.DWGLdelBtn.TabIndex = 5;
             this.DWGLdelBtn.Text = " 删除选中";
             this.DWGLdelBtn.Click += new System.EventHandler(this.DWGLdelBtn_Click);
@@ -5519,20 +5450,18 @@
             // DWGLimportfileBtn
             // 
             this.DWGLimportfileBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.DWGLimportfileBtn.Location = new System.Drawing.Point(1242, 19);
-            this.DWGLimportfileBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.DWGLimportfileBtn.Location = new System.Drawing.Point(1132, 15);
             this.DWGLimportfileBtn.Name = "DWGLimportfileBtn";
-            this.DWGLimportfileBtn.Size = new System.Drawing.Size(94, 29);
+            this.DWGLimportfileBtn.Size = new System.Drawing.Size(75, 23);
             this.DWGLimportfileBtn.TabIndex = 0;
             this.DWGLimportfileBtn.Text = "导入";
             this.DWGLimportfileBtn.Click += new System.EventHandler(this.DWGLopenfileBtn_Click);
             // 
             // DWGLanalysisBtn
             // 
-            this.DWGLanalysisBtn.Location = new System.Drawing.Point(19, 19);
-            this.DWGLanalysisBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.DWGLanalysisBtn.Location = new System.Drawing.Point(15, 15);
             this.DWGLanalysisBtn.Name = "DWGLanalysisBtn";
-            this.DWGLanalysisBtn.Size = new System.Drawing.Size(125, 29);
+            this.DWGLanalysisBtn.Size = new System.Drawing.Size(100, 23);
             this.DWGLanalysisBtn.TabIndex = 5;
             this.DWGLanalysisBtn.Text = "分析算法";
             this.DWGLanalysisBtn.ToolTip = "未定义";
@@ -5544,21 +5473,19 @@
             this.xtraTabPageQK.Controls.Add(this.panelControl6);
             this.xtraTabPageQK.Margin = new System.Windows.Forms.Padding(2);
             this.xtraTabPageQK.Name = "xtraTabPageQK";
-            this.xtraTabPageQK.Size = new System.Drawing.Size(1657, 621);
+            this.xtraTabPageQK.Size = new System.Drawing.Size(1325, 498);
             this.xtraTabPageQK.Text = "缺口分析";
             this.xtraTabPageQK.Paint += new System.Windows.Forms.PaintEventHandler(this.xtraTabPage2_Paint_1);
             // 
             // gridControl5
             // 
             this.gridControl5.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.gridControl5.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
-            this.gridControl5.Location = new System.Drawing.Point(0, 60);
+            this.gridControl5.Location = new System.Drawing.Point(0, 48);
             this.gridControl5.MainView = this.gridView5;
-            this.gridControl5.Margin = new System.Windows.Forms.Padding(4);
             this.gridControl5.Name = "gridControl5";
             this.gridControl5.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
             this.repositoryItemCheckEdit5});
-            this.gridControl5.Size = new System.Drawing.Size(1657, 561);
+            this.gridControl5.Size = new System.Drawing.Size(1325, 450);
             this.gridControl5.TabIndex = 18;
             this.gridControl5.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
             this.gridView5});
@@ -5703,36 +5630,21 @@
             // 
             // panelControl6
             // 
-            this.panelControl6.Controls.Add(this.DWQKcheckEdit);
             this.panelControl6.Controls.Add(this.DWQKdelBtn);
             this.panelControl6.Controls.Add(this.DWQKimportfileBtn);
             this.panelControl6.Controls.Add(this.DWQKanalysisBtn);
             this.panelControl6.Dock = System.Windows.Forms.DockStyle.Top;
             this.panelControl6.Location = new System.Drawing.Point(0, 0);
-            this.panelControl6.Margin = new System.Windows.Forms.Padding(4);
             this.panelControl6.Name = "panelControl6";
-            this.panelControl6.Size = new System.Drawing.Size(1657, 60);
+            this.panelControl6.Size = new System.Drawing.Size(1325, 48);
             this.panelControl6.TabIndex = 17;
             // 
-            // DWQKcheckEdit
-            // 
-            this.DWQKcheckEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.DWQKcheckEdit.Location = new System.Drawing.Point(1356, 20);
-            this.DWQKcheckEdit.Margin = new System.Windows.Forms.Padding(2);
-            this.DWQKcheckEdit.MenuManager = this.xrDesignRibbonController1;
-            this.DWQKcheckEdit.Name = "DWQKcheckEdit";
-            this.DWQKcheckEdit.Properties.Caption = "浏览文件夹";
-            this.DWQKcheckEdit.Size = new System.Drawing.Size(124, 22);
-            this.DWQKcheckEdit.TabIndex = 18;
-            this.DWQKcheckEdit.Visible = false;
-            // 
             // DWQKdelBtn
             // 
             this.DWQKdelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.DWQKdelBtn.Location = new System.Drawing.Point(1522, 19);
-            this.DWQKdelBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.DWQKdelBtn.Location = new System.Drawing.Point(1217, 15);
             this.DWQKdelBtn.Name = "DWQKdelBtn";
-            this.DWQKdelBtn.Size = new System.Drawing.Size(90, 29);
+            this.DWQKdelBtn.Size = new System.Drawing.Size(72, 23);
             this.DWQKdelBtn.TabIndex = 5;
             this.DWQKdelBtn.Text = " 删除选中";
             this.DWQKdelBtn.Click += new System.EventHandler(this.DWQKdelBtn_Click);
@@ -5740,35 +5652,40 @@
             // DWQKimportfileBtn
             // 
             this.DWQKimportfileBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.DWQKimportfileBtn.Location = new System.Drawing.Point(1242, 19);
-            this.DWQKimportfileBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.DWQKimportfileBtn.Location = new System.Drawing.Point(1132, 15);
             this.DWQKimportfileBtn.Name = "DWQKimportfileBtn";
-            this.DWQKimportfileBtn.Size = new System.Drawing.Size(94, 29);
+            this.DWQKimportfileBtn.Size = new System.Drawing.Size(75, 23);
             this.DWQKimportfileBtn.TabIndex = 0;
             this.DWQKimportfileBtn.Text = "导入";
             this.DWQKimportfileBtn.Click += new System.EventHandler(this.DWQKopenfileBtn_Click);
             // 
             // DWQKanalysisBtn
             // 
-            this.DWQKanalysisBtn.Location = new System.Drawing.Point(19, 19);
-            this.DWQKanalysisBtn.Margin = new System.Windows.Forms.Padding(4);
+            this.DWQKanalysisBtn.Location = new System.Drawing.Point(15, 15);
             this.DWQKanalysisBtn.Name = "DWQKanalysisBtn";
-            this.DWQKanalysisBtn.Size = new System.Drawing.Size(125, 29);
+            this.DWQKanalysisBtn.Size = new System.Drawing.Size(100, 23);
             this.DWQKanalysisBtn.TabIndex = 5;
             this.DWQKanalysisBtn.Text = "分析算法";
             this.DWQKanalysisBtn.ToolTip = "未定义";
+            this.DWQKanalysisBtn.Click += new System.EventHandler(this.DWQKanalysisBtn_Click);
+            // 
+            // xtraTabPageDWZS
+            // 
+            this.xtraTabPageDWZS.Margin = new System.Windows.Forms.Padding(2);
+            this.xtraTabPageDWZS.Name = "xtraTabPageDWZS";
+            this.xtraTabPageDWZS.Size = new System.Drawing.Size(1325, 498);
+            this.xtraTabPageDWZS.Text = "电务数据展示";
             // 
             // DevFrmMain
             // 
             this.AllowFormGlass = DevExpress.Utils.DefaultBoolean.False;
-            this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
-            this.ClientSize = new System.Drawing.Size(1664, 881);
+            this.ClientSize = new System.Drawing.Size(1331, 705);
             this.Controls.Add(this.xtraTabControl1);
             this.Controls.Add(this.ribbonStatusBar);
             this.Controls.Add(this.ribbon);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
-            this.Margin = new System.Windows.Forms.Padding(4);
             this.Name = "DevFrmMain";
             this.Ribbon = this.ribbon;
             this.StatusBar = this.ribbonStatusBar;
@@ -5844,14 +5761,12 @@
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit4)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).EndInit();
             this.panelControl5.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.DWGLcheckEdit.Properties)).EndInit();
             this.xtraTabPageQK.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.gridControl5)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.gridView5)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit5)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.panelControl6)).EndInit();
             this.panelControl6.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.DWQKcheckEdit.Properties)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -6189,6 +6104,7 @@
         private DevExpress.XtraTab.XtraTabPage xtraTabPageGL;
         private DevExpress.XtraTab.XtraTabPage xtraTabPageQK;
         private System.Windows.Forms.PageSetupDialog pageSetupDialog1;
+        private DevExpress.XtraTab.XtraTabPage xtraTabPageDWZS;
         private DevExpress.XtraEditors.PanelControl panelControl5;
         private DevExpress.XtraEditors.SimpleButton DWGLdelBtn;
         private DevExpress.XtraEditors.SimpleButton DWGLimportfileBtn;
@@ -6228,8 +6144,6 @@
         private DevExpress.XtraEditors.SimpleButton deleteQKdata;
         private DevExpress.XtraEditors.SimpleButton importGLData;
         private DevExpress.XtraEditors.SimpleButton simpleButton1;
-        private DevExpress.XtraEditors.CheckEdit DWGLcheckEdit;
-        private DevExpress.XtraEditors.CheckEdit DWQKcheckEdit;
         private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup12;
         private DevExpress.XtraGrid.GridControl gridControl4;
         private DevExpress.XtraGrid.Views.Grid.GridView gridView4;

+ 11 - 7
DPTools/DevFrmMain.cs

@@ -757,26 +757,24 @@ namespace Uninpho.Tools
             //判断tab页是否已经创建,如果已创建直接显示
             tabtools.addTabmenu(xtraTabControl1, strDXtabname);
         }
-        //导入文件
+
+        //导入功率文件
         private void DWGLopenfileBtn_Click(object sender, EventArgs e)
         {
             List<int> indexid = new List<int>();
             List<string> indexzt = new List<string>();
             DWCommon.getSFZT(gridView4, ref indexid, ref indexzt);
 
-            ImportGLdatamanageForm frm = new ImportGLdatamanageForm(DWGLcheckEdit.Checked, gridView4,"gl");
+            ImportGLdatamanageForm frm = new ImportGLdatamanageForm(gridView4, "gl");
             frm.StartPosition = FormStartPosition.CenterParent;
             if (frm.ShowDialog(this) == DialogResult.OK)
             {
-
             }
-            //DWCommon.OpenFile("txt", DWGLcheckEdit.Checked, gridView4);
 
             List<T_dwfile_account> gl_dataList = DataAnalysisToPG.getDwfile("txt", indexid, indexzt) as List<T_dwfile_account>;
             this.gridControl4.DataSource = gl_dataList;
             DWCommon.repushSFZT(gridView4, indexid);
 
-          
         }
         //功率数据管理删除行
         private void DWGLdelBtn_Click(object sender, EventArgs e)
@@ -829,14 +827,15 @@ namespace Uninpho.Tools
             //判断tab页是否已经创建,如果已创建直接显示
             tabtools.addTabmenu(xtraTabControl1, strDXtabname);
         }
-        //导入文件
+
+        //导入缺口文件
         private void DWQKopenfileBtn_Click(object sender, EventArgs e)
         {
             List<int> indexid = new List<int>();
             List<string> indexzt = new List<string>();
             DWQKCommon.getSFZT(gridView5, ref indexid, ref indexzt);
 
-            ImportGLdatamanageForm frm = new ImportGLdatamanageForm(DWQKcheckEdit.Checked, gridView5,"qk");
+            ImportGLdatamanageForm frm = new ImportGLdatamanageForm(gridView5,"qk");
             frm.StartPosition = FormStartPosition.CenterParent;
             if (frm.ShowDialog(this) == DialogResult.OK)
             {
@@ -1049,5 +1048,10 @@ namespace Uninpho.Tools
         {
             new DataAnalysisClass("功率", gridView4.GetSelectedRows(), ref gridControl4, ref gridView4);
         }
+
+        private void DWQKanalysisBtn_Click(object sender, EventArgs e)
+        {
+            new DataAnalysisClass("缺口", gridView5.GetSelectedRows(), ref gridControl5, ref gridView5);
+        }
     }
 }

+ 11 - 11
DPTools/DevFrmMain.resx

@@ -118,10 +118,10 @@
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   <metadata name="xrDesignRibbonController1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>618, 17</value>
+    <value>516, 17</value>
   </metadata>
   <metadata name="applicationMenu1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>876, 17</value>
+    <value>729, 17</value>
   </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="barButtonImageTile.Glyph" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -1766,10 +1766,10 @@
 </value>
   </data>
   <metadata name="ribbonMiniToolbar1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>527, 59</value>
+    <value>281, 55</value>
   </metadata>
   <metadata name="xrDesignDockManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>1066, 17</value>
+    <value>888, 17</value>
   </metadata>
   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>113</value>
@@ -1937,7 +1937,7 @@
 </value>
   </data>
   <metadata name="galleryDropDown1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>422, 17</value>
+    <value>353, 17</value>
   </metadata>
   <data name="barButtonItem2.Glyph" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
@@ -2102,19 +2102,19 @@
 </value>
   </data>
   <metadata name="reportDesigner1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>245, 17</value>
+    <value>205, 17</value>
   </metadata>
   <metadata name="popupMenu1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>1300, 17</value>
+    <value>1082, 17</value>
   </metadata>
   <metadata name="galleryDropDown2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 59</value>
+    <value>1214, 17</value>
   </metadata>
   <metadata name="popupMenu2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>213, 59</value>
+    <value>17, 55</value>
   </metadata>
   <metadata name="popupMenu3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>370, 59</value>
+    <value>149, 55</value>
   </metadata>
   <data name="barButtonItem15.Glyph" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
@@ -2158,6 +2158,6 @@
 </value>
   </data>
   <metadata name="pageSetupDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>727, 59</value>
+    <value>451, 55</value>
   </metadata>
 </root>

+ 10 - 6
DPTools/Uninpho.Railway.Tools.csproj

@@ -221,6 +221,9 @@
     <Reference Include="Package_turnout_analysis">
       <HintPath>libs\matlabSuanFa\Package_turnout_analysis.dll</HintPath>
     </Reference>
+    <Reference Include="Package_turnout_analysis_geo">
+      <HintPath>libs\matlabSuanFa\Package_turnout_analysis_geo.dll</HintPath>
+    </Reference>
     <Reference Include="Package_turnout_analysis_wrf, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>libs\matlabSuanFa\Package_turnout_analysis_wrf.dll</HintPath>
@@ -231,8 +234,11 @@
     <Reference Include="Package_turnout_identify_wrf">
       <HintPath>libs\matlabSuanFa\Package_turnout_identify_wrf.dll</HintPath>
     </Reference>
-    <Reference Include="sub_main_turnout_analysis_geo">
-      <HintPath>libs\matlabSuanFa\sub_main_turnout_analysis_geo.dll</HintPath>
+    <Reference Include="sub_module_power_analysis">
+      <HintPath>libs\matlabSuanFa\sub_module_power_analysis.dll</HintPath>
+    </Reference>
+    <Reference Include="sub_module_quekou_analysis">
+      <HintPath>libs\matlabSuanFa\sub_module_quekou_analysis.dll</HintPath>
     </Reference>
     <Reference Include="System">
       <Private>True</Private>
@@ -273,7 +279,6 @@
     </Reference>
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="components\DataAnalysis\DWAnalysisAlgorithmcs.cs" />
     <Compile Include="components\DataAnalysis\DWQKCommon.cs" />
     <Compile Include="components\DataAnalysis\DWCommon.cs" />
     <Compile Include="components\DataAnalysis\DataAnalysisClass.cs" />
@@ -646,6 +651,7 @@
     </EmbeddedResource>
     <EmbeddedResource Include="DevFrmMain.resx">
       <DependentUpon>DevFrmMain.cs</DependentUpon>
+      <SubType>Designer</SubType>
     </EmbeddedResource>
     <EmbeddedResource Include="FrmMain.resx">
       <DependentUpon>FrmMain.cs</DependentUpon>
@@ -663,9 +669,7 @@
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>PrintRibbonControllerResources.Designer.cs</LastGenOutput>
     </EmbeddedResource>
-    <None Include="Properties\licenses.licx">
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </None>
+    <EmbeddedResource Include="Properties\licenses.licx" />
     <EmbeddedResource Include="Properties\Resources.resx">
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>

+ 2 - 1
DPTools/components/DWForm/ImportGLdatamanageForm.Designer.cs

@@ -104,6 +104,7 @@
             // 
             // xianlumingText
             // 
+            this.xianlumingText.EditValue = "";
             this.xianlumingText.Location = new System.Drawing.Point(143, 57);
             this.xianlumingText.Name = "xianlumingText";
             this.xianlumingText.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
@@ -156,7 +157,7 @@
         private DevExpress.XtraEditors.LabelControl labelControl7;
         private System.Windows.Forms.TextBox txtindir;
         private DevExpress.XtraEditors.LabelControl labelControl1;
-        private DevExpress.XtraEditors.ComboBoxEdit xianlumingText;
         private DevExpress.XtraEditors.ComboBoxEdit zhanmingText;
+        public DevExpress.XtraEditors.ComboBoxEdit xianlumingText;
     }
 }

+ 46 - 26
DPTools/components/DWForm/ImportGLdatamanageForm.cs

@@ -21,42 +21,52 @@ namespace Uninpho.Tools.components.DWForm
 {
     public partial class ImportGLdatamanageForm : DevExpress.XtraEditors.XtraForm
     {
-        bool ch;
+     
         GridView grid;
         string lx;
-        public ImportGLdatamanageForm(bool ischecked, GridView GV,string type)
+        public ImportGLdatamanageForm(GridView GV,string type)
         {
             InitializeComponent();
-             ch = ischecked;
+          
              grid = GV;
-            lx = type;
-
-
+            lx = type;           
         }
       
        /// 浏览文件目录
         private void simpleButton2_Click(object sender, EventArgs e)
         {
-            if(lx=="gl")
+            if (xianlumingText.Text==""||zhanmingText.Text=="")
             {
-            DWCommon.OpenFile("txt", ch, grid);
-            txtindir.Text = DWCommon.lj;
+                XtraMessageBox.Show("请选择线路和车站", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
             }
-            else if(lx=="qk")
+            else
             {
-                DWQKCommon.OpenFile("txt", ch, grid);
-                txtindir.Text = DWQKCommon.lj;
+                if (lx == "gl")
+                {
+                    DWCommon.OpenFile("txt", grid, xianlumingText.Text, zhanmingText.Text);
+                    txtindir.Text = DWCommon.lj;
+                }
+                else if (lx == "qk")
+                {
+                    DWQKCommon.OpenFile("txt", grid, xianlumingText.Text, zhanmingText.Text);
+                    txtindir.Text = DWQKCommon.lj;
+                }
             }
-
-
-            //txtindir.Text = DWGLCommon.lj;
-
+           
 
         }
 
         /// 导入数据
         private void newCreateBtnSon_Click(object sender, EventArgs e)
         {
+            if (lx == "gl")
+            {
+                DWCommon.AddFile();
+            }
+            else if (lx == "qk")
+            {
+                DWQKCommon.AddFile();
+            }
             this.Close();
         }
 
@@ -64,12 +74,19 @@ namespace Uninpho.Tools.components.DWForm
         ///取消
         private void NewcancelBtn_Click(object sender, EventArgs e)
         {
-            this.Close();//记得改,现在取不取消都是导入成功
+            if (lx == "gl")
+            {
+                DWCommon.CancelAddFile();
+            }
+            else if (lx == "qk")
+            {
+                DWQKCommon.CancelAddFile();
+            }
+          
+            this.Close();
         }
 
         ///关联数据库
-        /// 电务/缺口
-        List<T_dwfile_account> dwglData = new List<T_dwfile_account>();
       
         private void xianlumingText_SelectedIndexChanged(object sender, EventArgs e)
         {
@@ -77,14 +94,17 @@ namespace Uninpho.Tools.components.DWForm
         }
 
         ///初始界面加载
+        /// 
+        List<T_daocha_account> daochaData = new List<T_daocha_account>();
+
         private void ImportGLdatamanageForm_Load(object sender, EventArgs e)
         {
-            dwglData = DBOperation.Operation.DataAnalysisToPG.QueryDWGLALL();
+            daochaData = DBOperation.Operation.DataAnalysisToPG.QueryDCTZALL();
             //整理线路名集合
-            var listtgXLMALL = dwglData.GroupBy(c => c.Xianlu).Select(c => c.First()).ToList();
+            var listtgXLMALL = daochaData.GroupBy(c => c.Xlm).Select(c => c.First()).ToList();
             foreach (var item in listtgXLMALL)
             {
-                xianlumingText.Properties.Items.Add(item.Xianlu);
+                xianlumingText.Properties.Items.Add(item.Xlm);
             }
         }
 
@@ -92,17 +112,17 @@ namespace Uninpho.Tools.components.DWForm
         private void xianlumingText_EditValueChanged(object sender, EventArgs e)
         {
             zhanmingText.Properties.Items.Clear();
-            var isInputTrueXLM = dwglData.FindAll(delegate (T_dwfile_account dwgl)
+            var isInputTrueXLM = daochaData.FindAll(delegate (T_daocha_account dc)
             {
-                return dwgl.Xianlu == xianlumingText.Text;
+                return dc.Xlm == xianlumingText.Text;
             });
             //线路名
             if (isInputTrueXLM.Count != 0)
             {
-                var listtg = isInputTrueXLM.GroupBy(c => c.Chezhan).Select(c => c.First()).ToList();
+                var listtg = isInputTrueXLM.GroupBy(c => c.Czm).Select(c => c.First()).ToList();
                 foreach (var item in listtg)
                 {
-                    zhanmingText.Properties.Items.Add(item.Chezhan);
+                    zhanmingText.Properties.Items.Add(item.Czm);
                 }
                 zhanmingText.Enabled = true;
             }

+ 27 - 0
DPTools/components/DataAnalysis/AnalysisAlgorithmcs.cs

@@ -12,6 +12,8 @@ using JH = Package_turnout_analysis; //sub_main_turnout_analysis_geo
 using MathWorks.MATLAB.NET.Arrays;
 using JHWX = Package_geo_change_analysis_for_turnout;//微小算法
 using System.Windows.Forms;
+using GL = sub_module_power_analysis;//功率算法
+using QK = sub_module_quekou_analysis;//缺口算法
 
 namespace Uninpho.Tools.components.DataAnalysis
 {
@@ -175,5 +177,30 @@ namespace Uninpho.Tools.components.DataAnalysis
 
             return agrsOut;
         }
+        /// 功率算法
+        public static MWArray[] GLFX(string fname_dir0, string fname0,string xianlu,string chezhan, string filename)
+        {
+            GL.Class1 glfx = new GL.Class1();
+ 
+            MWArray[] agrsIn = new MWArray[] { fname_dir0, fname0};
+            MWArray[] agrsOut = new MWArray[10];
+
+            glfx.sub_power_analysis_main(2, ref agrsOut, agrsIn);//输出两个cell表
+            //Console.WriteLine("算法输出:" + agrsOut[1]);
+            return agrsOut;
+        }
+
+        /// 缺口算法
+        public static MWArray[] QKFX(string fname_dir0, string fname0, string xianlu, string chezhan, string filename)
+        {
+            QK.Class1 qkfx = new QK.Class1();
+
+            MWArray[] agrsIn = new MWArray[] { fname_dir0, fname0 };
+            MWArray[] agrsOut = new MWArray[7];
+
+            qkfx.sub_quekou_data_analysis(2, ref agrsOut, agrsIn);//输出两个cell表
+            //Console.WriteLine("算法输出:" + agrsOut[1]);
+            return agrsOut;
+        }
     }
 }

+ 0 - 18
DPTools/components/DataAnalysis/DWAnalysisAlgorithmcs.cs

@@ -1,18 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Runtime.InteropServices;
-
-namespace Uninpho.Tools.components.DataAnalysis
-{
-    class DWAnalysisAlgorithmcs
-    {
-        [DllImport("sub_module_power_analysis.dll")]
-        public static extern void EC_ClosePort(uint hdl_port);
-
-
-
-    }
-}

+ 26 - 272
DPTools/components/DataAnalysis/DWCommon.cs

@@ -17,63 +17,16 @@ namespace Uninpho.Tools.components.DataAnalysis
   
     class DWCommon
     {
-        /// <summary>
-        /// 高速还是低速
-        /// 0:高速  1:低速  2:全选
-        /// </summary>
-        public static int gdsBool = 0;
-        /// <summary>
-        /// 是否进行里程修正
-        /// </summary>
-        public static bool xzlcBool = true;
-        /// <summary>
-        /// 检测车
-        /// </summary>
-        public static List<string> jccList = new List<string>();
+        
         public static string lj;
+
+        public static List<T_dwfile_account> filelist = new List<T_dwfile_account>();
         /// <summary>
         /// 打开文件夹公共函数
         /// </summary>
-        public static void OpenFile(string houzhui,bool ischecked,GridView GV)
+        public static void OpenFile(string houzhui,GridView GV,string xianluming,string chezhan)
         {
-            List<T_dwfile_account> filelist = new List<T_dwfile_account>();
-            //批量
-            //if (ischecked)
-            //{
-
-            //    var dialog = new FolderBrowserDialog();
-            //    if (dialog.ShowDialog() == DialogResult.OK)
-            //    {
-            //        DirectoryInfo DirInfo = new DirectoryInfo(dialog.SelectedPath);
-            //        houzhui = "." + houzhui;
-            //        var files = from f in DirInfo.EnumerateFiles()
-            //                    where houzhui.Contains(f.Extension.ToLower())
-            //                    select f;
-
-            //        // Show results.
-            //        foreach (var f in files)
-            //        {
-            //            T_dwfile_account tfa= GLFileNameSplit1(f.FullName);
-
-            //            var isfile = DataAnalysisToPG.DWQueryToPGByNameFile(tfa.Filename) as List<T_dwfile_account>;
-            //            if (isfile.Count == 0)
-            //            {
-            //                filelist.Add(tfa);
-            //            }
-            //            else
-            //            {
-            //                if (XtraMessageBox.Show("检测到数据库内存在同名数据:\n" + tfa.Filename+",\n是否覆盖数据库内数据?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
-            //                {
-            //                    filejiancedel(tfa);
-            //                    filelist.Add(tfa);
-            //                }
-            //            }
-            //        }
-            //        DataAnalysisToPG.GLInsertToPG(filelist);
-            //    }
-            //}
-            //else
-            //{
+              
             var dialog = new OpenFileDialog();
                 dialog.Multiselect = true;
                 dialog.Title = "请选择文件夹";
@@ -84,11 +37,11 @@ namespace Uninpho.Tools.components.DataAnalysis
 
                     for (int i = 0; i < file.Length; i++)
                     {
-                        T_dwfile_account tfa = GLFileNameSplit1(file[i]);
+                        T_dwfile_account tfa = GLFileNameSplit1(file[i], xianluming, chezhan);
                        //获取数据后
                         var isfile = DataAnalysisToPG.DWQueryToPGByNameFile(tfa.Filename) as List<T_dwfile_account>;
                          lj = file[i]; //传路径
-                        if (isfile.Count == 0)
+                        if (isfile.Count == 0 )
                         {
                             filelist.Add(tfa);
                         }
@@ -102,29 +55,35 @@ namespace Uninpho.Tools.components.DataAnalysis
                         }
 
                     }
-                    DataAnalysisToPG.GLInsertToPG(filelist);
+                    
                 }
-            //}
+        }
 
+        public static void AddFile()
+        {
+            DataAnalysisToPG.GLInsertToPG(filelist);
+            filelist.Clear();
+        }
 
+        public static void CancelAddFile()
+        {
+            filelist.Clear();
         }
-    
+
 
         /// 清理数据库同名数据
         private static void filejiancedel(T_dwfile_account file)
         {
           
             //清除算法表
-            //List<T_dwfile_account> whichupdata = (List<T_dwfile_account>)DataAnalysisToPG.DWQueryToPGByNameFile(file.Filename);
-            //DataAnalysisToPG.DelToPGLGLBX(whichupdata);
-            //DataAnalysisToPG.DelToDWGL(file);
-
+            List<T_dwfile_account> whichupdata = (List<T_dwfile_account>)DataAnalysisToPG.DWQueryToPGByNameFile(file.Filename);         
+            DataAnalysisToPG.DelToDWGL(file);
             DataAnalysisToPG.DelToDW(file);//清除功率表
              
         }
 
         /// 解析电务功率数据
-        private static T_dwfile_account GLFileNameSplit1(string filename)
+        private static T_dwfile_account GLFileNameSplit1(string filename, string xianluming, string chezhan)
         {
             string ysname = Path.GetFileName(filename);
             string wjdx = Math.Round((new FileInfo(filename).Length / 1024.0 / 1024.0),2) + " MB";//文件大小
@@ -146,7 +105,8 @@ namespace Uninpho.Tools.components.DataAnalysis
                       
                         string quxianxuhao = parts[2];//曲线序号
                         string caijikaishishijian = parts[3];//采集开始时间
-                        string caijihaoqianshijian = parts[4];//采集毫秒时间                        string fangxiabiaoji = parts[5];//点数
+                        string caijihaoqianshijian = parts[4];//采集毫秒时间                        
+                        string fangxiabiaoji = parts[5];//点数
                         string dianshu = parts[6]; //点数
                         string gonglv = parts[7];//功率
                         string fangcha = parts[8];//方差
@@ -173,8 +133,8 @@ namespace Uninpho.Tools.components.DataAnalysis
             return new T_dwfile_account()
             {
               //下次把车站线路写活
-                Xianlu = "襄渝线",
-                Chezhan = "三汇坝",
+                Xianlu = xianluming,
+                Chezhan = chezhan,
                 Starttime = minStartTime,
                 Endtime = maxStartTime,
                 Filename = ysname,
@@ -186,213 +146,7 @@ namespace Uninpho.Tools.components.DataAnalysis
             };
         }
        
-        /// <summary>
-        /// 解析方向
-        /// </summary>
-        private static string getZF(string ZF)
-        {
-            string zf = ZF.Split('_')[0];
-            if (zf == "0")
-            {
-                return "反向";
-            }
-            else
-            {
-                return "正向";
-            }
-        }
-        /// <summary>
-        /// 解析时间
-        /// </summary>
-        private static string getYMDHMS(string ymd,string hms)
-        {
-            //如果这里以后修改,轮轨力输入检测日期那块也要改!!!
-            Char[] ymdcha = ymd.ToCharArray();//年月日
-            Char[] hmscha = hms.ToCharArray();//时分秒
-            string year = ymdcha[4].ToString() + ymdcha[5].ToString() + ymdcha[6].ToString() + ymdcha[7].ToString();
-            string mouth = ymdcha[2].ToString() + ymdcha[3].ToString();
-            string day = ymdcha[0].ToString() + ymdcha[1].ToString();
-            string hour = hmscha[0].ToString() + hmscha[1].ToString();
-            string minite = hmscha[2].ToString() + hmscha[3].ToString();
-            string second = hmscha[4].ToString() + hmscha[5].ToString();
-            return year+ "年"  +mouth + "月" + day + "日" + hour + "时" + minite + "分" + second + "秒";
-        }
-        private static string getYMDHMS(string ymd)
-        {
-            //如果这里以后修改,轮轨力输入检测日期那块也要改!!!
-            Char[] ymdcha = ymd.ToCharArray();//年月日
-            string year = ymdcha[0].ToString() + ymdcha[3].ToString();
-            string mouth = ymdcha[6].ToString() + ymdcha[7].ToString();
-            string day = ymdcha[4].ToString() + ymdcha[5].ToString();
-            return year + "年" + mouth + "月" + day + "日";
-        }
-        /// <summary>
-        /// 解析行别和线路编号
-        /// </summary>
-        private static string[] HBXLSplit(string arr0)
-        {
-            Char[] cha = arr0.ToCharArray();
-            string hb = "", xl = "";
-            for (int i = 0; i < cha.Length; i++)
-            {
-                if (i != cha.Length-1)
-                {
-                    xl += cha[i];
-                }
-                else
-                {
-                    if (cha[i] == 'X')
-                    {
-                        hb = "下";
-                    }
-                    else if (cha[i] == 'S')
-                    {
-                        hb = "上";
-
-                    }
-                    else
-                    {
-                        hb = "未知";
-                    }
-                }
-            }
-            return new string[] {xl,hb };
-        }
-        /// <summary>
-        /// 表前加序号
-        /// </summary>
-        /// <param name="e"></param>
-        public static void addXuHao(DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
-        {
-            if (e.Info.Kind == DevExpress.Utils.Drawing.IndicatorKind.Header)
-            {
-                e.Appearance.DrawBackground(e.Cache, e.Bounds);
-                e.Appearance.DrawString(e.Cache, "  序号", e.Bounds);
-              
-                e.Handled = true;
-            }
-            e.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
-            if (e.Info.IsRowIndicator)
-            {
-                if (e.RowHandle >= 0)
-                {
-                    e.Info.DisplayText = (e.RowHandle + 1).ToString().Trim();
-                }
-                else if (e.RowHandle < 0 && e.RowHandle > -1000)
-                {
-                    e.Info.DisplayText = "G" + e.RowHandle.ToString();
-                }
-            }
-        }
-        
-        /// <summary>
-        /// 自动化初始化
-        /// </summary>
-        public static void initZDHFun(BarButtonItem barButtonItem)
-        {
-            initFile(zdhSetClass.path, zdhSetClass.initStr);
-            StreamReader sr = new StreamReader(zdhSetClass.path);
-            while (!sr.EndOfStream)
-            {
-                string[] str = sr.ReadLine().Split('灬');
-                if (str[0] == "Interval")
-                {
-                    zdhSetClass.Interval = Convert.ToInt32(str[1]);
-                    continue;
-                }
-                else if (str[0] == "folder")
-                {
-                    if (Directory.Exists(str[1]))
-                    {
-                        zdhSetClass.folder = str[1];
-                    }
-                    continue;
-                }
-                else if (str[0] == "startdate")
-                {
-                    zdhSetClass.startdate = str[1];
-                    continue;
-                }
-                else if (str[0] == "taskName")
-                {
-                    zdhSetClass.taskName = str[1];
-                    continue;
-                }
-                else if (str[0] == "isStartZDH")
-                {
-                    zdhSetClass.isStartZDH = Convert.ToInt32(str[1]);
-                    continue;
-                }
-            }
-            DirectoryInitNoDelNoHidde(zdhSetClass.folder + "geoData");
-            DirectoryInitNoDelNoHidde(zdhSetClass.folder + "bnyData");
-
-            if (zdhSetClass.isStartZDH == 0)
-            {
-                barButtonItem.ImageUri.Uri = "Prev"; //Refresh // Prev
-                barButtonItem.Caption = "开启自动化";
-            }
-            else
-            {
-                barButtonItem.ImageUri.Uri = "Refresh"; //Refresh // Prev
-                barButtonItem.Caption = "重启自动化";
-            }
-        }
-        /// <summary>
-        /// 创建文件
-        /// </summary>
-        public static void initFile(string path,string data)
-        {
-            if (!File.Exists(path))
-            {
-                File.WriteAllText(path, data);
-            }
-        }
-        /// <summary>
-        /// 复制文件
-        /// </summary>
-        /// <param name="filename">原始文件路径</param>
-        /// <param name="newfilename">目的地文件路径</param>
-        public static void FileCopy(string filename,string newfilename)
-        {
-            if (File.Exists(filename))
-            {
-                if (File.Exists(newfilename))
-                {
-                    File.Delete(newfilename);
-                }
-                File.Copy(filename, newfilename);
-            }
-        }
-        /// <summary>
-        /// 按文件夹删除(删除临时文件夹)
-        /// </summary>
-        /// <param name="DirectoryPath">文件夹路径</param>
-        public static void DirectoryInit(string DirectoryPath)
-        {
-            if (Directory.Exists(DirectoryPath))
-            {
-                Directory.Delete(DirectoryPath, true); //删除文件夹及内容
-            }
-            DirectoryInfo di = Directory.CreateDirectory(DirectoryPath);
-            di.Attributes = FileAttributes.Directory | FileAttributes.Hidden;
-        }
-        public static void DirectoryInitNoDel(string DirectoryPath)
-        {
-            if (!Directory.Exists(DirectoryPath))
-            {
-                DirectoryInfo di = Directory.CreateDirectory(DirectoryPath);
-                di.Attributes = FileAttributes.Directory | FileAttributes.Hidden;
-            }
-        }
-        public static void DirectoryInitNoDelNoHidde(string DirectoryPath)
-        {
-            if (!Directory.Exists(DirectoryPath))
-            {
-                DirectoryInfo di = Directory.CreateDirectory(DirectoryPath);
-                di.Attributes = FileAttributes.Directory;
-            }
-        }
+      
         /// <summary>
         /// 刷新后恢复选中
         /// </summary>

+ 22 - 228
DPTools/components/DataAnalysis/DWQKCommon.cs

@@ -17,26 +17,15 @@ namespace Uninpho.Tools.components.DataAnalysis
   
     class DWQKCommon
     {
-        /// <summary>
-        /// 高速还是低速
-        /// 0:高速  1:低速  2:全选
-        /// </summary>
-        public static int gdsBool = 0;
-        /// <summary>
-        /// 是否进行里程修正
-        /// </summary>
-        public static bool xzlcBool = true;
-        /// <summary>
-        /// 检测车
-        /// </summary>
-        public static List<string> jccList = new List<string>();
+     
         public static string lj;
+        public static List<T_dwqkfile_account> filelist = new List<T_dwqkfile_account>();
         /// <summary>
         /// 打开文件夹公共函数
         /// </summary>
-        public static void OpenFile(string houzhui,bool ischecked,GridView GV)
+        public static void OpenFile(string houzhui,GridView GV,string xianluming, string chezhan)
         {
-            List<T_dwqkfile_account> filelist = new List<T_dwqkfile_account>();
+           
            
             var dialog = new OpenFileDialog();
                 dialog.Multiselect = true;
@@ -48,7 +37,7 @@ namespace Uninpho.Tools.components.DataAnalysis
 
                     for (int i = 0; i < file.Length; i++)
                     {
-                        T_dwqkfile_account tfa = GLFileNameSplit1(file[i]);
+                        T_dwqkfile_account tfa = GLFileNameSplit1(file[i], xianluming, chezhan);
                        //获取数据后
                         var isfile = DataAnalysisToPG.DWQKQueryToPGByNameFile(tfa.Filename) as List<T_dwqkfile_account>;
                          lj = file[i]; //传路径
@@ -66,13 +55,24 @@ namespace Uninpho.Tools.components.DataAnalysis
                         }
 
                     }
-                    DataAnalysisToPG.QKInsertToPG(filelist);
+                   
                 }
            
 
 
         }
-    
+
+        public static void AddFile()
+        {
+            DataAnalysisToPG.QKInsertToPG(filelist);
+            filelist.Clear();
+        }
+
+        public static void CancelAddFile()
+        {
+            filelist.Clear();
+        }
+
 
         /// 清理数据库同名数据
         private static void filejiancedel(T_dwqkfile_account file)
@@ -84,7 +84,7 @@ namespace Uninpho.Tools.components.DataAnalysis
         }
 
         /// 解析电务功率数据
-        private static T_dwqkfile_account GLFileNameSplit1(string filename)
+        private static T_dwqkfile_account GLFileNameSplit1(string filename,string xianluming, string chezhan)
         {
             string ysname = Path.GetFileName(filename);
             string wjdx = Math.Round((new FileInfo(filename).Length / 1024.0 / 1024.0),2) + " MB";//文件大小
@@ -127,8 +127,8 @@ namespace Uninpho.Tools.components.DataAnalysis
             return new T_dwqkfile_account()
             {
               //下次把车站线路写活
-                Xianlu = "襄渝线",
-                Chezhan = "三汇坝",
+                Xianlu = xianluming,
+                Chezhan = chezhan,
                 Starttime = minStartTime,
                 Endtime = maxStartTime,
                 Filename = ysname,
@@ -140,213 +140,7 @@ namespace Uninpho.Tools.components.DataAnalysis
             };
         }
        
-        /// <summary>
-        /// 解析方向
-        /// </summary>
-        private static string getZF(string ZF)
-        {
-            string zf = ZF.Split('_')[0];
-            if (zf == "0")
-            {
-                return "反向";
-            }
-            else
-            {
-                return "正向";
-            }
-        }
-        /// <summary>
-        /// 解析时间
-        /// </summary>
-        private static string getYMDHMS(string ymd,string hms)
-        {
-            //如果这里以后修改,轮轨力输入检测日期那块也要改!!!
-            Char[] ymdcha = ymd.ToCharArray();//年月日
-            Char[] hmscha = hms.ToCharArray();//时分秒
-            string year = ymdcha[4].ToString() + ymdcha[5].ToString() + ymdcha[6].ToString() + ymdcha[7].ToString();
-            string mouth = ymdcha[2].ToString() + ymdcha[3].ToString();
-            string day = ymdcha[0].ToString() + ymdcha[1].ToString();
-            string hour = hmscha[0].ToString() + hmscha[1].ToString();
-            string minite = hmscha[2].ToString() + hmscha[3].ToString();
-            string second = hmscha[4].ToString() + hmscha[5].ToString();
-            return year+ "年"  +mouth + "月" + day + "日" + hour + "时" + minite + "分" + second + "秒";
-        }
-        private static string getYMDHMS(string ymd)
-        {
-            //如果这里以后修改,轮轨力输入检测日期那块也要改!!!
-            Char[] ymdcha = ymd.ToCharArray();//年月日
-            string year = ymdcha[0].ToString() + ymdcha[3].ToString();
-            string mouth = ymdcha[6].ToString() + ymdcha[7].ToString();
-            string day = ymdcha[4].ToString() + ymdcha[5].ToString();
-            return year + "年" + mouth + "月" + day + "日";
-        }
-        /// <summary>
-        /// 解析行别和线路编号
-        /// </summary>
-        private static string[] HBXLSplit(string arr0)
-        {
-            Char[] cha = arr0.ToCharArray();
-            string hb = "", xl = "";
-            for (int i = 0; i < cha.Length; i++)
-            {
-                if (i != cha.Length-1)
-                {
-                    xl += cha[i];
-                }
-                else
-                {
-                    if (cha[i] == 'X')
-                    {
-                        hb = "下";
-                    }
-                    else if (cha[i] == 'S')
-                    {
-                        hb = "上";
-
-                    }
-                    else
-                    {
-                        hb = "未知";
-                    }
-                }
-            }
-            return new string[] {xl,hb };
-        }
-        /// <summary>
-        /// 表前加序号
-        /// </summary>
-        /// <param name="e"></param>
-        public static void addXuHao(DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
-        {
-            if (e.Info.Kind == DevExpress.Utils.Drawing.IndicatorKind.Header)
-            {
-                e.Appearance.DrawBackground(e.Cache, e.Bounds);
-                e.Appearance.DrawString(e.Cache, "  序号", e.Bounds);
-              
-                e.Handled = true;
-            }
-            e.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
-            if (e.Info.IsRowIndicator)
-            {
-                if (e.RowHandle >= 0)
-                {
-                    e.Info.DisplayText = (e.RowHandle + 1).ToString().Trim();
-                }
-                else if (e.RowHandle < 0 && e.RowHandle > -1000)
-                {
-                    e.Info.DisplayText = "G" + e.RowHandle.ToString();
-                }
-            }
-        }
-        
-        /// <summary>
-        /// 自动化初始化
-        /// </summary>
-        public static void initZDHFun(BarButtonItem barButtonItem)
-        {
-            initFile(zdhSetClass.path, zdhSetClass.initStr);
-            StreamReader sr = new StreamReader(zdhSetClass.path);
-            while (!sr.EndOfStream)
-            {
-                string[] str = sr.ReadLine().Split('灬');
-                if (str[0] == "Interval")
-                {
-                    zdhSetClass.Interval = Convert.ToInt32(str[1]);
-                    continue;
-                }
-                else if (str[0] == "folder")
-                {
-                    if (Directory.Exists(str[1]))
-                    {
-                        zdhSetClass.folder = str[1];
-                    }
-                    continue;
-                }
-                else if (str[0] == "startdate")
-                {
-                    zdhSetClass.startdate = str[1];
-                    continue;
-                }
-                else if (str[0] == "taskName")
-                {
-                    zdhSetClass.taskName = str[1];
-                    continue;
-                }
-                else if (str[0] == "isStartZDH")
-                {
-                    zdhSetClass.isStartZDH = Convert.ToInt32(str[1]);
-                    continue;
-                }
-            }
-            DirectoryInitNoDelNoHidde(zdhSetClass.folder + "geoData");
-            DirectoryInitNoDelNoHidde(zdhSetClass.folder + "bnyData");
-
-            if (zdhSetClass.isStartZDH == 0)
-            {
-                barButtonItem.ImageUri.Uri = "Prev"; //Refresh // Prev
-                barButtonItem.Caption = "开启自动化";
-            }
-            else
-            {
-                barButtonItem.ImageUri.Uri = "Refresh"; //Refresh // Prev
-                barButtonItem.Caption = "重启自动化";
-            }
-        }
-        /// <summary>
-        /// 创建文件
-        /// </summary>
-        public static void initFile(string path,string data)
-        {
-            if (!File.Exists(path))
-            {
-                File.WriteAllText(path, data);
-            }
-        }
-        /// <summary>
-        /// 复制文件
-        /// </summary>
-        /// <param name="filename">原始文件路径</param>
-        /// <param name="newfilename">目的地文件路径</param>
-        public static void FileCopy(string filename,string newfilename)
-        {
-            if (File.Exists(filename))
-            {
-                if (File.Exists(newfilename))
-                {
-                    File.Delete(newfilename);
-                }
-                File.Copy(filename, newfilename);
-            }
-        }
-        /// <summary>
-        /// 按文件夹删除(删除临时文件夹)
-        /// </summary>
-        /// <param name="DirectoryPath">文件夹路径</param>
-        public static void DirectoryInit(string DirectoryPath)
-        {
-            if (Directory.Exists(DirectoryPath))
-            {
-                Directory.Delete(DirectoryPath, true); //删除文件夹及内容
-            }
-            DirectoryInfo di = Directory.CreateDirectory(DirectoryPath);
-            di.Attributes = FileAttributes.Directory | FileAttributes.Hidden;
-        }
-        public static void DirectoryInitNoDel(string DirectoryPath)
-        {
-            if (!Directory.Exists(DirectoryPath))
-            {
-                DirectoryInfo di = Directory.CreateDirectory(DirectoryPath);
-                di.Attributes = FileAttributes.Directory | FileAttributes.Hidden;
-            }
-        }
-        public static void DirectoryInitNoDelNoHidde(string DirectoryPath)
-        {
-            if (!Directory.Exists(DirectoryPath))
-            {
-                DirectoryInfo di = Directory.CreateDirectory(DirectoryPath);
-                di.Attributes = FileAttributes.Directory;
-            }
-        }
+     
         /// <summary>
         /// 刷新后恢复选中
         /// </summary>

+ 360 - 12
DPTools/components/DataAnalysis/DataAnalysisClass.cs

@@ -11,6 +11,7 @@ using Uninpho.DBOperation.Operation;
 using System.Windows.Forms;
 using DevExpress.XtraEditors;
 using MathWorks.MATLAB.NET.Arrays;
+using System.Globalization;
 using System.Threading;
 //数据库表重置;
 //TRUNCATE TABLE public.t_jihefenxi_boxing;//删除表内所有数据
@@ -54,7 +55,7 @@ namespace Uninpho.Tools.components.DataAnalysis
             if (iszhengc)
             {
                 bool boo = true;
-                if (type != "微小" && type != "功率")
+                if (type != "微小" && type != "功率" && type != "缺口")
                 {
                     SuanFaFrom frm = new SuanFaFrom();
                     frm.StartPosition = FormStartPosition.CenterParent;
@@ -83,7 +84,7 @@ namespace Uninpho.Tools.components.DataAnalysis
             }
             else
             {
-                if (type == "功率")
+                if (type == "功率"|| type == "缺口")
                 {
                     for (int i = 0; i < selectrow.Length; i++)
                     {
@@ -109,16 +110,16 @@ namespace Uninpho.Tools.components.DataAnalysis
                                         b = false;
                                     }
                                 }
-
-                                DataAnalysisToPG.DelUpdataData(GV.GetRowCellValue(selectrow[i], "Id").ToString(), type);
-                        
-                        }
-                        else if (GV.GetRowCellValue(selectrow[i], "Rwzt").ToString() == "算法未执行" && type == "微小")
-                        {
-                            XtraMessageBox.Show("请先执行几何算法!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
-                            iszhengc = false;
-                            break;
-                        }
+                                if(type == "功率")
+                            {
+                                DataAnalysisToPG.DelUpdataDataDWGL(GV.GetRowCellValue(selectrow[i], "Id").ToString(), type);
+                            }
+                            else
+                            {
+                                DataAnalysisToPG.DelUpdataDataDWQK(GV.GetRowCellValue(selectrow[i], "Id").ToString(), type);
+                            }
+                                               
+                        }                       
                     }
                 }
                 else
@@ -246,6 +247,69 @@ namespace Uninpho.Tools.components.DataAnalysis
                     }
                 }
             }
+            else if (type == "功率")
+            {
+                for (int i = 0; i < selectrow.Length; i++)
+                {
+                    boo = true;
+                    GV.SetRowCellValue(selectrow[i], "Taskstatus", "正在执行" + type + "算法...");
+                    T_dwfile_account whichfile = (T_dwfile_account)DataAnalysisToPG.QueryToPGByIdGL(Convert.ToInt32(GV.GetRowCellValue(selectrow[i], "Id").ToString().Trim()));
+                    try
+                    {
+                        await Task.Run(() =>
+                        {                         
+                               GL_new(whichfile);              
+                        });
+                    }
+                    catch (Exception ex)
+                    {
+                        boo = false;
+                        throw;
+                    }
+                    if (boo)
+                    {
+                        GV.SetRowCellValue(selectrow[i], "Taskstatus", type + "算法执行完毕");
+                    }
+                    else
+                    {
+                        GV.SetRowCellValue(selectrow[i], "Taskstatus", "算法执行失败");
+                    }
+
+                }
+
+            }
+
+            else if (type == "缺口")
+            {
+                for (int i = 0; i < selectrow.Length; i++)
+                {
+                    boo = true;
+                    GV.SetRowCellValue(selectrow[i], "Taskstatus", "正在执行" + type + "算法...");
+                    T_dwqkfile_account whichfile = (T_dwqkfile_account)DataAnalysisToPG.QueryToPGByIdQK(Convert.ToInt32(GV.GetRowCellValue(selectrow[i], "Id").ToString().Trim()));
+                    try
+                    {
+                        await Task.Run(() =>
+                        {
+                           QK_new(whichfile);
+                        });
+                    }
+                    catch (Exception ex)
+                    {
+                        boo = false;
+                        throw;
+                    }
+                    if (boo)
+                    {
+                        GV.SetRowCellValue(selectrow[i], "Taskstatus", type + "算法执行完毕");
+                    }
+                    else
+                    {
+                        GV.SetRowCellValue(selectrow[i], "Taskstatus", "算法执行失败");
+                    }
+
+                }
+
+            }
             //提示
             if (boo)
             {
@@ -273,6 +337,8 @@ namespace Uninpho.Tools.components.DataAnalysis
             WXSFFun(whichfile);
         }
 
+
+
         #region 几何算法
         public void JH_new(T_file_account whichfile)
         {
@@ -809,8 +875,290 @@ namespace Uninpho.Tools.components.DataAnalysis
         #endregion
 
 
+        /// 功率算法
+        public void GL_new(T_dwfile_account whichfile)
+        {         
+            string fname_dir0 = Path.GetDirectoryName(whichfile.Srlj) + "\\";
+            string fname0 = Path.GetFileName(whichfile.Srlj);
+            //Console.Write(fname_dir0);
+            //Console.Write(fname0);
 
+            string xianlu = whichfile.Xianlu;
+            string chezhan = whichfile.Chezhan;
+            string filename = whichfile.Filename;
 
+            try
+            {
+                var data = AnalysisAlgorithmcs.GLFX(fname_dir0, fname0, xianlu, chezhan, filename);
+                readGLFX(data, whichfile);              
+            }
+            catch (Exception ex)
+            {
+                XtraMessageBox.Show("文件:" + whichfile.Filename + "执行失败!" + ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                throw;
+            }
+        }
+
+        /// 读功率分析数据     
+        private void readGLFX(MWArray[] agrsOut, T_dwfile_account whichfile)
+        {
+            try
+            {
+                MWCellArray output1 = agrsOut[0] as MWCellArray;//数据
+                MWCellArray output2 = agrsOut[1] as MWCellArray;//时间
+                var table_data = output1.ToArray();
+                var table_date = (object[,])output2.ToArray();
+                
+                List<T_glanalysis_account> GLobjs = new List<T_glanalysis_account>();
+
+                // 假设是二维数组,从第2行开始
+                for (int i = 1; i < (table_data as Array).GetLength(0); i++)
+                {
+                    T_glanalysis_account gldata = new T_glanalysis_account();
+
+                    gldata.Filename = whichfile.Filename;
+                    gldata.Xianlu = whichfile.Xianlu;
+                    gldata.Chezhan = whichfile.Chezhan;
+
+                    // 安全地获取每列数据
+                    gldata.Curvenumber = SafeExtractInt(table_data, i, 2);                  
+                    gldata.Directionalmarker = SafeExtractInt(table_data, i, 3);
+                    gldata.Curvetype = SafeExtractInt(table_data, i, 4);
+                    gldata.Totalwork = SafeExtractDecimal(table_data, i, 5);
+                    gldata.Changerate = SafeExtractDecimal(table_data, i, 6);
+                    gldata.Offsetvalue = SafeExtractDecimal(table_data, i, 7);
+                    gldata.Powervariance = SafeExtractDecimal(table_data, i, 8);
+
+                    // 解析时间
+                    try
+                    {
+                        // 检查时间是否为空
+                        if (table_date[i, 0] is char[,])
+                        {
+                            string timeString = Char2String((char[,])table_date[i, 0]);
+                            if (!string.IsNullOrEmpty(timeString))
+                            {
+                                DateTime parsedTime = DateTime.Parse(timeString); // 解析为 DateTime
+                                gldata.Time = parsedTime.ToString("yyyy-MM-dd HH:mm:ss"); // 格式化为字符串
+                            }
+                            else
+                            {
+                                gldata.Time = null; // 或者设置为默认值
+                            }
+                        }
+                        else
+                        {
+                            gldata.Time = null; // 或者设置为默认值
+                        }
+                    }
+                    catch (FormatException ex)
+                    {
+                        Console.WriteLine($"时间解析失败: {ex.Message}");
+                        gldata.Time = null; // 或者设置为默认值
+                    }
+
+                    GLobjs.Add(gldata);
+                }
+
+                //Console.WriteLine("解析完成,共 " + GLobjs.Count + " 条记录");
+              
+                DataAnalysisToPG.updataTaskstatus(new string[] { whichfile.Id.ToString(), type + "算法执行完毕" });
+                DataAnalysisToPG.InsertGLFXDataToPG(GLobjs);
+              
+            }
+            catch (Exception ex)
+            {
+                //Console.WriteLine("解析出错: " + ex.Message);
+               // Console.WriteLine("堆栈跟踪: " + ex.StackTrace);
+            }
+        }
+
+        private int SafeExtractInt(object table_data, int row, int col)
+        {
+            try
+            {
+                // 尝试直接获取数组元素
+                var cellArray = (table_data as Array).GetValue(row, col);
+
+                // 处理 MWNumericArray
+                if (cellArray is MWNumericArray)
+                {
+                    var numArray = cellArray as MWNumericArray;
+                    return (int)Math.Round(numArray.ToScalarDouble());
+                }
+
+                // 处理 double 数组
+                if (cellArray is double[,])
+                {
+                    var doubleArray = cellArray as double[,];
+                    return (int)Math.Round(doubleArray[0, 0]);
+                }
+
+                // 其他转换尝试
+                return Convert.ToInt32(cellArray);
+            }
+            catch (Exception ex)
+            {
+                //Console.WriteLine($"提取整数失败(row:{row},col:{col}): {ex.Message}");
+                return 0;
+            }
+        }
+
+        private decimal SafeExtractDecimal(object table_data, int row, int col)
+        {
+            try
+            {
+                // 尝试直接获取数组元素
+                var cellArray = (table_data as Array).GetValue(row, col);
+
+                // 处理 MWNumericArray
+                if (cellArray is MWNumericArray)
+                {
+                    var numArray = cellArray as MWNumericArray;
+                    return (decimal)Math.Round(numArray.ToScalarDouble(), 15);
+                }
+
+                // 处理 double 数组
+                if (cellArray is double[,])
+                {
+                    var doubleArray = cellArray as double[,];
+                    return (decimal)Math.Round(doubleArray[0, 0], 15);
+                }
+
+                // 其他转换尝试
+                return Convert.ToDecimal(cellArray);
+            }
+            catch (Exception ex)
+            {
+               // Console.WriteLine($"提取小数失败(row:{row},col:{col}): {ex.Message}");
+                return 0;
+            }
+        }
+
+        ///
+        /// 缺口算法
+        public void QK_new(T_dwqkfile_account whichfile)
+        {
+            string fname_dir0 = Path.GetDirectoryName(whichfile.Srlj) + "\\";
+            string fname0 = Path.GetFileName(whichfile.Srlj);
+            //Console.Write(fname_dir0);
+            //Console.Write(fname0);
+
+            string xianlu = whichfile.Xianlu;
+            string chezhan = whichfile.Chezhan;
+            string filename = whichfile.Filename;
+
+            try
+            {
+                var data = AnalysisAlgorithmcs.QKFX(fname_dir0, fname0, xianlu, chezhan, filename);
+                readQKFX(data, whichfile);
+            }
+            catch (Exception ex)
+            {
+                XtraMessageBox.Show("文件:" + whichfile.Filename + "执行失败!" + ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                throw;
+            }
+        }
+
+        /// 读缺口分析数据     
+        private void readQKFX(MWArray[] agrsOut, T_dwqkfile_account whichfile)
+        {
+            try
+            {
+                MWCellArray output1 = agrsOut[0] as MWCellArray;//数据
+                MWCellArray output2 = agrsOut[1] as MWCellArray;//时间
+                var table_data = output1.ToArray();
+                var table_date = (object[,])output2.ToArray();
+
+                List<T_qkanalysis_account> QKobjs = new List<T_qkanalysis_account>();
+
+                // 假设是二维数组,从第2行开始
+                for (int i = 1; i < (table_data as Array).GetLength(0); i++)
+                {
+                    T_qkanalysis_account qkdata = new T_qkanalysis_account();
+
+                    qkdata.Filename = whichfile.Filename;
+                    qkdata.Xianlu = whichfile.Xianlu;
+                    qkdata.Chezhan = whichfile.Chezhan;
+
+                    // 安全地获取每列数据
+                    qkdata.Gapnumber = SafeExtractInt(table_data, i, 0);
+                    qkdata.Gaptype = SafeExtractInt(table_data, i, 1);
+
+                    qkdata.Movechange = SafeExtractDecimal(table_data, i, 3);
+                    qkdata.Change = SafeExtractDecimal(table_data, i, 4);
+                    qkdata.Passchange = SafeExtractDecimal(table_data, i, 5);
+
+                    // 解析时间
+                    try
+                    {
+                        if (table_date[i, 0] is char[,])
+                        {
+                            string timeString = Char2String((char[,])table_date[i, 0]);
+                            if (!string.IsNullOrEmpty(timeString))
+                            {
+                                DateTime parsedTime;
+                                // 尝试解析两种格式
+                                if (DateTime.TryParseExact(timeString, "dd/MM/yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out parsedTime))
+                                {
+                                    qkdata.Time = parsedTime.ToString("yyyy-MM-dd HH:mm:ss"); // 格式化为字符串
+                                }
+                                else if (DateTime.TryParseExact(timeString, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture, DateTimeStyles.None, out parsedTime))
+                                {
+                                    qkdata.Time = parsedTime.ToString("yyyy-MM-dd HH:mm:ss"); // 格式化为字符串
+                                }
+                                else
+                                {
+                                    qkdata.Time = null; // 或者设置为默认值
+                                }
+                            }
+                            else
+                            {
+                                qkdata.Time = null; // 或者设置为默认值
+                            }
+                        }
+                        else
+                        {
+                            qkdata.Time = null; // 或者设置为默认值
+                        }
+                    }
+                    catch (FormatException ex)
+                    {
+                        Console.WriteLine($"时间解析失败: {ex.Message}");
+                        qkdata.Time = null; // 或者设置为默认值
+                    }
+
+                    QKobjs.Add(qkdata);
+                }
+
+                //Console.WriteLine("解析完成,共 " + GLobjs.Count + " 条记录");
+
+                DataAnalysisToPG.updataTaskstatusQK(new string[] { whichfile.Id.ToString(), type + "算法执行完毕" });
+                DataAnalysisToPG.InsertQKFXDataToPG(QKobjs);
+
+            }
+            catch (Exception ex)
+            {
+                //Console.WriteLine("解析出错: " + ex.Message);
+                // Console.WriteLine("堆栈跟踪: " + ex.StackTrace);
+            }
+        }
+        
+        ///
+
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="jhfe_account"></param>
+        /// <param name="date"></param>
+        /// <param name="car"></param>
+        /// <param name="mile"></param>
+        /// <param name="wave_data"></param>
+        /// <param name="id_wave_all"></param>
+        /// <param name="jx_loc_all"></param>
+        /// <param name="line"></param>
+        /// <param name="velo"></param>
+        /// <param name="zc"></param>
         private void getdataWXSF(List<T_jihefenxi_account> jhfe_account, ref string[] date, ref string[] car, ref double[] mile, ref List<double> wave_data, ref List<double> id_wave_all, ref List<double> jx_loc_all, ref string[] line, ref double[] velo, ref string[] zc)
         {
             int bxindex = 0;

BIN
DPTools/libs/matlabSuanFa/sub_module_power_analysis.dll


BIN
DPTools/libs/matlabSuanFa/sub_module_quekou_analysis.dll


+ 23 - 0
Uninpho.DBOperation/Model/T_glanalysis_account.cs

@@ -0,0 +1,23 @@
+using SqlSugar;
+using System;
+
+namespace Uninpho.DBOperation.Model
+{
+      public class T_glanalysis_account
+    {
+        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
+        public int Id { get; set; }
+        public string Xianlu { get; set; }
+        public string Chezhan { get; set; }
+        public string Time { get; set; }
+        public string Filename { get; set; }
+        public int Curvetype { get; set; }
+        public decimal Totalwork { get; set; }
+        public decimal Changerate { get; set; }
+        public decimal Offsetvalue { get; set; }
+        public int Curvenumber { get; set; }
+        public decimal Powervariance { get; set; }
+        public int Directionalmarker { get; set; }
+
+    }
+}

+ 21 - 0
Uninpho.DBOperation/Model/T_qkanalysis_account.cs

@@ -0,0 +1,21 @@
+using SqlSugar;
+using System;
+
+namespace Uninpho.DBOperation.Model
+{
+      public class T_qkanalysis_account
+    {
+        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
+        public int Id { get; set; }
+        public string Xianlu { get; set; }
+        public string Chezhan { get; set; }
+        public string Time { get; set; }
+        public string Filename { get; set; }
+        public int Gaptype { get; set; }
+        public decimal Movechange { get; set; }
+        public decimal Change { get; set; }
+        public decimal Passchange { get; set; }
+        public int Gapnumber { get; set; }
+      
+    }
+}

+ 102 - 8
Uninpho.DBOperation/Operation/DataAnalysisToPG.cs

@@ -117,6 +117,33 @@ namespace Uninpho.DBOperation.Operation
         /// <summary>
         /// 更新任务状态
         /// </summary>
+        /// 功率
+        public static void updataTaskstatus(string[] Yswjm)
+        {
+            NpgsqlConnection conn = new NpgsqlConnection();
+            conn.ConnectionString = System.Configuration.ConfigurationManager.AppSettings["dbConnection"] as string;
+            NpgsqlCommand comm = new NpgsqlCommand();
+            comm.Connection = conn;
+            conn.Open();
+            comm.CommandText = "UPDATE \"t_dwfile_account\" SET taskstatus = '" + Yswjm[1] + "' WHERE id =" + Yswjm[0];
+            comm.ExecuteNonQuery();
+            conn.Close();
+        }
+        /// <summary>
+        /// 缺口
+        /// </summary>
+        /// <param name="Yswjm"></param>
+        public static void updataTaskstatusQK(string[] Yswjm)
+        {
+            NpgsqlConnection conn = new NpgsqlConnection();
+            conn.ConnectionString = System.Configuration.ConfigurationManager.AppSettings["dbConnection"] as string;
+            NpgsqlCommand comm = new NpgsqlCommand();
+            comm.Connection = conn;
+            conn.Open();
+            comm.CommandText = "UPDATE \"t_dwqkfile_account\" SET taskstatus = '" + Yswjm[1] + "' WHERE id =" + Yswjm[0];
+            comm.ExecuteNonQuery();
+            conn.Close();
+        }
         public static void updataRWZT(string[] Yswjm)
         {
             NpgsqlConnection conn = new NpgsqlConnection();
@@ -279,6 +306,19 @@ namespace Uninpho.DBOperation.Operation
                 db.Insertable(updateObjs).ExecuteCommand();
         }
         /// <summary>
+        /// 道岔 功率 分析表添加新数据
+        /// </summary>
+        public static void InsertGLFXDataToPG(List<T_glanalysis_account> updateObjs)
+        {
+            db.Insertable(updateObjs).ExecuteCommand();
+        }
+        /// 道岔 缺口 分析表添加新数据
+        /// </summary>
+        public static void InsertQKFXDataToPG(List<T_qkanalysis_account> updateObjs)
+        {
+            db.Insertable(updateObjs).ExecuteCommand();
+        }
+        /// <summary>
         /// 轮轨力表添加新数据
         /// </summary>
         public static void InsertLGLDataToPG(List<T_lunguili_account> updateObjs)
@@ -386,13 +426,33 @@ namespace Uninpho.DBOperation.Operation
                 DelToPGJHBX(whichupdata);
                 DelToPGJH(file);
             }
-            //else if (type == "功率")
-            //{
-            //    List<T_dwfile_account> whichupdata = (List<T_dwfile_account>)QueryToPGByName(yswjm);
-            //    DelToPGJHBX(whichupdata);
-            //    DelToPGJH(file);
-            //}
+            else if (type == "功率")
+            {
+                List<T_glanalysis_account> whichupdata = (List<T_glanalysis_account>)QueryToPGByNameGL(yswjm);              
+                DelToPGJH(file);
+            }
+        }
+        /// 删除电务数据
+      
+        public static void DelUpdataDataDWGL(string yswjm, string type)
+        {
+            T_dwfile_account file = db.SqlQueryable<T_dwfile_account>("select * from \"t_dwfile_account\" where id = " + yswjm).ToList()[0];
+          
+                List<T_glanalysis_account> whichupdata = (List<T_glanalysis_account>)QueryToPGByNameGL(yswjm);
+                DelToPGGL(file);
+            
         }
+
+        public static void DelUpdataDataDWQK(string yswjm, string type)
+        {
+            T_dwqkfile_account file = db.SqlQueryable<T_dwqkfile_account>("select * from \"t_dwqkfile_account\" where id = " + yswjm).ToList()[0];
+           
+                List<T_qkanalysis_account> whichupdata = (List<T_qkanalysis_account>)QueryToPGByNameQK(yswjm);
+                DelToPGQK(file);
+            
+        }
+
+
         /// <summary>
         /// 删除数据 by ID
         /// </summary>
@@ -459,6 +519,16 @@ namespace Uninpho.DBOperation.Operation
         {
             db.Deleteable<T_jihefenxi_account>().Where(it => it.Filename_jh  == updateObjs.Id.ToString()).ExecuteCommand();
         }
+        /// 删除功率account表数据
+        /// </summary>
+        public static void DelToPGGL(T_dwfile_account updateObjs)
+        {
+            db.Deleteable<T_glanalysis_account>().Where(it => it.Filename == updateObjs.Id.ToString()).ExecuteCommand();
+        }
+        public static void DelToPGQK(T_dwqkfile_account updateObjs)
+        {
+            db.Deleteable<T_qkanalysis_account>().Where(it => it.Filename == updateObjs.Id.ToString()).ExecuteCommand();
+        }
         /// <summary>
         /// 删除几何波形表数据
         /// </summary>
@@ -502,11 +572,11 @@ namespace Uninpho.DBOperation.Operation
             }
             conn.Close();
         }
-        /// 删除电务功率 算法结果数据 //还未创建对应库
+        /// 删除电务功率 算法结果数据 
         /// </summary>
         public static void DelToDWGL(T_dwfile_account updateObjs)
         {
-            //db.Deleteable<T_lunguili_account>().Where(it => it.Filename_lgl == updateObjs.Id.ToString()).ExecuteCommand();
+            db.Deleteable<T_glanalysis_account>().Where(it => it.Filename == updateObjs.Filename).ExecuteCommand();
         }
         /// <summary>
         /// 删除查询ID暂时添加的波形条数
@@ -557,6 +627,16 @@ namespace Uninpho.DBOperation.Operation
         {
             return db.Queryable<T_file_account>().Where(it => it.Id == id_).Single();
         }
+        ///按id查询功率
+        public static Object QueryToPGByIdGL(int id_)
+        {
+            return db.Queryable<T_dwfile_account>().Where(it => it.Id == id_).Single();
+        }
+        ///按id查询QK
+        public static Object QueryToPGByIdQK(int id_)
+        {
+            return db.Queryable<T_dwqkfile_account>().Where(it => it.Id == id_).Single();
+        }
         /// <summary>
         /// 按文件名查询文件
         /// </summary>
@@ -622,6 +702,20 @@ namespace Uninpho.DBOperation.Operation
         {
             return db.Queryable<T_lunguili_account>().Where(it => it.Filename_lgl == yswjm).ToList();
         }
+        /// <summary>
+        /// 算法按文件名查询GL
+        /// </summary>
+        public static Object QueryToPGByNameGL(string yswjm)
+        {
+            return db.Queryable<T_glanalysis_account>().Where(it => it.Filename == yswjm).ToList();
+        }
+        /// 算法按文件名查询QK
+        /// </summary>
+        public static Object QueryToPGByNameQK(string yswjm)
+        {
+            return db.Queryable<T_qkanalysis_account>().Where(it => it.Filename == yswjm).ToList();
+        }
+
         /// <summary>
         /// 查询几何提取算法线路里程值
         /// </summary>

+ 2 - 0
Uninpho.DBOperation/Uninpho.DBOperation.csproj

@@ -78,6 +78,8 @@
     <Compile Include="Model\Assist_quxian.cs" />
     <Compile Include="Model\Assist_xxxwcsvdata.cs" />
     <Compile Include="Model\T_daocha_account.cs" />
+    <Compile Include="Model\T_qkanalysis_account.cs" />
+    <Compile Include="Model\T_glanalysis_account.cs" />
     <Compile Include="Model\T_dwqkfile_account.cs" />
     <Compile Include="Model\T_dwfile_account .cs" />
     <Compile Include="Model\T_file_account.cs" />