Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamProjectData.cs =================================================================== diff -u -r4539 -r6314 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamProjectData.cs (.../DamProjectData.cs) (revision 4539) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamProjectData.cs (.../DamProjectData.cs) (revision 6314) @@ -392,6 +392,47 @@ return null; } + public void TransferOutputTimeSerieToLocationJobs() + { + if (OutputTimeSerieCollection == null) + { + return; + } + + foreach (LocationJob locationJob in LocationJobs) + { + TimeSerie timeSerie = OutputTimeSerieCollection.Series.FirstOrDefault(serie => serie.LocationId == locationJob.Location.Name); + if (timeSerie != null) + { + if (DamProjectCalculationSpecification.CurrentSpecification.FailureMechanismSystemType == FailureMechanismSystemType.Piping) + { + locationJob.LocationResult.PipingTimeSerie = timeSerie; + } + else + { + locationJob.LocationResult.StabilityTimeSerie = timeSerie; + } + } + } + } + + public void TransferInputTimeSerieToLocationJobs() + { + if (InputTimeSerieCollection == null) + { + return; + } + + foreach (LocationJob locationJob in LocationJobs) + { + TimeSerie timeSerie = InputTimeSerieCollection.Series.FirstOrDefault(serie => serie.LocationId == locationJob.Location.Name); + if (timeSerie != null) + { + locationJob.WaterLevelTimeSerie = timeSerie; + } + } + } + public LocationJob GetFirstLocationJobWithCalamityResults() { foreach (LocationJob locationJob in LocationJobs)