生产计划

master
nodyang 1 year ago
parent 4ad8952ab1
commit a1c9ba3aac

@ -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 });
}
}
}
}

@ -25,6 +25,13 @@
<Caption>下发计划管理</Caption>
<Remark>下发计划管理</Remark>
</Action>
<Action action="465E50FDD19DD0AC66F28E4489F5F1DA">
<Caption>暂停计划管理</Caption>
<Remark>暂停计划管理</Remark>
</Action>
</Path>
</Design>
@ -54,7 +61,10 @@
<Runtime action="B66445AADCB561B9AE43E8E7ED1AB55C"/>
</Design>
<Design action="465E50FDD19DD0AC66F28E4489F5F1DA">
<Runtime action="77A5B59C593DBB7C3595D08ACF11B37C"/>
</Design>
</DesignToRuntime>
<Runtime>
@ -65,6 +75,7 @@
<Action action="37268673EC12B2C11AE178FF7E965F6B" class="Mesnac.Action.ChemicalWeighing.LjPlanning.DelAction"/>
<Action action="B66445AADCB561B9AE43E8E7ED1AB55C" class="Mesnac.Action.ChemicalWeighing.LjPlanning.DownloadAction"/>
<Action action="77A5B59C593DBB7C3595D08ACF11B37C" class="Mesnac.Action.ChemicalWeighing.LjPlanning.PauseAction"/>
</Import>
</Runtime>

@ -88,7 +88,7 @@
</Object>
<Object type="Mesnac.Controls.Default.MCButton, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="MCButton6" children="Controls">
<Property name="ClickActionList">
<Binary>AAEAAAD/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aW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAEAAAASAAAABwMAAAAAAQAAAAQAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAJBAAAAA0DBQQAAAAhTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uAwAAABU8R1VJRD5rX19CYWNraW5nRmllbGQVPE5hbWU+a19fQmFja2luZ0ZpZWxkFzxSZW1hcms+a19fQmFja2luZ0ZpZWxkAQEBAgAAAAYFAAAAIDQ2NUU1MEZERDE5REQwQUM2NkYyOEU0NDg5RjVGMURBBgYAAAAS5pqC5YGc6K6h5YiS566h55CGBgcAAAAS5pqC5YGc6K6h5YiS566h55CGCw==</Binary>
</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />

Loading…
Cancel
Save