From 5bef44a9af6691d1638680c073d75bde64b3a8c7 Mon Sep 17 00:00:00 2001 From: ~ Alone <1197284744@qq.com> Date: Wed, 8 May 2024 18:40:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aike/BookingDlg.cpp | 50 -------------------------------------- aike/BookingDlg.h | 26 -------------------- aike/BusinessDlg.cpp | 50 -------------------------------------- aike/BusinessDlg.h | 26 -------------------- aike/InventoryDlg.cpp | 50 -------------------------------------- aike/InventoryDlg.h | 26 -------------------- aike/MemberDlg.cpp | 50 -------------------------------------- aike/MemberDlg.h | 26 -------------------- aike/ReportDlg.cpp | 50 -------------------------------------- aike/ReportDlg.h | 26 -------------------- aike/SetUpDlg.cpp | 50 -------------------------------------- aike/SetUpDlg.h | 26 -------------------- aike/aike.rc | Bin 15456 -> 11262 bytes aike/aike.vcxproj | 11 --------- aike/aike.vcxproj.filters | 33 ------------------------- aike/aikeDlg.cpp | 34 +++++++++++++++++++------- aike/aikeDlg.h | 9 ++++--- aike/resource.h | 7 ------ 18 files changed, 31 insertions(+), 519 deletions(-) delete mode 100644 aike/BookingDlg.cpp delete mode 100644 aike/BookingDlg.h delete mode 100644 aike/BusinessDlg.cpp delete mode 100644 aike/BusinessDlg.h delete mode 100644 aike/InventoryDlg.cpp delete mode 100644 aike/InventoryDlg.h delete mode 100644 aike/MemberDlg.cpp delete mode 100644 aike/MemberDlg.h delete mode 100644 aike/ReportDlg.cpp delete mode 100644 aike/ReportDlg.h delete mode 100644 aike/SetUpDlg.cpp delete mode 100644 aike/SetUpDlg.h diff --git a/aike/BookingDlg.cpp b/aike/BookingDlg.cpp deleted file mode 100644 index 939fa37..0000000 --- a/aike/BookingDlg.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// BookingDlg.cpp: 实现文件 -// - -#include "pch.h" -#include "aike.h" -#include "afxdialogex.h" -#include "BookingDlg.h" - - -// BookingDlg 对话框 - -IMPLEMENT_DYNAMIC(BookingDlg, CDialogEx) - -BookingDlg::BookingDlg(CWnd* pParent /*=nullptr*/) - : CDialogEx(IDD_BOOKINGDLG, pParent) -{ - -} - -BookingDlg::~BookingDlg() -{ -} - -void BookingDlg::DoDataExchange(CDataExchange* pDX) -{ - CDialogEx::DoDataExchange(pDX); -} - - -BEGIN_MESSAGE_MAP(BookingDlg, CDialogEx) -END_MESSAGE_MAP() - - -// BookingDlg 消息处理程序 - - -void BookingDlg::OnCancel() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnCancel(); -} - - -void BookingDlg::OnOK() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnOK(); -} diff --git a/aike/BookingDlg.h b/aike/BookingDlg.h deleted file mode 100644 index 1a86b83..0000000 --- a/aike/BookingDlg.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include "afxdialogex.h" - - -// BookingDlg 对话框 - -class BookingDlg : public CDialogEx -{ - DECLARE_DYNAMIC(BookingDlg) - -public: - BookingDlg(CWnd* pParent = nullptr); // 标准构造函数 - virtual ~BookingDlg(); - -// 对话框数据 -#ifdef AFX_DESIGN_TIME - enum { IDD = IDD_BOOKINGDLG }; -#endif - -protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 - - DECLARE_MESSAGE_MAP() - virtual void OnCancel(); - virtual void OnOK(); -}; diff --git a/aike/BusinessDlg.cpp b/aike/BusinessDlg.cpp deleted file mode 100644 index 19aebf6..0000000 --- a/aike/BusinessDlg.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// BusinessDlg.cpp: 实现文件 -// - -#include "pch.h" -#include "aike.h" -#include "afxdialogex.h" -#include "BusinessDlg.h" - - -// BusinessDlg 对话框 - -IMPLEMENT_DYNAMIC(BusinessDlg, CDialogEx) - -BusinessDlg::BusinessDlg(CWnd* pParent /*=nullptr*/) - : CDialogEx(IDD_BUSINESSDLG, pParent) -{ - -} - -BusinessDlg::~BusinessDlg() -{ -} - -void BusinessDlg::DoDataExchange(CDataExchange* pDX) -{ - CDialogEx::DoDataExchange(pDX); -} - - -BEGIN_MESSAGE_MAP(BusinessDlg, CDialogEx) -END_MESSAGE_MAP() - - -// BusinessDlg 消息处理程序 - - -void BusinessDlg::OnCancel() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnCancel(); -} - - -void BusinessDlg::OnOK() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnOK(); -} diff --git a/aike/BusinessDlg.h b/aike/BusinessDlg.h deleted file mode 100644 index 8b6030d..0000000 --- a/aike/BusinessDlg.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include "afxdialogex.h" - - -// BusinessDlg 对话框 - -class BusinessDlg : public CDialogEx -{ - DECLARE_DYNAMIC(BusinessDlg) - -public: - BusinessDlg(CWnd* pParent = nullptr); // 标准构造函数 - virtual ~BusinessDlg(); - -// 对话框数据 -#ifdef AFX_DESIGN_TIME - enum { IDD = IDD_BUSINESSDLG }; -#endif - -protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 - - DECLARE_MESSAGE_MAP() - virtual void OnCancel(); - virtual void OnOK(); -}; diff --git a/aike/InventoryDlg.cpp b/aike/InventoryDlg.cpp deleted file mode 100644 index 2692411..0000000 --- a/aike/InventoryDlg.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// InventoryDlg.cpp: 实现文件 -// - -#include "pch.h" -#include "aike.h" -#include "afxdialogex.h" -#include "InventoryDlg.h" - - -// InventoryDlg 对话框 - -IMPLEMENT_DYNAMIC(InventoryDlg, CDialogEx) - -InventoryDlg::InventoryDlg(CWnd* pParent /*=nullptr*/) - : CDialogEx(IDD_INVENTORYDLG, pParent) -{ - -} - -InventoryDlg::~InventoryDlg() -{ -} - -void InventoryDlg::DoDataExchange(CDataExchange* pDX) -{ - CDialogEx::DoDataExchange(pDX); -} - - -BEGIN_MESSAGE_MAP(InventoryDlg, CDialogEx) -END_MESSAGE_MAP() - - -// InventoryDlg 消息处理程序 - - -void InventoryDlg::OnCancel() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnCancel(); -} - - -void InventoryDlg::OnOK() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnOK(); -} diff --git a/aike/InventoryDlg.h b/aike/InventoryDlg.h deleted file mode 100644 index b0819e0..0000000 --- a/aike/InventoryDlg.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include "afxdialogex.h" - - -// InventoryDlg 对话框 - -class InventoryDlg : public CDialogEx -{ - DECLARE_DYNAMIC(InventoryDlg) - -public: - InventoryDlg(CWnd* pParent = nullptr); // 标准构造函数 - virtual ~InventoryDlg(); - -// 对话框数据 -#ifdef AFX_DESIGN_TIME - enum { IDD = IDD_INVENTORYDLG }; -#endif - -protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 - - DECLARE_MESSAGE_MAP() - virtual void OnCancel(); - virtual void OnOK(); -}; diff --git a/aike/MemberDlg.cpp b/aike/MemberDlg.cpp deleted file mode 100644 index 2716f3e..0000000 --- a/aike/MemberDlg.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// MemberDlg.cpp: 实现文件 -// - -#include "pch.h" -#include "aike.h" -#include "afxdialogex.h" -#include "MemberDlg.h" - - -// MemberDlg 对话框 - -IMPLEMENT_DYNAMIC(MemberDlg, CDialogEx) - -MemberDlg::MemberDlg(CWnd* pParent /*=nullptr*/) - : CDialogEx(IDD_MEMBERDLG, pParent) -{ - -} - -MemberDlg::~MemberDlg() -{ -} - -void MemberDlg::DoDataExchange(CDataExchange* pDX) -{ - CDialogEx::DoDataExchange(pDX); -} - - -BEGIN_MESSAGE_MAP(MemberDlg, CDialogEx) -END_MESSAGE_MAP() - - -// MemberDlg 消息处理程序 - - -void MemberDlg::OnCancel() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnCancel(); -} - - -void MemberDlg::OnOK() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnOK(); -} diff --git a/aike/MemberDlg.h b/aike/MemberDlg.h deleted file mode 100644 index 29d84e8..0000000 --- a/aike/MemberDlg.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include "afxdialogex.h" - - -// MemberDlg 对话框 - -class MemberDlg : public CDialogEx -{ - DECLARE_DYNAMIC(MemberDlg) - -public: - MemberDlg(CWnd* pParent = nullptr); // 标准构造函数 - virtual ~MemberDlg(); - -// 对话框数据 -#ifdef AFX_DESIGN_TIME - enum { IDD = IDD_MEMBERDLG }; -#endif - -protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 - - DECLARE_MESSAGE_MAP() - virtual void OnCancel(); - virtual void OnOK(); -}; diff --git a/aike/ReportDlg.cpp b/aike/ReportDlg.cpp deleted file mode 100644 index 4122c03..0000000 --- a/aike/ReportDlg.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// ReportDlg.cpp: 实现文件 -// - -#include "pch.h" -#include "aike.h" -#include "afxdialogex.h" -#include "ReportDlg.h" - - -// ReportDlg 对话框 - -IMPLEMENT_DYNAMIC(ReportDlg, CDialogEx) - -ReportDlg::ReportDlg(CWnd* pParent /*=nullptr*/) - : CDialogEx(IDD_REPORTDLG, pParent) -{ - -} - -ReportDlg::~ReportDlg() -{ -} - -void ReportDlg::DoDataExchange(CDataExchange* pDX) -{ - CDialogEx::DoDataExchange(pDX); -} - - -BEGIN_MESSAGE_MAP(ReportDlg, CDialogEx) -END_MESSAGE_MAP() - - -// ReportDlg 消息处理程序 - - -void ReportDlg::OnCancel() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnCancel(); -} - - -void ReportDlg::OnOK() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnOK(); -} diff --git a/aike/ReportDlg.h b/aike/ReportDlg.h deleted file mode 100644 index d013c97..0000000 --- a/aike/ReportDlg.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include "afxdialogex.h" - - -// ReportDlg 对话框 - -class ReportDlg : public CDialogEx -{ - DECLARE_DYNAMIC(ReportDlg) - -public: - ReportDlg(CWnd* pParent = nullptr); // 标准构造函数 - virtual ~ReportDlg(); - -// 对话框数据 -#ifdef AFX_DESIGN_TIME - enum { IDD = IDD_REPORTDLG }; -#endif - -protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 - - DECLARE_MESSAGE_MAP() - virtual void OnCancel(); - virtual void OnOK(); -}; diff --git a/aike/SetUpDlg.cpp b/aike/SetUpDlg.cpp deleted file mode 100644 index c14b1bd..0000000 --- a/aike/SetUpDlg.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// SetUpDlg.cpp: 实现文件 -// - -#include "pch.h" -#include "aike.h" -#include "afxdialogex.h" -#include "SetUpDlg.h" - - -// SetUpDlg 对话框 - -IMPLEMENT_DYNAMIC(SetUpDlg, CDialogEx) - -SetUpDlg::SetUpDlg(CWnd* pParent /*=nullptr*/) - : CDialogEx(IDD_SETUPDLG, pParent) -{ - -} - -SetUpDlg::~SetUpDlg() -{ -} - -void SetUpDlg::DoDataExchange(CDataExchange* pDX) -{ - CDialogEx::DoDataExchange(pDX); -} - - -BEGIN_MESSAGE_MAP(SetUpDlg, CDialogEx) -END_MESSAGE_MAP() - - -// SetUpDlg 消息处理程序 - - -void SetUpDlg::OnCancel() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnCancel(); -} - - -void SetUpDlg::OnOK() -{ - // TODO: 在此添加专用代码和/或调用基类 - - //CDialogEx::OnOK(); -} diff --git a/aike/SetUpDlg.h b/aike/SetUpDlg.h deleted file mode 100644 index a29d56c..0000000 --- a/aike/SetUpDlg.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include "afxdialogex.h" - - -// SetUpDlg 对话框 - -class SetUpDlg : public CDialogEx -{ - DECLARE_DYNAMIC(SetUpDlg) - -public: - SetUpDlg(CWnd* pParent = nullptr); // 标准构造函数 - virtual ~SetUpDlg(); - -// 对话框数据 -#ifdef AFX_DESIGN_TIME - enum { IDD = IDD_SETUPDLG }; -#endif - -protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 - - DECLARE_MESSAGE_MAP() - virtual void OnCancel(); - virtual void OnOK(); -}; diff --git a/aike/aike.rc b/aike/aike.rc index 0eee0ccc2f8002f816aac95e6f041d89c7a83aed..fc4c7e981e18e7ecccdefe15aa340cf50d2c6824 100644 GIT binary patch delta 26 icmaD*@h^PC889W*M7+isL@ML~r&BZ~y=TbX5QV diff --git a/aike/aike.vcxproj b/aike/aike.vcxproj index 0a8fb07..a671594 100644 --- a/aike/aike.vcxproj +++ b/aike/aike.vcxproj @@ -187,14 +187,9 @@ - - - - - @@ -203,13 +198,7 @@ - - - - - - Create diff --git a/aike/aike.vcxproj.filters b/aike/aike.vcxproj.filters index 0b88383..a77f778 100644 --- a/aike/aike.vcxproj.filters +++ b/aike/aike.vcxproj.filters @@ -36,27 +36,12 @@ 头文件 - - 头文件 - - - 头文件 - 头文件 - - 头文件 - - - 头文件 - 头文件 - - 头文件 - @@ -71,27 +56,9 @@ 源文件 - - 源文件 - - - 源文件 - - - 源文件 - - - 源文件 - - - 源文件 - 源文件 - - 源文件 - diff --git a/aike/aikeDlg.cpp b/aike/aikeDlg.cpp index 4661365..94622b0 100644 --- a/aike/aikeDlg.cpp +++ b/aike/aikeDlg.cpp @@ -213,7 +213,7 @@ VOID CaikeDlg::Initialize() m_StaffDlg.Create(IDD_STAFFDLG, this); - + m_RoomSetUpDlg.Create(IDD_ROOMSETUPDLG, this); //FixedSize(); @@ -344,7 +344,8 @@ VOID CaikeDlg::MoveAllWin() rt.MoveToXY(-50, -50); rt.left = 150; rt.top = (50); - m_StaffDlg.MoveWindow(rt); + m_StaffDlg.MoveWindow(rt); + m_RoomSetUpDlg.MoveWindow(rt); } @@ -372,24 +373,39 @@ VOID CaikeDlg::SetUpClick(int id) rt.MoveToXY(30, 90); AddButton(6001, rt); SetLClick(6001, [this](int i) {StaffClick(i); }); + + rt.MoveToXY(30, 130); + AddButton(6002, rt); + SetLClick(6002, [this](int i) {RoomSetUpClick(i); }); } ShowButton(1001, TRUE); ShowButton(6001, TRUE); -} - -VOID CaikeDlg::StaffClick(int id) -{ - m_StaffDlg.ShowWindow(SW_SHOW); - m_StaffDlg.ShowStaff(); + ShowButton(6002, TRUE); } //回到主页 VOID CaikeDlg::HomepageClick(int id) { m_StaffDlg.ShowWindow(SW_HIDE); + m_RoomSetUpDlg.ShowWindow(SW_HIDE); ShowButton(1001, FALSE); - ShowButton(6001, FALSE); + ShowButton(6001, FALSE); + ShowButton(6002, FALSE); HideAllBt(FALSE); } +//点击员工信息 +VOID CaikeDlg::StaffClick(int id) +{ + m_RoomSetUpDlg.ShowWindow(SW_HIDE); + m_StaffDlg.ShowWindow(SW_SHOW); + m_StaffDlg.ShowStaff(); +} + +VOID CaikeDlg::RoomSetUpClick(int id) +{ + m_StaffDlg.ShowWindow(SW_HIDE); + m_RoomSetUpDlg.ShowWindow(SW_SHOW); +} + diff --git a/aike/aikeDlg.h b/aike/aikeDlg.h index 40f6fe6..8f6ed74 100644 --- a/aike/aikeDlg.h +++ b/aike/aikeDlg.h @@ -4,6 +4,7 @@ #pragma once #include "StaffDlg.h" +#include "RoomSetUpDlg.h" // CaikeDlg 对话框 class CaikeDlg : public CDialogEx,MyDialog @@ -39,8 +40,8 @@ public: CString DataBase; //数据库名称 CString UserName; //数据库用户名 CString AdoPass; //数据库密码 - //CListCtrl m_Staff; - StaffDlg m_StaffDlg; + StaffDlg m_StaffDlg; //员工信息界面 + RoomSetUpDlg m_RoomSetUpDlg; //员工信息界面 //MFC回调函数 virtual BOOL PreTranslateMessage(MSG* pMsg); //截获窗口消息 @@ -63,7 +64,8 @@ public: VOID HideAllBt(BOOL Hide = TRUE); //隐藏所有按钮 VOID SetUpClick(int id); //设置按钮 VOID HomepageClick(int id); //回到主页 - VOID StaffClick(int id); + VOID StaffClick(int id); //点击员工信息 + VOID RoomSetUpClick(int id); //点击员工信息 }; @@ -81,4 +83,5 @@ public: 6000 基础设置 1001 返回主页 6001 员工信息 +6002 房间设置 */ \ No newline at end of file diff --git a/aike/resource.h b/aike/resource.h index f53fc76..7fde78c 100644 --- a/aike/resource.h +++ b/aike/resource.h @@ -6,14 +6,7 @@ #define IDD_AIKE_DIALOG 102 #define IDR_MAINFRAME 128 #define IDD_STAFFDLG 132 -#define IDD_DEPARTMENTDLG 134 #define IDD_ROOMSETUPDLG 134 -#define IDD_BUSINESSDLG 135 -#define IDD_MEMBERDLG 136 -#define IDD_SETUPDLG 137 -#define IDD_BOOKINGDLG 138 -#define IDD_INVENTORYDLG 139 -#define IDD_REPORTDLG 140 #define IDC_LIST1 1000 #define ID_32771 32771 #define ID_32772 32772