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

正文內(nèi)容

圖書借閱管理系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文-在線瀏覽

2024-08-03 06:36本頁(yè)面
  

【正文】 .\SQLEXPRESS。Integrated Security=True。}第3章 主要功能模塊具體實(shí)現(xiàn)管理員主要包括以下功能模塊:l : 管理員登錄后的第一個(gè)頁(yè)面,起過渡作用。l 還書處理 :根據(jù)用戶編號(hào)進(jìn)行查詢,進(jìn)行還書。l 添加圖書 :添加圖書庫(kù)里不存在的圖書,如已存在,可根據(jù)需要進(jìn)行修改圖書信息。l 用戶管理 :分權(quán)限查詢用戶并顯示,按需要跳轉(zhuǎn)到其他更改頁(yè)面。l 普通類型 :對(duì)普通用戶進(jìn)行添加、刪除、修改操作。l : 將每天對(duì)圖書有關(guān)操作記錄下來,方便管理?,F(xiàn)在還沒有登錄,系統(tǒng)提示輸入用戶名和密碼進(jìn)行登錄。只有輸入正確的用戶名和密碼的訪問者才能進(jìn)入本系統(tǒng)。其實(shí)現(xiàn)過程ASP代碼如下:if (() == Session[yan].ToString()) {if (sf == 管理員) {if ((num, pwd)) { Session[id] = ()。 }else { (scriptalert(39。)。39。 }}if (sf == 普通用戶) {if ((num, pwd)) { Session[id] = ()。 }else { (scriptalert(39。)。39。 }}}else{ (scriptalert(39。)。39。}正確填寫的用戶名和密碼,系統(tǒng)將對(duì)數(shù)據(jù)庫(kù)表tb_admin表進(jìn)行檢索,若檢索到與數(shù)據(jù)庫(kù)表中保存的某一記錄相同,則進(jìn)入系統(tǒng)主頁(yè)()。單擊“借書處理”,顯示該系統(tǒng)中的所有圖書資料,并可通過編輯菜單進(jìn)行操作。//當(dāng)前的行數(shù)string bookcode = [1].()。string autor = [3].()。DateTime nowtime = ()。if (()) { (scriptalert(39。)。39。 } ()??捎昧坎蛔?,請(qǐng)與管理員聯(lián)系!39。location=39。/script)。//向tb_outbook表插入借書信息string s3 = insert into tb_outbook (id,usename,bookcode,bookname,autor,pubname,outtime,backtime,iskeepout,outmoney,outtimes) values (39。,39。,39。,39。,39。,39。,39。,39。,39。,0,39。)。 ()。//更新圖書信息表的可用量string s4 = update tb_bookinfo set usenunber=39。 where bookcode=39。SqlCommand cmd4 = newSqlCommand(s4, conn)。string s5 = update tb_reader set borrownum=borrownum+1 where id=39。//更新表中的借書數(shù)目SqlCommand cmd5 = newSqlCommand(s5, conn)。 (scriptalert(39。)。39。 }else{ (scriptalert(39。)。39。 } } 還書處理通過輸入用戶編號(hào)對(duì)用戶的借書情況進(jìn)行查詢,并根據(jù)需要?dú)w還某些圖書,:圖 還書界面當(dāng)書本超期時(shí),還書則不能成功,這些會(huì)彈出提示信息,: 提示信息超期部分代碼:if (([8].()) ) {TimeSpan num = (([8].()))。double outm = 0。 i = ts。 }string outmone = (())。 + true + 39。 + outmone + 39。 + bookcode + 39。 ()。 i = ts。 }string outmone = (())。 + true + 39。 + outmone + 39。 + bookcode + 39。 ()。圖書已超期,不能還書,請(qǐng)聯(lián)系管理員進(jìn)行超期處理!39。location=39。/script)。+id+39。+bookcode+39。 ()。 + id + 39。 ()。 + bookcode + 39。 ()。歸還圖書成功!39。location=39。/script)。 查詢圖書管理員可從圖書編號(hào)、圖書名稱、作者、出版社中任一個(gè)條件出發(fā)對(duì)圖書進(jìn)行查詢,并把查詢結(jié)果顯示出來。SqlConnection conn = ()。//查詢語(yǔ)句string str1 = select bookcode as 圖書編碼,bookname as 圖書名稱,autor as 作者,pubname as 出版社,price as 價(jià)格,keep as 庫(kù)存量,usenunber as 可用量,usedate as 可借天數(shù),pubdate as 出版日期 from tb_bookinfo where。string t = ()。+t+39。請(qǐng)輸入查詢條件!39。location=39。/script)。SqlDataAdapter ads = newSqlDataAdapter(str, conn)。 (ds)。//綁定數(shù)據(jù) ()。} 添加圖書根據(jù)圖書的需要,添加圖書信息到數(shù)據(jù)庫(kù)中。 提示信息 提示信息可以對(duì)圖書的可用量及其他信息進(jìn)行修改、并保存到數(shù)據(jù)庫(kù),“重置”按鈕則將所有文本框清零。圖書編號(hào)不能為空,請(qǐng)重新輸入!39。location=39。/script)。SqlCommand c = newSqlCommand(s, conn)。while (()) {if (a1 == re[bookcode].ToString()) { Session[bookcode] = ()。已存在所添加圖書,如需修改該書信息,請(qǐng)通過“修改”按鈕進(jìn)行!39。/script)。if (a1 != Session[bookcode].ToString()) {string str = insert into tb_bookinfo (bookcode,bookname,autor,pubname,price,keep,usenunber,usedate,pubdate ) values (39。,39。,39。,39。,39。,39。,39。,39。,39。)。 ()。添加圖書成功!39。location=39。/script)。 = false。 + a1 + 39。SqlDataReader red = ()。 = red[bookcode].ToString()。 = red[autor].ToString()。 = red[price].ToString()。 = red[usenunber].ToString()。 = red[pubdate].ToString()。}}修改按鈕部分代碼:if (bookcode == ) { (scriptalert(39。)。39。 }else {string bookname = ()。string pubname = ()。string keep = ()。string usedate = ()。string str2 = update tb_bookinfo set bookname=39。, autor=39。,pubname=39。,price=39。,keep=39。,usenunber=39。,usedate=39。,pubdate=39。 where bookcode=39。SqlCommand c2 = newSqlCommand(str2, conn)。 (scriptalert(39。)。39。 ()。//當(dāng)前的行數(shù)string bookcode = [1].()。 ()。+bookcode+39。 ()。刪除圖書成功!39。location=39。/script)。請(qǐng)選擇用戶類型!39。location=39。/script)。string str = str1。DataSet ds = newDataSet()。 = ds。 }if (t1 == 管理員) { str1 = select id as 管理員編號(hào),name as 姓名,pwd as 密碼 from tb_admin。SqlDataAdapter ads = newSqlDataAdapter(str, conn)。 (ds)。 ()。//當(dāng)前的行數(shù)string id = [1].()。+id+39。 ()。刪除用戶成功!39。location=39。/script)。//當(dāng)前的行數(shù)string id = [1].()。 + id + 39。 (scriptalert(39。)。39。 ()。圖 提示信息添加按鈕部分代碼:string str3 = insert into tb_reader (id,name,sex,pwd,borrownum,maxborrow,xi,zhangye,nianji) values (39。,39。,39。,39。,39。,39。,39。,39。,39。)。 ()。添加用戶成功!39。location=39。/script)。 + name + 39。 + sex + 39。 + pwd + 39。 + xi + 39。 + zhangye + 39。 + id + 39。SqlDataAdapter adp = newSqlDataAdapter(cmd)。 (ds)。用戶信息修改成功!39。location=39。/script)。string st = update tb_reader set pwd=39。 where id=39。SqlCommand = newSqlCommand(st, conn)。 = Session[rcpwd].ToString()。 (scriptalert(39。)。 管理類型主要是針對(duì)管理員進(jìn)行相關(guān)操作,包括添加、修改,如不知道該用戶信息,可單擊上面的“查詢”鏈接進(jìn)行查詢,當(dāng)沒有輸入用戶編號(hào)就進(jìn)行添加時(shí),當(dāng)添加成功時(shí)。 }else { pwd = Session[acpwd].ToString()。 + id + 39。 + name + 39。 + pwd + 39。 ()。管理員修改成功!39。location=39。/script)。:圖 超期處理查詢按鈕部分代碼:string str1 = select id as 用戶編號(hào),usename as 姓名,bookcode as 圖書編號(hào),bookname as 圖書名稱,pubname as 出版社,outtime as 借書時(shí)間,backtime as 歸還時(shí)間,iskeepout as 是否超期,outmoney as 超期金額 from tb_outbook where id=39。 and iskeepout=39。SqlDataAdapter ads = newSqlDataAdapter(str1, conn)。 (ds)。 ()。+false+39。+id+39。+bookcode+39。 ()。 + id + 39。 + bookcode + 39。 ()。 (scriptalert(39。)。39。 每日?qǐng)?bào)表針對(duì)不同的時(shí)間,把每天該系統(tǒng)中的借書、還書、續(xù)借、超期等處理信息用表格的形式顯示出來,還可根據(jù)需要將其用打印機(jī)打印出來。//設(shè)定開始時(shí)間字符串DateTime snyr = (())。//設(shè)定結(jié)束時(shí)間字符串DateTime sdnyr = (())。 + snyr + 39。+ sdnyr + 39。SqlCommand c
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1