Updated "UP" status to include UP_WITH_INCREASED_SAMPLING_METROLOGY
This commit is contained in:
@ -540,7 +540,7 @@ public class ScrapeDatabaseRepository : IScrapeDatabaseRepository
|
||||
string query = "SELECT TOP 1 DATEDIFF(MINUTE,STOP_DTM,SYSDATETIME()) " +
|
||||
" FROM REACT_MODE " +
|
||||
" WHERE REACT_NO = @reactorNumber " +
|
||||
" AND (MODE = 'UP' OR MODE = 'UP_WITH_INCREASED_SAMPLING') " +
|
||||
" AND (MODE = 'UP' OR MODE LIKE '%UP_WITH_INCREASED_SAMPLING%') " +
|
||||
"ORDER BY START_DTM DESC";
|
||||
|
||||
cmd.CommandText = query;
|
||||
|
@ -162,7 +162,7 @@ public class ToolEventView
|
||||
if (evnt.ToUpper() == "UP")
|
||||
return true;
|
||||
|
||||
if (evnt.ToUpper() == "UP_WITH_INCREASED_SAMPLING")
|
||||
if (evnt.ToUpper().Contains("UP_WITH_INCREASED_SAMPLING"))
|
||||
return true;
|
||||
|
||||
if (evnt.ToUpper() == "IDLE")
|
||||
@ -174,9 +174,6 @@ public class ToolEventView
|
||||
if (evnt.ToUpper() == "WAITING_FOR_ENGINEER_SCHEDULED")
|
||||
return true;
|
||||
|
||||
if (evnt.ToUpper() == "UP_WITH_INCREASED_SAMPLING_SURFACE")
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user