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

正文內(nèi)容

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

2024-07-20 06:36 本頁面
 

【文章內(nèi)容簡介】 ()。string str2 = update tb_reader set borrownum=borrownum1 where id=39。 + id + 39。//用戶表里的借書數(shù)目少1SqlCommand stw2 = newSqlCommand(str2, conn)。 ()。string str3 = update tb_bookinfo set usenunber=usenunber+1 where bookcode=39。 + bookcode + 39。//圖書信息表的可用量增1SqlCommand cmd3 = newSqlCommand(str3, conn)。 ()。 (scriptalert(39。歸還圖書成功!39。)。location=39。39。/script)。 } ()。 查詢圖書管理員可從圖書編號、圖書名稱、作者、出版社中任一個條件出發(fā)對圖書進行查詢,并把查詢結(jié)果顯示出來。,如沒有輸入查詢條件,: 管理員查詢界面圖 提示信息查詢按鈕部分代碼:protectedvoid Button1_Click(object sender, EventArgs e)//查詢按鈕事件 {string str2 = 。SqlConnection conn = ()。 ()。//查詢語句string str1 = select bookcode as 圖書編碼,bookname as 圖書名稱,autor as 作者,pubname as 出版社,price as 價格,keep as 庫存量,usenunber as 可用量,usedate as 可借天數(shù),pubdate as 出版日期 from tb_bookinfo where。string t1 = ()。string t = ()。if (t1 == 圖書編號)//條件判斷,圖書編號、圖書名稱、作者、出版社相似 {   str2= bookcode=39。+t+39。 } if (t == ) { (Scriptalert(39。請輸入查詢條件!39。)。location=39。39。/script)。 }string str = str1 + str2。SqlDataAdapter ads = newSqlDataAdapter(str, conn)。//執(zhí)行查詢DataSet ds = newDataSet()。 (ds)。 = ds。//綁定數(shù)據(jù) ()。 ()。} 添加圖書根據(jù)圖書的需要,添加圖書信息到數(shù)據(jù)庫中。:圖 添加圖書界面當輸入的圖書編號已經(jīng)存在時,系統(tǒng)就會彈出提示,當添加圖書成功時,會彈出提示信息。 提示信息 提示信息可以對圖書的可用量及其他信息進行修改、并保存到數(shù)據(jù)庫,“重置”按鈕則將所有文本框清零。 所示:圖 添加按鈕部分代碼:if (a1 == ) { (scriptalert(39。圖書編號不能為空,請重新輸入!39。)。location=39。39。/script)。 }else {string s = select bookcode from tb_bookinfo。SqlCommand c = newSqlCommand(s, conn)。SqlDataReader re = ()。while (()) {if (a1 == re[bookcode].ToString()) { Session[bookcode] = ()。 (scriptalert(39。已存在所添加圖書,如需修改該書信息,請通過“修改”按鈕進行!39。)。/script)。 } } ()。if (a1 != Session[bookcode].ToString()) {string str = insert into tb_bookinfo (bookcode,bookname,autor,pubname,price,keep,usenunber,usedate,pubdate ) values (39。 + a1 + 39。,39。 + a2 + 39。,39。 + a3 + 39。,39。 + a4 + 39。,39。 + a5 + 39。,39。 + a6 + 39。,39。 + a7 + 39。,39。 + a8 + 39。,39。 + a9 + 39。)。SqlCommand cmd = newSqlCommand(str, conn)。 ()。 (scriptalert(39。添加圖書成功!39。)。location=39。39。/script)。 }else { = true。 = false。string str1 = select * from tb_bookinfo where bookcode=39。 + a1 + 39。SqlCommand c1 = newSqlCommand(str1, conn)。SqlDataReader red = ()。 ()。 = red[bookcode].ToString()。 = red[bookname].ToString()。 = red[autor].ToString()。 = red[pubname].ToString()。 = red[price].ToString()。 = red[keep].ToString()。 = red[usenunber].ToString()。 = red[usedate].ToString()。 = red[pubdate].ToString()。 ()。}}修改按鈕部分代碼:if (bookcode == ) { (scriptalert(39。圖書編號不能為空!39。)。location=39。39。/script)。 }else {string bookname = ()。string autor = ()。string pubname = ()。string price = ()。string keep = ()。string usenunber = ()。string usedate = ()。string pubdate = ()。string str2 = update tb_bookinfo set bookname=39。 + bookname + 39。, autor=39。 + autor + 39。,pubname=39。 + pubname + 39。,price=39。 + price + 39。,keep=39。 + keep + 39。,usenunber=39。 + usenunber + 39。,usedate=39。 + usedate + 39。,pubdate=39。 + pubdate + 39。 where bookcode=39。 + bookcode + 39。SqlCommand c2 = newSqlCommand(str2, conn)。 ()。 (scriptalert(39。修改圖書資料成功!39。)。location=39。39。/script)。 ()。} 刪除圖書首先將所有圖書信息用表的形式顯示出來,根據(jù)需要刪除一些已不需要的圖書信息,: 刪除圖書界面:圖 提示信息刪除按鈕代碼:GridViewRow row = []。//當前的行數(shù)string bookcode = [1].()。SqlConnection conn = ()。 ()。string str1=delete from tb_bookinfo where bookcode=39。+bookcode+39。SqlCommand cmd1 = newSqlCommand(str1, conn)。 ()。 (scriptalert(39。刪除圖書成功!39。)。location=39。39。/script)。 用戶管理通過對下拉列表框的值進行判斷,顯示當前所選擇的所有用戶資料,以供參考,當想刪除某個用戶時,只需單擊“刪除”按鈕即可, 所示: 用戶管理界面查詢按鈕部分代碼:if (t1 == ) { (scriptalert(39。請選擇用戶類型!39。)。location=39。39。/script)。 }if (t1 == 普通用戶) { str1 = select id as 用戶編號,name as 姓名,sex as 性別,pwd as 密碼,borrownum as 已借數(shù)目,maxborrow as 最大可借數(shù),xi as 系別,zhangye as 專業(yè),nianji as 年級 from tb_reader。string str = str1。SqlDataAdapter ads = newSqlDataAdapter(str, conn)。DataSet ds = newDataSet()。 (ds)。 = ds。 ()。 }if (t1 == 管理員) { str1 = select id as 管理員編號,name as 姓名,pwd as 密碼 from tb_admin。string str = str1。SqlDataAdapter ads = newSqlDataAdapter(str, conn)。DataSet ds = newDataSet()。 (ds)。 = ds。 ()。 }刪除按鈕部分代碼:if (t1 == 普通用戶) {GridViewRow row = []。//當前的行數(shù)string id = [1].()。string a1=delete from tb_reader where id=39。+id+39。SqlCommand sc1 = newSqlCommand(a1, conn)。 ()。 (scriptalert(39。刪除用戶成功!39。)。location=39。39。/script)。 }if (t1 == 管理員) {GridViewRow row = []。//當前的行數(shù)string id = [1].()。string a1 = delete from tb_admin where id=39。 + id + 39。SqlCommand sc1 = newSqlCommand(a1, conn)。 (scriptalert(39。刪除管理員成功!39。)。location=39。39。/script)。 ()。 } 普通類型主要針對一般用戶進行操作,比方說添加、刪除、修改,若不知將要查詢用戶的信息,可單擊“查詢”按鈕進行查詢,然后在此基礎(chǔ)之一對其進行修改,:圖 普通類型界面當沒有輸入用戶編號就進行添加時,當添加成功時, 的提示信息。圖 提示信息添加按鈕部分代碼:string str3 = insert into tb_reader (id,name,sex,pwd,borrownum,maxborrow,xi,zhangye,nianji) values (39。 + id + 39。,39。 + name + 39。,39。 + sex + 39。,39。+pwd+39。,39。+borrownum+39。,39。+maxborrow+39。,39。+xi+39。,39。+zhangye+39。,39。+nianji+39。)。SqlCommand cmd3 = newSqlCommand(str3, conn)。 ()。 (scriptalert(39。添加用戶成功!39。)。location=39。39。/script)。修改按鈕部分代碼:string str = UPDATE tb_reader SET name=39。 + name + 39。,sex=39。 + sex + 39。, pwd=39。 + pwd + 39。,xi=39。 + xi + 39
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1