From a56b1aade6f788f68a2474f524f004706f0d14a7 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期三, 14 五月 2025 14:15:19 +0800
Subject: [PATCH] 1. 添加配方和PPID管理界面

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

diff --git a/SourceCode/Bond/Servo/SECSRuntimeManager.cpp b/SourceCode/Bond/Servo/SECSRuntimeManager.cpp
index 708dcf1..cd4d27b 100644
--- a/SourceCode/Bond/Servo/SECSRuntimeManager.cpp
+++ b/SourceCode/Bond/Servo/SECSRuntimeManager.cpp
@@ -1420,6 +1420,22 @@
     }
 }
 
+std::vector<std::string> SECSRuntimeManager::getAllPPID() {
+	std::lock_guard<std::mutex> lock(m_mutex);
+	if (m_pDB == nullptr) {
+		return {};
+	}
+
+	std::string querySQL = "SELECT PPID FROM EqpPPID;";
+	auto rows = m_pDB->fetchResults(querySQL);
+
+	std::vector<std::string> vecResult;
+	for (const auto& row : rows) {
+        vecResult.push_back(row[0]);
+	}
+	return vecResult;
+}
+
 bool SECSRuntimeManager::updatePPIDForRecipe(int nRecipeNo, const std::string& strPPID) {
     std::lock_guard<std::mutex> lock(m_mutex);
     if (m_pDB == nullptr) {

--
Gitblit v1.9.3