【正文】
房直接的經濟效益是指由于系統的建立使客房的生產經營或客房的管理取得直接的利潤收益。s superintendent faces. The simple service standard was already not the brocade sack which subdues, only then achieves the most subtle point only then to have the opportunity to let the customer realize the hotel service the merit, but accurate, quick, plete often is the most basic successful essential factor. Therefore, uses the brandnew puter network and the management system management system, will bee enhances the hotel the managerial effectiveness, one of improvement service level important means. The information and the science and technology appear more and more important status in the hotel management and the modernization. In some sense, the hotel guest room status manager aspect39。簡單的服務標準已經不是制勝的錦囊,只有做到最細微之處才有機會讓顧客體會到酒店服務的優(yōu)點,而準確、快捷、周全往往就是最基本的成功要素。如何利用先進的管理手段,提高酒店的管理水平,是每一家酒店的管理者所面臨的重要課題。s industry petition is getting more and more intense. Must want to have the superiority in the petition, must in aspects and so on management and operation, product service raise the service management consciousness. What but plays the decision role to the hotel state of operation is the hotel management. How to use the advanced management tool, enhances the hotel the management level, is important topic which each hotel39。然而客房經濟效益的提高應該包括直接的經濟效益和間接的經濟效益兩方面考慮。(圖: 主操作界面) 登錄界面本模塊設計思想主要是登錄界面,當管理員登錄時,系統提示要輸入管理員的身份認證。 (圖: 幫助信息) 用戶更新 這個是方便管理員在客戶需要更改相關信息的時候,可以根據用戶已經登記過的信息進行更改。// CCHECKIN dialogCCHECKIN::CCHECKIN(CWnd* pParent /*=NULL*/) : CDialog(CCHECKIN::IDD, pParent){ //{{AFX_DATA_INIT(CCHECKIN) m_username = _T()。 m_sex = _T()。 DDX_Text(pDX, IDC_EDIT3, m_useday)。 //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CCHECKIN, CDialog) //{{AFX_MSG_MAP(CCHECKIN) ON_BN_CLICKED(IDC_BUTTON2, OnButton2) ON_BN_CLICKED(IDC_BUTTON3, OnButton3) ON_BN_CLICKED(IDC_BUTTON1, OnButton1) ON_BN_CLICKED(IDC_update, Onupdate) ON_BN_CLICKED(IDC_BUTTON5, OnButton5) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CCHECKIN message handlersCHECKIN類說明表名稱屬性說明m_checkintime數據成員記錄登記時間m_radio_m 數據成員記錄客戶性別m_roomnum數據成員記錄客戶住房的號碼m_userid數據成員記錄用戶的身份證號m_username數據成員記錄用戶姓名m_users數據成員記錄客戶的住房人數OnButton()成員方法點擊確定按鈕,提交事件Onupdate()成員方法更新記錄OnbuttonN()成員方法提交事件 CHECKOUT類Class CHECKOUTCCHECKOUT(CWnd*pParent=NULL)。 //DDX_Text(pDX, IDC_EDIT2, m_money)。 //DDX_Text(pDX, IDC_EDIT2, m_money)。SERVER=(local)。 //()。=amp。DoDataExchange(CDataExchange* DX)ADO()~ADOOnInitADO()。 // 執(zhí)行SQL語句,Insert Update _variant_t BOOL ExecuteSQL(_bstr_t bstrSQL)。ROOMINFO類說明表名稱屬性說明m_pConnection數據成員定義數據庫連接,m_pRecordset 數據成員定義數據集DoDataExchange(CDataExchange* DX)成員方法用來獲取客戶資料記錄指針ADO()。并將日后考完試將繼續(xù)改造本系統,使之更完善。// 定義方法public: ADO()。endif // !defined(AFX_ADOCONN_H__AC448F02_AF26_45E4_9B2D_D7ECB8FFCFB9__INCLUDED_)if !defined(AFX_CHECKIN_H__E756DCB9_457C_4A2E_9874_C74B754D7DAC__INCLUDED_)define AFX_CHECKIN_H__E756DCB9_457C_4A2E_9874_C74B754D7DAC__INCLUDED_if _MSC_VER 1000pragma onceendif // _MSC_VER 1000// : header file///////////////////////////////////////////////////////////////////////////////// CCHECKIN dialogclass CCHECKIN : public CDialog{// Constructionpublic: CCHECKIN(CWnd* pParent = NULL)。 CString m_roomnum。 //}}AFX_DATA// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CCHECKIN) protected: virtual void DoDataExchange(CDataExchange* pDX)。//{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.endif // !defined(AFX_CHECKIN_H__E756DCB9_457C_4A2E_9874_C74B754D7DAC__INCLUDED_)if !defined(AFX_CHECKOUT_H__E729620E_81E2_40B9_A08E_C638F7180CD0__INCLUDED_)define AFX_CHECKOUT_H__E729620E_81E2_40B9_A08E_C638F7180CD0__INCLUDED_if _MSC_VER 1000pragma onceendif // _MSC_VER 1000// : header file///////////////////////////////////////////////////////////////////////////////// CCHECKOUT dialogclass CCHECKOUT : public CDialog{// Constructionpublic: CCHECKOUT(CWnd* pParent = NULL)。 //}}AFX_MSG DECLARE_MESSAGE_MAP()}。 GetClsid() { static CLSID const clsid = { 0xcde57a43, 0x8b86, 0x11d0, { 0xb3, 0xc6, 0x0, 0xa0, 0xc9, 0xa, 0xea, 0x82 } }。 CString m_deleteid。//{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.endif // !defined(AFX_ROOMINFO_H__DB376A02_FB0A_45C7_B8DE_9000B6F365E0__INCLUDED_)if !defined(AFX_UPDATE_H__08862080_512E_44E6_B2A3_C5E15722234D__INCLUDED_)define AFX_UPDATE_H__08862080_512E_44E6_B2A3_C5E15722234D__INCLUDED_if _MSC_VER 1000pragma onceendif // _MSC_VER 1000// : header file//// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CUPDATE) protected: virtual void DoDataExchange(CDataExchange* pDX)。ifdef _DEBUG virtual void AssertValid() const。BYTE k。 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)。define new DEBUG_NEWendif//////////////////////////////////////////////////////////////////////// Construction/Destruction//////////////////////////////////////////////////////////////////////ADO::ADO(){}ADO::~ADO(){}// 初始化—連接數據庫void ADO::OnInitADO(){ // 初始化OLE/COM庫環(huán)境 ::CoInitialize(NULL)。 _bstr_t strConnect =Provider=。User ID=sys。Data Source=hrsys。 } // 返回記錄集 return m_pRecordset。 }}void ADO::ExitConnect(){ // 關閉記錄集和連接 if (m_pRecordset != NULL) m_pRecordsetClose()。 m_users = _T()。 m_roomstd = 0。 DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKER1, m_checkintime)。 //200815 //if (nID==IDC_RADIO2) //200815 try{ str=DRIVER={SQL Server}。 */ } catch(CDBException *e)