|
|
@ -714,7 +714,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
|
|
|
|
|
|
|
#region 湿混机手动下粉料
|
|
|
|
#region 湿混机手动下粉料
|
|
|
|
|
|
|
|
|
|
|
|
public static void WetGelatDownload(MCTextBoxEntity TextE, MCRadioButtonEntity RadioE)
|
|
|
|
public static bool WetGelatDownload(MCTextBoxEntity TextE, MCRadioButtonEntity RadioE)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
float t = Convert.ToSingle(TextE.ManualTolerance.MCValue.ToString());
|
|
|
|
float t = Convert.ToSingle(TextE.ManualTolerance.MCValue.ToString());
|
|
|
|
float w = Convert.ToSingle(TextE.ManualWeight.MCValue.ToString());
|
|
|
|
float w = Convert.ToSingle(TextE.ManualWeight.MCValue.ToString());
|
|
|
@ -722,7 +722,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
if (t < 0.1)
|
|
|
|
if (t < 0.1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MessageBox.Show("公差不能小于0.1!");
|
|
|
|
MessageBox.Show("公差不能小于0.1!");
|
|
|
|
return;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SetValue value = new SetValue()
|
|
|
|
SetValue value = new SetValue()
|
|
|
@ -732,7 +732,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
DB2105Helper dB2105= new DB2105Helper();
|
|
|
|
DB2105Helper dB2105= new DB2105Helper();
|
|
|
|
|
|
|
|
bool run = false;
|
|
|
|
var singE = ControlsHelper.SingleSelect(RadioE);
|
|
|
|
var singE = ControlsHelper.SingleSelect(RadioE);
|
|
|
|
switch (singE)
|
|
|
|
switch (singE)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -742,7 +742,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
if (h1.RunStatus)
|
|
|
|
if (h1.RunStatus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ShowError();
|
|
|
|
ShowError();
|
|
|
|
return;
|
|
|
|
run = true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -752,7 +753,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
if (h2.RunStatus)
|
|
|
|
if (h2.RunStatus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ShowError();
|
|
|
|
ShowError();
|
|
|
|
return;
|
|
|
|
run = true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -762,7 +764,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
if (h3.RunStatus)
|
|
|
|
if (h3.RunStatus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ShowError();
|
|
|
|
ShowError();
|
|
|
|
return;
|
|
|
|
run = true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -773,13 +776,15 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
if (h4.RunStatus)
|
|
|
|
if (h4.RunStatus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ShowError();
|
|
|
|
ShowError();
|
|
|
|
return;
|
|
|
|
run = true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (run == false)
|
|
|
|
|
|
|
|
{
|
|
|
|
switch (singE)
|
|
|
|
switch (singE)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
@ -841,11 +846,19 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
MessageBox.Show("当前未选择产线!");
|
|
|
|
MessageBox.Show("当前未选择产线!");
|
|
|
|
return;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ManualWeightLog(w, t, RadioE);
|
|
|
|
ManualWeightLog(w, t, RadioE);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|