From 2e386b805cbb0b24c92ea6d667fc8d2c146ad469 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 14 十月 2025 11:36:19 +0800
Subject: [PATCH] 1.优先csv

---
 SourceCode/Bond/Servo/CPageGlassList.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPageGlassList.h b/SourceCode/Bond/Servo/CPageGlassList.h
index 1094c50..bb23485 100644
--- a/SourceCode/Bond/Servo/CPageGlassList.h
+++ b/SourceCode/Bond/Servo/CPageGlassList.h
@@ -55,6 +55,15 @@
 	void UpdateWipData();
 	bool eraseGlassInVector(SERVO::CGlass* pGlass, std::vector<SERVO::CGlass*>& glasses);
 	void UpdateWipRow(unsigned int index, SERVO::CGlass* pGlass);
+	bool WriteAnsiStringAsUtf8ToFile(const CString& ansiContent, const CString& filePath);
+	void ExportToCsv(const GlassLogDb::Row& row, const CString& filePath);
+	void ExportToJson(const GlassLogDb::Row& row, const CString& filePath);
+	void ExportBasicInfo(CString& csvContent, const GlassLogDb::Row& row);
+	void ExportProcessParams(CString& csvContent, const GlassLogDb::Row& row);
+	void ExportSensorData(CString& csvContent, const GlassLogDb::Row& row);
+	static std::vector<std::string> getMachineColumnOrder(int machineId);
+	static std::string timePointToString(const std::chrono::system_clock::time_point& tp);
+	static int64_t timePointToMs(const std::chrono::system_clock::time_point& tp);
 
 // 瀵硅瘽妗嗘暟鎹�
 #ifdef AFX_DESIGN_TIME
@@ -77,4 +86,6 @@
 	afx_msg void OnShowFullText(NMHDR* pNMHDR, LRESULT* pResult);
 	virtual BOOL PreTranslateMessage(MSG* pMsg);
 	DECLARE_MESSAGE_MAP()
+public:
+	afx_msg void OnBnClickedButtonExportRow();
 };

--
Gitblit v1.9.3