departmentdlg.h
上传用户:rs600066
上传日期:2017-10-16
资源大小:4788k
文件大小:2k
源码类别:

数据库系统

开发平台:

Visual C++

  1. #if !defined(AFX_DEPARTMENTDLG1_H__1AD4274B_6463_449B_9149_4F9F14784BA3__INCLUDED_)
  2. #define AFX_DEPARTMENTDLG1_H__1AD4274B_6463_449B_9149_4F9F14784BA3__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DepartmentDlg1.h : header file
  7. //
  8. #include "DepartmentSet.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CDepartmentDlg dialog
  11. class CDepartmentDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CDepartmentDlg(CWnd* pParent = NULL);   // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(CDepartmentDlg)
  18. enum { IDD = IDD_DIALOG_DEPARTMENT };
  19. CListCtrl m_ctrList;
  20. CButton m_bntSave;
  21. CButton m_bntNew;
  22. CButton m_bntModify;
  23. CButton m_bntDelete;
  24. CString m_strCode;
  25. CString m_strInfo;
  26. CString m_strName;
  27. //}}AFX_DATA
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CDepartmentDlg)
  31. protected:
  32. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. protected:
  36. // Generated message map functions
  37. //{{AFX_MSG(CDepartmentDlg)
  38. afx_msg void OnButtonNew();
  39. afx_msg void OnButtonSave();
  40. afx_msg void OnButtonModify();
  41. afx_msg void OnButtonDelete();
  42. afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
  43. virtual BOOL OnInitDialog();
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. private:
  47. CDepartmentSet  m_recordset;
  48. public:
  49. void RefreshData();
  50. };
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  53. #endif // !defined(AFX_DEPARTMENTDLG1_H__1AD4274B_6463_449B_9149_4F9F14784BA3__INCLUDED_)