Updated WO_LOG_ACTIONS to also set the legacy status field in the WO_LOG table. Updated GetIQSViolationData to only update the Reactor record if something has changed.
This commit is contained in:
@ -3754,12 +3754,16 @@ Service UpdateReactorIQSViolations()
|
||||
// Clear last active alarm
|
||||
HaveLock = Database_Services('GetKeyIDLock', 'REACTOR', ReactNo, True$)
|
||||
If HaveLock then
|
||||
ReactorRec = Database_Services('ReadDataRow', 'REACTOR', ReactNo)
|
||||
ReactorRec = Database_Services('ReadDataRow', 'REACTOR', ReactNo)
|
||||
If Error_Services('NoError') then
|
||||
ReactorRec<REACTOR_IQS_ALARM_DTM$> = ''
|
||||
ReactorRec<REACTOR_IQS_ALARM_TEST$> = ''
|
||||
// WriteDataRow will clear the lock as long as "IgnoreAllLocks" is false
|
||||
Database_Services('WriteDataRow', 'REACTOR', ReactNo, ReactorRec, True$, False$, False$)
|
||||
CurrAlarmDtm = ReactorRec<REACTOR_IQS_ALARM_DTM$>
|
||||
CurrAlarmTest = ReactorRec<REACTOR_IQS_ALARM_TEST$>
|
||||
If ( (CurrAlarmDtm NE '') or (CurrAlarmTest NE '') ) then
|
||||
ReactorRec<REACTOR_IQS_ALARM_DTM$> = ''
|
||||
ReactorRec<REACTOR_IQS_ALARM_TEST$> = ''
|
||||
// WriteDataRow will clear the lock as long as "IgnoreAllLocks" is false
|
||||
Database_Services('WriteDataRow', 'REACTOR', ReactNo, ReactorRec, True$, False$, False$)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user