|
|
@@ -46,13 +46,13 @@ namespace VehicleControlSystem.Managers
|
|
|
{
|
|
|
this.ActiveAlarms.ForEach(x =>
|
|
|
{
|
|
|
- if (x.AlarmId != 45)
|
|
|
- this.OnClearAlarm?.Invoke(x.AlarmId);
|
|
|
+ this.OnClearAlarm?.Invoke(x.AlarmId);
|
|
|
|
|
|
var al = ObjectCopyUtils.DeepClone<Alarm>(x);
|
|
|
var args = new ActiveAlarmEventArgs(al, false);
|
|
|
this.eventAggregator.GetEvent<ActiveAlarmPubSubEvent>().Publish(args);
|
|
|
});
|
|
|
+
|
|
|
this.ActiveAlarms.Clear();
|
|
|
//if ( this.activeAlarm == null ) return;
|
|
|
//this.OnClearAlarm?.BeginInvoke( this.activeAlarm.AlarmId, null, null );
|
|
|
@@ -394,15 +394,14 @@ namespace VehicleControlSystem.Managers
|
|
|
//Add History
|
|
|
sql.HisAlarmDAL.Insert(hisAlarm);
|
|
|
logger.I($"[Alarm Occur] - ID : {alarmID} / Text : {hisAlarm.Text}");
|
|
|
-
|
|
|
+
|
|
|
if (this.ActiveAlarms == null)
|
|
|
return;
|
|
|
|
|
|
if (!this.ActiveAlarms.Any(x => x.AlarmId == alarmID))
|
|
|
{
|
|
|
//OCS Report
|
|
|
- if (alarm.AlarmId != 45) //2021.09.13 Kang Servo Fault 알람은 제거 요청(나성권B)
|
|
|
- this.OnOccurAlarm?.Invoke(alarm.AlarmId);
|
|
|
+ this.OnOccurAlarm?.Invoke(alarm.AlarmId);
|
|
|
|
|
|
var cloneAlarm = ObjectCopyUtils.DeepClone<Alarm>(alarm);
|
|
|
this.activeAlarm = cloneAlarm;
|
|
|
@@ -452,8 +451,7 @@ namespace VehicleControlSystem.Managers
|
|
|
this.ActiveAlarms.Remove(alarm);
|
|
|
logger.I($"[{this.GetType().Name}] - Alarm Clear [{alarmID}]");
|
|
|
|
|
|
- if (alarm.AlarmId != 45) //2021.09.13 Kang Servo Fault 알람은 제거 요청(나성권B)
|
|
|
- this.OnClearAlarm?.Invoke(alarm.AlarmId);
|
|
|
+ this.OnClearAlarm?.Invoke(alarm.AlarmId);
|
|
|
|
|
|
var al = ObjectCopyUtils.DeepClone<Alarm>(alarm);
|
|
|
var args = new ActiveAlarmEventArgs(al, false);
|