| | |
| | | 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); |
| | |
| | | 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) |
| | | { |
| | |
| | | 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); |
| | |
| | | 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) |
| | | { |