finish - 自动控制代码初步完成

wangsr
wangsr 1 year ago
parent 8c8dbc7b23
commit b3638888ea

@ -43,10 +43,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
private void ControlInitFromPLC()
{
var dbt = StockMaterrialDbHelp.GetSiloMaterrial();
ControlsEntity.ChooseMaterial1.DataSource = dbt;
ControlsEntity.ChooseMaterial2.DataSource = dbt;
ControlsEntity.ChooseMaterial1.DataSource = StockMaterrialDbHelp.GetSiloMaterrial();
ControlsEntity.ChooseMaterial2.DataSource = StockMaterrialDbHelp.GetSiloMaterrial();
var selected = FreeSqlUnit.Instance.Select<DeviceMaterrial>().Where(x => x.DeviceId == SingleSelect()).ToList();
@ -57,8 +55,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;

@ -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;

Loading…
Cancel
Save