|
|
@ -612,13 +612,14 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
|
|
|
|
|
|
|
if(ControlsEntity.RepairMode == runtime.Sender)
|
|
|
|
if(ControlsEntity.RepairMode == runtime.Sender)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (MessageBox.Show("是否开启维修模式?", "维修模式确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ControlsEntity.RepairState.MCValue.ToString() == "关")
|
|
|
|
if (ControlsEntity.RepairState.MCValue.ToString() == "关")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (MessageBox.Show("是否开启维修模式?", "维修模式确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
Db3000Helper.WriteModel(SingleSelect(), true);
|
|
|
|
Db3000Helper.WriteModel(SingleSelect(), true);
|
|
|
|
ControlsEntity.RepairState.MCValue = "开";
|
|
|
|
ControlsEntity.RepairState.MCValue = "开";
|
|
|
|
MessageBox.Show("维修模式已开启");
|
|
|
|
MessageBox.Show("维修模式已开启");
|
|
|
@ -627,6 +628,10 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (ControlsEntity.RepairState.MCValue.ToString() == "开")
|
|
|
|
if (ControlsEntity.RepairState.MCValue.ToString() == "开")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (MessageBox.Show("是否关闭维修模式?", "维修模式确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
Db3000Helper.WriteModel(SingleSelect(), false);
|
|
|
|
Db3000Helper.WriteModel(SingleSelect(), false);
|
|
|
|
ControlsEntity.RepairState.MCValue = "关";
|
|
|
|
ControlsEntity.RepairState.MCValue = "关";
|
|
|
|
MessageBox.Show("维修模式已关闭");
|
|
|
|
MessageBox.Show("维修模式已关闭");
|
|
|
|