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

正文內(nèi)容

數(shù)據(jù)庫原理及應(yīng)用-閱讀頁

2025-07-10 07:18本頁面
  

【正文】 )。 clearColumn()。 pDbOpen(NULL,FALSE,FALSE,ODBC。UID=sql。//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx// CString strsql=select * from 職稱工資表。 (CRecordset::forwardOnly,strsql)。 CString s[10]。 while (!()) { for (short i=0。i++) { (i,s[i])。 }//////////////////////////////////////// int nRow=(index, s[0])。 //設(shè)置數(shù)據(jù) index++。 } ()。 } catch (CDBException *pEx) { pDbClose()。 pExReportError()。}///////////////////////////////////////////// 功能: 刪除表名為tablename的表,如果是員工表則關(guān)聯(lián)工資表///////////////////////////////////////////bool CStaffSystermView::deletdTable(CString tablename){int index=()。 pDbClose()。 } if(IDNO==(AfxMessageBox(是否刪除!,MB_YESNO))) return false。 id=(index,0)。DSN=pubSQL。PWD=,FALSE)。 (delete from %s where %s=39。,tablename,firstColum,id)。%s39。 pDbExecuteSQL(strsql1)。 } } else if(m_tableNum==2) { if(IDYES==(AfxMessageBox(將同時刪除其\員工信息\,MB_YESNO))) { (delete from %s where %s=39。,員工基本信息表,firstColum,id)。 pDbExecuteSQL(strsql)。 } pDbClose()。 } catch (CDBException *pEx) { pExReportError()。 (index)。}void CStaffSystermView::OnSavedatabase() { // TODO: Add your mand handler code here CString insql1。 CString name=工資管理系統(tǒng)。//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx// (execute pr_backup_db 39。, 39。 ,39。,fl,name,Fname)。 pDbExecuteSQL(insql1)。 AfxMessageBox(備份成功!)。 } catch (CDBException *pEx) { pDbClose()。 }}void CStaffSystermView::OnRestore() { // TODO: Add your mand handler code here CString insql1。 CString name=工資管理系統(tǒng)_備份。 (execute pr_restore_db 39。,39。 ,39。,fl,name,Fname)。 pDbExecuteSQL(insql1)。 AfxMessageBox(還原成功!)。 pExReportError()。endifCPrize::CPrize(CWnd* pParent) : CDialog(CPrize::IDD, pParent){ pDb=new CDatabase()。}BEGIN_MESSAGE_MAP(CPrize, CDialog) //{{AFX_MSG_MAP(CPrize) ON_BN_CLICKED(IDC_BTN_OK, OnBtnOk) ON_BN_CLICKED(IDC_BTN_CNACLE, OnBtnCnacle) //}}AFX_MSG_MAPEND_MESSAGE_MAP()// CPrize message handlers/////////////////////////////////////////void CPrize::OnBtnOk() { // TODO: Add your control notification handler code here pDbOpen(NULL,FALSE,FALSE,ODBC。UID=sql。 CString id。 char m[10]。 id=m_DataAreaGetItemText(index,0)。 int lateN=atoi(m)。 int addN=atoi(m)。 (%d,lateN)。 (update 基本工資表 set 獎金=%d where 員工號=39。,lateN,id)。 pDbClose()。 m_DataAreaSetItemText(index,4,klate)。 } pDbClose()。}void CPrize::OnBtnCnacle() { // TODO: Add your control notification handler code here CPrize::OnCancel()。}BOOL CPrize::OnInitDialog() { CDialog::OnInitDialog()。 SetDefID(IDC_BTN_OK)。 }void CPrize::initial(){ int index=m_DataAreaGetSelectionMark()。 SetDlgItemText(IDC_EDIT_NAME,m_DataAreaGetItemText(index,1))。}(3)添加數(shù)據(jù)// include include include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。 //{{AFX_DATA_MAP(CAddStaff) DDX_Control(pDX, IDC_EDIT_SEX, m_sexCon)。 //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CAddStaff, CDialog) //{{AFX_MSG_MAP(CAddStaff) ON_BN_CLICKED(IDC_BTN_SAVE, OnBtnSave) ON_BN_CLICKED(IDC_BTN_CANCLE, OnBtnCancle) ON_BN_CLICKED(IDC_BUTTON2, OnButton2) //}}AFX_MSG_MAPEND_MESSAGE_MAP()// CAddStaff message handlersvoid CAddStaff::OnBtnSave() { // TODO: Add your control notification handler code here CDatabase *pDb=new CDatabase。 CString id,name,zc,sex,age,idcard,tel,bankid。 GetDlgItemText(IDC_EDIT_ID,id)。 GetDlgItemText(IDC_COMBO_ZC,zc)。 GetDlgItemText(IDC_EDIT_AGE,age)。 GetDlgItemText(IDC_EDIT_TEL,tel)。 if(id==) { AfxMessageBox(員工號不能為空!)。 } if(name==) { AfxMessageBox(員工姓名不能為空!)。 } if(zc==) { AfxMessageBox(職稱不能為空!)。 } if(age==) { AfxMessageBox(年齡不能為空!)。 } if(idcard==) { AfxMessageBox(身份證號不能為空!)。 } if(tel==) { AfxMessageBox(聯(lián)系方式不能為空!)。 } if(bankid==) { AfxMessageBox(銀行卡號不能為空!)。 } CString insql1。%s39。%s39。%s39。%s39。%s39。%s39。%s39。%s39。 try { pDbOpen(pubSQL)。 pDbClose()。 int index=m_DataAreaGetItemCount()。 //插入行 m_DataAreaSetItemText(index,1,name)。 //設(shè)置數(shù)據(jù) m_DataAreaSetItemText(index,3,sex)。 //設(shè)置數(shù)據(jù) m_DataAreaSetItemText(index,5,idcard)。 //設(shè)置數(shù)據(jù)m_DataAreaSetItemText(index,7,bankid)。 pDbClose()。 } catch (CDBException *pEx) { pDbClose()。 }}void CAddStaff::OnBtnCancle() { // TODO: Add your control notification handler code here CAddStaff::OnCancel()。}/////////////////////////////////////////bool CAddStaff::addStaffWage(){ CDatabase *pDb=new CDatabase。 CString id,name,zc。 GetDlgItemText(IDC_EDIT_NAME,name)。 int basicWage=getWage(zc)。 CString insql1。%s39。%s39。 try { pDbOpen(pubSQL)。 pDbClose()。 pExReportError()。}/////////////////////////////////////int CAddStaff::getWage(CString zc){ int wage。 CString strsql。%s39。 try { CDBVariant t。 CRecordset rs(pDb)。 short n=()。in。 } ()。 ()。 } catch (CDBException *pEx) { pDbClose()。 } return wage。 pDbOpen(NULL,FALSE,FALSE,ODBC。UID=sql。 CString strsql=select 職稱 from 職稱工資表。 (CRecordset::forwardOnly,strsql)。 CString s[10]。 short n=()。 for (short i=0。i++) { (i,s[i])。 t+=s[i]。 ()。 pDbClose()。 pExReportError()。 // TODO: Add extra initialization here initial()。 (女)。 SetDefID(IDC_BTN_OK)。 }void CAddStaff::OnButton2() {}(4)修改職稱// include include include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。 //{{AFX_DATA_MAP(CUpdateZC) DDX_Control(pDX, IDC_COMBO_ZC, m_boZC)。 pDbOpen(NULL,FALSE,FALSE,ODBC。UID=sql。 CString name,oldname。 GetDlgItemText(IDC_COMBO_ZC,oldname)。 GetDlgItemText(IDC_EDIT_MONEY,m,10)。 CString strsq
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1