www.pudn.com > 200518174534292.rar > ParkSysView.h


// ParkSysView.h : interface of the CParkSysView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_PARKSYSVIEW_H__BE77997D_1404_11D4_B34E_0080C8F5DB70__INCLUDED_) 
#define AFX_PARKSYSVIEW_H__BE77997D_1404_11D4_B34E_0080C8F5DB70__INCLUDED_ 
 
#include "SerialPort.h" 
#include "CountTime.h" 
#include "avicap.h" 
#include "vicpublic.h" 
#include "aviStatic.h" 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
class CParkSysView : public CFormView 
{ 
protected: // create from serialization only 
	CParkSysView(); 
	DECLARE_DYNCREATE(CParkSysView) 
 
public: 
	//{{AFX_DATA(CParkSysView) 
	enum { IDD = IDD_PARKSYS_FORM }; 
	CAviStatic	m_aviEx; 
	CAviStatic	m_aviEn; 
	CStatic	m_bmpIn; 
	CString	m_enCardID; 
	CString	m_enInTime; 
	CString	m_exCardID; 
	CString	m_exChargeNum; 
	CString	m_exInTime; 
	CString	m_exOutTime; 
	CString	m_exUseTime; 
	long		m_NowCarNum;		//ÒÑÓóµÎ» 
	DWORD		m_TotalCarNum; 
	//}}AFX_DATA 
 
// Attributes 
private: 
 
	void DisplayImage(CLongBinary* image); 
	void OnGrabimage(CString strCardID); 
	BOOL CheckCarOut(CString strCardID); 
	LONG RefreshCarCount(CString strCardID); 
protected: 
	CSerialPort m_CommLP; 
	CSerialPort m_CommLED; 
 
	CAviCap avi[2]; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CParkSysView) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void CreateNewLabel(); 
	virtual ~CParkSysView(); 
#ifdef _DEBUG 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	BOOL Charge(CString cardid, double &cyFee); 
	//{{AFX_MSG(CParkSysView) 
	afx_msg void OnGenerateAccount(); 
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 
	afx_msg void OnCharge(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in ParkSysView.cpp 
inline CParkSysDoc* CParkSysView::GetDocument() 
   { return (CParkSysDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_PARKSYSVIEW_H__BE77997D_1404_11D4_B34E_0080C8F5DB70__INCLUDED_)