DAODepartmentView.h
上传用户:benben_wyd
上传日期:2010-02-26
资源大小:1229k
文件大小:2k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // DAODepartmentView.h : interface of the CDAODepartmentView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DAODEPARTMENTVIEW_H__C75F6EEC_943A_11D2_9949_E8E2006C6048__INCLUDED_)
  5. #define AFX_DAODEPARTMENTVIEW_H__C75F6EEC_943A_11D2_9949_E8E2006C6048__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CDAODepartmentSet;
  10. class CDAODepartmentView : public CDaoRecordView
  11. {
  12. protected: // create from serialization only
  13. CDAODepartmentView();
  14. DECLARE_DYNCREATE(CDAODepartmentView)
  15. public:
  16. //{{AFX_DATA(CDAODepartmentView)
  17. enum { IDD = IDD_DAODEPARTMENT_FORM };
  18. CDAODepartmentSet* m_pSet;
  19. CString m_FindDeptCode;
  20. //}}AFX_DATA
  21. // Attributes
  22. public:
  23. CDAODepartmentDoc* GetDocument();
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CDAODepartmentView)
  29. public:
  30. virtual CDaoRecordset* OnGetRecordset();
  31. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32. virtual BOOL OnMove(UINT nIDMoveCommand);
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  35. virtual void OnInitialUpdate(); // called first time after construct
  36. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  37. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  38. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. public:
  42. virtual ~CDAODepartmentView();
  43. #ifdef _DEBUG
  44. virtual void AssertValid() const;
  45. virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47. protected:
  48. // Generated message map functions
  49. protected:
  50. //{{AFX_MSG(CDAODepartmentView)
  51. afx_msg void OnFileNew();
  52. afx_msg void OnRecordDeleterecord();
  53. afx_msg void OnUpdateRecordDeleterecord(CCmdUI* pCmdUI);
  54. afx_msg void OnRecordQueryrecord();
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. #ifndef _DEBUG  // debug version in DAODepartmentView.cpp
  59. inline CDAODepartmentDoc* CDAODepartmentView::GetDocument()
  60.    { return (CDAODepartmentDoc*)m_pDocument; }
  61. #endif
  62. /////////////////////////////////////////////////////////////////////////////
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_DAODEPARTMENTVIEW_H__C75F6EEC_943A_11D2_9949_E8E2006C6048__INCLUDED_)