增加修改删除页面,增加COM口的配置等
This commit is contained in:
1 parent
f3110791a7
commit
e96e2d3651
89 files changed
+10692
-727
No files matched your search
@@ -34,6 +34,7 @@ namespace WindowsFormsApp1
|
||||
|
||||
SQLiteHelper<t_line> sQLiteHelper1 = new db.SQLiteHelper<t_line>();
|
||||
var result_combox = sQLiteHelper1.QuerySingle(a=>a.id == (int)comboBox1.SelectedValue);
|
||||
|
||||
if (!result.Success || !result_combox.Success)
|
||||
{
|
||||
MessageBox.Show("账号/密码/产线错误!");
|
||||
@@ -41,8 +42,17 @@ namespace WindowsFormsApp1
|
||||
}
|
||||
else
|
||||
{
|
||||
SQLiteHelper<t_lineplc> sQLiteHelper_lineplc = new db.SQLiteHelper<t_lineplc>();
|
||||
var lineplc_result = sQLiteHelper_lineplc.Query(a => a.lineid == result_combox.Data.id);
|
||||
if (!lineplc_result.Success)
|
||||
{
|
||||
MessageBox.Show("无法初始化PLC-产线关联信息!");
|
||||
return;
|
||||
}
|
||||
|
||||
Init.t_User = result.Data;
|
||||
Init.t_Line = result_combox.Data;
|
||||
Init.t_Lineplcs = lineplc_result.Data;
|
||||
DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user