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

正文內(nèi)容

圖書管理系統(tǒng)mis的設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文(編輯修改稿)

2024-07-19 20:49 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 ose()。 ()。 return。 } //掛失,刪除該借閱證的記錄信息 m_psetDelete()。 m_psetClose()。 ()。 int iResult。 iResult=MessageBox(掛失成功,是否查閱,進(jìn)行確認(rèn),借閱證掛失,MB_YESNO|MB_ICONQUESTION)。 if(iResult==IDYES) { CCheckProofDlg m_dlg。 =m_strProofID。 ()。 } }為借閱證號(hào)為0006的學(xué)生掛失:點(diǎn)擊“是”,進(jìn)入查閱界面:void CAddUserDlg::OnOK() { // TODO: Add extra validation here // CDialog::OnOK()。 thisUpdateData(TRUE)。 if(()==0||()==0) { MessageBox(請(qǐng)正確填寫所需數(shù)據(jù),增加用戶)。 return。 } if(!()) { if(!(_T(Library))) { MessageBox(數(shù)據(jù)庫(kù)打開出錯(cuò)!,圖書信息!)。 OnOK()。 return 。 } } CString strSQL。 long num。 CUserSet *m_pset=new CUserSet(amp。m_database)。 (select * from Admin_Info)。 m_psetOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)。 num = m_psetGetRecordCount()。 m_psetAddNew()。 m_psetSetFieldNull(amp。(m_psetm_User_Name),FALSE)。 m_psetm_User_Name=m_strUser。 m_psetSetFieldNull(amp。(m_psetm_Password),FALSE)。 m_psetm_Password=m_strPassword。 m_psetSetFieldNull(amp。(m_psetm_WorkID),FALSE)。 m_psetm_WorkID=num+2。 m_psetUpdate()。 m_psetRequery()。 m_psetClose()。 ()。 MessageBox(添加帳號(hào)成功!,添加帳號(hào))。 }void CChangePasswordDlg::OnButtonOk() { // TODO: Add your control notification handler code here UpdateData()。 if(()) { MessageBox(請(qǐng)輸入用戶名!,登錄系統(tǒng),MB_OK|MB_ICONEXCLAMATION)。 ()。 UpdateData(FALSE)。 return。 } if(!()) { //連接數(shù)據(jù)源 if(!(_T(Library))) { MessageBox(連接數(shù)據(jù)庫(kù)失敗!,圖書管理系統(tǒng),MB_OK|MB_ICONINFORMATION)。 return。 } } if(m_strPassword_new1 != m_strPassword_new2) { MessageBox(兩次密碼不同!,確認(rèn)密碼,MB_OK|MB_ICONEXCLAMATION)。 ()。 ()。 ()。 ()。 UpdateData(FALSE)。 return。 } CLoginSet *m_pLogset=new CLoginSet(amp。m_database)。 //編寫SQL語(yǔ)句 CString strSQL。 (select * from Admin_Info where User_Name=39。%s39。 AND Password=39。%s39。,m_strUserName,m_strPassword_old)。 //編寫SQL語(yǔ)句結(jié)束 m_pLogsetOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)。 if(m_pLogsetGetRecordCount()==0) { MessageBox(登錄失敗!,圖書管理系統(tǒng),MB_OK|MB_ICONERROR)。 ()。 ()。 ()。 ()。 UpdateData(FALSE)。 } else { m_pLogsetEdit()。 m_pLogsetm_Password = m_strPassword_new2。 m_pLogsetUpdate()。 m_pLogsetRequery()。 MessageBox(修改成功!,修改密碼,MB_OK|MB_ICONEXCLAMATION)。 ()。 ()。 ()。 ()。 UpdateData(FALSE)。 ()。 return。 } } 借書/還書只列出了借書的函數(shù),還書函數(shù)OnButtonReturn() 與借書函數(shù)類似。void CBorrowDlg::OnButtonOk() { // TODO: Add your control notification handler code here UpdateData()。 if(m_strProofID==||m_strBookID==) { MessageBox(輸入的域不完整,請(qǐng)重新輸入!,借書管理,MB_ICONERROR)。 ()。 ()。 UpdateData(FALSE)。 return。 } if(!()) { if(!(_T(Library))) { MessageBox(Cannot access the database!,借書管理)。 return。 } } CString strSQL。 //判斷借書人是否有資格 (select * from Proof_Info where Proof_ID=39。%s39。, m_strProofID)。 CProofSet *m_pProof=new CProofSet(amp。m_database)。 m_pProofOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)。 if(m_pProofGetRecordCount()==0) { MessageBox(數(shù)據(jù)庫(kù)中沒有這個(gè)人的信息,借書/還書,MB_ICONINFORMATION)。 m_pProofClose()。 ()。 return。 } CDBVariant varValue。 m_pProofGetFieldValue(7,varValue)。 if(==5) { //如果不滿足條件 MessageBox(你不能借書超過(guò)5本!,借書/還書,MB_OK|MB_ICONINFORMATION)。 m_pProofClose()。 ()。 return。 } //滿足條件 //借書量加一 m_pProofEdit()。 m_pProofm_Now_Borrow_Amount++。 m_pProofUpdate()。 m_pProofRequery()。 m_pProofClose()。 //Book_Info表中,現(xiàn)存數(shù)量減一 (select * from Book_Info where Book_ID=39。%s39。,m_strBookID)。 CBookSet *m_pBook=new CBookSet(amp。m_database)。 m_pBookOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)。 if(m_pBookGetRecordCount()==0) { MessageBox(對(duì)不起,圖書館現(xiàn)在沒有這本書!,借書/還書,MB_ICONINFORMATION)。 m_pBookClose()。 ()。 return。 } m_pBookEdit()。 m_pBookm_Now_Amount。 m_pBookUpdate()。 m_pBookRequery()。 m_pBookClose()。 //將借書信息存入借書信息表中 (select * from Borrow_Info)。 CBorrowSet *m_pBorrow=new CBorrowSet(amp。m_database)。 m_pBorrowOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)。 if(m_pBorrowGetRecordCount()==0) { MessageBox(數(shù)據(jù)庫(kù)中沒有借書信息!,借書/還書,MB_OK|MB_ICONINFORMATION)。 } m_pBorrowAddNew()。 m_pBorrowSetFieldNull(amp。(m_pBorrowm_Proof_ID),FALSE)。 m_pBorrowm_Proof_ID=m_strProofID。 m_pBorrowSetFieldNull(amp。(m_pBorrowm_Book_ID),FALSE)。 m_pBorrowm_Book_ID=m_strBookID。 CTime curTime=CTime::GetCurrentTime()。 m_pBorrowSetFieldNull(amp。(m_pBorrowm_Borrow_Date),FALSE)。 m_pBorrowm_Borrow_Date=curTime。// m_pBorrowm_BorrowID=m_pBorrowGetRecordCount()。 m_pBorrowUpdate()。 m_pBorrowRequery()。 m_pBorrowClose()。 ()。 MessageBox(借書成功!,借書/還書,MB_OK|MB_ICONINFORMATION)。 RefreshData()。 }選擇學(xué)生登錄,選擇借書/還書登錄:為借閱證號(hào)為0001,圖書號(hào)為10001,的學(xué)生還書運(yùn)行如圖:void CBookLostDlg::OnButtonLost() { // TODO: Add your control notification handler code here UpdateData()。 if(()==0||()==0) { MessageBox(請(qǐng)正確填寫所需數(shù)據(jù),圖書掛失)。 return。 } if(!()) { if(!(_T(Library))) { MessageBox(Canot connect to the data source!,圖書掛失)。 return。 } } double m_dblPunish=。 CString strSQL。 CTime curTime,oriTime。 //察看借書(Borrow_Info表)信息,看是否超期 CBorrowSet *m_pBorrow=new CBorrowSet(amp。m_database)。 (select * from Borrow_Info where Proof_ID=39。%s39。 AND Book_ID=39。%s39。,m_strProofID,m_strBookID)。 m_pBorrowOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)。 if(m_pBorrowGetRecordCount()==0) { MessageBox(沒有關(guān)于這個(gè)人借這本書的信息!,圖書掛失)。 m_pBorrowClose()。 ()。 return。 } int m_yeardiff,m_monthdiff,m_daydiff,m_timediff。 oriTime=m_pBorrowm_Borrow_Date。 curTime=CTime::GetCurrentTime()。 m_yeardiff=()()。 m_monthdiff=()()。 m_daydiff=()()。 m_timediff=m_yeardiff*365+m_monthdiff*30+m_daydiff。 //超期,予以罰款 if(m_timediff=60) { //60天為超時(shí)限制時(shí)間, m_dblPunish=m_dblPunish+(m_timediff60)*。 } //無(wú)論是否超期,首先進(jìn)行還書操作,然后處以丟書罰款 //Borrow_Info刪除該條記錄 m_pBorrowDelete()
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1