|
|
|
@ -38,6 +38,27 @@ 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 });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|