|
|
|
@ -89,38 +89,812 @@ namespace Mesnac.Action.ChemicalWeighing
|
|
|
|
|
public SpecialLabelBlue SpA1HC02V { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC02VC09 { get; set; }
|
|
|
|
|
public SpecialLabelBlue CrossTubeB { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC10 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpC04H { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpA1HC04 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC06 { get; set; }
|
|
|
|
|
// public SpecialLabelBlue SpA1HC1 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC19 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC20 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC1701 { get; set; }
|
|
|
|
|
|
|
|
|
|
public SpecialLabelBlue SpB1V01 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC07 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC08 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpA1HC09 { get; set; }
|
|
|
|
|
public SpecialLabelBlue SpecialLabelBlue654 { get; set; }
|
|
|
|
|
// public SpecialLabelBlue SpA1HC1701 { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void Action()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
PropertyInfo[] sourcePropertyInfoList = this.GetType().GetProperties();
|
|
|
|
|
foreach (PropertyInfo sourceProperty in sourcePropertyInfoList)
|
|
|
|
|
{
|
|
|
|
|
object value = sourceProperty.GetValue(this);
|
|
|
|
|
SpecialLabelBlue stu = value as SpecialLabelBlue;
|
|
|
|
|
if(stu.BackColor== Color.LightGreen)
|
|
|
|
|
{
|
|
|
|
|
SetWhite(stu);
|
|
|
|
|
sourceProperty.SetValue(this, stu);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Db92DengHelp db92 = new Db92DengHelp();
|
|
|
|
|
DB112Helper DB122 = new DB112Helper();
|
|
|
|
|
var xx = DB122.GetXX();
|
|
|
|
|
if (xx.A)
|
|
|
|
|
{
|
|
|
|
|
GetA(db92);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (xx.B)
|
|
|
|
|
{
|
|
|
|
|
GetB(db92);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (xx.C)
|
|
|
|
|
{
|
|
|
|
|
GetC(db92);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (xx.B)
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A 线
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
public void GetA(Db92DengHelp db92)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
List<SpecialLabelBlue> ls = new List<SpecialLabelBlue>();
|
|
|
|
|
|
|
|
|
|
var a= db92.DegA;
|
|
|
|
|
if (a.A)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1);
|
|
|
|
|
ls.Add(SpA1V);
|
|
|
|
|
ls.Add(CrossTubeB);
|
|
|
|
|
ls.Add(SpA1HC10);
|
|
|
|
|
ls.Add(SpA1VC10);
|
|
|
|
|
ls.Add(SpA1VC04);
|
|
|
|
|
ls.Add(SpA1HC11);
|
|
|
|
|
ls.Add(SpA1VC121);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (a.C)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1);
|
|
|
|
|
ls.Add(SpA1V);
|
|
|
|
|
ls.Add(SpA1VC01);
|
|
|
|
|
ls.Add(SpA1VC02);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
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
ls.Add(SpA1HC05);
|
|
|
|
|
ls.Add(SpA1HC17);
|
|
|
|
|
ls.Add(SpA1VC1801);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.N)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1);
|
|
|
|
|
ls.Add(SpA1V);
|
|
|
|
|
ls.Add(SpA1VC01);
|
|
|
|
|
ls.Add(SpA1VC02);
|
|
|
|
|
ls.Add(SpA1VC16);
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
ls.Add(SpA1HC05);
|
|
|
|
|
ls.Add(SpA1HC17);
|
|
|
|
|
ls.Add(SpA1HC18);
|
|
|
|
|
ls.Add(SpA1VC1802);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(a.O)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1);
|
|
|
|
|
ls.Add(SpA1V);
|
|
|
|
|
ls.Add(SpA1VC01);
|
|
|
|
|
ls.Add(SpA1VC02);
|
|
|
|
|
ls.Add(SpA1HC1701);
|
|
|
|
|
|
|
|
|
|
ls.Add(SL9);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var item in ls)
|
|
|
|
|
{
|
|
|
|
|
SetLightGreen(item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// B线
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
public void GetB(Db92DengHelp db92)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
List<SpecialLabelBlue> ls = new List<SpecialLabelBlue>();
|
|
|
|
|
|
|
|
|
|
var a = db92.DegB;
|
|
|
|
|
if (a.A)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
ls.Add(SpA1HC09);
|
|
|
|
|
ls.Add(SpA1HC10);
|
|
|
|
|
ls.Add(SpA1VC10);
|
|
|
|
|
ls.Add(SpA1VC04);//很小的
|
|
|
|
|
ls.Add(SpA1HC11);
|
|
|
|
|
ls.Add(SpA1VC121);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//09-02
|
|
|
|
|
if (a.C)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09);
|
|
|
|
|
ls.Add(SpA1HC02V);
|
|
|
|
|
ls.Add(SpA1HC02);
|
|
|
|
|
ls.Add(SpA1VC02);
|
|
|
|
|
ls.Add(SpA1VC16);
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1VC03);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//E 07 -15
|
|
|
|
|
|
|
|
|
|
if (a.E)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(CrossTubeD);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1HC14);
|
|
|
|
|
ls.Add(SpecialLabelBlue654);
|
|
|
|
|
ls.Add(SpA1VC1501);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (a.F)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(CrossTubeD);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1HC14);
|
|
|
|
|
ls.Add(SpecialLabelBlue654);
|
|
|
|
|
ls.Add(SpA1VC15H);
|
|
|
|
|
ls.Add(SpA1VC1502);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//07 08 09 10 04 06
|
|
|
|
|
if (a.G)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
ls.Add(SpA1HC09);
|
|
|
|
|
ls.Add(SpA1HC10);
|
|
|
|
|
ls.Add(SpA1VC10);
|
|
|
|
|
ls.Add(SpC04H);
|
|
|
|
|
ls.Add(SpA1HC04);
|
|
|
|
|
ls.Add(SpA1VC06);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (a.H)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
ls.Add(SpA1HC09);
|
|
|
|
|
ls.Add(SpA1HC10);
|
|
|
|
|
ls.Add(SpA1VC10);
|
|
|
|
|
ls.Add(SpC04H);
|
|
|
|
|
ls.Add(SpA1HC04);
|
|
|
|
|
ls.Add(SpA1HC06);
|
|
|
|
|
ls.Add(SpA1VC19);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//ok
|
|
|
|
|
if (a.K)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
ls.Add(SpA1HC09);
|
|
|
|
|
ls.Add(SpA1HC10);
|
|
|
|
|
ls.Add(SpA1VC10);
|
|
|
|
|
ls.Add(SpC04H);
|
|
|
|
|
ls.Add(SpA1HC04);
|
|
|
|
|
ls.Add(SpA1HC06);
|
|
|
|
|
ls.Add(SpA1HC19);
|
|
|
|
|
ls.Add(SpA1VC201);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (a.L)
|
|
|
|
|
{
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
ls.Add(SpA1HC09);
|
|
|
|
|
ls.Add(SpA1HC10);
|
|
|
|
|
ls.Add(SpA1VC10);
|
|
|
|
|
ls.Add(SpC04H);
|
|
|
|
|
ls.Add(SpA1HC04);
|
|
|
|
|
ls.Add(SpA1HC06);
|
|
|
|
|
ls.Add(SpA1HC19);
|
|
|
|
|
ls.Add(SpA1HC20);
|
|
|
|
|
ls.Add(SpA1VC202);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//07 08 09 02 16 03 05
|
|
|
|
|
if (a.I)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09);
|
|
|
|
|
ls.Add(SpA1HC02V);
|
|
|
|
|
ls.Add(SpA1HC02);
|
|
|
|
|
ls.Add(SpA1VC02);
|
|
|
|
|
ls.Add(SpA1VC16);
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
ls.Add(SpA1VC05);
|
|
|
|
|
}
|
|
|
|
|
//07 08 09 02 16 03 05
|
|
|
|
|
if (a.J)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09);
|
|
|
|
|
ls.Add(SpA1HC02V);
|
|
|
|
|
ls.Add(SpA1HC02);
|
|
|
|
|
ls.Add(SpA1VC02);
|
|
|
|
|
ls.Add(SpA1VC16);
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC05);
|
|
|
|
|
ls.Add(SpA1VC17);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (a.M)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09);
|
|
|
|
|
ls.Add(SpA1HC02V);
|
|
|
|
|
ls.Add(SpA1HC02);
|
|
|
|
|
ls.Add(SpA1VC02);
|
|
|
|
|
ls.Add(SpA1VC16);
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC05);
|
|
|
|
|
ls.Add(SpA1HC17);
|
|
|
|
|
ls.Add(SpA1VC1801);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
if (a.N)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09);
|
|
|
|
|
ls.Add(SpA1HC02V);
|
|
|
|
|
ls.Add(SpA1HC02);
|
|
|
|
|
ls.Add(SpA1VC02);
|
|
|
|
|
ls.Add(SpA1VC16);
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC05);
|
|
|
|
|
ls.Add(SpA1HC17);
|
|
|
|
|
ls.Add(SpA1HC18);
|
|
|
|
|
ls.Add(SpA1VC1802);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///789 02 16
|
|
|
|
|
if (a.O)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpB1);
|
|
|
|
|
ls.Add(SpB1V01);
|
|
|
|
|
ls.Add(SpA1HC07);
|
|
|
|
|
ls.Add(SpA1HC08);
|
|
|
|
|
ls.Add(SpA1HC02VC09);
|
|
|
|
|
ls.Add(SpA1HC02V);
|
|
|
|
|
ls.Add(SpA1HC02);
|
|
|
|
|
ls.Add(SpA1VC02);
|
|
|
|
|
ls.Add(SpA1HC1701);
|
|
|
|
|
|
|
|
|
|
ls.Add(SL9);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var item in ls)
|
|
|
|
|
{
|
|
|
|
|
SetLightGreen(item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// C线
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
public void GetC(Db92DengHelp db92)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
List<SpecialLabelBlue> ls = new List<SpecialLabelBlue>();
|
|
|
|
|
|
|
|
|
|
var a = db92.DegC;
|
|
|
|
|
// 13 08 09 10 04 11 12
|
|
|
|
|
if (a.A)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC09);
|
|
|
|
|
ls.Add(SpA1HC10);//很小的
|
|
|
|
|
ls.Add(SpA1VC10);
|
|
|
|
|
ls.Add(SpA1VC04);
|
|
|
|
|
ls.Add(SpA1HC11);
|
|
|
|
|
ls.Add(SpA1VC121);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// 13 08 09 02 16 03
|
|
|
|
|
if (a.C)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09); //09-02
|
|
|
|
|
ls.Add(SpA1HC02V); //09-02
|
|
|
|
|
ls.Add(SpA1HC02); //09-02
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1VC16); //16-03
|
|
|
|
|
ls.Add(SpA1HC16); //16-03
|
|
|
|
|
ls.Add(SpA1VC03); //16-03
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 13 14 15
|
|
|
|
|
|
|
|
|
|
if (a.E)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(SpC1HC13);
|
|
|
|
|
ls.Add(SpC1HC14);
|
|
|
|
|
ls.Add(SpecialLabelBlue654);
|
|
|
|
|
ls.Add(SpA1VC1501);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (a.F)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(SpC1HC13);
|
|
|
|
|
ls.Add(SpC1HC14);
|
|
|
|
|
ls.Add(SpecialLabelBlue654);
|
|
|
|
|
ls.Add(SpA1VC15H);
|
|
|
|
|
ls.Add(SpA1VC1502);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//13 08 09 10 04 06 ok
|
|
|
|
|
if (a.G)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
ls.Add(SpA1HC09); // 到10
|
|
|
|
|
ls.Add(SpA1HC10); // 到04
|
|
|
|
|
ls.Add(SpA1VC10); // 到04
|
|
|
|
|
ls.Add(SpC04H); // 到04
|
|
|
|
|
ls.Add(SpA1HC04); // 到06
|
|
|
|
|
ls.Add(SpA1VC06); // 到06
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (a.H)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
ls.Add(SpA1HC09); // 到10
|
|
|
|
|
ls.Add(SpA1HC10); // 到04
|
|
|
|
|
ls.Add(SpA1VC10); // 到04
|
|
|
|
|
ls.Add(SpC04H); // 到04
|
|
|
|
|
ls.Add(SpA1HC04); // 到06
|
|
|
|
|
ls.Add(SpA1HC06); // 到06
|
|
|
|
|
ls.Add(SpA1VC19); // 到06
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//ok
|
|
|
|
|
if (a.K)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
ls.Add(SpA1HC09); // 到10
|
|
|
|
|
ls.Add(SpA1HC10); // 到04
|
|
|
|
|
ls.Add(SpA1VC10); // 到04
|
|
|
|
|
ls.Add(SpC04H); // 到04
|
|
|
|
|
ls.Add(SpA1HC04); // 到06
|
|
|
|
|
ls.Add(SpA1HC06); // 到06
|
|
|
|
|
ls.Add(SpA1HC19); // 到06
|
|
|
|
|
ls.Add(SpA1VC201); // 到06
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//ok
|
|
|
|
|
if (a.L)
|
|
|
|
|
{
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
ls.Add(SpA1HC09); // 到10
|
|
|
|
|
ls.Add(SpA1HC10); // 到04
|
|
|
|
|
ls.Add(SpA1VC10); // 到04
|
|
|
|
|
ls.Add(SpC04H); // 到04
|
|
|
|
|
ls.Add(SpA1HC04); // 到06
|
|
|
|
|
ls.Add(SpA1HC06); // 到06
|
|
|
|
|
ls.Add(SpA1HC19); // 到06
|
|
|
|
|
ls.Add(SpA1HC20); // 到06
|
|
|
|
|
ls.Add(SpA1VC202); // 到06
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//13 08 09 02 16 03
|
|
|
|
|
if (a.I)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09); //09-02
|
|
|
|
|
ls.Add(SpA1HC02V); //09-02
|
|
|
|
|
ls.Add(SpA1HC02); //09-02
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1VC16); //16-03
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
ls.Add(SpA1VC05);
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (a.J)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09); //09-02
|
|
|
|
|
ls.Add(SpA1HC02V); //09-02
|
|
|
|
|
ls.Add(SpA1HC02); //09-02
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1VC16); //16-03
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
ls.Add(SpA1HC05);
|
|
|
|
|
ls.Add(SpA1VC17);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (a.M)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09); //09-02
|
|
|
|
|
ls.Add(SpA1HC02V); //09-02
|
|
|
|
|
ls.Add(SpA1HC02); //09-02
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1VC16); //16-03
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
ls.Add(SpA1HC05);
|
|
|
|
|
ls.Add(SpA1HC17);
|
|
|
|
|
ls.Add(SpA1VC1801);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (a.N)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09); //09-02
|
|
|
|
|
ls.Add(SpA1HC02V); //09-02
|
|
|
|
|
ls.Add(SpA1HC02); //09-02
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1VC16); //16-03
|
|
|
|
|
ls.Add(SpA1HC16);
|
|
|
|
|
ls.Add(SpA1HC03);
|
|
|
|
|
ls.Add(SpA1HC05);
|
|
|
|
|
ls.Add(SpA1HC17);
|
|
|
|
|
ls.Add(SpA1HC18);
|
|
|
|
|
ls.Add(SpA1VC1802);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 13 08 09 02 16
|
|
|
|
|
if (a.O)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ls.Add(SpC1);
|
|
|
|
|
ls.Add(SpC1V01);
|
|
|
|
|
ls.Add(CrossTubeC3);
|
|
|
|
|
ls.Add(CrossTubeC2);
|
|
|
|
|
ls.Add(CrossTubeC1);
|
|
|
|
|
ls.Add(SpA1HC08); //08-09
|
|
|
|
|
|
|
|
|
|
ls.Add(SpA1HC02VC09); //09-02
|
|
|
|
|
ls.Add(SpA1HC02V); //09-02
|
|
|
|
|
ls.Add(SpA1HC02); //09-02
|
|
|
|
|
ls.Add(SpA1VC02); //09-02
|
|
|
|
|
ls.Add(SpA1HC1701); //09-02
|
|
|
|
|
|
|
|
|
|
ls.Add(SL9);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var item in ls)
|
|
|
|
|
{
|
|
|
|
|
SetLightGreen(item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -131,7 +905,7 @@ namespace Mesnac.Action.ChemicalWeighing
|
|
|
|
|
|
|
|
|
|
public void SetLightGreen(SpecialLabelBlue special)
|
|
|
|
|
{
|
|
|
|
|
special.BackColor = Color.White;
|
|
|
|
|
special.BackColor = Color.LightGreen;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|