ResultsTabPageCtrl : iPerl is rejected also when proefindex==limit and it failed the test, ver. 2.18.1163

This commit is contained in:
Milan Hanajik
2019-03-13 08:50:43 +01:00
parent 70cba76ffd
commit 3e54204a17
2 changed files with 16 additions and 4 deletions
+2 -2
View File
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.18.1162.0")]
[assembly: AssemblyFileVersion("2.18.1162.0")]
[assembly: AssemblyVersion("2.18.1163.0")]
[assembly: AssemblyFileVersion("2.18.1163.0")]
+14 -2
View File
@@ -374,8 +374,20 @@ namespace TBF.Screens
else if (wmtrCompleted)
{
/// Water meter was completed but did not pass => Failed
message = Strings.Failed;
return NokColor;
#if ORACLE_DB
if ((TBF.BenchControl.Sequences.ProcessData.BenchInfo is TBF.BenchControl.BenchInfo.iPerl.Component) &&
wMtr.Pruefindex >= (TBF.BenchControl.Sequences.ProcessData.BenchInfo as TBF.BenchControl.BenchInfo.iPerl.Component).MaxTestIndex)
{
/// Proefindex reached the limit => Proefindex would be above this limit next time => Reject
message = Strings.Test_repetition_count_exceeded_upper_limit;
return RejectColor;
}
else
#endif
{
message = Strings.Failed;
return NokColor;
}
}
else
{