diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/PauseAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/PauseAction.cs
index 4c4c7bc..f0777ec 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/PauseAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/PauseAction.cs
@@ -38,8 +38,29 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var id = Convert.ToInt32(dataGridViewRow.Cells["Id"].Value);
-
+ //Pause
+
+ var i = BasePlcHelper.Instance.RecipePause.LastValue.ToInt();
+ string message = "";
+ if (i == 1)
+ {
+ MessageBox.Show("");
+ message = "系统已经暂停 是否恢复系统";
+ }
+ else
+ {
+ message = "是否暂停系统";
+ }
+
+ if (MessageBox.Show(message, "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) ==
+ DialogResult.OK)
+ {
+ i = BasePlcHelper.Instance.Pause.LastValue.ToInt();
+ var bo = !Convert.ToBoolean(i);
+ BasePlcHelper.Instance.PlcWriteByDataKey(BasePlcHelper.Instance.Pause, new object[] { bo });
+ }
+
}
}
}
\ No newline at end of file
diff --git a/Main/MCEdit/Data/EventConfig/小料称量/榄菊生产计划管理.xml b/Main/MCEdit/Data/EventConfig/小料称量/榄菊生产计划管理.xml
index 25dad42..82a5ce3 100644
--- a/Main/MCEdit/Data/EventConfig/小料称量/榄菊生产计划管理.xml
+++ b/Main/MCEdit/Data/EventConfig/小料称量/榄菊生产计划管理.xml
@@ -25,6 +25,13 @@
下发计划管理
下发计划管理
+
+
+ 暂停计划管理
+ 暂停计划管理
+
+
+
@@ -54,7 +61,10 @@
-
+
+
+
+
@@ -65,6 +75,7 @@
+
diff --git a/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml b/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
index 99e5fbd..d8e55ad 100644
--- a/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
+++ b/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
@@ -88,7 +88,7 @@