freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)庫(kù)原理及應(yīng)用(編輯修改稿)

2024-07-22 07:18 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 sql1。//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx//(update 基本工資表 set 基本工資=%d,加班費(fèi)=0,獎(jiǎng)金=0,遲到次數(shù)=0,稅金=%d,應(yīng)得工資=0 where 員工號(hào)=39。%s39。,basicWage,sj,id)。 try { pDbOpen(pubSQL)。 pDbExecuteSQL(insql1)。 AfxMessageBox(已結(jié)算!)。(index,2,wageS)。 (index,3,0)。 (index,4,0)。 (index,5,0)。 (index,6,wageJ)。(index,7,0)。 pDbClose()。 } catch (CDBException *pEx) { pDbClose()。 pExReportError()。 } pDbClose()。}void CStaffSystermView::OnClearwage() { // TODO: Add your mand handler code here if(m_tableNum!=2) { AfxMessageBox(請(qǐng)先進(jìn)入基本工資表!)。 return。 } int index=0。 int num=()。 for(int i=0。inum。i++) {//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx// CString strsql=select * from 基本工資表。 CString id,name,wageS,wageJ。 int basicWage。 id=(index,0)。 name=(index,1)。 basicWage=getZCwage(id)。 int sj=basicWage/100。 (%d,basicWage)。 (%d,sj)。 CString insql1。//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx// (update 基本工資表 set 基本工資=%d,加班費(fèi)=0,獎(jiǎng)金=0,遲到次數(shù)=0,稅金=%d,應(yīng)得工資=0 where 員工號(hào)=39。%s39。,basicWage,sj,id)。 try { pDbOpen(pubSQL)。 pDbExecuteSQL(insql1)。 (index,2,wageS)。 (index,3,0)。 (index,4,0)。 (index,5,0)。 (index,6,wageJ)。 (index,7,0)。 pDbClose()。 } catch (CDBException *pEx) { pDbClose()。 pExReportError()。 } pDbClose()。 index++。 } AfxMessageBox(已結(jié)算!)。}int CStaffSystermView::getZCwage(CString id){ int wage。 CString zc。 CString strsql,strsql1。//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx// (select 職稱 from 員工基本信息表 where 員工號(hào)=39。%s39。,id)。 try { pDbOpen(pubSQL)。 CRecordset rs(pDb)。 (CRecordset::forwardOnly,strsql)。 short n=()。 while (!()) { for (short i=0。in。i++) { (職稱,zc)。 } ()。 } ()。//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx// (select 工資 from 職稱工資表 where 職稱=39。%s39。,zc)。 CDBVariant t。 (CRecordset::forwardOnly,strsql1)。 n=()。 while (!()) { for (short i=0。in。i++) { (工資,t)。 } ()。 } wage=。 ()。 pDbClose()。 } catch (CDBException *pEx) { pDbClose()。 pExReportError()。 } return wage。}void CStaffSystermView::OnOvertimewage() { // TODO: Add your mand handler code here if(m_tableNum!=2) { AfxMessageBox(請(qǐng)先進(jìn)入基本工資表!)。 return。 } int index=()。 if(index0) { AfxMessageBox(請(qǐng)選擇一條記錄!)。 pDbClose()。 return。 } (amp。m_DataArea)。 ()。}void CStaffSystermView::OnRclickList1(NMHDR* pNMHDR, LRESULT* pResult) { // TODO: Add your control notification handler code here if(m_tableNum==1) { LPPOINT lpoint=new tagPOINT。 ::GetCursorPos(lpoint)。//得到鼠標(biāo)位置 CMenu menu。 ()。//聲明一個(gè)彈出式菜單 //增加菜單項(xiàng)“關(guān)閉”,點(diǎn)擊則發(fā)送消息WM_DESTROY給主窗口,將程序結(jié)束。 (MF_STRING,WM_INSERT,添加員工)。 (MF_STRING,WM_DELETE,刪除員工)。 //確定彈出式菜單的位置 (TPM_LEFTALIGN,lpointx,lpointy,this)。 //資源回收 HMENU hmenu=()。 ()。 delete lpoint。 } else if (m_tableNum==2) { LPPOINT lpoint=new tagPOINT。 ::GetCursorPos(lpoint)。//得到鼠標(biāo)位置 CMenu menu。 ()。//聲明一個(gè)彈出式菜單 //增加菜單項(xiàng)“關(guān)閉”,點(diǎn)擊則發(fā)送消息WM_DESTROY給主窗口,將程序結(jié)束。 (MF_STRING,WM_ADDOVERTIME,增加加班費(fèi))。 (MF_STRING,WM_ADDPRIZE,增加獎(jiǎng)金)。 (MF_STRING,WM_CANCELPRIZE,取消本月獎(jiǎng)金)。 (MF_STRING,WM_ADDLATE,遲到次數(shù)+1)。 (MF_STRING,WM_WAGETOTAL,工資計(jì)算與統(tǒng)計(jì))。(MF_STRING,WM_CLEARPWAGE,個(gè)人工資結(jié)算)。(MF_STRING,WM_CLEARWAGE,結(jié)算所有員工工資)。 //確定彈出式菜單的位置 (TPM_LEFTALIGN,lpointx,lpointy,this)。 //資源回收 HMENU hmenu=()。 ()。 delete lpoint。 } *pResult = 0。}void CStaffSystermView::OnButton32791() { // TODO: Add your mand handler code here switch (m_tableNum) { case 1: deletdTable(員工基本信息表)。break。 case 2: deletdTable(基本工資表)。break。 case 3: deletdTable(職稱工資表)。break。 }}void CStaffSystermView::OnButton32792() { // TODO: Add your mand handler code here if(m_tableNum!=1amp。amp。m_tableNum!=3) { AfxMessageBox(請(qǐng)先選擇插入表)。 return。 } else if(m_tableNum==2) { AfxMessageBox(工資表無法單獨(dú)添加!)。 return。 } if (m_tableNum==1) { OnAddstaff()。 } else { OnAddzc()。 }}void CStaffSystermView::OnButton32794() { // TODO: Add your mand handler code here OnPrize()。}void CStaffSystermView::OnButton32795() { // TODO: Add your mand handler code here OnLateadd()。}void CStaffSystermView::OnButton32796() { // TODO: Add your mand handler code here OnOvertimewage()。}void CStaffSystermView::OnButton32797() { // TODO: Add your mand handler code here OnClearswage()。}void CStaffSystermView::OnButton32798() { // TODO: Add your mand handler code here OnTotal()。 }void CStaffSystermView::OnBtnFind() { // TODO: Add your control notification handler code here CString findstr,findbasic。 GetDlgItemText(IDC_EDIT_FINDSTR,findstr)。 GetDlgItemText(IDC_COMBO_FIND,findbasic)。 pDbOpen(NULL,FALSE,FALSE,ODBC。DSN=pubSQL。UID=sql。PWD=,FALSE)。 CString strsql。 CString table。 if(m_tableNum==1) table=員工基本信息表。 else if(m_tableNum==2) table=基本工資表。 (select * from %s where %s=39。%s39。,table,findbasic,findstr)。 //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx//=pDb。 (CRecordset::forwardOnly,strsql)。 try { int index=0。 CString s[10]。 CString t。 short n=()。 if(()) {AfxMessageBox(無記錄!)。return。} else ()。 while (!()) { t=。 for (short i=0。in。i++) { (i,s[i])。 s[i].TrimRight( )。 t+=s[i]。 } ////////////////////////////////////// if(m_tableNum==1) { int nRow=(index, s[0])。 //插入行 (index,1,s[1])。 //設(shè)置數(shù)據(jù) (index,2,s[2])。 //設(shè)置數(shù)據(jù) (index,3,s[3])。 //設(shè)置數(shù)據(jù) (index,4,s[4])。 //設(shè)置數(shù)據(jù) (index,5,s[5])。 //設(shè)置數(shù)據(jù) (index,6,s[6])。 //設(shè)置數(shù)據(jù) (index,7,s[7])。 //設(shè)置數(shù)據(jù) } else if(m_tableNum==2) { int nRow=(index, s[0])。 //插入行 (index,1,s[1])。 //設(shè)置數(shù)據(jù) (index,2,s[2])。 //設(shè)置數(shù)據(jù) (index,3,s[3])。 //設(shè)置數(shù)據(jù) (index,4,s[4])。 //設(shè)置數(shù)據(jù) (index,5,s[5])。 //設(shè)置數(shù)據(jù) (index,6,s[6])。 //設(shè)置數(shù)據(jù) (index,7,s[7])。 //設(shè)置數(shù)據(jù) } index++。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1