change - 报警逻辑代码优化

master
wenjy 1 year ago
parent 1704350b44
commit 918e13579f

@ -49,9 +49,9 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SCADAHelper
Mesnac.Basic.InvokeHelper.OnAlarmRefresh += Process_Event;
//报警刷新保存事件绑定
SaveHelper.AlarmSaveHelper.sender = runtime;
SaveHelper.AlarmSaveHelper.OnAlarmSave -= Process_Event;
SaveHelper.AlarmSaveHelper.OnAlarmSave += Process_Event;
SaveHelper.AlarmSaveHelper.Instance.sender = runtime;
SaveHelper.AlarmSaveHelper.Instance.OnAlarmSave -= Process_Event;
SaveHelper.AlarmSaveHelper.Instance.OnAlarmSave += Process_Event;
}

@ -49,9 +49,9 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SCADAHelper
Mesnac.Basic.InvokeHelper.OnAlarmRefreshExtend += Process_Event;
//报警刷新保存事件绑定
SaveHelper.AlarmSaveHelper.senderExtend = runtime;
SaveHelper.AlarmSaveHelper.OnAlarmSaveExtend -= Process_Event;
SaveHelper.AlarmSaveHelper.OnAlarmSaveExtend += Process_Event;
SaveHelper.AlarmSaveHelper.Instance.senderExtend = runtime;
SaveHelper.AlarmSaveHelper.Instance.OnAlarmSaveExtend -= Process_Event;
SaveHelper.AlarmSaveHelper.Instance.OnAlarmSaveExtend += Process_Event;
}

@ -14,7 +14,7 @@ namespace Mesnac.Action.ChemicalWeighing.Test
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime);
FinishBatch.SaveHelper.AlarmSaveHelper.Save();
FinishBatch.SaveHelper.AlarmSaveHelper.Instance.Save();
}
}
}

Loading…
Cancel
Save