MainSeq change to Restore a previously saved batch results, ver. 2.12.544

This commit is contained in:
Milan Hanajik
2017-04-20 15:53:11 +02:00
parent 45869401ad
commit 9cc9e4b4c9
3 changed files with 46 additions and 9 deletions
+10
View File
@@ -286,6 +286,16 @@ namespace Results
batches = session.QueryOver<Batch>()
.Where(x => (x.BatchNr == batchNr))
.List();
foreach (var batch in batches)
{
batch.TestRslts = session.QueryOver<TestRslt>()
.Where(x => (x.Batch.Id == batch.Id))
.List();
batch.WaterMeters = session.QueryOver<WaterMeter>()
.Where(x => (x.Batch.Id == batch.Id))
.List();
}
}
catch (Exception exc)
{