diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshAction.cs index 41ce2f6..c49fd40 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshAction.cs @@ -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; } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs index 8eb8de1..5b2f032 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs @@ -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; } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestTrigerAlarmAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestTrigerAlarmAction.cs index 9d4fa81..4b84de9 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestTrigerAlarmAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestTrigerAlarmAction.cs @@ -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(); } } }