DB.SensusOracle: saving to disk re-implemented, other minor changes and fixes. TODO: Oracle DB.

This commit is contained in:
Milan Hanajik
2016-01-06 22:37:19 +01:00
parent 1ee5724082
commit 1585066b57
5 changed files with 180 additions and 280 deletions
@@ -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;
}
}
}