From 980b78709fef23248956382fe72571e431c4d289 Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期二, 06 一月 2026 10:46:05 +0800
Subject: [PATCH] 单品过站同步插件增加打印生产质量汇报单单号日志
---
WFormSynchronizeData_SMR/WFormReadData_SMR/ReadyDataForm_New.cs | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/WFormSynchronizeData_SMR/WFormReadData_SMR/ReadyDataForm_New.cs b/WFormSynchronizeData_SMR/WFormReadData_SMR/ReadyDataForm_New.cs
index a441b55..0f1f114 100644
--- a/WFormSynchronizeData_SMR/WFormReadData_SMR/ReadyDataForm_New.cs
+++ b/WFormSynchronizeData_SMR/WFormReadData_SMR/ReadyDataForm_New.cs
@@ -277,12 +277,18 @@
{
if (Get_AllowLoadData(HBarCode, HProcNumber, flag_1, AllProcessExchangeHProcExchBillNo, AllProcessExchangeHProcExchInterID, out flag_2))
{
- //鏂板鏉$爜鏁版嵁
- string sql = $@"insert into Sb_EquipMentCollection_SN(HSourceCode,HEmpCode,HType,HBarCode,HCount,HCreateTime,HDate,HResult,HProcNumber,HFlag)
+ DataSet ds = oCN.RunProcReturn(@"select HItemID from Sb_EquipMentCollectionTechParam_SN where HBarCode='" + HBarCode + "' and HCreateTime='" + HCreateTime + "'", "Sb_EquipMentCollectionTechParam_SN");
+
+ if (ds.Tables[0].Rows.Count == 0)
+ {
+ //鏂板鏉$爜鏁版嵁
+ string sql = $@"insert into Sb_EquipMentCollection_SN(HSourceCode,HEmpCode,HType,HBarCode,HCount,HCreateTime,HDate,HResult,HProcNumber,HFlag)
values('{HSourceCode}','{HEmpCode}','{HType}','{HBarCode}','{HCount}','{HCreateTime}',GETDATE(),'{HResult}','{HProcNumber}','{HFlag}')";
- oCN.RunProc(sql);
- ListSelect.Items.Add("鏉$爜:" + HBarCode + ",褰撳墠鏃ユ湡;" + DateTime.Now.ToString() + ",鏃ユ湡:" + HCreateTime + ",缁撴灉:" + HResult);
- listData.Add(HBarCode);
+ oCN.RunProc(sql);
+ ListSelect.Items.Add("鏉$爜:" + HBarCode + ",褰撳墠鏃ユ湡;" + DateTime.Now.ToString() + ",鏃ユ湡:" + HCreateTime + ",缁撴灉:" + HResult);
+ listData.Add(HBarCode);
+ }
+
}
else
{
@@ -596,7 +602,7 @@
{
if (MessageBox.Show("鏄惁鍚敤妫�绱㈣ˉ婕忥紵", "纭", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
- SelectTime = -90;
+ SelectTime = -420;
Read_Txt();
}
}
--
Gitblit v1.9.1