RealDensity, AtTemperature, Buoyancy are stored in Results DB in Batch table.
This commit is contained in:
@@ -32,9 +32,6 @@ namespace TBF.BenchControl.DataContainers.Buoyancy
|
||||
/// This is to use data in formulas
|
||||
Config.Data.Buoyancy = Buoyancy;
|
||||
|
||||
/// This is to have data in reports
|
||||
Results.WMeterRsltItemSpec.Buoyancy = Buoyancy;
|
||||
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
@@ -34,10 +34,6 @@ namespace TBF.BenchControl.DataContainers.Density
|
||||
Config.Data.RealDensity = RealDensity;
|
||||
Config.Data.AtTemperature = AtTemperature;
|
||||
|
||||
/// This is to have data in reports
|
||||
Results.WMeterRsltItemSpec.RealDensity = RealDensity;
|
||||
Results.WMeterRsltItemSpec.AtTemperature = AtTemperature;
|
||||
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
@@ -636,8 +636,9 @@ namespace TBF.BenchControl.Sequences
|
||||
StateMachine.Procedure,
|
||||
waterMeterData,
|
||||
waterMeterParts,
|
||||
Config.Formulas.DensityCorrection(Config.Formulas.RealDensity(),
|
||||
Config.Formulas.AtTemperature()));
|
||||
Config.Formulas.RealDensity(),
|
||||
Config.Formulas.AtTemperature(),
|
||||
Config.Formulas.Buoyancy());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -84,8 +84,7 @@ namespace TBF.UI.Bench.Metrology
|
||||
{
|
||||
double buoyancy = Utils.ParseUDouble(buoyancyTextBox.Text);
|
||||
|
||||
Results.WMeterRsltItemSpec.Buoyancy =
|
||||
Config.Data.Buoyancy = BuoyancyCfg.Buoyancy = buoyancy;
|
||||
Config.Data.Buoyancy = BuoyancyCfg.Buoyancy = buoyancy;
|
||||
|
||||
Component modified = BuoyancyCfg.CreateDbEntity();
|
||||
MeterEntity.Parameters = modified.Parameters;
|
||||
|
||||
@@ -113,11 +113,9 @@ namespace TBF.UI.Bench.Metrology
|
||||
double realDensity = Utils.ParseUDouble(densityTextBox.Text);
|
||||
double atTemperature = Utils.ParseUDouble(temperatureTextBox.Text);
|
||||
|
||||
Results.WMeterRsltItemSpec.RealDensity =
|
||||
Config.Data.RealDensity = DensityCfg.RealDensity = realDensity;
|
||||
|
||||
Results.WMeterRsltItemSpec.AtTemperature =
|
||||
Config.Data.AtTemperature = DensityCfg.AtTemperature = atTemperature;
|
||||
Config.Data.RealDensity = DensityCfg.RealDensity = realDensity;
|
||||
Config.Data.AtTemperature = DensityCfg.AtTemperature = atTemperature;
|
||||
|
||||
DensityCfg.CalibCertificateNr = calibCertificateNrTextBox.Text;
|
||||
DensityCfg.CalibDate = calibDateTimePicker.Value.Date;
|
||||
DensityCfg.CalibValidDate = calibExpirationDateTimePicker.Value.Date;
|
||||
|
||||
Reference in New Issue
Block a user