From 56c7981fa15bf518661ec66372c382c0fb534b24 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 11 九月 2025 14:25:34 +0800
Subject: [PATCH] 1.修复Buddy玻璃不保存数据库的问题; 2.工艺参数,将豆号修改为换行符号弹出消息框显示;

---
 SourceCode/Bond/Servo/Model.cpp          |    4 ++++
 SourceCode/Bond/Servo/CPageGlassList.cpp |    5 ++++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPageGlassList.cpp b/SourceCode/Bond/Servo/CPageGlassList.cpp
index 4405d13..62a83f6 100644
--- a/SourceCode/Bond/Servo/CPageGlassList.cpp
+++ b/SourceCode/Bond/Servo/CPageGlassList.cpp
@@ -966,8 +966,11 @@
 void CPageGlassList::OnShowFullText(NMHDR* pNMHDR, LRESULT* pResult)
 {
     auto* p = reinterpret_cast<NMC_ELC_SHOWFULLTEXT*>(pNMHDR);
+
     // 杩欓噷鏆傛椂鐢ㄦ秷鎭鏄剧ず锛涘悗缁彲鎹㈡垚浣犵殑璇︽儏椤�
-    MessageBox(p->text, _T("璇︾粏淇℃伅"), MB_OK | MB_ICONINFORMATION);
+    CString strNewMsg = p->text;
+    strNewMsg.Replace(_T(","), _T("\n"));
+    MessageBox(strNewMsg, _T("璇︾粏淇℃伅"), MB_OK | MB_ICONINFORMATION);
     *pResult = 0;
 }
 
diff --git a/SourceCode/Bond/Servo/Model.cpp b/SourceCode/Bond/Servo/Model.cpp
index 6f2111e..b9c5505 100644
--- a/SourceCode/Bond/Servo/Model.cpp
+++ b/SourceCode/Bond/Servo/Model.cpp
@@ -437,6 +437,10 @@
 		m_hsmsPassive.requestEventReportSend_Panel_End();
 		auto& db = GlassLogDb::Instance();
 		db.insertFromCGlass((*(SERVO::CGlass*)pPanel));
+		SERVO::CGlass* pBuddy = ((SERVO::CGlass*)pPanel)->getBuddy();
+		if (pBuddy != nullptr) {
+			db.insertFromCGlass(*pBuddy);
+		}
 	};
 	m_master.setListener(masterListener);
 	m_master.setContinuousTransferCount(m_configuration.getContinuousTransferCount());

--
Gitblit v1.9.3