Bug fix in Output.DB.SaveFowmeterCorrections, ver. 2.18.803
This commit is contained in:
@@ -92,8 +92,14 @@ namespace TBF.BenchControl.Output.DB.SaveFlowmeterCorrections
|
||||
|
||||
void DeleteExistingCorrections(ISession session, Component cmpnt, int rangeIx)
|
||||
{
|
||||
foreach (var mc in cmpnt.Corrections) session.Delete(mc);
|
||||
cmpnt.Corrections.Clear();
|
||||
foreach (var mc in cmpnt.Corrections)
|
||||
{
|
||||
if (mc.RangeIx == rangeIx)
|
||||
{
|
||||
session.Delete(mc);
|
||||
cmpnt.Corrections.Remove(mc);
|
||||
}
|
||||
}
|
||||
session.SaveOrUpdate(cmpnt);
|
||||
}
|
||||
|
||||
@@ -103,6 +109,7 @@ namespace TBF.BenchControl.Output.DB.SaveFlowmeterCorrections
|
||||
|
||||
foreach (var mc in corrections)
|
||||
{
|
||||
mc.RangeIx = rangeIx;
|
||||
cmpnt.Corrections.Add(mc);
|
||||
session.SaveOrUpdate(mc);
|
||||
}
|
||||
|
||||
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.18.802.0")]
|
||||
[assembly: AssemblyFileVersion("2.18.802.0")]
|
||||
[assembly: AssemblyVersion("2.18.803.0")]
|
||||
[assembly: AssemblyFileVersion("2.18.803.0")]
|
||||
|
||||
Reference in New Issue
Block a user