连线逻辑修改

This commit is contained in:
sc committed 2025-04-07 23:12:21 +08:00
commit 3b6ab69a71
5 files changed
+98 -131

No files matched your search

+11 -4
View File
@@ -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;
}
}
}