department.cpp
上传用户:xz12345
上传日期:2007-09-12
资源大小:7437k
文件大小:2k
源码类别:

数据库编程

开发平台:

Visual C++

  1. // department.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "工资.h"
  5. #include "department.h"
  6. #include "insertbumen.h"
  7. #include "deletebumen.h"
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13. /////////////////////////////////////////////////////////////////////////////
  14. // department dialog
  15. department::department(CWnd* pParent /*=NULL*/)
  16. : CDialog(department::IDD, pParent)
  17. {
  18. //{{AFX_DATA_INIT(department)
  19. // NOTE: the ClassWizard will add member initialization here
  20. //}}AFX_DATA_INIT
  21. }
  22. void department::DoDataExchange(CDataExchange* pDX)
  23. {
  24. CDialog::DoDataExchange(pDX);
  25. //{{AFX_DATA_MAP(department)
  26. DDX_Control(pDX, IDC_ADODC2_department, m_adodepartment);
  27. //}}AFX_DATA_MAP
  28. }
  29. BEGIN_MESSAGE_MAP(department, CDialog)
  30. //{{AFX_MSG_MAP(department)
  31. ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
  32. ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
  33. ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // department message handlers
  38. void department::OnButton1() 
  39. {
  40. insertbumen  t1;
  41. t1.DoModal();// TODO: Add your control notification handler code here
  42. this->m_adodepartment.Refresh();
  43. }
  44. void department::OnButton2() 
  45. {
  46. deletebumen t1;
  47. t1.DoModal();
  48. this->m_adodepartment.Refresh();// TODO: Add your control notification handler code here
  49. }
  50. void department::OnButton3() 
  51. {
  52. // TODO: Add your control notification handler code here
  53. }