Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad57f3d8c1 | ||
|
|
0aa48142e9 |
@@ -194,7 +194,7 @@ namespace DyeingComputer.UserClass
|
||||
}
|
||||
else if (dat_821.GetValue("INSTRUCTION").ToString() == "INSERT")
|
||||
{
|
||||
int d = Convert.ToInt16( dat_821.GetValue("ID"));
|
||||
int d = Convert.ToInt16(dat_821.GetValue("ID"));
|
||||
TechnologicalProcessView.SQLiteHelpers = new SQLiteHelper(TechnologicalProcessView.DBAddress); //数据库连接路径
|
||||
TechnologicalProcessView.SQLiteHelpers.Open(); //打开数据库
|
||||
/**插入行**/
|
||||
@@ -252,7 +252,7 @@ namespace DyeingComputer.UserClass
|
||||
}
|
||||
TechnologicalProcessView.SQLiteHelpers.Close(); //关闭连接
|
||||
|
||||
client.SendAsync("SC831" + "[" + MainWindowViewModel.S01 + "]" +MainWindowViewModel.dt_TP.ToJsonString());
|
||||
client.SendAsync("SC831" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_TP.ToJsonString());
|
||||
}//插入
|
||||
else if (dat_821.GetValue("INSTRUCTION").ToString() == "EDIT")
|
||||
{
|
||||
@@ -321,8 +321,11 @@ namespace DyeingComputer.UserClass
|
||||
|
||||
client.SendAsync("SC831" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_TP.ToJsonString());
|
||||
}
|
||||
else
|
||||
{
|
||||
client.SendAsync("SC821" + SYSKEY + SYSDAT);
|
||||
}
|
||||
}
|
||||
catch { client.SendAsync("SC921"); }
|
||||
}
|
||||
else { client.SendAsync("SC999"); }
|
||||
|
||||
Reference in new issue
Block a user