DB.SensusOracle: saving to disk re-implemented, other minor changes and fixes. TODO: Oracle DB.
This commit is contained in:
@@ -188,7 +188,7 @@ namespace TBF.BenchControl.DataEntry.Standard24
|
||||
{
|
||||
purchaseOrder = dlg.PurchaseOrder;
|
||||
|
||||
for (int i = 0; i < Math.Min(dlg.WaterMetersCount, waterMeters.Count); i++)
|
||||
for (int i = 0; i < Math.Min(dlg.WaterMetersCount, waterMeters.Length); i++)
|
||||
{
|
||||
if (waterMeters[i] != null)
|
||||
{
|
||||
|
||||
@@ -221,13 +221,11 @@ namespace TBF.BenchControl.DataEntry.iPerl
|
||||
/// </summary>
|
||||
/// <param name="waterMeters">Watermetes with information entered in the forms</param>
|
||||
/// <param name="testResults">Test results to be updated with the information</param>
|
||||
public void UpdateTestResults(Results.BatchResults results)
|
||||
public void UpdateTestResults(Results.BatchResults batchResults)
|
||||
{
|
||||
foreach (var testRslt in testResults)
|
||||
foreach (var wm in batchResults.WaterMeters)
|
||||
{
|
||||
if (testRslt.MetersKind != MetersKind.Single) continue;
|
||||
|
||||
testRslt.PurchaseOrder = PurchaseOrder;
|
||||
if (wm != null) wm.PurchaseOrder = PurchaseOrder;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user