數(shù)據(jù)庫(kù)課程設(shè)計(jì)圖書館管理系統(tǒng)_第1頁(yè)
數(shù)據(jù)庫(kù)課程設(shè)計(jì)圖書館管理系統(tǒng)_第2頁(yè)
數(shù)據(jù)庫(kù)課程設(shè)計(jì)圖書館管理系統(tǒng)_第3頁(yè)
數(shù)據(jù)庫(kù)課程設(shè)計(jì)圖書館管理系統(tǒng)_第4頁(yè)
數(shù)據(jù)庫(kù)課程設(shè)計(jì)圖書館管理系統(tǒng)_第5頁(yè)
已閱讀5頁(yè),還剩5頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、數(shù)據(jù)庫(kù)課程設(shè)計(jì) 設(shè)計(jì)選題:圖書管理系統(tǒng)系別 信息工程系專業(yè) 計(jì)算機(jī)網(wǎng)絡(luò)技術(shù)班級(jí) 2010022201姓名 馬斌龍 學(xué)號(hào) 201002220137姓名 王賢寬 學(xué)號(hào) 201002220137姓名 黃曉輝 學(xué)號(hào) 201002220140指導(dǎo)老師 2011年12月29日 一 系統(tǒng)需求分析 圖書管理工作繁瑣,借閱頻繁,包含大量的信息數(shù)據(jù),因此就需要一個(gè)完善的圖書管理系統(tǒng)來(lái)實(shí)現(xiàn)對(duì)這些數(shù)據(jù)的有效管理。本系統(tǒng)主要任務(wù)就是對(duì)圖書、讀者、借閱信息、查詢進(jìn)行統(tǒng)一管理,滿足各類用戶的需求。本系統(tǒng)在功能上要實(shí)現(xiàn)借閱圖書、續(xù)借圖書、歸還圖書、催還圖書、信息查詢等功能。二 數(shù)據(jù)庫(kù)分析圖書管理系統(tǒng)就是要求圖書管理人員通過(guò)該

2、系統(tǒng)對(duì)圖書、讀者、借閱信息等進(jìn)行統(tǒng)一管理,從而實(shí)現(xiàn)功能上的借閱圖書、續(xù)借圖書、歸還圖書、催還圖書以及信息查詢。這就要求管理人員能夠?qū)?shù)據(jù)庫(kù)進(jìn)行熟練操作而簡(jiǎn)單的表查詢、觸發(fā)器的建立、存儲(chǔ)過(guò)程的建立以及用戶自定義函數(shù)的建立等等這些管理數(shù)據(jù)庫(kù)的方法都能對(duì)圖書館里系統(tǒng)的管理起到事半功倍的效果。 三、圖書館管理系統(tǒng) E-R 圖請(qǐng)輸入圖書名稱確定圖書基本信息圖書信息圖書信息讀者信息讀者基本信息請(qǐng)輸入名字確定書本借還信息請(qǐng)輸入圖書名稱確定借還信息四、前后與后臺(tái)連接示意圖圖書信息表圖書信息讀者信息表讀者信息借還信息表借還信息五、圖書館管理系統(tǒng)功能算法實(shí)現(xiàn)5.1 前臺(tái)算法實(shí)現(xiàn)5.1.1 主界面<!DOCT

3、YPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="/1999/xhtml" ><head> <title>歡迎使用圖書管理系統(tǒng)</title></head><body style="text-align: center"

4、;> <span style="font-size: 24pt"> <br /> <br /> <br /> <a href=".book.aspx">圖書信息查詢</a><br /> <br /> <a href=".reader.aspx">讀者信息查詢</a><br /> <br /> <a href=".record.aspx">借還信息記錄<

5、;/a></span></body></html>5.1.2 圖書信息<!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="/1999/xhtml" ><head runat="server"> <

6、title>無(wú)標(biāo)題頁(yè)</title></head><body> <form id="form1" runat="server"> <div style="text-align: center"> <asp:Label ID="Label1" runat="server" Text="書名"></asp:Label> <asp:TextBox ID="TextBox1&qu

7、ot; runat="server"></asp:TextBox> <br /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="查詢" /><br /> <asp:GridView ID="GridView1" runat="server" OnSelectedIndexChanged="Gr

8、idView1_SelectedIndexChanged"> </asp:GridView> </div> </form></body></html>5.1.3 讀者信息<!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http:/www.w3.

9、org/1999/xhtml" ><head id="Head1" runat="server"> <title>無(wú)標(biāo)題頁(yè)</title></head><body> <form id="form1" runat="server"> <div style="text-align: center"> <asp:Label ID="Label1" runat="ser

10、ver" Text="姓名"></asp:Label> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <br /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="查詢" /><br /> <asp:Gr

11、idView ID="GridView1" runat="server" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"> </asp:GridView> </div> </form></body></html>5.1.4 借還信息表<!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" "http:/www

12、./TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="/1999/xhtml" ><head runat="server"> <title>無(wú)標(biāo)題頁(yè)</title></head><body> <form id="form1" runat="server"> <div> </div> </fo

13、rm></body></html>5.1.5添加圖書using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;bControls.WebParts;using System.Web.UI.HtmlControls; protected void Button1_Cl

14、ick1(object sender, EventArgs e) string s1, s2, s3; s1 = TextBox1.Text; s2 = TextBox2.Text; s3 = TextBox3.Text; string str = "server=WINKS80;database=圖書管理系統(tǒng);integrated security=true" SqlConnection con = new SqlConnection(str); SqlCommand com = new SqlCommand(); try com.Connection = con; co

15、m.CommandText = "insert 圖書信息表 values ('" + s1 + "','" + s2 + "','" + s3 + "')" con.Open(); com.ExecuteNonQuery(); con.Close(); Response.Write("插入成功"); catch (Exception a1) Response.Write("插入失敗"); finally con.Close();

16、 5.1.6 刪除圖書 protected void Button3_Click(object sender, EventArgs e) string s4; s4 = TextBox4.Text; string str = "server=WINKS80;database=圖書管理系統(tǒng);integrated security=true" SqlConnection con = new SqlConnection(str); SqlCommand com = new SqlCommand(); try com.Connection = con; com.CommandTex

17、t = "delete 圖書信息表 where bname = '" + s4 + "'" con.Open(); com.ExecuteNonQuery(); con.Close(); Response.Write("刪除成功"); catch (Exception a1) Response.Write("刪除失敗"); finally con.Close(); 5.1.7添加讀者using System.Web.UI;using System.Web.UI.WebControls;using S

18、ystem.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls; protected void Button1_Click(object sender, EventArgs e) string s1, s2, s3; s1 = TextBox1.Text; s2 = TextBox2.Text; s3 = TextBox3.Text; string str = "server=WINKS80;database=圖書管理系統(tǒng);integrated security=true" SqlConnection c

19、on = new SqlConnection(str); SqlCommand com = new SqlCommand(); try com.Connection = con; com.CommandText = "insert 讀者信息表 values ('" + s1 + "','" + s2 + "','" + s3 + "')" con.Open(); com.ExecuteNonQuery(); con.Close(); Response.Write(&q

20、uot;添加成功"); catch (Exception a1) Response.Write("添加失敗"); finally con.Close(); 5.1.7刪除讀者、using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web

21、.UI.WebControls.WebParts;using System.Web.UI.HtmlControls; protected void Button2_Click(object sender, EventArgs e) string s4; s4 = TextBox4.Text; string str = "server=WINKS80;database=圖書管理系統(tǒng);integrated security=true" SqlConnection con = new SqlConnection(str); SqlCommand com = new SqlCommand(); try com.Connection = con; com.CommandText = "delete 讀者信息表 where rname = '" + s4 + "'" con.Open(); com.ExecuteNonQuery(); con.Close(); Response.Write("刪除成功"); catch (Exce

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論