4.11更新

1.添加是否调用mes接口按钮,并只有admin用户可以点击,2.修改螺丝引导页面
3.端子只有一个,端子扫码借用扫码页面
This commit is contained in:
zhougf committed 2025-04-11 15:47:10 +08:00
1 parent 752e1f37b6
commit 69c851c09e
15 files changed
+1006 -387

No files matched your search

+11 -2
View File
@@ -104,8 +104,17 @@ namespace WindowsFormsApp1
{
端子1校验.Text = "校验OK";
}));
// 写数据到 主页的barcode 数据库改,缓存改
var txt = Init.t_Keyvalues.FirstOrDefault(a => a.key == "Barcode1");
txt.value = 端子1.Text;
var code = key_sqlresult.Data.First(x => x.key == txt.key);
code.value = 端子1.Text;
sQLiteHelper_key.Update(code);
//继续调用接口
var result2 = ApiClient.CallFunctionByName("Link_Comp", PlcData, new otherdata() { JS_SN = barcode });
/*var result2 = ApiClient.CallFunctionByName("Link_Comp", PlcData, new otherdata() { JS_SN = barcode });
if (result2.Success && result2.Mesresult == mesresult.PASS)
{
this.Invoke(new Action(() =>
@@ -127,7 +136,7 @@ namespace WindowsFormsApp1
{
端子1结果.Text = "绑定NG";
}));
}
}*/
}
else
{