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

书籍源码

开发平台:

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. BOOL m_bChangesMade;
  14. CDAODepartmentView();
  15. DECLARE_DYNCREATE(CDAODepartmentView)
  16. public:
  17. //{{AFX_DATA(CDAODepartmentView)
  18. enum { IDD = IDD_DAODEPARTMENT_FORM };
  19. CDAODepartmentSet* m_pSet;
  20. CString m_FindDeptCode;
  21. //}}AFX_DATA
  22. // Attributes
  23. public:
  24. CDAODepartmentDoc* GetDocument();
  25. // Operations
  26. public:
  27. void SaveData();
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CDAODepartmentView)
  31. public:
  32. virtual CDaoRecordset* OnGetRecordset();
  33. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  34. virtual BOOL OnMove(UINT nIDMoveCommand);
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  37. virtual void OnInitialUpdate(); // called first time after construct
  38. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  39. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  40. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. public:
  44. virtual ~CDAODepartmentView();
  45. #ifdef _DEBUG
  46. virtual void AssertValid() const;
  47. virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49. protected:
  50. // Generated message map functions
  51. protected:
  52. //{{AFX_MSG(CDAODepartmentView)
  53. afx_msg void OnFileNew();
  54. afx_msg void OnRecordDeleterecord();
  55. afx_msg void OnUpdateRecordDeleterecord(CCmdUI* pCmdUI);
  56. afx_msg void OnRecordQueryrecord();
  57. afx_msg void OnFileSave();
  58. afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
  59. afx_msg void OnChangeDepartmentcode();
  60. afx_msg void OnChangeDepartmentname();
  61. afx_msg void OnDestroy();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. };
  65. #ifndef _DEBUG  // debug version in DAODepartmentView.cpp
  66. inline CDAODepartmentDoc* CDAODepartmentView::GetDocument()
  67.    { return (CDAODepartmentDoc*)m_pDocument; }
  68. #endif
  69. /////////////////////////////////////////////////////////////////////////////
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_DAODEPARTMENTVIEW_H__C75F6EEC_943A_11D2_9949_E8E2006C6048__INCLUDED_)