|
|
|
|
using Mesnac.Action.ChemicalWeighing.AutoControl.Entity;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.Util;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using MCRadioButtonEntity = Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity.MCRadioButtonEntity;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
|
|
|
|
|
{
|
|
|
|
|
public class ControlsHelper : ControlsImprot
|
|
|
|
|
{
|
|
|
|
|
public static int BottleSelectA(MCRadioButtonEntity RadioButtonE)
|
|
|
|
|
{
|
|
|
|
|
int no = 0;
|
|
|
|
|
if (Convert.ToBoolean(RadioButtonE.SingleBottle1A.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 1;
|
|
|
|
|
}
|
|
|
|
|
else if (Convert.ToBoolean(RadioButtonE.SingleBottle2A.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 2;
|
|
|
|
|
}
|
|
|
|
|
else if (Convert.ToBoolean(RadioButtonE.DoubleBottleA.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 3;
|
|
|
|
|
}
|
|
|
|
|
return no;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int BottleSelectB(MCRadioButtonEntity RadioButtonE)
|
|
|
|
|
{
|
|
|
|
|
int no = 0;
|
|
|
|
|
if (Convert.ToBoolean(RadioButtonE.SingleBottle1B.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 1;
|
|
|
|
|
}
|
|
|
|
|
else if (Convert.ToBoolean(RadioButtonE.SingleBottle2B.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 2;
|
|
|
|
|
}
|
|
|
|
|
else if (Convert.ToBoolean(RadioButtonE.DoubleBottleB.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 3;
|
|
|
|
|
}
|
|
|
|
|
return no;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int BottleSelectC(MCRadioButtonEntity RadioButtonE)
|
|
|
|
|
{
|
|
|
|
|
int no = 0;
|
|
|
|
|
if (Convert.ToBoolean(RadioButtonE.SingleBottle1C.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 1;
|
|
|
|
|
}
|
|
|
|
|
else if (Convert.ToBoolean(RadioButtonE.SingleBottle2C.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 2;
|
|
|
|
|
}
|
|
|
|
|
else if (Convert.ToBoolean(RadioButtonE.DoubleBottleC.MCValue))
|
|
|
|
|
{
|
|
|
|
|
no = 3;
|
|
|
|
|
}
|
|
|
|
|
return no;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|