From 829fe6c6bc33d53fda9c31fd45a37e1df87befff Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期五, 30 一月 2026 11:16:24 +0800
Subject: [PATCH] Merge branch 'clh' into liuyang

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

diff --git a/SourceCode/Bond/Servo/CEquipment.cpp b/SourceCode/Bond/Servo/CEquipment.cpp
index 2cddb34..36217c3 100644
--- a/SourceCode/Bond/Servo/CEquipment.cpp
+++ b/SourceCode/Bond/Servo/CEquipment.cpp
@@ -208,6 +208,21 @@
 		return m_strDescription;
 	}
 
+	void CEquipment::setCurrentRecipe(const std::string& recipe)
+	{
+		Lock();
+		m_currentRecipe = recipe;
+		Unlock();
+	}
+
+	std::string CEquipment::getCurrentRecipe()
+	{
+		Lock();
+		std::string out = m_currentRecipe;
+		Unlock();
+		return out;
+	}
+
 	void CEquipment::setStation(int network, int station)
 	{
 		m_station.nNetNo = network;
@@ -1655,6 +1670,10 @@
 				m_strName.c_str(), nRet);
 		}
 
+		if (m_listener.onReceivedJob != nullptr) {
+			m_listener.onReceivedJob(this, port, pJobDataS);
+		}
+
 		return nRet;
 	}
 
@@ -1676,6 +1695,10 @@
 	int CEquipment::onSentOutJob(int port, CJobDataS* pJobDataS)
 	{
 		LOGI("<CEquipment-%s>onSentOutJob.", m_strName.c_str());
+
+		if (m_listener.onSentOutJob != nullptr) {
+			m_listener.onSentOutJob(this, port, pJobDataS);
+		}
 
 		return 0;
 	}
@@ -1870,7 +1893,9 @@
 		CSVData svData;
 		int nRet = svData.unserialize(&pszData[0], (int)size);
 		if (nRet < 0) return nRet;
+		Lock();
 		m_svDatas.push_back(svData);
+		Unlock();
 
 		if (m_listener.onSVDataReport != nullptr) {
 			m_listener.onSVDataReport(this, &svData);

--
Gitblit v1.9.3