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

📄 assetenrolview.h

📁 这是本人前不久为公司做的一个财产登记软件,实现中用到的是ADO Access数据库.登陆的初始密码为:111111,当然你可以进行更改.
💻 H
字号:
// AssetEnrolView.h : interface of the CAssetEnrolView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ASSETENROLVIEW_H__E5BBE699_0AEB_44A7_9F35_7883BFC506BD__INCLUDED_)
#define AFX_ASSETENROLVIEW_H__E5BBE699_0AEB_44A7_9F35_7883BFC506BD__INCLUDED_

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


class CAssetEnrolView : public CFormView
{
protected: // create from serialization only
	CAssetEnrolView();
	DECLARE_DYNCREATE(CAssetEnrolView)

public:
	//{{AFX_DATA(CAssetEnrolView)
	enum { IDD = IDD_ASSETENROL_FORM };
	CComboBox	m_Combox;
	CListBox	m_list;
	CString	m_Name;
	CString	m_Day;
	CString	m_Month;
	CString	m_Year;
	CString	m_Unit;
	CString	m_Value;
	CString	m_Custodian;
	CString	m_Property;
	CString	m_Number;
	CString	m_SerialNo;
	//}}AFX_DATA

// Attributes
public:
	CAssetEnrolDoc* GetDocument();

// Operations
public:

	CString strQuery;
	BOOL IsOne;     //对话框是否第一次激活
	BOOL IsQuery;   //是否已经按下查询一次
	int recordPos;  //在查找时的记录位置
	_ConnectionPtr m_pConnection;  //ADO连接变量指针
	_CommandPtr m_pCommand;        //命令集指针
	_RecordsetPtr m_pRecordset;    //记录集合指针

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAssetEnrolView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CAssetEnrolView)
	afx_msg void OnSelchangeList1();
	afx_msg void OnRead();
	afx_msg void OnAdd();
	afx_msg void OnModify();
	afx_msg void OnDeldte();
	afx_msg void OnQuery();
	afx_msg void OnNext();
	afx_msg void OnClearitem();
	afx_msg void OnCleartable();
	afx_msg void OnClose();
	afx_msg void OnAsset();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in AssetEnrolView.cpp
inline CAssetEnrolDoc* CAssetEnrolView::GetDocument()
   { return (CAssetEnrolDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_ASSETENROLVIEW_H__E5BBE699_0AEB_44A7_9F35_7883BFC506BD__INCLUDED_)

⌨️ 快捷键说明

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