ParkSysView.h
上传用户:trilite
上传日期:2007-04-24
资源大小:261k
文件大小:2k
源码类别:

酒店行业

开发平台:

Visual C++

  1. // ParkSysView.h : interface of the CParkSysView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_PARKSYSVIEW_H__BE77997D_1404_11D4_B34E_0080C8F5DB70__INCLUDED_)
  5. #define AFX_PARKSYSVIEW_H__BE77997D_1404_11D4_B34E_0080C8F5DB70__INCLUDED_
  6. #include "SerialPort.h"
  7. #include "CountTime.h"
  8. #include "avicap.h"
  9. #include "vicpublic.h"
  10. #include "aviStatic.h"
  11. #if _MSC_VER >= 1000
  12. #pragma once
  13. #endif // _MSC_VER >= 1000
  14. class CParkSysView : public CFormView
  15. {
  16. protected: // create from serialization only
  17. CParkSysView();
  18. DECLARE_DYNCREATE(CParkSysView)
  19. public:
  20. //{{AFX_DATA(CParkSysView)
  21. enum { IDD = IDD_PARKSYS_FORM };
  22. CAviStatic m_aviEx;
  23. CAviStatic m_aviEn;
  24. CStatic m_bmpIn;
  25. CString m_enCardID;
  26. CString m_enInTime;
  27. CString m_exCardID;
  28. CString m_exChargeNum;
  29. CString m_exInTime;
  30. CString m_exOutTime;
  31. CString m_exUseTime;
  32. long m_NowCarNum; //已用车位
  33. DWORD m_TotalCarNum;
  34. //}}AFX_DATA
  35. // Attributes
  36. private:
  37. void DisplayImage(CLongBinary* image);
  38. void OnGrabimage(CString strCardID);
  39. BOOL CheckCarOut(CString strCardID);
  40. LONG RefreshCarCount(CString strCardID);
  41. protected:
  42. CSerialPort m_CommLP;
  43. CSerialPort m_CommLED;
  44. CAviCap avi[2];
  45. // Operations
  46. public:
  47. // Overrides
  48. // ClassWizard generated virtual function overrides
  49. //{{AFX_VIRTUAL(CParkSysView)
  50. public:
  51. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. public:
  57. void CreateNewLabel();
  58. virtual ~CParkSysView();
  59. #ifdef _DEBUG
  60. #endif
  61. protected:
  62. // Generated message map functions
  63. protected:
  64. BOOL Charge(CString cardid, double &cyFee);
  65. //{{AFX_MSG(CParkSysView)
  66. afx_msg void OnGenerateAccount();
  67. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  68. afx_msg void OnCharge();
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. };
  72. #ifndef _DEBUG  // debug version in ParkSysView.cpp
  73. inline CParkSysDoc* CParkSysView::GetDocument()
  74.    { return (CParkSysDoc*)m_pDocument; }
  75. #endif
  76. /////////////////////////////////////////////////////////////////////////////
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_PARKSYSVIEW_H__BE77997D_1404_11D4_B34E_0080C8F5DB70__INCLUDED_)