Shuxia Ning
2024-11-13 208ca42e1c20afafbe48d66259d553ee81eb48ed
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs
@@ -19,6 +19,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 +89,6 @@
                await page.SetBindingData(_project, _projectSite, _hydroInfo);
                CreatePage(page, guid);
            }
        }
        //显示水力模拟事件
@@ -115,13 +115,17 @@
            {
                return;
            }
            var dlg = new AddXhsProjectSimulationSchemeDlg();
            await dlg.SetBindingData(_projectSite.ID);
            dlg.ReloadDataEvent += (scheme) =>
            {
                this.xhsProjectSimulationFunctionMgrCtrl1.AppendScheme(scheme);
            };
            dlg.ShowDialog();
            //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 +134,7 @@
            TipFormHelper.ShowWarn("正在开发中,敬请期待...");
        }
        #endregion
        #endregion 功能面板
        #region TabbedView 相关事件处理程序
@@ -412,5 +416,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);
            }
        }
    }
}