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

📄 rfid_desktopreaderdoc.h

📁 RFID读卡器源码,vc.net编写,bcgp界面控件
💻 H
字号:
// RFID_DesktopReaderDoc.h : interface of the CRFID_DesktopReaderDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_RFID_DesktopReaderDOC_H__AFE0CB53_FDBF_426F_BB86_598BA0E79C2B__INCLUDED_)
#define AFX_RFID_DesktopReaderDOC_H__AFE0CB53_FDBF_426F_BB86_598BA0E79C2B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DbTable.h"

class CRFID_DesktopReaderDoc : public CDocument
{
protected: // create from serialization only
	CRFID_DesktopReaderDoc();
	DECLARE_DYNCREATE(CRFID_DesktopReaderDoc)

// Attributes
public:

CADODataset		m_adoDevice;
CADODataset		m_adoRFIDMap;
CADODataset		m_adoUnmapedDevice;
CADODataset		m_adoMapedDevice;

CDbTable m_InputTable;
CDbTable m_OutputTable;
CString  m_strRelationship;

CString m_strDataSource;
CString m_strUDLFile;
CString m_strDbIniFile;

CString m_strQueryTableName;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRFID_DesktopReaderDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CRFID_DesktopReaderDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CRFID_DesktopReaderDoc)
	
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	bool m_bUnmapedOnly;
	int AssociateDevice(int nDevice, CString strRFID);
	int DeassociateDevice(CString strRFID);
	int DeassociateDevice(int nID);
	int ReplaceAssociateCard(long lDeviceID, CString strWithRFID);
	int LoadDBiniFile(CString strIniFileName);
	CString GetTableField(CStdioFile* pFile, CDbTable* pDbTable);


	CADODataset* GetAssociationDevice();
	CADODataset* GetAssociationDevice(CString strCon);

	CADODataset* GetUnassociationDevice();
	CADODataset* GetUnassociationDevice(CString strCon);

//	bool m_bRFIDValid;
	struct RFID
	{
		bool bValid;
		CString strRFID;
		CString strContent;
		bool bMaped;
		long lDeviceID;
		CADODataset mapedDataset;
	}m_CurrentRFID;
//	CString m_strRFID;
//	CString m_strRFIDCardContent;
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_RFID_DesktopReaderDOC_H__AFE0CB53_FDBF_426F_BB86_598BA0E79C2B__INCLUDED_)

⌨️ 快捷键说明

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