From 80ef0be2e44f42d6f7dc0f9c928de0dbe7362138 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 07 二月 2025 15:05:14 +0800 Subject: [PATCH] 个人中心修改 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs | 53 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 46 insertions(+), 7 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs index c403ae0..dbee295 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/XhsProjectSimulationMgrPage.cs @@ -1,5 +1,4 @@ -锘縰sing DevExpress.Drawing; -using DevExpress.Utils.Svg; +锘縰sing DevExpress.Utils.Svg; using DevExpress.XtraBars.Docking; using DevExpress.XtraBars.Docking2010.Views; using Yw.Vmo; @@ -21,6 +20,7 @@ this.simulationFunctionMgrCtrl1.ProjectSiteWorkingUpdateEvent += SimulationFunctionMgrCtrl1_ProjectSiteWorkingUpdateEvent; this.simulationFunctionMgrCtrl1.ProjectSiteWorkingRemoveEvent += SimulationFunctionMgrCtrl1_ProjectSiteWorkingRemoveEvent; this.simulationFunctionMgrCtrl1.ProjectSiteWorkingCheckedEvent += SimulationFunctionMgrCtrl1_ProjectSiteWorkingCheckedEvent; + this.simulationFunctionMgrCtrl1.ProjectSiteWorkingReloadEvent += SimulationFunctionMgrCtrl1_ProjectSiteWorkingReloadEvent; this.simulationFunctionMgrCtrl1.CreateProjectSiteSchemeEvent += SimulationFunctionMgrCtrl1_CreateProjectSiteSchemeEvent; this.simulationFunctionMgrCtrl1.ProjectSiteSchemeAppendEvent += SimulationFunctionMgrCtrl1_ProjectSiteSchemeAppendEvent; this.simulationFunctionMgrCtrl1.ProjectSiteSchemeUpdateEvent += SimulationFunctionMgrCtrl1_ProjectSiteSchemeUpdateEvent; @@ -124,10 +124,20 @@ //澧炲姞宸ュ喌浜嬩欢 this.simulationFunctionMgrCtrl1.AppendWorking(scheme, working); }; - page.SaveModelEvent += (rhs) => + page.UpdateWorkingEvent += (working) => { - //淇濆瓨妯″瀷浜嬩欢 - return this.simulationFunctionMgrCtrl1.SaveModel(scheme, rhs); + //鏇存柊宸ュ喌浜嬩欢 + this.simulationFunctionMgrCtrl1.UpdateWorking(scheme, working); + }; + page.RemoveWorkingEvent += (working) => + { + //绉婚櫎宸ュ喌浜嬩欢 + this.simulationFunctionMgrCtrl1.RemoveWorking(scheme, working); + }; + page.ReloadWorkingEvent += (dict) => + { + //閲嶈浇宸ュ喌浜嬩欢 + this.simulationFunctionMgrCtrl1.ReloadWorking(scheme, dict); }; page.RefreshModelEvent += () => { @@ -207,7 +217,7 @@ Modular = this.PageGuid.Modular, MoudingType = eMoudingType.Tab, Function = SimulationFunctionHelper.Simulation, - TagName = projectSite.ID.ToString() + TagName = $"{project.ID}-{projectSite.ID}-{scheme?.ID}" }; var page = FindPage(guid); if (page == null) @@ -237,7 +247,7 @@ Modular = this.PageGuid.Modular, MoudingType = eMoudingType.Tab, Function = SimulationFunctionHelper.Simulation, - TagName = projectSite.ID.ToString() + TagName = $"{project.ID}-{projectSite.ID}-{scheme?.ID}" }; var page = FindPage(guid); if (page == null) @@ -252,6 +262,35 @@ ctrl.UpdateWorkingCheckedList(working, hasChecked); } + //椤圭洰绔欏伐鍐甸�夋嫨閲嶈浇浜嬩欢 + private void SimulationFunctionMgrCtrl1_ProjectSiteWorkingReloadEvent + ( + XhsProjectVmo project, + XhsProjectSiteVmo projectSite, + XhsSchemeVmo scheme, + Dictionary<HydroWorkingVmo, bool> dict + ) + { + var guid = new PageGuid() + { + Modular = this.PageGuid.Modular, + MoudingType = eMoudingType.Tab, + Function = SimulationFunctionHelper.Simulation, + TagName = $"{project.ID}-{projectSite.ID}-{scheme?.ID}" + }; + var page = FindPage(guid); + if (page == null) + { + return; + } + var ctrl = page as XhsProjectSimulationCorePage; + if (ctrl == null) + { + return; + } + ctrl.ReloadWorkingCheckedList(dict); + } + //椤圭洰绔欐柟妗堝垱寤轰簨浠� private void SimulationFunctionMgrCtrl1_CreateProjectSiteSchemeEvent ( -- Gitblit v1.9.3