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