⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 page1.h

📁 vc编译的酒店管理系统
💻 H
字号:
#if !defined(AFX_PAGE1_H__7A5266C6_443D_47BB_A596_246D382E6701__INCLUDED_)
#define AFX_PAGE1_H__7A5266C6_443D_47BB_A596_246D382E6701__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Page1.h : header file
//
#define nTables 6//表的数目
#define nLines   100//行的数目
#define nCols    12 //列的数目,已最大的为准
/////////////////////////////////////////////////////////////////////////////
// CPage1 dialog
#include ".\\CoolProgress\\MacProgressCtrl.h"//包含滚动条的头文件
#include "SearchMethod.h"//高级搜索头文件
#include "InfoSet.h"
class CPage1 : public CDialog
{
	DECLARE_DYNCREATE(CPage1)
// Construction
public:
	//方法
	void FillEmployerInfo(int nCurLines);
	void SearchEmployerInfoSet(CString strSearchText);
	void FillFoodInfo(int nCurLines);
	void SearchFoodInfoSet(CString strSearchText);
	void FillServerInfo(int nCurLines);
	void SearchServerInfoSet(CString strSearchText);
	void FillBillInfo(int nCurLines);
	void SearchBillInfoSet(CString strSearchText);
	void FillRoomInfo(int nCurLines);
	void SearchRoomInfoSet(CString strSearchText);
	void FillGuestInfo(int nCurLines);
	void SearchGuestInfoSet(CString strSearchText);
	static void InitDate();//为静态成员初始化
	
	CPage1(CWnd* pParent = NULL);   // standard constructor
//	static CMacProgressCtrl* GetCoolProgressCtrl()
//	{
//		return (CMacProgressCtrl*)m_CoolProgress.GetSafeHwnd();
//	}
    //属性
	bool bSearch; 
// Dialog Data
	//{{AFX_DATA(CPage1)
	enum { IDD = IDD_PAGE1 };
	CEdit	m_SearchText;
    CMacProgressCtrl m_CoolProgress;
	BOOL	m_bBill;
	BOOL	m_bEmployer;
	BOOL	m_bFood;
	BOOL	m_bGuest;
	BOOL	m_bRoom;
	BOOL	m_bServer;
	int		m_SearchType;//搜索类型0-完全匹配 1-相似匹配
	//}}AFX_DATA
    CSearchMethod m_SearchMethod;//高级搜索方法实例
    CString strSearchText;
    static CString pszText[nTables][nLines][nCols];//存放查找得到的结果
    static int    nTablesItems[nTables];
	////定义数据库表对象
	CGuestInfoSet    m_GuestInfoSet;//客人信息表对象
    CRoomInfoSet     m_RoomInfoSet;
	CBillInfoSet     m_BillInfoSet;
	CServerInfoSet   m_ServerInfoSet;
	CFoodInfoSet     m_FoodInfoSet;
	CEmployerInfoSet m_EmployerInfoSet;
	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPage1)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPage1)
	virtual BOOL OnInitDialog();
	afx_msg void OnCheckBill();
	afx_msg void OnCheckEmployer();
	afx_msg void OnCheckFood();
	afx_msg void OnCheckGuest();
	afx_msg void OnCheckRoom();
	afx_msg void OnCheckServer();
	afx_msg void OnChangeSearchtext();
	afx_msg void OnRadio();
	afx_msg void OnSearch();
	afx_msg void OnDestroy();
	afx_msg void OnSetCoolProcessPos();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PAGE1_H__7A5266C6_443D_47BB_A596_246D382E6701__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -