图片测试,csv文件日志,文件复制半成品

This commit is contained in:
zhougf committed 2025-03-27 20:37:21 +08:00
1 parent d9a3f19678
commit 57299c0b55
13 files changed
+1064 -85

No files matched your search

+7 -6
View File
@@ -14,6 +14,7 @@ using WindowsFormsApp1.mod;
using WindowsFormsApp1.mod.database;
using WindowsFormsApp1.mod.server;
using WindowsFormsApp1.server;
using static SQLite.SQLite3;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace WindowsFormsApp1
@@ -97,7 +98,7 @@ namespace WindowsFormsApp1
端子1.Text = barcode;
}));
var result = ApiClient.CallFunctionByName("SN_FeedingCheck", PlcData, new otherdata() { JS_SN = barcode });
if (result.Success)
if (result.Success && result.Mesresult == mesresult.PASS)
{
this.Invoke(new Action(() =>
{
@@ -105,7 +106,7 @@ namespace WindowsFormsApp1
}));
//继续调用接口
var result2 = ApiClient.CallFunctionByName("Link_Comp", PlcData, new otherdata() { JS_SN = barcode });
if (result2.Success)
if (result2.Success && result2.Mesresult == mesresult.PASS)
{
this.Invoke(new Action(() =>
{
@@ -143,7 +144,7 @@ namespace WindowsFormsApp1
端子2.Text = barcode;
}));
var result = ApiClient.CallFunctionByName("SN_FeedingCheck", PlcData, new otherdata() { JS_SN = barcode });
if (result.Success)
if (result.Success && result.Mesresult == mesresult.PASS)
{
this.Invoke(new Action(() =>
{
@@ -152,7 +153,7 @@ namespace WindowsFormsApp1
//继续调用接口
var result2 = ApiClient.CallFunctionByName("Link_Comp", PlcData, new otherdata() { JS_SN = barcode });
if (result2.Success)
if (result2.Success && result2.Mesresult == mesresult.PASS)
{
this.Invoke(new Action(() =>
{
@@ -191,7 +192,7 @@ namespace WindowsFormsApp1
端子3.Text = barcode;
}));
var result = ApiClient.CallFunctionByName("SN_FeedingCheck", PlcData, new otherdata() { JS_SN = barcode });
if (result.Success)
if (result.Success && result.Mesresult == mesresult.PASS)
{
this.Invoke(new Action(() =>
{
@@ -199,7 +200,7 @@ namespace WindowsFormsApp1
}));
var result2 = ApiClient.CallFunctionByName("Link_Comp", PlcData, new otherdata() { JS_SN = barcode });
if (result2.Success)
if (result2.Success && result2.Mesresult == mesresult.PASS)
{
this.Invoke(new Action(() =>
{