QQView.h
上传用户:sunh8215
上传日期:2010-02-13
资源大小:1616k
文件大小:4k
源码类别:

酒店行业

开发平台:

Visual C++

  1. // QQView.h : interface of the CQQView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_)
  5. #define AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include"GuestInfoLookup.h"
  10. #include "QQDoc.h"
  11. #include "InfoLookDialog.h"
  12. #include <Afxtempl.h>//模板头文件
  13. #include "Page3.h"
  14. struct RANGLEITEMSINFO //定义图像矩形区域结构体
  15. {
  16.     int nIndex;//矩形在图像中的索引
  17. long x1;
  18. long y1;
  19. long x2;
  20. long y2;
  21. CString strContentText;//矩形内的文本
  22. };
  23. class CQQView : public CView
  24. {
  25. public: // create from serialization only
  26. CQQView();
  27. DECLARE_DYNCREATE(CQQView)
  28. // Attributes
  29. public:
  30. // void DrawRangle(long x1, long y1, long x2, long y2,CDC* pDC);
  31.     static CQQView* GetView();//静态成员函数得到CView指针,供其他对象使用
  32. CQQDoc* GetDocument();
  33. CString strShowText;
  34. CGuestInfoLookup guestinfolookup;//客人信息查询对象
  35. bool bFinish;
  36. bool bFirst;
  37. CInfoLookDialog m_InfoLookDialog;
  38.     CPage3 page3;
  39. // static bool    bRestrore;//是否恢复视图区域
  40. static HBITMAP m_CurScreenBitmap;//当前屏幕位图句柄
  41. static int nImgTypeInView;//当前视图区域显示的图形类型-1为背景图
  42.                           //0为文字图像
  43.                           //1~11为数据分析模块中的图像类别
  44.                           //12为酒店概貌的树型图像,13为框架图像
  45. CList<RANGLEITEMSINFO*,RANGLEITEMSINFO*> m_List;//结构体列表
  46. static CPoint pnt;//静态点,用来为显示信息对话框作为中点
  47. // Operations
  48. public:
  49. // Overrides
  50. // ClassWizard generated virtual function overrides
  51. //{{AFX_VIRTUAL(CQQView)
  52. public:
  53. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  54. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  55. protected:
  56. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  57. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  58. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  59. //}}AFX_VIRTUAL
  60. // Implementation
  61. public:
  62. void InitStructData();
  63. void SetBitmapText(CPoint pnt,CDC* pDC,CString strText);
  64. void SetBitmapText(long x,long y,CDC* pDC,CString strText)
  65. {
  66. SetBitmapText(CPoint(x,y),pDC,strText);
  67. }
  68. void LoadWelocmeBmp(CDC* pDC);//load the welocme bmp
  69. void LoadbgroundBitmap(CDC* pDC);
  70. static BOOL bFirstRun;
  71. virtual ~CQQView();
  72. #ifdef _DEBUG
  73. virtual void AssertValid() const;
  74. virtual void Dump(CDumpContext& dc) const;
  75. #endif
  76. protected:
  77. // Generated message map functions
  78. protected:
  79. //{{AFX_MSG(CQQView)
  80. afx_msg void OnRoomRegister();//注册登记
  81. afx_msg void OnRoomChoose();  //选择房间
  82. afx_msg void OnFoodOrder();   //食物点单
  83. afx_msg void OnServerOrder(); //服务点单
  84. afx_msg void OnMoneyCheckout();//结帐走人
  85. afx_msg void OnMoneyStock();   //财务库存
  86. afx_msg void OnMoneyReportform();//财务报表
  87. afx_msg void OnInfolookGuest();  //客人信息查询
  88. afx_msg void OnInfolookBill();   //帐单信息查询
  89. afx_msg void OnInfolookEmployer();//职员信息查询
  90. afx_msg void OnInfolookFood();    //食物信息查询
  91. afx_msg void OnInfolookRoom();    //房间信息查询
  92. afx_msg void OnInfolookServer();  //服务项目查询
  93. afx_msg void OnInfolookConsume(); //具体消费查询
  94. afx_msg void OnTimer(UINT nIDEvent);//时间器 
  95. afx_msg BOOL OnEraseBkgnd(CDC* pDC);//擦除背景
  96. afx_msg void OnMoneyPay();//支付帐单
  97. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  98. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  99. afx_msg void OnRoomDestine();
  100. //}}AFX_MSG
  101. DECLARE_MESSAGE_MAP()
  102. };
  103. #ifndef _DEBUG  // debug version in QQView.cpp
  104. inline CQQDoc* CQQView::GetDocument()
  105. { return (CQQDoc*)m_pDocument; }
  106. #endif
  107. /////////////////////////////////////////////////////////////////////////////
  108. //{{AFX_INSERT_LOCATION}}
  109. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  110. #endif // !defined(AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_)