diff --git a/UserClass/AsyncTcpClient.cs b/UserClass/AsyncTcpClient.cs index e62c2ac..47ce353 100644 --- a/UserClass/AsyncTcpClient.cs +++ b/UserClass/AsyncTcpClient.cs @@ -161,6 +161,19 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass } } else if (SYSAPI == "SC811") + { + try + { + DAT = DAT.Substring(DAT.IndexOf("]") + 1); + SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径 + SQLiteHelpers.Open(); //打开数据库 + SQLiteHelpers.Update("WorkOrder", new Dictionary { { "State", 113 } }, + "WorkOrder ='" + DAT + "'", null); + SQLiteHelpers.Close(); + } + catch (Exception ex) { LogGing.LogGingDATA("[ERR='" + ex + "']=Exception"); MainWindowViewModel.ERR_c++; } + } + else if (SYSAPI == "SC812") { try { diff --git a/View/DispenseMachinesSet.xaml.cs b/View/DispenseMachinesSet.xaml.cs index 778c87c..a92034f 100644 --- a/View/DispenseMachinesSet.xaml.cs +++ b/View/DispenseMachinesSet.xaml.cs @@ -34,11 +34,9 @@ namespace SunlightCentralizedControlManagement_SCCM_.View public DispenseMachinesSet() { InitializeComponent(); - // string[] Machine_ = { "252", "252RB", "252-2T", "252RDRM", "242W", "302", "303", "303PDW" }; - TextMachineGroup.ItemsSource = Machine_; - + TextMachineGroup.ItemsSource = Machine_; } private SQLiteHelper SQLiteHelpers = null; //定义数据库 diff --git a/View/MachinesSet.xaml b/View/MachinesSet.xaml index fd3ea94..ec94259 100644 --- a/View/MachinesSet.xaml +++ b/View/MachinesSet.xaml @@ -65,25 +65,28 @@ + - + - + - - - - - - - + + + - -