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

正文內(nèi)容

課程設(shè)計(jì)-aspnet圖書管理系統(tǒng)-文庫(kù)吧

2024-11-25 05:54 本頁(yè)面


【正文】 { string connstr = [圖書管理系統(tǒng)ConnectionString].ConnectionString。 SqlConnection conn = new SqlConnection(connstr)。 if ( == ==請(qǐng)選擇登錄類別 ==) { ()。 return。 } if ( == 讀者 ) { string query = (select *from 讀者信息表 where 借書證號(hào) =39。{0}39。 and 密碼 =39。{1}39。, (), ())。 SqlCommand cmd = new SqlCommand(query, conn)。 ()。 object ob = ()。 if (ob == null) { ()。 return。 } else { Session[LoginName] = ()。 ()。 } ()。 } if ( == 管理員 ) { string query = (select *from 管理員表 where 角色名 =39。{0}39。 and 密碼=39。{1}39。, (), ())。 SqlCommand cmd = new SqlCommand(query, conn)。 ()。 object ob = ()。 if (ob == null) { ()。 return。 } else { Session[LoginName] = ()。 ()。 } ()。 } } 圖書管理頁(yè)面 () 圖三、圖書管理頁(yè)面 主要代碼實(shí)現(xiàn)(添加,刪除) protected void Button1_Click(object sender, EventArgs e)//圖書添加 { if ( == || == || == || == || == || == || == || == ) { ()。 return。 } string sqlstr。 SqlConnection conn = new SqlConnection(connstr)。 if (!()) { sqlstr = insert into [圖書信息表 ]([ISBN],[書名 ],[作譯者 ],[出版社 ],[出版年月 ],[價(jià)格 ],[復(fù)本量 ],[庫(kù)存量 ],[分類號(hào) ],[內(nèi)容提要 ],[封面照片 ])values( 39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,@Photo)。 } else { sqlstr = insert into [圖書信息表 ]([ISBN],[書名 ],[作譯者 ],[出版社 ],[出版年月 ],[價(jià)格 ],[復(fù)本量 ],[庫(kù)存量 ],[分類號(hào) ],[內(nèi)容提要 ],[封面照片 ])values( 39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。)。 } SqlCommand cmd = new SqlCommand(sqlstr,conn)。 if (!()) { (@Photo,)。 [@Photo].Value = 。 } ()。 ()。 } protected void Button2_Click(object sender, EventArgs e)//圖書刪除 { if ( == ) { ()。 return。 } SqlConnection conn = new SqlConnection(connstr)。 string sqlStr = Delete from [圖書信息表 ] where[ISBN]=39。+()+39。 SqlCommand cmd = new SqlCommand(sqlStr,conn)。 ()。 int a = ()。 if (a 1) { ()。 } else { ()。 } ()。 } () 圖 四 、圖書查詢頁(yè)面 查詢按鈕主要代碼: protected void Button1_Click(object sender, EventArgs e)//查詢 { string connStr = [圖書管理系統(tǒng)ConnectionString].ConnectionString。 SqlConnection conn = new SqlConnection(connStr)。 string query=select * from 圖書信息表 where ISBN LIKE 39。%+()+%39。 and 書名 LIKE39。%+()+%39。 SqlCommand cmd = new SqlCommand(query,conn)。 ()。 SqlDataAdapter sda = new SqlDataAdapter(query, conn)。 DataSet ds = new DataSet()。//定義一個(gè)數(shù)據(jù)集 (ds)。 = ds。 ()。 ()。 } 讀者管理模塊 () 圖五、讀者管理頁(yè)面 主要代碼(修改和查詢按鈕) protected void Button3_Click(object sender, EventArgs e)//修改 { if ( == ) { ()。 return。 } SqlConnection conn = new SqlConnection(connstr)。 string sqlstr = update [讀者信息表 ] set。 if(()!=) { sqlstr += [姓名 ]=39。 + () + 39。,。 } if (().ToString() != ) { sqlstr += [出生時(shí)間 ]=39。 + () + 39。,。 } if (()!= ) { sqlstr += [密碼 ]=39。 + () + 39。,。 } if (().ToString() != ) { sqlstr += [備注 ]=39。 + () + 39。,。 } if (!()) { sqlstr += [照片 ]=@Photo,。 } if (()!= ) { sqlstr += [聯(lián)系方式 ]=@Photo,。 } sqlstr += [專業(yè) ]=39。 + + 39。, + [性別 ]=39。 + + 39。 sqlstr += where 借書證號(hào) =39。 + () + 39。 SqlCommand cmd = new SqlCommand(sqlstr,conn)。 (@Photo,)。 [@Photo].Value = 。 (@Addr, ).Value = ()。 ()。 int yxh = ()。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1