|
|
@ -6,6 +6,7 @@ using Mesnac.Action.ChemicalWeighing.AutoControl.DB;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.AutoControl.Entity;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.AutoControl.Entity;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjMixManager;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjMixManager;
|
|
|
|
using Mesnac.Controls.Base;
|
|
|
|
using Mesnac.Controls.Base;
|
|
|
|
|
|
|
|
using Mesnac.Controls.Default;
|
|
|
|
using Mesnac.Core.Service;
|
|
|
|
using Mesnac.Core.Service;
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
@ -13,6 +14,7 @@ using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Windows.Forms;
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
using Button = System.Windows.Forms.Button;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -92,8 +94,9 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
ControlsEntity.Line7 = GetBaseControl("Line7");
|
|
|
|
ControlsEntity.Line7 = GetBaseControl("Line7");
|
|
|
|
ControlsEntity.Line8 = GetBaseControl("Line8");
|
|
|
|
ControlsEntity.Line8 = GetBaseControl("Line8");
|
|
|
|
|
|
|
|
|
|
|
|
ControlsEntity.ChooseMaterial1 = GetBaseControl("ChooseMaterial1");
|
|
|
|
ControlsEntity.ChooseMaterial1 = GetComboBoxControl("ChooseMaterial1");
|
|
|
|
ControlsEntity.ChooseMaterial2 = GetBaseControl("ChooseMaterial2");
|
|
|
|
ControlsEntity.ChooseMaterial2 = GetComboBoxControl("ChooseMaterial2");
|
|
|
|
|
|
|
|
|
|
|
|
ControlsEntity.MaterialWeight1 = GetBaseControl("MaterialWeight1");
|
|
|
|
ControlsEntity.MaterialWeight1 = GetBaseControl("MaterialWeight1");
|
|
|
|
ControlsEntity.MaterialWeight2 = GetBaseControl("MaterialWeight2");
|
|
|
|
ControlsEntity.MaterialWeight2 = GetBaseControl("MaterialWeight2");
|
|
|
|
ControlsEntity.MaterialTolerance1 = GetBaseControl("MaterialTolerance1");
|
|
|
|
ControlsEntity.MaterialTolerance1 = GetBaseControl("MaterialTolerance1");
|
|
|
@ -235,6 +238,11 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return McControls.First(x => x.Name == name) as Button;
|
|
|
|
return McControls.First(x => x.Name == name) as Button;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private MCCombobox GetComboBoxControl(string name)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return McControls.First(x => x.Name == name) as MCCombobox;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|