You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.0 KiB
C#
71 lines
2.0 KiB
C#
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;
|
|
}
|
|
|
|
}
|
|
}
|