From 10f3db53bfbc919ba79fb4e0878df84781c299ad Mon Sep 17 00:00:00 2001 From: wenjy Date: Mon, 7 Aug 2023 15:02:58 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E6=8A=A5=E8=AD=A6=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Alarm/PmtAlarm/FrmInsert.cs | 1 + .../FinishBatch/SaveHelper/AlarmSaveHelper.cs | 3 +++ Main/MCEdit/Data/MCProject/nodeDataSource.xml | 2 +- Main/MCEdit/Data/MCProject/nodeForm/FrmAlarmInfo.xml | 8 ++++---- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Alarm/PmtAlarm/FrmInsert.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Alarm/PmtAlarm/FrmInsert.cs index 91690c2..20ed1fc 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Alarm/PmtAlarm/FrmInsert.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Alarm/PmtAlarm/FrmInsert.cs @@ -299,6 +299,7 @@ namespace Mesnac.Action.ChemicalWeighing.Alarm.PmtAlarm private void btnCancel_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.Close(); } #endregion diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SaveHelper/AlarmSaveHelper.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SaveHelper/AlarmSaveHelper.cs index 07883f6..4317e58 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SaveHelper/AlarmSaveHelper.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SaveHelper/AlarmSaveHelper.cs @@ -24,6 +24,9 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper List _alarmInfoList = Cache.CacheHelper.AlarmInfoList; List _alarmBlockWordList = Cache.CacheHelper.BlockWordList; + + ICSharpCode.Core.LoggingService.Debug("报警参数-实时刷新自动保存报警..."); + #region 读取PLC的报警数据 foreach (Entity.AlarmInfo info in _alarmInfoList) diff --git a/Main/MCEdit/Data/MCProject/nodeDataSource.xml b/Main/MCEdit/Data/MCProject/nodeDataSource.xml index 3600a0d..57415b2 100644 --- a/Main/MCEdit/Data/MCProject/nodeDataSource.xml +++ b/Main/MCEdit/Data/MCProject/nodeDataSource.xml @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/Main/MCEdit/Data/MCProject/nodeForm/FrmAlarmInfo.xml b/Main/MCEdit/Data/MCProject/nodeForm/FrmAlarmInfo.xml index b614b6c..d6997d5 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/FrmAlarmInfo.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/FrmAlarmInfo.xml @@ -28,9 +28,9 @@ False False Fill - 0, 163 + 0, 149 MCDataGridView1 - 1338, 397 + 1338, 411 20 @@ -270,7 +270,7 @@ - AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwA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