| | |
| | | this.PageTitle.Caption = "水力模拟"; |
| | | this.PageTitle.HeaderSvgImage = this.svgImg32[0]; |
| | | this.PageTitle.SvgImageSize = new Size(24, 24); |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.ShowProjectSiteInfoEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteInfoEvent; |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.ShowProjectSiteSimulationEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteSimulationEvent; |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.ShowProjectSiteWorkingEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteWorkingEvent; |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.ProjectSiteWorkingCheckedEvent += XhsProjectSimulationFunctionMgrCtrl1_ProjectSiteWorkingCheckedEvent; |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.CreateProjectSiteSchemeEvent += XhsProjectSimulationFunctionMgrCtrl1_CreateProjectSiteSchemeEvent; |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.ShowProjectSiteSchemeEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteSchemeEvent; |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.ShowProjectSiteSchemeWorkingEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteSchemeWorkingEvent; |
| | | this.simulationFunctionMgrCtrl1.ShowProjectSiteInfoEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteInfoEvent; |
| | | this.simulationFunctionMgrCtrl1.ShowProjectSiteSimulationEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteSimulationEvent; |
| | | this.simulationFunctionMgrCtrl1.ShowProjectSiteWorkingEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteWorkingEvent; |
| | | this.simulationFunctionMgrCtrl1.ProjectSiteWorkingUpdateEvent += XhsProjectSimulationFunctionMgrCtrl1_ProjectSiteWorkingUpdateEvent; |
| | | this.simulationFunctionMgrCtrl1.ProjectSiteWorkingRemoveEvent += XhsProjectSimulationFunctionMgrCtrl1_ProjectSiteWorkingRemoveEvent; |
| | | this.simulationFunctionMgrCtrl1.ProjectSiteWorkingCheckedEvent += XhsProjectSimulationFunctionMgrCtrl1_ProjectSiteWorkingCheckedEvent; |
| | | this.simulationFunctionMgrCtrl1.CreateProjectSiteSchemeEvent += XhsProjectSimulationFunctionMgrCtrl1_CreateProjectSiteSchemeEvent; |
| | | this.simulationFunctionMgrCtrl1.ShowProjectSiteSchemeEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteSchemeEvent; |
| | | this.simulationFunctionMgrCtrl1.ShowProjectSiteSchemeWorkingEvent += XhsProjectSimulationFunctionMgrCtrl1_ShowProjectSiteSchemeWorkingEvent; |
| | | } |
| | | |
| | | private XhsProjectVmo _project = null;//项目 |
| | |
| | | { |
| | | return; |
| | | } |
| | | await this.xhsProjectSimulationFunctionMgrCtrl1.SetBindingData(_project); |
| | | await this.simulationFunctionMgrCtrl1.SetBindingData(_project); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | page.PageTitle.HeaderSvgImage = svgImage; |
| | | page.AppendWorkingEvent += (working) => |
| | | { |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.AppendWorking(working); |
| | | this.simulationFunctionMgrCtrl1.AppendWorking(working); |
| | | }; |
| | | page.SetBindingData(project, projectSite, hydroInfo, allWorkingCheckedListDict); |
| | | CreatePage(page, guid); |
| | |
| | | var page = new XhsProjectSimulationWorkingPage(); |
| | | page.UpdateWorkingEvent += (rhs) => |
| | | { |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.UpdateWorking(rhs); |
| | | this.simulationFunctionMgrCtrl1.UpdateWorking(rhs); |
| | | }; |
| | | page.RemoveWorkingEvent += (rhs) => |
| | | { |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.RemoveWorking(rhs); |
| | | this.simulationFunctionMgrCtrl1.RemoveWorking(rhs); |
| | | }; |
| | | page.PageTitle.HeaderSvgImage = svgImage; |
| | | page.SetBindingData(project, projectSite, hydroInfo, working); |
| | | CreatePage(page, guid); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //项目站工况更新事件 |
| | | private void XhsProjectSimulationFunctionMgrCtrl1_ProjectSiteWorkingUpdateEvent |
| | | (XhsProjectVmo project, XhsProjectSiteVmo projectSite, Yw.Model.HydroModelInfo hydroInfo, HydroWorkingVmo working) |
| | | { |
| | | var guid = new PageGuid() |
| | | { |
| | | Modular = this.PageGuid.Modular, |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = SimulationFunctionHelper.Simulation, |
| | | TagName = projectSite.ID.ToString() |
| | | }; |
| | | var page = FindPage(guid); |
| | | if (page == null) |
| | | { |
| | | return; |
| | | } |
| | | var ctrl = page as XhsProjectSimulationCorePage; |
| | | if (ctrl == null) |
| | | { |
| | | return; |
| | | } |
| | | ctrl.UpdateWorkingCheckedList(working); |
| | | } |
| | | |
| | | //项目站工况移除事件 |
| | | private void XhsProjectSimulationFunctionMgrCtrl1_ProjectSiteWorkingRemoveEvent |
| | | (XhsProjectVmo project, XhsProjectSiteVmo projectSite, Yw.Model.HydroModelInfo hydroInfo, HydroWorkingVmo working) |
| | | { |
| | | var guid = new PageGuid() |
| | | { |
| | | Modular = this.PageGuid.Modular, |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = SimulationFunctionHelper.Simulation, |
| | | TagName = projectSite.ID.ToString() |
| | | }; |
| | | var page = FindPage(guid); |
| | | if (page == null) |
| | | { |
| | | return; |
| | | } |
| | | var ctrl = page as XhsProjectSimulationCorePage; |
| | | if (ctrl == null) |
| | | { |
| | | return; |
| | | } |
| | | ctrl.RemoveWorkingCheckedList(working); |
| | | } |
| | | |
| | | //项目站工况选择改变事件 |
| | |
| | | dlg.Shown += delegate { WaitFormHelper.HideWaitForm(this.FindForm()); }; |
| | | dlg.ReloadDataEvent += (rhs) => |
| | | { |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.AppendScheme(rhs); |
| | | this.simulationFunctionMgrCtrl1.AppendScheme(rhs); |
| | | }; |
| | | dlg.SetBindingData(project, projectSite, hydroInfo); |
| | | dlg.ShowDialog(); |
| | |
| | | page.PageTitle.HeaderSvgImage = svgImage; |
| | | page.AppendWorkingEvent += (working) => |
| | | { |
| | | this.xhsProjectSimulationFunctionMgrCtrl1.AppendSchemeWorking(scheme, working); |
| | | this.simulationFunctionMgrCtrl1.AppendSchemeWorking(scheme, working); |
| | | }; |
| | | page.SetBindingData(project, projectSite, scheme, hydroInfo, dict); |
| | | CreatePage(page, guid); |