singlestaffsalary.cpp
上传用户:xz12345
上传日期:2007-09-12
资源大小:7437k
文件大小:2k
- // singlestaffsalary.cpp : implementation file
- //
- #include "stdafx.h"
- #include "工资.h"
- #include "singlestaffsalary.h"
- #include "yuangong.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // singlestaffsalary dialog
- singlestaffsalary::singlestaffsalary(CWnd* pParent /*=NULL*/)
- : CDialog(singlestaffsalary::IDD, pParent)
- {
- //{{AFX_DATA_INIT(singlestaffsalary)
- m_id = 0;
- //}}AFX_DATA_INIT
- }
- void singlestaffsalary::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(singlestaffsalary)
- DDX_Text(pDX, IDC_EDIT1, m_id);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(singlestaffsalary, CDialog)
- //{{AFX_MSG_MAP(singlestaffsalary)
- ON_BN_CLICKED(IDC_ok, Onok)
- ON_BN_CLICKED(IDC_cancel, Oncancel)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // singlestaffsalary message handlers
- void singlestaffsalary::Onok()
- { /* int a1,a2,a3,a4;
- int salary;
- UpdateData(TRUE);
- yuangong ling;
- ling.cempid=m_id;
- if(ling.cempid==0)
- MessageBox("Please input the right ID");
- else
- { a1=ling.getbase();
- CString tmp;
- tmp.Format("%d",a1);
- MessageBox("the base salary is "+tmp);
- }
- a2=ling.getbumenjintie(ling.cempid);
- a3=ling.jiabanjintie(ling.cempid);
- a4=ling.koukuan(ling.cempid);
- salary=a1+a2+a3-a4;
- CString tmp;
- tmp.Format("%d",a1);
- MessageBox("the base salary is "+tmp);
-
- tmp.Format("%d",a2);
- MessageBox("the bumenjintie is "+tmp);
-
- tmp.Format("%d",a3);
- MessageBox("the jiabanjintie is "+tmp);
-
- tmp.Format("%d",a4);
- MessageBox("the koukan is "+tmp);
- // TODO: Add your control notification handler code here
- CDialog::OnOK();
- */
- }
- void singlestaffsalary::Oncancel()
- {
-
- // TODO: Add your control notification handler code here
-
- }