From f6c7e0b68f17c2ecb8981fb62ad650bc4b744bc0 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 27 十一月 2024 17:18:35 +0800
Subject: [PATCH] 增加多工况损失统计

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/02-bimface/ViewXhsProjectBimfacePage.cs |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/02-bimface/ViewXhsProjectBimfacePage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/02-bimface/ViewXhsProjectBimfacePage.cs
index df6e583..e405932 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/02-bimface/ViewXhsProjectBimfacePage.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/02-bimface/ViewXhsProjectBimfacePage.cs
@@ -5,9 +5,12 @@
         public ViewXhsProjectBimfacePage()
         {
             InitializeComponent();
+            this.PageTitle.Caption = "妯″瀷瑙嗗浘";
+            this.PageTitle.HeaderSvgImage = this.svgImg32[0];
+            this.PageTitle.SvgImageSize = new Size(24, 24);
         }
 
-        private XhsProjectStdDto _project = null;
+        private XhsProjectVmo _project = null;
 
         /// <summary>
         /// 缁戝畾鏁版嵁
@@ -15,18 +18,18 @@
         /// <param name="projectId">椤圭洰id</param>
         public async Task SetBindingData(long projectId)
         {
-            _project = await new BLL.XhsProjectStd().GetByID(projectId);
-            this.PageTitle.Caption = $"{_project?.Name}-BIMFACE妯″瀷瑙嗗浘";
+            _project = await BLLFactory<HStation.BLL.XhsProject>.Instance.GetByID(projectId);
+            this.PageTitle.Caption = $"{_project?.Name}\n妯″瀷瑙嗗浘";
         }
 
         /// <summary>
         /// 缁戝畾鏁版嵁
         /// </summary>
         /// <param name="project">椤圭洰</param>
-        public void SetBindingData(HStation.Dto.XhsProjectStdDto project)
+        public void SetBindingData(XhsProjectVmo project)
         {
             _project = project;
-            this.PageTitle.Caption = $"{project.Name}-BIMFACE妯″瀷瑙嗗浘";
+            this.PageTitle.Caption = $"{_project?.Name}\n妯″瀷瑙嗗浘";
         }
 
         /// <summary>
@@ -49,20 +52,20 @@
                 return;
             }
 
-            var projectSite = await new BLL.XhsProjectSiteStd().GetDefaultByProjectID(_project.ID);
+            var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_project.ID);
             if (projectSite == null)
             {
                 return;
             }
 
-            var relation = await new Yw.BLL.BimfaceFileRelationStd()
+            var relation = await BLLFactory<Yw.BLL.BimfaceFileRelation>.Instance
                 .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, Yw.Bimface.Purpose.Simulation);
             if (relation == null)
             {
                 return;
             }
 
-            var bimfaceFile = await new Yw.BLL.BimfaceFileStd().GetByID(relation.BimfaceFileID);
+            var bimfaceFile = await BLLFactory<Yw.BLL.BimfaceFile>.Instance.GetByID(relation.BimfaceFileID);
             if (bimfaceFile == null)
             {
                 return;
@@ -74,7 +77,6 @@
                 return;
             }
             await this.bimfaceInterop3dContainer1.LoadView(viewToken);
-
         }
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3