|
|
@ -611,14 +611,15 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
#region 维修模式
|
|
|
|
#region 维修模式
|
|
|
|
|
|
|
|
|
|
|
|
if(ControlsEntity.RepairMode == runtime.Sender)
|
|
|
|
if(ControlsEntity.RepairMode == runtime.Sender)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ControlsEntity.RepairState.MCValue.ToString() == "关")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (MessageBox.Show("是否开启维修模式?", "维修模式确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
|
|
|
if (MessageBox.Show("是否开启维修模式?", "维修模式确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ControlsEntity.RepairState.MCValue.ToString() == "关")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
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("维修模式已关闭");
|
|
|
|