From 3a9d54f7454c6085cdd9fde71ea8e321b9ac0402 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 12 九月 2025 11:50:01 +0800
Subject: [PATCH] 1.PanelDataReport事件上抛,以便上层检测到AOI 检测NG后停机; 2.CessetteSn种子数设定,保存到配置,以便程序关闭重开后,CessetteSn也能继续; 3.AOI增加工艺参数,修改解释规则;

---
 SourceCode/Bond/Servo/PageTransferLog.cpp |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/SourceCode/Bond/Servo/PageTransferLog.cpp b/SourceCode/Bond/Servo/PageTransferLog.cpp
index 8000c23..978a8e0 100644
--- a/SourceCode/Bond/Servo/PageTransferLog.cpp
+++ b/SourceCode/Bond/Servo/PageTransferLog.cpp
@@ -63,12 +63,9 @@
 			pAny->addRef();
 			int code = pAny->getCode();
 
-			//if (RX_CODE_ALARM_SET == code) {
-			//	UpdatePageData();
-			//}
-			//else if (RX_CODE_ALARM_CLEAR == code) {
-			//	UpdatePageData();
-			//}
+			if (RX_CODE_EQ_ROBOT_TASK == code) {
+				UpdatePageData();
+			}
 
 			pAny->release();
 			}, [&]() -> void {
@@ -278,7 +275,12 @@
 		return;
 	}
 
-	int nItem = m_listCtrl.InsertItem(0, _T(""));
+	int nIndex = m_listCtrl.GetItemCount();
+	if (nIndex < 0) {
+		return;
+	}
+
+	int nItem = m_listCtrl.InsertItem(nIndex, _T(""));
 	CString str;
 	str.Format(_T("%d"), data.nRecordId);
 	m_listCtrl.SetItemText(nItem, 1, str);

--
Gitblit v1.9.3