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

正文內(nèi)容

網(wǎng)上圖書管理系統(tǒng)設(shè)計(編輯修改稿)

2025-02-09 17:08 本頁面
 

【文章內(nèi)容簡介】 ptalert(39。用戶名不能為空!39。)/script)。 } ()。 }}[1](3)會員登陸:主要是會員登陸后可以對書籍進(jìn)行查詢而且可以預(yù)定書籍。代碼如下:public partial class userlogin : { static string userName。 protected void Page_Load(object sender, EventArgs e) { userName = 。 } protected void Button1_Click(object sender, EventArgs e) { string strConn = [conn]。 SqlConnection Conn = new SqlConnection(strConn)。 ()。 string sql = select password from userinfo where username=39。 + userName + 39。 if (!().Equals()) { SqlCommand cmd = new SqlCommand(sql, Conn)。 SqlDataReader reader = ()。 if (()) { if (reader[0].Equals()) { Session[username] = 。 ()。 } else { } } } else { } ()。 }}[2] 基礎(chǔ)功能模塊類基礎(chǔ)功能模塊:該模塊處理全部的業(yè)務(wù)邏輯,它接受前臺頁面?zhèn)鱽淼娜空埱?,向?shù)據(jù)訪問層傳入SQL語句并接受所返回的所有數(shù)據(jù)。 書籍添加刪除管理 圖書基本資料管理主要實現(xiàn)用圖書基本資料的添加、修改、刪除以及各種查詢方式。(1)圖書添加:管理員登陸后對新進(jìn)圖書進(jìn)行入館添加操作。圖33 圖書添加代碼如下:protected void Button1_Click(object sender, EventArgs e) { string ID。 string selSql = select bookcaseid from bookcase where bookcasename=39。 + () + 39。 SqlDataReader da = (selSql)。 if (()) { ID = da[0].ToString()。 string sql = insert into bookinfo (b_kind,b_name,state,bookcaseid,count) values(39。 + () + 39。,39。 + + 39。,39。 + false + 39。,39。 + ID + 39。,39。 + 0 + 39。)。 (sql)。 RegisterStartupScript(false, scriptalert(39。添加成功!39。)/script)。 bind()。 = true。 = 。 } else { RegisterStartupScript(false, scriptalert(39。出錯!39。)/script)。}} protected void bind() { string sql = select b_id,b_kind,b_name, from bookinfo,bookcase where = and b_name=39。 + + 39。 DataSet ds = (sql, myTable)。 = [myTable]。 ()。}[4](2)刪除書籍管理:管理員登陸后對丟失書籍或者破損書籍進(jìn)行出館刪除操作。圖34 圖書刪除代碼如下:protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { string ID = [].()。 string sql = delete from bookinfo where b_id=39。 + ID + 39。 if ((sql)) { (true, scriptalert(39。刪除成功!39。)/script)。 } else { (false, scriptalert(39。刪除失??!39。)/script)。 }}[3](1)讀者信息管理:該功能主要用于管理員對會員信息的一些操作,管理員可以通過此功能修改會員的信息,并且能夠刪除會員。圖35 讀者信息管理(2)會員注冊:此系統(tǒng)很多操作只有在會員登陸后才能進(jìn)行,所以對于初次來到該系統(tǒng)的用戶必須需要先注冊,注冊成功后就能通過自己的用戶名和密碼登陸網(wǎng)上圖書館系統(tǒng)進(jìn)行操作。圖36 會員注冊代碼如下:public partial class userregist : { protected void Button1_Click(object sender, EventArgs e) { if () //如頁面有效 { string username = 。 string strSql = select * from userinfo where username=39。 + + 39。 if (get(strSql) == null) {String sql = insert into userinfo ( username ,password ,sex ,age , personid ,job ,phone ,) 。 //設(shè)定SQL命令 sql += values(39。 + + 39。,39。 + + 39。,39。 + () + 39。,39。 + + 39。,39。 + + 39。,39。 + + 39。,39。 + + 39。,39。 + + 39。)。 (sql)。 ()。 } else {RegisterStartupScript(false, scriptalert(39。用戶名已經(jīng)存在39。)/script)。} } } private void ExcuteSql(string strSql) {string strConn = [conn]。 SqlConnection Conn = new SqlConnection(strConn)。 ()。 SqlCommand cmd = new SqlCommand(strSql, Conn)。 ()。 ()。} private string get(string sql) { string strConn = [conn]。 SqlConnection Conn = new SqlConnection(strConn)。 ()。 SqlComman
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1