From 4d64ab743909caa1860253e6054da8d249aad814 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 09 九月 2025 10:04:20 +0800
Subject: [PATCH] 1.VCR事件更新GlassID

---
 SourceCode/Bond/Servo/CEquipment.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CEquipment.cpp b/SourceCode/Bond/Servo/CEquipment.cpp
index e9eee92..2cbf62f 100644
--- a/SourceCode/Bond/Servo/CEquipment.cpp
+++ b/SourceCode/Bond/Servo/CEquipment.cpp
@@ -1724,14 +1724,24 @@
 			vcrEventReport.getGlassId().c_str());
 
 
+		// 更新Glass的ID
+		CGlass* pGlass = getGlassWithCassette(vcrEventReport.getCassetteSequenceNo(),
+			vcrEventReport.getJobSequenceNo());
+		if (pGlass != nullptr) {
+			pGlass->setID(vcrEventReport.getGlassId().c_str());
+		}
+		
+
 		// 缓存Attribute,用于调试时显示信息
 		unsigned int weight = 201;
 		CAttributeVector& attrubutes = pStep->attributeVector();
 		vcrEventReport.getAttributeVector(attrubutes, weight);
 
+
 		// 0426, 先固定返回1(OK)
 		((CReadStep*)pStep)->setReturnCode((short)VCR_Reply_Code::OK);
 
+
 		return 0;
 	}
 

--
Gitblit v1.9.3