From 96579a48b3b558f5ce58cffe372b1f563a9e62ce Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 03 九月 2025 17:23:56 +0800
Subject: [PATCH] 1.配方列表和配方参数获取合并在线程中获取,并更新状态到对话框; 2.配方参数获取; 3.Bonder, AOI, 真空烘烤, 冷却烧烤配方参数解释。
---
SourceCode/Bond/Servo/RecipeManager.h | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/RecipeManager.h b/SourceCode/Bond/Servo/RecipeManager.h
index b27b026..41d8f02 100644
--- a/SourceCode/Bond/Servo/RecipeManager.h
+++ b/SourceCode/Bond/Servo/RecipeManager.h
@@ -6,6 +6,8 @@
#include <mutex>
#include <unordered_map>
#include "Database.h"
+#include "CParam.h"
+
// 单个设备配方映射信息
struct DeviceRecipe {
@@ -21,6 +23,23 @@
std::string strDescription; // 配方描述
std::string strCreateTime; // 创建时间
std::vector<DeviceRecipe> vecDeviceList; // 关联的设备信息列表
+ std::vector<CParam*> m_params; // 出站时记录参数
+ void RecipeInfo::addIntParam(const char* pszName, const char* pszId, const char* pszUnit, int value)
+ {
+ CParam* pParam = new CParam(pszName, pszId, pszUnit, value);
+ m_params.push_back(pParam);
+ }
+
+ void RecipeInfo::addDoubleParam(const char* pszName, const char* pszId, const char* pszUnit, double value)
+ {
+ CParam* pParam = new CParam(pszName, pszId, pszUnit, value);
+ m_params.push_back(pParam);
+ }
+
+ std::vector<CParam*>& RecipeInfo::getParams()
+ {
+ return m_params;
+ }
};
using RecipeMap = std::unordered_map<std::string, RecipeInfo>; // 按 PPID 映射的配方表
--
Gitblit v1.9.3