department.cpp
上传用户:xz12345
上传日期:2007-09-12
资源大小:7437k
文件大小:2k
- // department.cpp : implementation file
- //
- #include "stdafx.h"
- #include "工资.h"
- #include "department.h"
- #include "insertbumen.h"
- #include "deletebumen.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // department dialog
- department::department(CWnd* pParent /*=NULL*/)
- : CDialog(department::IDD, pParent)
- {
- //{{AFX_DATA_INIT(department)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void department::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(department)
- DDX_Control(pDX, IDC_ADODC2_department, m_adodepartment);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(department, CDialog)
- //{{AFX_MSG_MAP(department)
- ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
- ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
- ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // department message handlers
- void department::OnButton1()
- {
- insertbumen t1;
- t1.DoModal();// TODO: Add your control notification handler code here
- this->m_adodepartment.Refresh();
- }
- void department::OnButton2()
- {
- deletebumen t1;
- t1.DoModal();
- this->m_adodepartment.Refresh();// TODO: Add your control notification handler code here
-
- }
- void department::OnButton3()
- {
- // TODO: Add your control notification handler code here
-
- }