Output.ProductionTracing.Tracing.CheckPreviousRecordOfSingleWM(.) cleanup : E28 is used everywhere, ver. 2.18.1225

This commit is contained in:
Milan Hanajik
2019-05-13 09:50:58 +02:00
parent d51edbfbfe
commit 3075169fd1
6 changed files with 31 additions and 33 deletions
@@ -281,7 +281,7 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
if (string.IsNullOrEmpty(wm.SerialNr))
{
wm.ProcessId = 0;
wm.IsLastRecordOk = true;
wm.ErrorFlags |= (int)Config.Entities.ErrorFlagMask.E28;
return Retv.OK;
}
@@ -312,7 +312,7 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
{
/// No records found => IsLastRecordOk = false
wm.ProcessId = 0;
wm.IsLastRecordOk = false;
wm.ErrorFlags &= ~(int)Config.Entities.ErrorFlagMask.E28;
return Retv.OK;
}
@@ -368,12 +368,12 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
}
wm.ProcessId = currentProcess.Id;
wm.IsLastRecordOk = false;
wm.ErrorFlags &= ~(int)Config.Entities.ErrorFlagMask.E28;
foreach (var rslt in results)
{
if ((verifiedWorkstep.Id == (int)rslt[1]) && (processId == (int)rslt[2]))
{
wm.IsLastRecordOk = true;
wm.ErrorFlags |= (int)Config.Entities.ErrorFlagMask.E28;
break;
}
}
@@ -165,7 +165,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
if (arg.ToLower() == "prevworkstep")
{
if (!wm.IsLastRecordOk)
if ((wm.ErrorFlags & (int)Config.Entities.ErrorFlagMask.E28) != 0)
{
anyErrorOfThisMeter = true;
message += string.Format("iPerl{0} : Predchádzajúci krok nebol zaznamenaný{1}", wm.WMPosition, Environment.NewLine);