Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
singlestaffsalary.cpp
Package: salarysystem.rar [view]
Upload User: xz12345
Upload Date: 2007-09-12
Package Size: 7437k
Code Size: 2k
Category:
ADO-ODBC
Development Platform:
Visual C++
- // 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
- }