Bug fix: WMTypeId and WMTypeRev in Results.Entities.WaterMeterData were not initialized.

This commit is contained in:
Milan Hanajik
2016-01-10 13:02:26 +01:00
parent 6d47789708
commit d1ef582349
2 changed files with 13 additions and 2 deletions
@@ -254,7 +254,15 @@ namespace TBF.BenchControl.Sequences
Qn = WaterMeters[i].Qn,
Compound = compound,
};
}
#if IPERLST
BenchControl.WaterMeters.iPerl.WaterMeter iPerl = WaterMeters[i] as BenchControl.WaterMeters.iPerl.WaterMeter;
if (iPerl != null)
{
waterMeterData[i].WMTypeId = iPerl.WMType_ID;
waterMeterData[i].WMTypeRev = iPerl.WMType_Rev;
}
#endif
}
/// Prepare empty results
BatchRslts = Results.BatchResults.NewFromProcedure(Program.LocalSettings.BatchNr, BenchInfo.TestBenchId,