From c09478fe73685a87de0c48f9b300008f06408dd8 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 20 十一月 2024 15:15:51 +0800
Subject: [PATCH] 核心界面

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs |   35 ++++++++++++++++++++++++++---------
 1 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs
index 247e86d..9f02f36 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs
@@ -1,6 +1,5 @@
 锘縰sing DevExpress.XtraBars.Docking;
 using DevExpress.XtraBars.Docking2010.Views;
-using HStation.Vmo;
 using Yw.WinFrmUI.Page;
 
 namespace HStation.WinFrmUI
@@ -19,6 +18,7 @@
             this.xhsProjectSimulationFunctionMgrCtrl1.ShowXhsProjectSimulationEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowXhsProjectSimulationEvent;
             this.xhsProjectSimulationFunctionMgrCtrl1.CreateXhsProjectSchemeEvent += XhsProjectSimulationFunctionMgrCtrl1_CreateXhsProjectSchemeEvent;
             this.xhsProjectSimulationFunctionMgrCtrl1.CompareXhsProjectSchemeEvent += XhsProjectSimulationFunctionMgrCtrl1_CompareXhsProjectSchemeEvent;
+            PumpFullInfoViewDlg.JumpPumpFullInfoCtrl += ShowPumpInfo;
         }
 
         private long _projectId;//椤圭洰id
@@ -88,7 +88,6 @@
                 await page.SetBindingData(_project, _projectSite, _hydroInfo);
                 CreatePage(page, guid);
             }
-
         }
 
         //鏄剧ず姘村姏妯℃嫙浜嬩欢
@@ -115,12 +114,16 @@
             {
                 return;
             }
-            var dlg = new AddXhsProjectSimulationSchemeDlg();
-            await dlg.SetBindingData(_projectSite.ID);
-            dlg.ReloadDataEvent += (scheme) =>
-            {
-                this.xhsProjectSimulationFunctionMgrCtrl1.AppendScheme(scheme);
-            };
+            //var dlg = new AddXhsProjectSimulationSchemeDlg();
+            //await dlg.SetBindingData(_projectSite.ID);
+            //dlg.ReloadDataEvent += (scheme) =>
+            //{
+            //    this.xhsProjectSimulationFunctionMgrCtrl1.AppendScheme(scheme);
+            //};
+            //dlg.ShowDialog();
+
+            var dlg = new AddXhsSchemeDlg();
+            await dlg.SetBindingData(_project, _projectSite, _hydroInfo);
             dlg.ShowDialog();
         }
 
@@ -130,7 +133,7 @@
             TipFormHelper.ShowWarn("姝e湪寮�鍙戜腑锛屾暚璇锋湡寰�...");
         }
 
-        #endregion
+        #endregion 鍔熻兘闈㈡澘
 
         #region TabbedView 鐩稿叧浜嬩欢澶勭悊绋嬪簭
 
@@ -412,5 +415,19 @@
         }
 
         #endregion Page
+
+        private void ShowPumpInfo(PumpFullInfoCtrl pumpFullInfoCtrl)
+        {
+            var guid = new PageGuid()
+            {
+                Modular = this.PageGuid.Modular,
+                MoudingType = eMoudingType.Tab,
+                Function = "xhs-project-pump-info",
+            };
+            if (!IsExistPage(guid, true))
+            {
+                CreatePage(pumpFullInfoCtrl, guid);
+            }
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3