Merge branch 'master' of http://www.scserverddns.top:13000/sc/DyeingComputer
This commit is contained in:
commit
0aa48142e9
1 file changed
+5
-2
@@ -194,7 +194,7 @@ namespace DyeingComputer.UserClass
|
|||||||
}
|
}
|
||||||
else if (dat_821.GetValue("INSTRUCTION").ToString() == "INSERT")
|
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 = new SQLiteHelper(TechnologicalProcessView.DBAddress); //数据库连接路径
|
||||||
TechnologicalProcessView.SQLiteHelpers.Open(); //打开数据库
|
TechnologicalProcessView.SQLiteHelpers.Open(); //打开数据库
|
||||||
/**插入行**/
|
/**插入行**/
|
||||||
@@ -252,7 +252,7 @@ namespace DyeingComputer.UserClass
|
|||||||
}
|
}
|
||||||
TechnologicalProcessView.SQLiteHelpers.Close(); //关闭连接
|
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")
|
else if (dat_821.GetValue("INSTRUCTION").ToString() == "EDIT")
|
||||||
{
|
{
|
||||||
@@ -321,8 +321,11 @@ namespace DyeingComputer.UserClass
|
|||||||
|
|
||||||
client.SendAsync("SC831" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_TP.ToJsonString());
|
client.SendAsync("SC831" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_TP.ToJsonString());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
client.SendAsync("SC821" + SYSKEY + SYSDAT);
|
client.SendAsync("SC821" + SYSKEY + SYSDAT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch { client.SendAsync("SC921"); }
|
catch { client.SendAsync("SC921"); }
|
||||||
}
|
}
|
||||||
else { client.SendAsync("SC999"); }
|
else { client.SendAsync("SC999"); }
|
||||||
|
|||||||
Reference in new issue
Block a user