Bug fixes in results display in case test parts are used for standard meters, version 1.5.46.
This commit is contained in:
@@ -286,9 +286,11 @@ namespace TBF.Screens
|
||||
}
|
||||
}
|
||||
|
||||
IList<string> testNames = GetAllDecoratedTestNames(mtr);
|
||||
int ix = 0;
|
||||
foreach (var testRslt in Utils.GetSortedTestResults(procedure, testResults, Utils.PartNr(mtr, combined)))
|
||||
int meterPartNr = Utils.PartNr(mtr, combined);
|
||||
IList<string> testNames = GetAllDecoratedTestNames(meterPartNr);
|
||||
IList<Entities.TestResult> sortedResults = Utils.GetSortedTestResults(procedure, testResults, meterPartNr);
|
||||
int ix = 0;
|
||||
foreach (var testRslt in sortedResults)
|
||||
{
|
||||
ListViewItem lvi = new ListViewItem(testNames[ix++]);
|
||||
if (testRslt != null)
|
||||
@@ -350,7 +352,7 @@ namespace TBF.Screens
|
||||
{
|
||||
lview.Columns.Add(printedWMNr.ToString(), (ls.RsltsCombinedClmnCount > 0) ? ls.RsltsCombinedClmnWdths[0] : 40);
|
||||
int i = 1;
|
||||
foreach (var str in GetAllDecoratedTestNames(mtr))
|
||||
foreach (var str in GetAllDecoratedTestNames(Utils.PartNr(mtr, combined)))
|
||||
{
|
||||
lview.Columns.Add(str, (ls.RsltsCombinedClmnCount > i) ? ls.RsltsCombinedClmnWdths[i] : 70);
|
||||
i++;
|
||||
@@ -360,7 +362,7 @@ namespace TBF.Screens
|
||||
{
|
||||
lview.Columns.Add(printedWMNr.ToString(), (ls.RsltsSingleClmnCount > 0) ? ls.RsltsSingleClmnWdths[0] : 40);
|
||||
int i = 1;
|
||||
foreach (var str in GetAllDecoratedTestNames(mtr))
|
||||
foreach (var str in GetAllDecoratedTestNames(Utils.PartNr(mtr, combined)))
|
||||
{
|
||||
lview.Columns.Add(str, (ls.RsltsSingleClmnCount > i) ? ls.RsltsSingleClmnWdths[i] : 70);
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user