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

正文內(nèi)容

圖書(shū)銷(xiāo)售管理系統(tǒng)的設(shè)計(jì)和實(shí)現(xiàn)(編輯修改稿)

2025-05-04 23:05 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 urrentTime()。 CString time = 。 CString year。 CString month。 CString day。 (%d,())。 (%d,())。 if(() 9) month = 0 + month。 (%d,())。 if(() 9) day = 0 + day。 time = year + month + day。 CBookSet m_BookSet。 CTempSaleSet m_TempSaleSet。 int TempNumber。 try{ (bookno = 39。%s39。,m_strBookNo)。 (CRecordset::snapshot, NULL, CRecordset::none)。 if(!()){ TempNumber = atoi(m_strNumber)。 if(TempNumber 0){ AfxMessageBox(庫(kù)存不足,請(qǐng)重新輸入銷(xiāo)售圖書(shū)數(shù)量)。 return 。 } ()。 = TempNumber。 ()。 ()。 Close()。 // 添加銷(xiāo)售的圖書(shū)到臨時(shí)銷(xiāo)售表 ()。 ()。 = m_strAuthor。 = m_strPublisher。 = m_strBookName。 = m_strBookNo。 = atoi(m_strNumber)。 = atoi(m_strDisCount)。 = atof(m_strFianalPrice)。 = atof(m_strPrice)。 = atol(time)。 ()。 ()。 Close()。 // 顯示在銷(xiāo)售列表中 ()。 ()。 int pos = ()。 CString TempNumber。 CString TempPrice。 CString TempDiscount。 CString TempSum。 (%d,)。 (%.2f,)。 (%d,)。 (%.2f,)。 (pos, )。 (pos,1,TempNumber)。 (pos,2,TempPrice)。 (pos,3,TempDiscount)。 (pos,4,TempSum)。 ()。 ResetMembers()。 } } catch(CDBException *e){ eReportError()。 return。 }}// 結(jié)賬void CBookSaleDialog::OnButtonBill() { UpdateData()。 if(m_strBookNo != ) OnButtonNext()。 float m_Sum = 0。 CTempSaleSet m_TempSaleSet。 CBookSaleSet m_BookSaleSet。 try{ ()。 ()。 ()。 while(! ()){ //算出總銷(xiāo)售額 m_Sum = m_Sum + 。 // 添加進(jìn)銷(xiāo)售列表中 ()。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 ()。 // ()。 ()。 } ()。 Close()。 ()。 Close()。 } catch(CDBException *e){ eReportError()。 return。 } (%.2f,m_Sum)。 UpdateData(FALSE)。}(3) 撤銷(xiāo)功能。流程:點(diǎn)擊銷(xiāo)售列表,點(diǎn)擊撤銷(xiāo)按鈕即可完成。void CBookSaleDialog::OnButtonCancel() { int i = ()。 CString BookName = (i, 0)。 int TempNumber = 0。 if(i 0){ AfxMessageBox(請(qǐng)選取要?jiǎng)h除的銷(xiāo)售記錄!)。 return 。 } // 從臨時(shí)表中刪除該銷(xiāo)售記錄 CTempSaleSet m_TempSaleSet。 (bookname = 39。%s39。,BookName)。 (CRecordset::snapshot, NULL , CRecordset::none)。 if(!()){ TempNumber = 。 ()。 } ()。 Close()。 // 恢復(fù)圖書(shū)原先數(shù)量 CBookSet m_BookSet。 (bookname = 39。%s39。, BookName)。 (CRecordset::snapshot, NULL, CRecordset::none)。 if(!()){ ()。 = + TempNumber。 ()。 } ()。 Close()。 ListSale()。}實(shí)現(xiàn)效果圖如下:圖3圖書(shū)銷(xiāo)售模塊實(shí)現(xiàn)模塊輸入:圖書(shū)編號(hào)和圖書(shū)數(shù)量(1) 圖書(shū)入庫(kù)對(duì)話框啟動(dòng)。(2) 等待用戶輸入圖書(shū)的編號(hào)和數(shù)量,可以在此輸入圖書(shū)詳細(xì)信息,但不是必需的。(3) 將圖書(shū)添加到圖書(shū)信息表中輸出:更新圖書(shū)信息表(1) 新書(shū)錄入。處理過(guò)程:判斷用戶是否全部輸入必填的圖書(shū)信息,然后根據(jù)用戶輸入的圖書(shū)編號(hào)查詢圖書(shū)信息表是否有重復(fù)編號(hào),是則在原有圖書(shū)信息基礎(chǔ)上增加圖書(shū)的數(shù)量;否則添加新的圖書(shū)記錄在圖書(shū)信息表中。void CBookInputDialog::OnButtonSaveAndGoon() { UpdateData(TRUE)。 CTime t。 t = CTime::GetCurrentTime()。 CString time = 。 CString year。 CString month。 CString day。 (%d,())。 (%d,())。 (%d,())。 time = year + + month + + day。 if(m_strBookNo == ){ MessageBox(請(qǐng)輸入圖書(shū)編號(hào))。 return 。 } if(m_strNumber == ){ MessageBox(請(qǐng)輸入圖書(shū)數(shù)量)。 return。 } CBookSet m_BookSet。 try{ if(()){ ()。 Close()。 } (bookno = 39。%s39。,m_strBookNo)。 (CRecordset::snapshot, NULL, CRecordset::none)。// 如果庫(kù)中無(wú)此書(shū),則增加 if(()){ ()。 = m_strBookNo。 = atoi(m_strNumber)。 = m_strBookName。 = m_strBookBn。 = m_strBookType。 = m_strPublisher。 = m_strAuthor。 = atof(m_strPrice)。 = time。 } else{ ()。 = + atoi(m_strNumber)。 = time。} ()。 ()。 Close()。} catch(CDBException *e){ eReportError()。} OnButtonAdd()。 }實(shí)現(xiàn)效果圖如下:圖4新書(shū)錄入實(shí)現(xiàn)圖當(dāng)部門(mén)庫(kù)存中某種書(shū)目的實(shí)存和賬存不不符時(shí)對(duì)其進(jìn)行調(diào)整,同時(shí)將調(diào)整結(jié)果(賬實(shí)存的差異數(shù))記入損益賬,調(diào)整庫(kù)存(損減少,益增加)輸入:圖書(shū)編號(hào)(1) 圖書(shū)信息設(shè)置對(duì)話框啟動(dòng)。(2) 根據(jù)書(shū)號(hào)搜索對(duì)應(yīng)的圖書(shū),并顯示其已填信息。(3) 用戶修改或新添圖書(shū)信息后。圖書(shū)信息更新到圖書(shū)信息表中。(4) 根據(jù)用戶選擇刪除某一圖書(shū)信息記錄。輸出:更新圖書(shū)信息數(shù)據(jù)庫(kù)。圖書(shū)信息損益處理// 圖書(shū)的添加或修改void CBookinfoSetingDialog::OnOK() { UpdateData()。 if(m_strBookNo == ){ MessageBox(圖書(shū)編號(hào)不能為空!)。 return。 } if((m_strBookBn == ) || (m_strBookName ==) || (m_strBookType == ) || (m_strNumber == ) || (m_strPrice == ) || (m_strPublisher == ) || (m_strAuthor == )){ MessageBox(圖書(shū)詳細(xì)信息中不能有一項(xiàng)為空!)。 return。 } CBookSet m_BookSet。 (bookno = 39。%s39。,m_strBookNo)。 (CRecordset::snapshot, NULL, CRecordset::none)。 if(()){ ()。 MessageBox(該圖書(shū)不存在,請(qǐng)重新輸入圖書(shū)編號(hào)!)。 } else{ ()。 = atoi(m_strNumber)。 = m_strBookName。 = m_strBookBn。 = m_strBookType。 = m_strPublisher。 = m_strAuthor。 = atof(m_strPrice)。 ()。 ()。 Close()。 MessageBox(保存成功!)。 } ResetMembers()。} 圖書(shū)的刪
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1