staffinfo.cpp
上传用户:xz12345
上传日期:2007-09-12
资源大小:7437k
文件大小:2k
- // staffinfo.cpp : implementation file
- //
- #include "stdafx.h"
- #include "工资.h"
- #include "staffinfo.h"
- #include "insertstaff.h"
- #include "deletestaff.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // staffinfo dialog
- staffinfo::staffinfo(CWnd* pParent /*=NULL*/)
- : CDialog(staffinfo::IDD, pParent)
- {
- //{{AFX_DATA_INIT(staffinfo)
- //}}AFX_DATA_INIT
- }
- void staffinfo::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(staffinfo)
- DDX_Control(pDX, IDC_ADODC1, m_adostaffinfo);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(staffinfo, CDialog)
- //{{AFX_MSG_MAP(staffinfo)
- ON_BN_CLICKED(IDC_xiugai, Onxiugai)
- ON_BN_CLICKED(IDC_shanchu, Onshanchu)
- ON_BN_CLICKED(IDC_zengjia, Onzengjia)
- ON_COMMAND(ID_MENUyuangongxinxi, OnMENUyuangongxinxi)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // staffinfo message handlers
- BEGIN_EVENTSINK_MAP(staffinfo, CDialog)
- //{{AFX_EVENTSINK_MAP(staffinfo)
- ON_EVENT(staffinfo, IDC_DATAGRID1, -600 /* Click */, OnClickDatagrid1, VTS_NONE)
- ON_EVENT(staffinfo, IDC_ADODC2_xianshistaffinfo, 200 /* WillMove */, OnWillMoveADODC2xianshistaffinfo, VTS_I4 VTS_PI4 VTS_DISPATCH)
- //}}AFX_EVENTSINK_MAP
- END_EVENTSINK_MAP()
- void staffinfo::OnClickDatagrid1()
- {
-
- // TODO: Add your control notification handler code here
-
- }
- void staffinfo::Onxiugai()
- {
-
- // TODO: Add your control notification handler code here
-
- }
- void staffinfo::Onshanchu()
- {
- deletestaff t1;
- t1.DoModal();// TODO: Add your control notification handler code here
- this->m_adostaffinfo.Refresh();
- }
- void staffinfo::Onzengjia()
- {
- insertstaff t1;
- t1.DoModal(); // TODO: Add your control notification handler code here
- this->m_adostaffinfo.Refresh();
-
-
- }
- void staffinfo::OnWillMoveADODC2xianshistaffinfo(long adReason, long FAR* adStatus, LPDISPATCH pRecordset)
- {
- // TODO: Add your control notification handler code here
-
- }
- void staffinfo::OnMENUyuangongxinxi()
- {
- // TODO: Add your command handler code here
-
- }