Output. ... .Tracing.CheckPreviousRecordOfSingleWM(.) cleanup : E28 is used everywhere : fixed
This commit is contained in:
@@ -280,8 +280,9 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
|
||||
{
|
||||
if (string.IsNullOrEmpty(wm.SerialNr))
|
||||
{
|
||||
/// S/N is missing
|
||||
wm.ProcessId = 0;
|
||||
wm.ErrorFlags |= (int)Config.Entities.ErrorFlagMask.E28;
|
||||
wm.ErrorFlags &= ~(int)Config.Entities.ErrorFlagMask.E28; /// Reset E28 (it is an RFID comm. error, not production tracing error)
|
||||
return Retv.OK;
|
||||
}
|
||||
|
||||
@@ -310,9 +311,9 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
|
||||
|
||||
if (results.Count == 0)
|
||||
{
|
||||
/// No records found => IsLastRecordOk = false
|
||||
/// No records found
|
||||
wm.ProcessId = 0;
|
||||
wm.ErrorFlags &= ~(int)Config.Entities.ErrorFlagMask.E28;
|
||||
wm.ErrorFlags |= (int)Config.Entities.ErrorFlagMask.E28; /// Set E28
|
||||
return Retv.OK;
|
||||
}
|
||||
|
||||
@@ -367,13 +368,15 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
|
||||
verifyReferencePart = vRP;
|
||||
}
|
||||
|
||||
|
||||
wm.ProcessId = currentProcess.Id;
|
||||
wm.ErrorFlags &= ~(int)Config.Entities.ErrorFlagMask.E28;
|
||||
wm.ErrorFlags |= (int)Config.Entities.ErrorFlagMask.E28; /// Set E28 (default if no record fits requirements)
|
||||
foreach (var rslt in results)
|
||||
{
|
||||
if ((verifiedWorkstep.Id == (int)rslt[1]) && (processId == (int)rslt[2]))
|
||||
{
|
||||
wm.ErrorFlags |= (int)Config.Entities.ErrorFlagMask.E28;
|
||||
/// This record fits verification requirements
|
||||
wm.ErrorFlags &= ~(int)Config.Entities.ErrorFlagMask.E28; /// Reset E28
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user