From 1318cc77e20a82b3328aa82ea6b8d8ca600de44f Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期二, 10 六月 2025 15:51:55 +0800
Subject: [PATCH] 1. 拆分数据库,每一个管理类是单独的数据库文件 2. 修复复制产生的ID错误
---
SourceCode/Bond/Servo/ChangePasswordDlg.h | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/ChangePasswordDlg.h b/SourceCode/Bond/Servo/ChangePasswordDlg.h
new file mode 100644
index 0000000..3f6e0b8
--- /dev/null
+++ b/SourceCode/Bond/Servo/ChangePasswordDlg.h
@@ -0,0 +1,37 @@
+锘�#pragma once
+#include "afxdialogex.h"
+#include <string>
+
+class UserManager;
+
+// CChangePasswordDlg 瀵硅瘽妗�
+
+class CChangePasswordDlg : public CDialogEx
+{
+ DECLARE_DYNAMIC(CChangePasswordDlg)
+
+public:
+ CChangePasswordDlg(CWnd* pParent = nullptr); // 鏍囧噯鏋勯�犲嚱鏁�
+ virtual ~CChangePasswordDlg();
+
+private:
+ bool changeUserPassword(UserManager& userManager, const std::string& username, const std::string& newPassword);
+
+// 瀵硅瘽妗嗘暟鎹�
+#ifdef AFX_DESIGN_TIME
+ enum { IDD = IDD_DIALOG_CHANGE_PASSWORD };
+#endif
+
+protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 鏀寔
+ virtual BOOL OnInitDialog();
+ afx_msg void OnBnClickedOk();
+ afx_msg void OnBnClickedCancel();
+ DECLARE_MESSAGE_MAP()
+
+private:
+ CEdit m_editUsername; // 鐢ㄦ埛鍚嶈緭鍏ユ
+ CEdit m_editCurrentPassword; // 褰撳墠瀵嗙爜杈撳叆妗�
+ CEdit m_editNewPassword; // 鏂板瘑鐮佽緭鍏ユ
+ CEdit m_editConfirmPassword; // 纭鏂板瘑鐮佽緭鍏ユ
+};
--
Gitblit v1.9.3