lixiaojun
2024-09-11 ec0d0b6f8e3ac7791c736ae8aad69c4a1587cad9
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/XhsSchemeMultiMgrPage_Bak.cs
@@ -1,4 +1,6 @@
namespace HStation.WinFrmUI
using HStation.Vmo;
namespace HStation.WinFrmUI
{
    public partial class XhsSchemeMultiMgrPage_Bak : DocumentPage
    {
@@ -10,7 +12,7 @@
            this.PageTitle.SvgImageSize = new Size(24, 24);
        }
        private XhsProjectStdDto _project = null;
        private XhsProjectVmo _project = null;
        private Yw.Model.HydroModelInfo _hydroInfo = null;
        /// <summary>
@@ -19,9 +21,9 @@
        /// <param name="projectId">项目id</param>
        public async Task SetBindingData(long projectId)
        {
            _project = await new BLL.XhsProjectStd().GetByID(projectId);
            _project = await BLLFactory<HStation.BLL.XhsProject>.Instance.GetByID(projectId);
            this.PageTitle.Caption = $"{_project?.Name}\r\n方案管理";
            var projectSite = await new BLL.XhsProjectSiteStd().GetDefaultByProjectID(_project.ID);
            var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_project.ID);
            if (projectSite == null)
            {
                return;
@@ -41,7 +43,7 @@
        /// 绑定数据
        /// </summary>
        /// <param name="project">项目</param>
        public void SetBindingData(HStation.Dto.XhsProjectStdDto project)
        public void SetBindingData(XhsProjectVmo project)
        {
            _project = project;
            this.PageTitle.Caption = $"{_project?.Name}\n方案管理";
@@ -68,20 +70,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;