添加资源,822指令错误修复
This commit is contained in:
commit
3b936a37cb
5 files changed
+581
-2
No files matched your search
@@ -267,7 +267,7 @@ namespace DyeingComputer.UserClass
|
||||
DataTable Workorder = MainWindow.SQLiteHelpers.ExecuteDataSet(
|
||||
"select * from Workorder where ReDye=0 AND WorkOrder='" + dat_821.GetValue("WorkOrder").ToString() + "'", null).Tables[0]; //读取表写入缓存
|
||||
MainWindowViewModel.ProgramName = Workorder.Rows[0].Field<string>("ProgramName");
|
||||
MainWindowViewModel.Dyelot = MainWindowViewModel.Dyelot_dat.Rows[0].Field<string>("Dyelot");
|
||||
MainWindowViewModel.WorkNumder = Workorder.Rows[0].Field<string>("WorkOrder");
|
||||
MainWindow.SQLiteHelpers.Delete("RUN", null, null); //删除run信息
|
||||
for (int i = 0; i < WorkorderSteps.Rows.Count; i++)
|
||||
{
|
||||
@@ -504,7 +504,7 @@ namespace DyeingComputer.UserClass
|
||||
{
|
||||
DataTable Workorder = MainWindow.SQLiteHelpers.ExecuteDataSet(
|
||||
"select * from Workorder where ReDye=0 AND State='101'AND StartTime >'"+
|
||||
DateTime.Now.AddHours(-1).ToString()+"'", null).Tables[0]; //读取表写入缓存
|
||||
DateTime.Now.AddHours(-1).ToString("yyyy/MM/dd HH:mm:ss") +"'", null).Tables[0]; //读取表写入缓存
|
||||
|
||||
client.SendAsync("SC822" + "[" + MainWindowViewModel.S01 + "]" + Workorder.ToJsonString());
|
||||
APILog.DBlog(client.IP, SYSKEY, SYSAPI, SYSDAT);//记录指令
|
||||
|
||||
Reference in new issue
Block a user