|
|
@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
using DataBlockHelper.DBHelpers;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using Mesnac.Controls.Default;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
public class XianManager
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
List<Control> Controls;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public XianManager(List<Control> c)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.Controls = c;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PropertyInfo[] sourcePropertyInfoList = this.GetType().GetProperties();
|
|
|
|
|
|
|
|
foreach (PropertyInfo sourceProperty in sourcePropertyInfoList)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
string name = sourceProperty.Name;
|
|
|
|
|
|
|
|
var pro = Controls.FirstOrDefault(x => x.Name == name) as SpecialLabelBlue;
|
|
|
|
|
|
|
|
sourceProperty.SetValue(this, pro);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpAL { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpAR { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1V { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC01 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC02 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC16 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC16 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC03 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC05 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC17 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC18 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC1802 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC1801 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC202 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC201 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC17 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC05 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC19 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC06 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC1502 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC15H { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC1501 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC113 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC11 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC04 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC10 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC11 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC12 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC121 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC03 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1VC122 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpC1HC14 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpC1HC13 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpC1V01 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpC1 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpB1 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL1 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL2 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL3 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL4 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL5 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL6 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL9 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL11 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue Sp15 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue Sp16 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL8 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SL7 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue CrossTubeC3 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue CrossTubeC2 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue CrossTubeC1 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue CrossTubeD { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC02 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC02V { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC02VC09 { get; set; }
|
|
|
|
|
|
|
|
public SpecialLabelBlue CrossTubeB { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void Action()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
DB112Helper DB122 = new DB112Helper();
|
|
|
|
|
|
|
|
var xx = DB122.GetXX();
|
|
|
|
|
|
|
|
if (xx.A)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (xx.B)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (xx.C)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void SetWhite(SpecialLabelBlue special)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
special.BackColor = Color.White;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void SetLightGreen(SpecialLabelBlue special)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
special.BackColor = Color.White;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|