2023年全國(guó)碩士研究生考試考研英語(yǔ)一試題真題(含答案詳解+作文范文)_第1頁(yè)
已閱讀1頁(yè),還剩14頁(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、<p><b>  課程設(shè)計(jì)報(bào)告</b></p><p>  系(部、中心) 計(jì)算機(jī)科學(xué)與工程學(xué)院 </p><p>  姓 名 學(xué) 號(hào) </p><p>  專 業(yè) 網(wǎng)絡(luò)工程 班 級(jí) 2班 </p>&l

2、t;p>  同組人員   </p><p>  課程名稱 .NET技術(shù) </p><p>  設(shè)計(jì)題目名稱 網(wǎng)上書店管理系統(tǒng)—后臺(tái)子系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn) </p><p>  起止時(shí)間 2010年11月25日—2010年12月22日 </p>&l

3、t;p>  成 績(jī)   </p><p>  指導(dǎo)教師簽名   </p><p><b>  目 錄</b></p><p>  1. 系統(tǒng)總體分析與設(shè)計(jì)3</p><p>  1.

4、1 系統(tǒng)體系結(jié)構(gòu)3</p><p>  本系統(tǒng)采用客戶/服務(wù)器(Client/Server)模式。簡(jiǎn)述C/S結(jié)構(gòu)特點(diǎn)。3</p><p>  1.2 系統(tǒng)功能結(jié)構(gòu)3</p><p>  2. 系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì)與實(shí)現(xiàn)4</p><p>  3. 系統(tǒng)功能詳細(xì)設(shè)計(jì)與實(shí)現(xiàn)5</p><p>  3. 1 登錄子系統(tǒng)

5、5</p><p>  3.2 會(huì)員管理子系統(tǒng)10</p><p>  3.3 圖書管理子系統(tǒng)12</p><p><b>  4. 結(jié)束語(yǔ)14</b></p><p>  5. 參考文獻(xiàn)14</p><p>  1. 系統(tǒng)總體分析與設(shè)計(jì)</p><p>  

6、1.1 系統(tǒng)體系結(jié)構(gòu)</p><p>  本系統(tǒng)采用客戶/服務(wù)器(Client/Server)模式。簡(jiǎn)述C/S結(jié)構(gòu)特點(diǎn)。</p><p>  圖1 系統(tǒng)體系結(jié)構(gòu)圖</p><p>  1.2 系統(tǒng)功能結(jié)構(gòu)</p><p><b> ?。?lt;/b></p><p>  圖2 系統(tǒng)功能模塊圖</

7、p><p>  2. 系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì)與實(shí)現(xiàn)</p><p>  描述數(shù)據(jù)庫(kù)表的結(jié)構(gòu)及相關(guān)約束,如下表:</p><p><b>  管理員信息表:</b></p><p><b>  會(huì)員信息表:</b></p><p><b>  圖書信息表:</b>&l

8、t;/p><p>  SQL SERVER(ACCESS)數(shù)據(jù)庫(kù)實(shí)現(xiàn):</p><p>  圖3 數(shù)據(jù)庫(kù)實(shí)現(xiàn)關(guān)系圖(注意:圖有圖題)</p><p>  系統(tǒng)功能詳細(xì)設(shè)計(jì)與實(shí)現(xiàn)</p><p>  3. 1 登錄子系統(tǒng)</p><p><b>  代碼:</b></p><p&

9、gt;  Imports System.Data.SqlClient</p><p>  Public Class frmUser</p><p>  Inherits System.Windows.Forms.Form</p><p>  #Region " Windows 窗體設(shè)計(jì)器生成的代碼"</p><p>  P

10、ublic Sub New()</p><p>  MyBase.New()</p><p>  '該調(diào)用是Windows 窗體設(shè)計(jì)器所必需的。</p><p>  InitializeComponent()</p><p>  '在InitializeComponent() 調(diào)用之后添加任何初始化</p>&l

11、t;p><b>  End Sub</b></p><p>  '窗體重寫dispose 以清理組件列表。</p><p>  Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)</p><p>  If disposing Then</

12、p><p>  If Not (components Is Nothing) Then</p><p>  components.Dispose()</p><p><b>  End If</b></p><p><b>  End If</b></p><p>  MyBas

13、e.Dispose(disposing)</p><p><b>  End Sub</b></p><p>  'Windows 窗體設(shè)計(jì)器所必需的</p><p>  Private components As System.ComponentModel.IContainer</p><p>  '注

14、意: 以下過(guò)程是Windows 窗體設(shè)計(jì)器所必需的</p><p>  '可以使用Windows 窗體設(shè)計(jì)器修改此過(guò)程。</p><p>  '不要使用代碼編輯器修改它。</p><p>  Friend WithEvents Label1 As System.Windows.Forms.Label</p><p>  Fri

15、end WithEvents Label2 As System.Windows.Forms.Label</p><p>  Friend WithEvents TextBox1 As System.Windows.Forms.TextBox</p><p>  Friend WithEvents TextBox2 As System.Windows.Forms.TextBox</p&

16、gt;<p>  Friend WithEvents Button1 As System.Windows.Forms.Button</p><p>  Friend WithEvents Button2 As System.Windows.Forms.Button</p><p>  Friend WithEvents Label3 As System.Windows.For

17、ms.Label</p><p>  <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()</p><p>  Me.Label1 = New System.Windows.Forms.Label</p><p>  Me.Label2 = New Sys

18、tem.Windows.Forms.Label</p><p>  Me.TextBox1 = New System.Windows.Forms.TextBox</p><p>  Me.TextBox2 = New System.Windows.Forms.TextBox</p><p>  Me.Button1 = New System.Windows.Form

19、s.Button</p><p>  Me.Button2 = New System.Windows.Forms.Button</p><p>  Me.Label3 = New System.Windows.Forms.Label</p><p>  Me.SuspendLayout()</p><p><b>  '&l

20、t;/b></p><p><b>  'Label1</b></p><p><b>  '</b></p><p>  Me.Label1.Location = New System.Drawing.Point(32, 56)</p><p>  Me.Label1.Nam

21、e = "Label1"</p><p>  Me.Label1.Size = New System.Drawing.Size(56, 24)</p><p>  Me.Label1.TabIndex = 0</p><p>  Me.Label1.Text = "用戶名:"</p><p><b

22、>  '</b></p><p><b>  'Label2</b></p><p><b>  '</b></p><p>  Me.Label2.Location = New System.Drawing.Point(32, 104)</p><p> 

23、 Me.Label2.Name = "Label2"</p><p>  Me.Label2.Size = New System.Drawing.Size(56, 24)</p><p>  Me.Label2.TabIndex = 1</p><p>  Me.Label2.Text = "密 碼:"</p>

24、<p><b>  '</b></p><p><b>  'TextBox1</b></p><p><b>  '</b></p><p>  Me.TextBox1.Location = New System.Drawing.Point(88, 56)</

25、p><p>  Me.TextBox1.Name = "TextBox1"</p><p>  Me.TextBox1.Size = New System.Drawing.Size(136, 21)</p><p>  Me.TextBox1.TabIndex = 2</p><p><b>  '</

26、b></p><p><b>  'TextBox2</b></p><p><b>  '</b></p><p>  Me.TextBox2.Location = New System.Drawing.Point(88, 104)</p><p>  Me.TextBox2

27、.Name = "TextBox2"</p><p>  Me.TextBox2.PasswordChar = Global.Microsoft.VisualBasic.ChrW(42)</p><p>  Me.TextBox2.Size = New System.Drawing.Size(136, 21)</p><p>  Me.TextB

28、ox2.TabIndex = 3</p><p><b>  '</b></p><p><b>  'Button1</b></p><p><b>  '</b></p><p>  Me.Button1.Location = New System.

29、Drawing.Point(40, 168)</p><p>  Me.Button1.Name = "Button1"</p><p>  Me.Button1.Size = New System.Drawing.Size(56, 24)</p><p>  Me.Button1.TabIndex = 4</p><p>

30、;  Me.Button1.Text = "登 陸"</p><p><b>  '</b></p><p><b>  'Button2</b></p><p><b>  '</b></p><p>  Me.Button2.Lo

31、cation = New System.Drawing.Point(136, 168)</p><p>  Me.Button2.Name = "Button2"</p><p>  Me.Button2.Size = New System.Drawing.Size(56, 24)</p><p>  Me.Button2.TabIndex =

32、5</p><p>  Me.Button2.Text = "取 消"</p><p><b>  '</b></p><p><b>  'Label3</b></p><p><b>  '</b></p><

33、p>  Me.Label3.ForeColor = System.Drawing.Color.Blue</p><p>  Me.Label3.Location = New System.Drawing.Point(32, 16)</p><p>  Me.Label3.Name = "Label3"</p><p>  Me.Label3

34、.Size = New System.Drawing.Size(208, 24)</p><p>  Me.Label3.TabIndex = 6</p><p>  Me.Label3.Text = "初始用戶名和密碼都為:admin"</p><p><b>  '</b></p><p>

35、;<b>  'frmUser</b></p><p><b>  '</b></p><p>  Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)</p><p>  Me.BackColor = System.Drawing.SystemColo

36、rs.ActiveBorder</p><p>  Me.ClientSize = New System.Drawing.Size(256, 230)</p><p>  Me.Controls.Add(Me.Label3)</p><p>  Me.Controls.Add(Me.Button2)</p><p>  Me.Controls

37、.Add(Me.Button1)</p><p>  Me.Controls.Add(Me.TextBox2)</p><p>  Me.Controls.Add(Me.TextBox1)</p><p>  Me.Controls.Add(Me.Label2)</p><p>  Me.Controls.Add(Me.Label1)<

38、/p><p>  Me.Name = "frmUser"</p><p>  Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen</p><p>  Me.Text = "登陸窗口"</p><p>  Me.Resu

39、meLayout(False)</p><p>  Me.PerformLayout()</p><p><b>  End Sub</b></p><p>  #End Region</p><p>  Public User As String</p><p>  Public passwor

40、d As String</p><p>  Dim conn As New SqlConnection("Server=.;" & _</p><p>  "Database=ViBook; " & _</p><p>  "Integrated Security=SSPI ")</p

41、><p>  Dim comm As New SqlCommand</p><p>  Dim ds As New DataSet</p><p>  Dim da As New SqlDataAdapter</p><p>  Private Sub Button1_Click(ByVal sender As System.Object, By

42、Val e As System.EventArgs) Handles Button1.Click</p><p>  User = TextBox1.Text</p><p>  password = TextBox2.Text</p><p>  Dim str As String</p><p>  str = "select

43、* from 管理員信息where 姓名='" & User & "' and 密碼='" & password & "'"</p><p>  comm.Connection = conn</p><p>  comm.CommandType = CommandType.Te

44、xt</p><p>  comm.CommandText = str</p><p>  da.SelectCommand = comm</p><p><b>  Try</b></p><p>  conn.Open()</p><p>  da.Fill(ds)</p>&l

45、t;p>  If ds.Tables(0).Rows.Count <> 0 Then</p><p>  Dim frm2 As New frmMain</p><p>  frm2.Show()</p><p><b>  Me.Hide()</b></p><p><b>  Else&l

46、t;/b></p><p>  MessageBox.Show("密碼或用戶名錯(cuò)誤,請(qǐng)重新輸入", "提示信息")</p><p>  TextBox1.Text = ""</p><p>  TextBox2.Text = ""</p><p>  Tex

47、tBox1.Focus()</p><p><b>  End If</b></p><p>  Catch ex As Exception</p><p>  MessageBox.Show("登陸失敗", "提示信息")</p><p><b>  End Try&l

48、t;/b></p><p><b>  End Sub</b></p><p>  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click</p><p>  Me.Close()

49、</p><p>  Application.Exit()</p><p><b>  End Sub</b></p><p>  Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Ha

50、ndles TextBox2.KeyPress</p><p>  If e.KeyChar = Microsoft.VisualBasic.ChrW(13) _</p><p>  And TextBox2.Text <> "" Then</p><p>  Me.Button1_Click(Nothing, Nothing)<

51、;/p><p><b>  End If</b></p><p><b>  End Sub</b></p><p>  Private Sub frmUser_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loa

52、d</p><p><b>  End Sub</b></p><p><b>  End Class</b></p><p><b>  界面:</b></p><p>  3.2 會(huì)員管理子系統(tǒng)</p><p>  代碼:Imports Syste

53、m.Data.SqlClient</p><p>  Public Class frmXzDz</p><p>  Inherits System.Windows.Forms.Form</p><p>  Dim conn As New SqlConnection("Server=.;DataBase=ViBook;Integrated Security=

54、SSPI")</p><p>  Dim comm As New SqlCommand</p><p>  Dim ds As New DataSet</p><p>  Friend WithEvents TextBox4 As System.Windows.Forms.TextBox</p><p>  Friend WithE

55、vents TextBox6 As System.Windows.Forms.TextBox</p><p>  Friend WithEvents TextBox5 As System.Windows.Forms.TextBox</p><p>  Dim da As New SqlDataAdapter</p><p>  Private Sub frmXzDz

56、_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load</p><p>  If conn.State = ConnectionState.Closed Then</p><p>  conn.Open()</p><p><b>  End If<

57、/b></p><p>  comm.Connection = conn</p><p>  comm.CommandType = CommandType.Text</p><p>  comm.CommandText = "select * from 會(huì)員信息表"</p><p>  da.SelectComman

58、d = comm</p><p>  'Dim da As New SqlDataAdapter("select * from 學(xué)生信息表")</p><p>  da.Fill(ds, "會(huì)員信息表")</p><p>  DataGrid1.DataSource = ds.Tables("會(huì)員信息表&qu

59、ot;)</p><p>  If conn.State = ConnectionState.Open Then</p><p>  conn.Close()</p><p><b>  End If</b></p><p><b>  End Sub</b></p><p>

60、;  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</p><p>  ds.Clear()</p><p>  If conn.State = ConnectionState.Closed Then</p>

61、<p>  conn.Open()</p><p><b>  End If</b></p><p>  Dim str As String</p><p>  str = "insert into 會(huì)員信息表(會(huì)員編號(hào),會(huì)員姓名,會(huì)員性別,密碼,已買書數(shù),電話) values ('" & Tex

62、tBox1.Text & "','" & TextBox2.Text & "','" & ComboBox1.SelectedItem & "','" & TextBox4.Text & "','" & TextBox5.Text

63、& "','" & TextBox6.Text & "')"</p><p>  comm.Connection = conn</p><p>  comm.CommandType = CommandType.Text</p><p>  comm.CommandText = s

64、tr</p><p>  da.SelectCommand = comm</p><p>  da.Fill(ds, "會(huì)員信息表")</p><p>  If Me.ds.Tables.Count <> 0 Then</p><p>  comm.Connection = conn</p>&l

65、t;p>  comm.CommandType = CommandType.Text</p><p>  comm.CommandText = "select * from 會(huì)員信息表"</p><p>  da.SelectCommand = comm</p><p>  da.Fill(ds, "會(huì)員信息表")<

66、/p><p>  MessageBox.Show("新增會(huì)員信息成功", "提示信息")</p><p>  TextBox1.Text = ""</p><p>  TextBox2.Text = ""</p><p>  ComboBox1.Text = &quo

67、t;"</p><p>  TextBox4.Text = ""</p><p>  TextBox5.Text = ""</p><p>  TextBox6.Text = ""</p><p>  TextBox1.Focus()</p><p>

68、;<b>  Else</b></p><p><b>  End If</b></p><p><b>  End Sub</b></p><p>  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System

69、.EventArgs) Handles Button2.Click</p><p>  Me.Close()</p><p><b>  End Sub</b></p><p><b>  End Class</b></p><p><b>  界面:</b></p>

70、;<p>  3.3 圖書管理子系統(tǒng)</p><p>  代碼:Imports System.Data.SqlClient</p><p>  Public Class frmXzSj</p><p>  Inherits System.Windows.Forms.Form</p><p>  Dim conn As New

71、SqlConnection("Server=.;DataBase=ViBook;Integrated Security=SSPI")</p><p>  Dim comm As New SqlCommand</p><p>  Dim ds As New DataSet</p><p>  Dim da As New SqlDataAdapter

72、</p><p>  'Dim reader1 As SqlDataReader</p><p>  Private Sub frmXzSj_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load</p><p>  If conn.State = Conne

73、ctionState.Closed Then</p><p>  conn.Open()</p><p><b>  End If</b></p><p>  comm.Connection = conn</p><p>  comm.CommandType = CommandType.Text</p>&

74、lt;p>  comm.CommandText = "select * from 圖書信息表"</p><p>  da.SelectCommand = comm</p><p>  'Dim da As New SqlDataAdapter("select * from 學(xué)生信息表")</p><p>  da

75、.Fill(ds, "圖書信息表")</p><p>  DataGrid1.DataSource = ds.Tables("圖書信息表")</p><p>  If conn.State = ConnectionState.Open Then</p><p>  conn.Close()</p><p&g

76、t;<b>  End If</b></p><p><b>  End Sub</b></p><p>  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</p>

77、<p>  ds.Clear()</p><p>  If conn.State = ConnectionState.Closed Then</p><p>  conn.Open()</p><p><b>  End If</b></p><p>  Dim str As String</p>

78、<p>  str = "insert into 圖書信息表(圖書編號(hào),圖書類別,書名,作者,出版社,價(jià)格,冊(cè)數(shù),出版日期) values ('" & TextBox1.Text & "','" & TextBox2.Text & "','" & ComboBox1.SelectedIt

79、em & "','" & TextBox3.Text & "','" & TextBox4.Text & "'," & TextBox5.Text & ",'" & TextBox6.Text & "','&quo

80、t; & DateTimePicker1.Value.Date & "')"</p><p>  comm.Connection = conn</p><p>  comm.CommandType = CommandType.Text</p><p>  comm.CommandText = str</p>

81、<p>  da.SelectCommand = comm</p><p>  da.Fill(ds, "圖書信息表")</p><p>  If Me.ds.Tables.Count <> 0 Then</p><p>  comm.Connection = conn</p><p>  comm.

82、CommandType = CommandType.Text</p><p>  comm.CommandText = "select * from 圖書信息表"</p><p>  da.SelectCommand = comm</p><p>  da.Fill(ds, "圖書信息表")</p><p&

83、gt;  MessageBox.Show("新增圖書信息成功", "提示信息")</p><p>  TextBox1.Text = ""</p><p>  TextBox2.Text = ""</p><p>  TextBox3.Text = ""</p&

84、gt;<p>  ComboBox1.Text = ""</p><p>  TextBox4.Text = ""</p><p>  TextBox5.Text = ""</p><p>  TextBox6.Text = ""</p><p> 

85、 TextBox1.Focus()</p><p><b>  Else</b></p><p><b>  End If</b></p><p>  If conn.State = ConnectionState.Open Then</p><p>  conn.Close()</p>

86、<p><b>  End If</b></p><p><b>  End Sub</b></p><p>  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<

87、;/p><p>  Me.Close()</p><p><b>  End Sub</b></p><p>  Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBo

88、x1.SelectedIndexChanged</p><p><b>  End Sub</b></p><p><b>  End Clas</b></p><p><b>  界面:</b></p><p><b>  結(jié)束語(yǔ)</b></p&g

89、t;<p>  VB的學(xué)習(xí)過(guò)程應(yīng)該是一個(gè)快樂(lè)的過(guò)程,要充分的體會(huì)它的可視化編程的魅力。</p><p>  將枯燥的后臺(tái)代碼和前面的窗體聯(lián)系起來(lái)。</p><p>  多讀代碼,而不是復(fù)制、粘貼代碼。</p><p><b>  5. 參考文獻(xiàn)</b></p><p>  [1] 黃梯云,管理信息系統(tǒng),高等

溫馨提示

  • 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ù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫(kù)僅提供信息存儲(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)論