lixiaojun
2024-12-30 c22cc4c60e9ff156fc25b39a5c024cc758df354b
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/00-core/04-monitor/01-monitor/SimulationMonitorHelper.cs
@@ -59,8 +59,8 @@
        public async Task<List<HydroMonitorVmo>> Update(string code)
        {
            var all = await GetAll();
            all.RemoveAll(x => x.Relation == code);
            var monitorList = await BLLFactory<Yw.BLL.HydroMonitor>.Instance.GetByRelation(_visualListHelper.HydroInfo.ID, code);
            all.RemoveAll(x => x.Parter == code);
            var monitorList = await BLLFactory<Yw.BLL.HydroMonitor>.Instance.GetByParter(_visualListHelper.HydroInfo.ID, code);
            if (monitorList != null && monitorList.Count > 0)
            {
                all.AddRange(monitorList);
@@ -74,7 +74,7 @@
        public async Task<List<HydroMonitorVmo>> UpdateDocking(string code)
        {
            var all = await GetAll();
            all.RemoveAll(x => x.Relation == code && x.SourceType == Yw.Hydro.eSourceType.Docking);
            all.RemoveAll(x => x.Parter == code && x.SourceType == Yw.Hydro.eSourceType.Docking);
            var monitorList = await BLLFactory<Yw.BLL.HydroMonitor>.Instance.GetBySourceType(_visualListHelper.HydroInfo.ID, code, Yw.Hydro.eSourceType.Docking);
            if (monitorList != null && monitorList.Count > 0)
            {
@@ -89,7 +89,7 @@
        public async Task Update(string code, eSourceType sourceType, List<HydroMonitorVmo> monitorList)
        {
            var all = await GetAll();
            all.RemoveAll(x => x.Relation == code && x.SourceType == sourceType);
            all.RemoveAll(x => x.Parter == code && x.SourceType == sourceType);
            if (monitorList != null && monitorList.Count > 0)
            {
                all.AddRange(monitorList);
@@ -102,7 +102,7 @@
        public async Task<List<HydroMonitorVmo>> UpdateAnalyse(string code)
        {
            var all = await GetAll();
            all.RemoveAll(x => x.Relation == code && x.SourceType == Yw.Hydro.eSourceType.Analyse);
            all.RemoveAll(x => x.Parter == code && x.SourceType == Yw.Hydro.eSourceType.Analyse);
            var monitorList = await BLLFactory<Yw.BLL.HydroMonitor>.Instance.GetBySourceType(_visualListHelper.HydroInfo.ID, code, Yw.Hydro.eSourceType.Analyse);
            if (monitorList != null && monitorList.Count > 0)
            {