|
|
|
@ -37,11 +37,13 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void ControlInitFromPLC()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var dbt = StockMaterrialDbHelp.GetSiloMaterrial();
|
|
|
|
|
|
|
|
|
|
ControlsEntity.ChooseMaterial1.DataSource = dbt;
|
|
|
|
|
ControlsEntity.ChooseMaterial2.DataSource = dbt;
|
|
|
|
|
//switch (SingleSelect())
|
|
|
|
|
//{
|
|
|
|
|
// case 1:
|
|
|
|
|
// LjPlanningPlcHelp.GetGelatG1.
|
|
|
|
|
//}
|
|
|
|
|
ControlsEntity.ChooseMaterial1.DataSource = StockMaterrialDbHelp.GetSiloMaterrial();
|
|
|
|
|
ControlsEntity.ChooseMaterial2.DataSource = StockMaterrialDbHelp.GetSiloMaterrial();
|
|
|
|
|
|
|
|
|
|
var selected = FreeSqlUnit.Instance.Select<DeviceMaterrial>().Where(x => x.DeviceId == SingleSelect()).ToList();
|
|
|
|
|
|
|
|
|
@ -52,8 +54,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ControlsEntity.ChooseMaterial1.SelectedIndex = -1;
|
|
|
|
|
ControlsEntity.ChooseMaterial2.SelectedIndex = -1;
|
|
|
|
|
ControlsEntity.ChooseMaterial1.SelectedIndex = 0;
|
|
|
|
|
ControlsEntity.ChooseMaterial2.SelectedIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var getGelatG1 = LjPlanningPlcHelp.GetGelatG1;
|
|
|
|
|