SharedDatabase entities/mappings changes, StepRecord added, RR.Code1,2,3,4, etc. Workplace ver. 3.1.14

This commit is contained in:
Milan Hanajik
2022-01-10 07:27:18 +01:00
parent c75e3d08d3
commit a6ba6e26b2
30 changed files with 446 additions and 1424 deletions
+4 -4
View File
@@ -810,8 +810,8 @@ namespace GenericTest
/// A valid serial number is available => proceed
///
ITransaction transaction = null;
Process proc = null;
OrderInfo order = null;
string proc = null;
string order = null;
bool readingFromTracingDBFailed = false; /// Reading form tracing DB failed (equipment error)
bool savingToTracingDBFailed = false; /// Writing to tracoing DB failed (equipment error)
bool verificationFailed = false; /// Reading/writing from/to tracing DB OK, but verification failed (product error)
@@ -824,7 +824,7 @@ namespace GenericTest
transaction = dbSession.BeginTransaction();
/// Get a process of the last reference record with this PCB number
proc = TracingDB.GetWorkflow(dbSession, testerRecord.SN, out order);
proc = TracingDB.GetWorkflow(dbSession, testerRecord.SN, 1, out order);
/// Check if a record from the previous workplace exists
if (proc == null)
@@ -863,7 +863,7 @@ namespace GenericTest
{
/// Fetch all GOOD reference records with given code
IList<ReferenceRecord> refRecords = dbSession.QueryOver<ReferenceRecord>()
.Where(rr => ((rr.Code == testerRecord.SN) && (rr.Result == 0)))
.Where(rr => ((rr.Code1 == testerRecord.SN) && (rr.Result == 0)))
.And(rr => (rr.Workstep == verInfo.Workstep))
.JoinQueryOver<Workstep>(rr => rr.Workstep)
.Where(ws => (ws.ReferencePart.Id == verInfo.Part.Id))