lixiaojun
2024-12-09 4607e20cecf567ee2e86f9a07158deaa1b74d622
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/01-info/XhsProjectSimulationInfoPage.cs
@@ -6,7 +6,7 @@
        {
            InitializeComponent();
            this.PageTitle.Caption = "项目概况";
            this.PageTitle.HeaderSvgImage = this.svgImg32[0];
            //this.PageTitle.HeaderSvgImage = this.svgImg32[0];
        }
        private XhsProjectVmo _project = null;//项目
@@ -16,7 +16,7 @@
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(XhsProjectVmo project, XhsProjectSiteVmo projectSite)
        public void SetBindingData(XhsProjectVmo project, XhsProjectSiteVmo projectSite, Yw.Model.HydroModelInfo hydroInfo)
        {
            if (project == null)
            {
@@ -24,26 +24,16 @@
            }
            _project = project;
            _projectSite = projectSite;
            this.PageTitle.Caption = $"{_project.Name}\r\n项目概况";
            _hydroInfo = hydroInfo;
            this.PageTitle.Caption = $"项目概况";
        }
        /// <summary>
        /// 初始化数据
        /// </summary>
        public async override void InitialDataSource()
        public override void InitialDataSource()
        {
            base.InitialDataSource();
            if (_project == null)
            {
                return;
            }
            var hydroRelation = await BLLFactory<Yw.BLL.HydroModelRelation>.Instance
                     .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, _projectSite.ID, HStation.Xhs.Purpose.Simulation);
            if (hydroRelation == null)
            {
                return;
            }
            _hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroRelation.ModelID);
        }
        private async void widgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e)