From f661d7da8be688bfbe5c4977dc68223b5aa63959 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期六, 12 十月 2024 20:51:36 +0800
Subject: [PATCH] 核心界面调整

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs          |   64 ++++++++++++++++++++-----------
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.Designer.cs |    5 +-
 2 files changed, 44 insertions(+), 25 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.Designer.cs
index c831816..6fe4649 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.Designer.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.Designer.cs
@@ -331,15 +331,16 @@
             pageQ3d.Caption = "姘村姏妯″瀷";
             pageQ3d.Controls.Add(xhsProjectSimulationQ3dCtrl1);
             pageQ3d.Name = "pageQ3d";
-            pageQ3d.Size = new Size(886, 167);
+            pageQ3d.Size = new Size(692, 307);
             // 
             // xhsProjectSimulationQ3dCtrl1
             // 
             xhsProjectSimulationQ3dCtrl1.Dock = DockStyle.Fill;
             xhsProjectSimulationQ3dCtrl1.Location = new Point(0, 0);
             xhsProjectSimulationQ3dCtrl1.Name = "xhsProjectSimulationQ3dCtrl1";
-            xhsProjectSimulationQ3dCtrl1.Size = new Size(886, 167);
+            xhsProjectSimulationQ3dCtrl1.Size = new Size(692, 307);
             xhsProjectSimulationQ3dCtrl1.TabIndex = 0;
+            xhsProjectSimulationQ3dCtrl1.ClickParterEvent += xhsProjectSimulationQ3dCtrl1_ClickParterEvent;
             // 
             // dockManager1
             // 
diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs
index 5c0b8ea..7ee31cc 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs
@@ -1,4 +1,5 @@
 锘縢lobal using Yw.EPAnet;
+using NetTaste;
 
 namespace HStation.WinFrmUI
 {
@@ -12,8 +13,6 @@
             this.docPnlBottom.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
 
         }
-
-
 
         private HStation.Vmo.XhsProjectVmo _project = null;//椤圭洰
         private HStation.Vmo.XhsProjectSiteVmo _projectSite = null;//椤圭洰绔�
@@ -68,27 +67,7 @@
             this.xhsProjectSimulationPropertyCtrl1.InitialData(() => _hydroInfo);
         }
 
-        #region INP瀵煎嚭
 
-        //瀵煎嚭姘村姏INP鏂囦欢
-        private void barBtnHydroExportInp_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
-        {
-            if (_hydroInfo == null)
-            {
-                return;
-            }
-            var fileName = Yw.WinFrmUI.FileDialogHelper.SaveInp("瀵煎嚭Inp鏂囦欢");
-            if (string.IsNullOrEmpty(fileName))
-            {
-                return;
-            }
-            var netWork = Yw.Hydro.ParseHelper.ToNetwork(_hydroInfo);
-            var result = netWork.ToInpString();
-            File.WriteAllText(fileName, result);
-            TipFormHelper.ShowSucceed("瀵煎嚭鎴愬姛");
-        }
-
-        #endregion
 
         #region Bimface
 
@@ -170,7 +149,23 @@
             await this.xhsProjectSimulationBimfaceCtrl1.SetLinkComponentsColor(elementIds);
         }
 
-        #endregion Bimface
+        #endregion
+
+        #region Q3d
+
+        //鐐瑰嚮浜嬩欢
+        private void xhsProjectSimulationQ3dCtrl1_ClickParterEvent(string code)
+        {
+            if (_hydroInfo == null)
+            {
+                return;
+            }
+            var allParterList = _hydroInfo.GetAllParters();
+            _parter = allParterList?.Find(x => x.Code == code);
+            ShowProperty();
+        }
+
+        #endregion
 
         #region 灞炴�ч潰鏉�
 
@@ -451,6 +446,28 @@
 
         #endregion
 
+        #region INP瀵煎嚭
+
+        //瀵煎嚭姘村姏INP鏂囦欢
+        private void barBtnHydroExportInp_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
+        {
+            if (_hydroInfo == null)
+            {
+                return;
+            }
+            var fileName = Yw.WinFrmUI.FileDialogHelper.SaveInp("瀵煎嚭Inp鏂囦欢");
+            if (string.IsNullOrEmpty(fileName))
+            {
+                return;
+            }
+            var netWork = Yw.Hydro.ParseHelper.ToNetwork(_hydroInfo);
+            var result = netWork.ToInpString();
+            File.WriteAllText(fileName, result);
+            TipFormHelper.ShowSucceed("瀵煎嚭鎴愬姛");
+        }
+
+        #endregion
+
         #region 涓氬姟鏂规硶
 
         //鏄剧ず灞炴��
@@ -679,5 +696,6 @@
         #endregion
 
 
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3