From 047c7cbd047e11fba8d7872e69a11a13e463aec4 Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期一, 13 十月 2025 17:40:39 +0800 Subject: [PATCH] 1.保存单条记录。 --- SourceCode/Bond/Servo/CPageGlassList.h | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/SourceCode/Bond/Servo/CPageGlassList.h b/SourceCode/Bond/Servo/CPageGlassList.h index 7d702c7..c0327dd 100644 --- a/SourceCode/Bond/Servo/CPageGlassList.h +++ b/SourceCode/Bond/Servo/CPageGlassList.h @@ -1,5 +1,5 @@ 锘�#pragma once -#include "ListCtrlEx.h" +#include "CExpandableListCtrl.h" #include "GlassLogDb.h" @@ -33,10 +33,14 @@ // 鎺т欢 CDateTimeCtrl m_dateTimeStart; CDateTimeCtrl m_dateTimeEnd; - CListCtrlEx m_listCtrl; + CExpandableListCtrl m_listCtrl; private: - void InitRxWindow(); + int m_nColCount = 0; + bool m_rebuilding = false; + +private: + void InitRxWindows(); void Resize(); void InitStatusCombo(); void InitTimeRangeCombo(); @@ -44,7 +48,14 @@ void LoadData(); void UpdatePageData(); void UpdatePageControls(); - + void InsertWipRow(SERVO::CGlass* pGlass); + static bool GlassMatchesFilters(const SERVO::CGlass& g, + const GlassLogDb::Filters& f, + bool useEndTime = false); + 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); // 瀵硅瘽妗嗘暟鎹� #ifdef AFX_DESIGN_TIME @@ -64,5 +75,9 @@ afx_msg void OnBnClickedButtonExport(); afx_msg void OnBnClickedButtonPrevPage(); afx_msg void OnBnClickedButtonNextPage(); + 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