连线逻辑修改
This commit is contained in:
commit
3b6ab69a71
5 files changed
+98
-131
No files matched your search
+11
-4
@@ -205,10 +205,17 @@ namespace SunlightCentralizedControlManagement_SCCM_.EX
|
||||
private void comboBoxMachine_DropDownClosed(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(comboBoxMachine.Text))
|
||||
{
|
||||
if (MainWindowViewModel.Machines.Select("NAME = '" + comboBoxMachine.Text + "'").First().Field<string>("WorkOrder") != "------")
|
||||
{ orders.Text = MainWindowViewModel.Machines.Select("NAME = '" + comboBoxMachine.Text + "'").First().Field<string>("WorkOrder"); }
|
||||
else { orders.Text = dyelot.Text; }
|
||||
{
|
||||
string Macht= MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "WorkOrder", "NAME = '" + comboBoxMachine.Text + "'").ToString();
|
||||
|
||||
if (Macht != "------")
|
||||
{
|
||||
orders.Text = Macht;
|
||||
}
|
||||
else
|
||||
{
|
||||
orders.Text = dyelot.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user