2023年全國碩士研究生考試考研英語一試題真題(含答案詳解+作文范文)_第1頁
已閱讀1頁,還剩22頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、<p><b>  數(shù)據(jù)庫課程設(shè)計(jì)報(bào)告</b></p><p><b>  教學(xué)管理系統(tǒng)</b></p><p>  實(shí)驗(yàn)題目: 教學(xué)管理系統(tǒng) </p><p><b>  教學(xué)管理系統(tǒng)</b></p><p><b>  目錄</b&g

2、t;</p><p><b>  一、概述3</b></p><p><b>  二、總體設(shè)計(jì)3</b></p><p><b>  1、軟件環(huán)境:3</b></p><p><b>  2、硬件環(huán)境:3</b></p><p

3、>  三、實(shí)驗(yàn)主要內(nèi)容3</p><p><b>  1、主要數(shù)據(jù)表4</b></p><p><b>  2、功能模塊4</b></p><p>  四、系統(tǒng)分析報(bào)告4</p><p><b>  1、數(shù)據(jù)流圖4</b></p><p>

4、;  2、系統(tǒng)功能模塊5</p><p><b>  3、業(yè)務(wù)流圖5</b></p><p>  4、系統(tǒng)數(shù)據(jù)模型設(shè)計(jì)6</p><p><b>  五、代碼實(shí)現(xiàn)9</b></p><p><b>  1.登錄界面9</b></p><p>&

5、lt;b>  2.注冊界面11</b></p><p><b>  3.教師界面13</b></p><p><b>  4.課表管理14</b></p><p><b>  5.成績管理15</b></p><p><b>  6.學(xué)生界面

6、16</b></p><p><b>  7.網(wǎng)上評教18</b></p><p>  六、系統(tǒng)實(shí)現(xiàn)結(jié)果18</p><p>  七、實(shí)驗(yàn)分工及總結(jié)23</p><p><b>  概述</b></p><p>  數(shù)據(jù)庫課程設(shè)計(jì)是集中實(shí)踐性環(huán)節(jié)之一,是學(xué)

7、習(xí)完《數(shù)據(jù)庫原理及應(yīng)用》課程后進(jìn)行的一次全面的綜合的實(shí)踐練習(xí),主要目的在于加深學(xué)生對數(shù)據(jù)庫基礎(chǔ)理論和基本知識的理解,熟悉數(shù)據(jù)庫的設(shè)計(jì)方法,掌握基于數(shù)據(jù)庫的信息管理系統(tǒng)的開發(fā)方法,進(jìn)一步加強(qiáng)學(xué)生綜合運(yùn)用知識和實(shí)踐動手的能力。</p><p>  學(xué)生根據(jù)所學(xué)的數(shù)據(jù)庫原理與程序設(shè)計(jì)的知識,能夠針對一個(gè)小型的數(shù)據(jù)庫管理系統(tǒng),進(jìn)行系統(tǒng)的需求分析,系統(tǒng)設(shè)計(jì),數(shù)據(jù)庫設(shè)計(jì),編碼,測試等,完成題目要求的功能,從而達(dá)到掌握開發(fā)一個(gè)

8、小型數(shù)據(jù)庫的目的。</p><p><b>  二、總體設(shè)計(jì)</b></p><p><b>  1、軟件環(huán)境:</b></p><p>  Visual Studio 2010、SQL Server Management Studio</p><p><b>  2、硬件環(huán)境:</

9、b></p><p><b>  PC機(jī)</b></p><p><b>  三、實(shí)驗(yàn)主要內(nèi)容</b></p><p><b>  1、主要數(shù)據(jù)表</b></p><p>  課程信息表,學(xué)生信息表單,教師信息表,學(xué)生成績表等。</p><p>&

10、lt;b>  2、功能模塊</b></p><p> ?。?)課程設(shè)置,包括:查詢、添加、刪除、查詢和修改課程信息 </p><p>  (2)學(xué)生成績查詢,網(wǎng)上評教。 </p><p>  (3)教師查詢課程時(shí)間和教室的安排。 </p><p> ?。?)教師管理學(xué)生成績查詢,添加,修改,刪除。</p>&l

11、t;p>  (5)學(xué)生和教師信息的注冊。</p><p><b>  四、系統(tǒng)分析報(bào)告</b></p><p><b>  1、數(shù)據(jù)流圖</b></p><p>  教學(xué)管理系統(tǒng)的基本數(shù)據(jù)流圖如下所示:</p><p>  學(xué)生選課信息 </p><p><

12、;b>  課程信息</b></p><p><b>  選課審核信息</b></p><p>  圖1教學(xué)管理系統(tǒng)的基本數(shù)據(jù)流圖 </p><p><b>  學(xué)生成績信息</b></p><p>  學(xué)生考試信息 </p><p>  學(xué)生信息

13、管理 </p><p><b>  個(gè)人考試信息</b></p><p><b>  成績確認(rèn)信息</b></p><p>  圖 2 教學(xué)管理系統(tǒng)的基本數(shù)據(jù)流圖</p><p><b>  排課信息</b></p><p><b> 

14、 個(gè)人考試成績</b></p><p>  排課信息 排課信息</p><p><b>  排課信息</b></p><p>  圖3 教學(xué)管理系統(tǒng)的基本數(shù)據(jù)流圖</p><p><b>  2、系統(tǒng)功能模塊</b></p>&l

15、t;p>  本系統(tǒng)主要包括學(xué)生信息管理、課程信息管理、成績信息管理等模塊,另外還包括進(jìn)行系統(tǒng)管理的一些輔助模塊。其示意圖如下:</p><p><b>  3、業(yè)務(wù)流圖</b></p><p>  4、系統(tǒng)數(shù)據(jù)模型設(shè)計(jì)</p><p><b> ?。?)系統(tǒng)ER圖</b></p><p>&l

16、t;b>  各實(shí)體E-R圖:</b></p><p><b>  學(xué)生信息:</b></p><p><b>  課程信息:</b></p><p><b>  教師信息:</b></p><p><b>  學(xué)生成績:</b></

17、p><p><b>  關(guān)系模式</b></p><p>  學(xué)生信息(姓名,學(xué)號,登錄密碼)</p><p>  課程信息(課程號,課程名,上課教室,登錄密碼,)</p><p>  教師信息(教師編號,姓名,登錄密碼)</p><p>  學(xué)生成績(學(xué)號,課程號,課程名,成績)</p>

18、<p><b>  數(shù)據(jù)表</b></p><p><b>  課程信息表</b></p><p><b>  教師信息表</b></p><p><b>  個(gè)人成績表</b></p><p><b>  學(xué)生成績表</b&

19、gt;</p><p><b>  學(xué)生課表</b></p><p><b>  五、代碼實(shí)現(xiàn)</b></p><p><b>  1.登錄界面</b></p><p>  Private Sub Form1_Load(ByVal sender As System.Object

20、, ByVal e As System.EventArgs) Handles MyBase.Load</p><p>  Dim min, max, rndnum, i As Integer</p><p><b>  min = 10</b></p><p><b>  max = 99</b></p>&

21、lt;p>  TextBox4.Text = ""</p><p>  For i = 0 To 1</p><p>  rndnum = CStr(CInt(min + Rnd() * (max - min)))</p><p>  TextBox4.Text = TextBox4.Text & "" &

22、; rndnum</p><p><b>  Next</b></p><p><b>  End Sub</b></p><p>  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

23、Button2.Click</p><p>  Dim ConnStr As String = "Server=(local);uid=sa;pwd=1234;database=shiy"</p><p>  Dim cn As SqlClient.SqlConnection = New SqlClient.SqlConnection(ConnStr) '建&#

24、161;§立¢¡é連¢?接¨®對?象¨®,ê?同ª?時(shí)º¡À說¦Ì明¡Â連¢?接¨®字Á?符¤?串ä?</p><p>  Dim cmd As New SqlClient.S

25、qlCommand '生¦¨²成¨¦命¨¹令¢?對?象¨®,ê?用®?于®¨²執(zhí)¡ä行DSQL語®?句?</p><p>  Dim dr As IDataReader '用®?來¤¡

26、ä臨¢¨´時(shí)º¡À存ä?放¤?執(zhí)¡ä行D語®?句?后¨®的Ì?結(jié)¨¢果?</p><p>  Dim SQLStr As String</p><p>  If RadioButton1.Checked = True Th

27、en</p><p>  SQLStr = "select * from teacher where tusernum=" + "'" + TextBox1.Text + "'"</p><p>  cmd.Connection = cn</p><p><b>  cn.Open

28、()</b></p><p>  cmd.CommandText = SQLStr</p><p>  dr = cmd.ExecuteReader()</p><p>  If dr.Read() Then</p><p>  If dr!tpwd.ToString().Trim = TextBox2.Text Then<

29、/p><p>  If TextBox3.Text = TextBox4.Text Then</p><p>  MsgBox("登Ì?錄?成¨¦功|")</p><p>  Dim jiaoshi As New Form3</p><p>  jiaoshi.ShowDialog()</p

30、><p><b>  Hide()</b></p><p><b>  Else</b></p><p>  MsgBox("驗(yàn)¨¦證¡è碼?錯(cuò)䨪誤¨®")</p><p><b>

31、;  End If</b></p><p><b>  Else</b></p><p>  MsgBox("密¨¹碼?不?正y確¨¡¤")</p><p><b>  End If</b></p><p><b

32、>  Else</b></p><p>  MsgBox("該?用®?戶¡ì不?存ä?在¨²")</p><p><b>  End If</b></p><p>  dr.Close()</p><p>  cn.Clos

33、e()</p><p><b>  Else</b></p><p>  SQLStr = "select * from student where snum=" + "'" + TextBox1.Text + "'"</p><p>  cmd.Connection

34、= cn</p><p><b>  cn.Open()</b></p><p>  cmd.CommandText = SQLStr</p><p>  dr = cmd.ExecuteReader()</p><p>  If dr.Read() Then</p><p>  If dr!sp

35、wd.ToString().Trim = TextBox2.Text Then</p><p>  If TextBox3.Text = TextBox4.Text Then</p><p>  MsgBox("登Ì?錄?成¨¦功|")</p><p>  Dim xuesheng As New Form6</

36、p><p>  xuesheng.Show()</p><p><b>  Me.Hide()</b></p><p><b>  Else</b></p><p>  MsgBox("驗(yàn)¨¦證¡è碼?錯(cuò)䨪誤¨

37、®")</p><p><b>  End If</b></p><p><b>  Else</b></p><p>  MsgBox("密¨¹碼?不?正y確¨¡¤")</p><p><b>  

38、End If</b></p><p><b>  Else</b></p><p>  MsgBox("該?用®?戶¡ì不?存ä?在¨²")</p><p><b>  End If</b></p><p>

39、  dr.Close()</p><p>  cn.Close()</p><p><b>  End If</b></p><p><b>  End Sub</b></p><p>  Private Sub Button1_Click(ByVal sender As System.Object

40、, ByVal e As System.EventArgs) Handles Button1.Click</p><p>  Dim zhuce As New Form2</p><p>  zhuce.Show()</p><p><b>  Me.Hide()</b></p><p><b>  End S

41、ub</b></p><p><b>  2.注冊界面</b></p><p>  Public Class Form2</p><p>  Dim objDS As New DataSet</p><p>  Dim objXSTable As DataTable</p><p> 

42、 Dim objda As New SqlClient.SqlDataAdapter</p><p>  Dim cn As New SqlClient.SqlConnection("server=(local);uid=sa;pwd=1234;database=shiy")</p><p>  Public Sub refreshdata()</p>&

43、lt;p>  objda.Update(objDS, "teacher") '第̨²二t個(gè)?參?數(shù)ºy為a需¨¨要°a更¨¹新?數(shù)ºy據(jù)Y庫a表À¨ª名?</p><p>  objXSTable.Clear()</p><p&

44、gt;  Me.zhuce_Click(Nothing, Nothing)</p><p>  objDS.AcceptChanges()</p><p><b>  End Sub</b></p><p>  Private Sub zhuce_Click(ByVal sender As System.Object, ByVal e As S

45、ystem.EventArgs) Handles zhuce.Click</p><p>  Dim cmd As New SqlClient.SqlCommand</p><p>  cmd.Connection = cn '數(shù)ºy據(jù)Y從䨮當(dāng)Ì¡À前¡ã建¡§立&

46、#162;¡é的Ì?連¢?接¨®cn中D進(jìn)?入¨?</p><p>  If RadioButton1.Checked = True Then</p><p>  Dim builder As SqlClient.SqlCommandBuilder = New SqlClient.SqlCommandBuilder(ob

47、jda)</p><p><b>  Try</b></p><p><b>  cn.Open()</b></p><p>  cmd.CommandText = "select * from teacher"</p><p>  objda.SelectCommand = c

48、md</p><p>  objda.Fill(objDS, "teacher")</p><p>  objXSTable = objDS.Tables("teacher")</p><p>  cn.Close()</p><p>  Dim response As MsgBoxResult<

49、/p><p>  response = MsgBox("確¨¡¤實(shí)º¦Ì要°a注Á¡é冊¨¢嗎e?ê?", vbOKCancel + vbQuestion, "系¦Ì統(tǒng)ª3提¬¨¢示º?&q

50、uot;)</p><p>  If response = MsgBoxResult.Ok Then</p><p>  Dim myRow As DataRow</p><p>  myRow = objXSTable.NewRow</p><p>  myRow("tusernum") = TextBox1.Text&

51、lt;/p><p>  myRow("tusername") = username1.Text</p><p>  myRow("tpwd") = mima1.Text</p><p>  objXSTable.Rows.Add(myRow)</p><p>  objda.Update(objDS, &q

52、uot;teacher")</p><p>  objDS.AcceptChanges()</p><p>  refreshdata()</p><p><b>  End If</b></p><p>  Catch ex As Exception</p><p><b>

53、  End Try</b></p><p><b>  Else</b></p><p>  Dim builder As SqlClient.SqlCommandBuilder = New SqlClient.SqlCommandBuilder(objda)</p><p><b>  cn.Open()</b&g

54、t;</p><p>  cmd.CommandText = "select * from student"</p><p>  objda.SelectCommand = cmd</p><p>  objda.Fill(objDS, "student")</p><p>  objXSTable =

55、 objDS.Tables("student")</p><p>  cn.Close()</p><p>  Dim response As MsgBoxResult</p><p>  response = MsgBox("確¨¡¤實(shí)º¦Ì要°a注Á&#

56、161;é冊¨¢嗎e?ê?", vbOKCancel + vbQuestion, "系¦Ì統(tǒng)ª3提¬¨¢示º?")</p><p>  If response = MsgBoxResult.Ok Then</p><p>  Dim myRow As

57、DataRow</p><p>  myRow = objXSTable.NewRow</p><p>  myRow("snum") = TextBox1.Text</p><p>  myRow("sname") = username1.Text</p><p>  myRow("spwd

58、") = mima1.Text</p><p>  objXSTable.Rows.Add(myRow)</p><p>  objda.Update(objDS, "student")</p><p>  objDS.AcceptChanges()</p><p>  refreshdata()</p&g

59、t;<p><b>  End If</b></p><p><b>  End If</b></p><p>  Dim denglu As New Form1</p><p>  denglu.Show()</p><p><b>  Me.Hide()</b>

60、;</p><p><b>  End Sub</b></p><p>  Private Sub chongzhi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chongzhi.Click</p><p>  username1.Text

61、= ""</p><p>  mima1.Text = ""</p><p>  qmima1.Text = ""</p><p><b>  End Sub</b></p><p><b>  End Class</b></p>

62、;<p><b>  3.教師界面</b></p><p>  Public Class Form3</p><p>  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</p>

63、<p>  Dim kebiao As New Form4</p><p>  kebiao.Show()</p><p><b>  Me.Hide()</b></p><p><b>  End Sub</b></p><p>  Private Sub Button4_Click

64、(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click</p><p>  Dim denglu As New Form1</p><p>  denglu.Show()</p><p><b>  Me.Hide()</b></

65、p><p><b>  End Sub</b></p><p>  Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)</p><p><b>  End Sub</b></p><p&g

66、t;  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click</p><p>  Dim chengjig As New Form5</p><p>  chengjig.Show()</p><p>&l

67、t;b>  Me.Hide()</b></p><p><b>  End Sub</b></p><p>  Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)</p><p><b>  End

68、 Sub</b></p><p><b>  4.課表管理</b></p><p>  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</p><p>  Dim c

69、onn As New SqlConnection</p><p>  Dim comm As New SqlCommand</p><p>  conn.ConnectionString = "server=(local); uid=sa;pwd=1234;database=shiy"</p><p>  conn.Open()</p>

70、;<p>  comm.CommandText = "select * from course where coursenum ='" & Me.TextBox1.Text & "' and courxseclass='" & Me.TextBox2.Text & "'"</p><

71、;p>  comm.Connection = conn</p><p>  comm.CommandText = "select coursename from course where coursenum ='" & Me.TextBox1.Text & "' and courxseclass='" & Me.Text

72、Box2.Text & "'"</p><p>  Me.TextBox3.Text = comm.ExecuteScalar</p><p>  comm.Connection = conn</p><p>  comm.CommandText = "select coursetime from course wher

73、e coursenum ='" & Me.TextBox1.Text & "' and courxseclass='" & Me.TextBox2.Text & "'"</p><p>  Me.TextBox4.Text = comm.ExecuteScalar</p><p&g

74、t;  comm.Connection = conn</p><p>  comm.CommandText = "select courseaddress from course where coursenum ='" & Me.TextBox1.Text & "' and courxseclass='" & Me.TextB

75、ox2.Text & "'"</p><p>  Me.TextBox5.Text = comm.ExecuteScalar</p><p>  comm.Connection = conn</p><p>  conn.Close()</p><p><b>  End Sub</b>

76、;</p><p>  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click</p><p>  Dim jiaoshijiemian As New Form3</p><p>  jiaoshijiemi

77、an.Show()</p><p><b>  Me.Hide()</b></p><p><b>  End Sub</b></p><p><b>  5.成績管理</b></p><p>  Imports System.Data.SqlClient</p>

78、<p>  Public Class Form5</p><p>  Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click</p><p>  Dim jiaoshi As New Form3</p>&

79、lt;p>  jiaoshi.Show()</p><p><b>  Me.Hide()</b></p><p><b>  End Sub</b></p><p>  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As Syste

80、m.EventArgs) Handles Button1.Click</p><p>  Dim conn As New SqlConnection</p><p>  Dim comm As New SqlCommand</p><p>  conn.ConnectionString = "server=(local); uid=sa;pwd=1234;

81、database=shiy"</p><p>  conn.Open()</p><p>  comm.CommandText = "select * from chengji"</p><p>  comm.Connection = conn</p><p>  Dim da As New SqlDataAda

82、pter(comm.CommandText, conn)</p><p>  Dim ds As New DataSet</p><p>  da.Fill(ds, "chengji")</p><p>  conn.Close()</p><p>  Me.DataGridView1.DataSource = ds.Ta

83、bles(0)</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>  Dim conn As

84、 New SqlConnection</p><p>  Dim comm As New SqlCommand</p><p>  conn.ConnectionString = "server=(local); uid=sa;pwd=1234;database=shiy"</p><p>  conn.Open()</p><

85、;p>  comm.CommandText = "insert into chengji values('" & Me.TextBox2.Text & "','" & Me.TextBox3.Text & "','" & Me.TextBox4.Text & "',

86、'" & Me.TextBox5.Text & "')"</p><p>  comm.Connection = conn</p><p>  comm.ExecuteNonQuery()</p><p>  comm.CommandText = "select * from chengji&q

87、uot;</p><p>  comm.Connection = conn</p><p>  Dim da As New SqlDataAdapter(comm.CommandText, conn)</p><p>  Dim ds As New DataSet</p><p>  da.Fill(ds, "chengji&quo

88、t;)</p><p>  conn.Close()</p><p>  Me.DataGridView1.DataSource = ds.Tables(0)</p><p><b>  End Sub</b></p><p>  Private Sub Button3_Click(ByVal sender As Sys

89、tem.Object, ByVal e As System.EventArgs) Handles Button3.Click</p><p>  Dim conn As New SqlConnection</p><p>  Dim comm As New SqlCommand</p><p>  conn.ConnectionString = "serv

90、er=(local); uid=sa;pwd=1234;database=shiy"</p><p>  conn.Open()</p><p>  comm.CommandText = "update chengji set snum='" & Me.TextBox2.Text & "',coursenum=&quo

91、t; & Me.TextBox3.Text & ",coursename='" & Me.TextBox4.Text & "',coursegrade='" & Me.TextBox5.Text & "' where snum='" & Me.TextBox2.Text &

92、"'"</p><p>  comm.Connection = conn</p><p>  comm.ExecuteNonQuery()</p><p>  comm.CommandText = "select * from chengji"</p><p>  comm.Connection

93、 = conn</p><p>  Dim da As New SqlDataAdapter(comm.CommandText, conn)</p><p>  Dim ds As New DataSet</p><p>  da.Fill(ds, "chengji")</p><p>  conn.Close()<

94、/p><p>  Me.DataGridView1.DataSource = ds.Tables(0)</p><p><b>  End Sub</b></p><p>  Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) H

95、andles Button4.Click</p><p>  Dim conn As New SqlConnection</p><p>  Dim comm As New SqlCommand</p><p>  conn.ConnectionString = "server=(local); uid=sa;pwd=1234;database=shiy&

96、quot;</p><p>  conn.Open()</p><p>  comm.CommandText = "delete from chengji where snum =" & Me.TextBox2.Text</p><p>  comm.Connection = conn</p><p>  comm

97、.ExecuteNonQuery()</p><p>  comm.CommandText = "select * from chengji"</p><p>  comm.Connection = conn</p><p>  Dim da As New SqlDataAdapter(comm.CommandText, conn)</p&

98、gt;<p>  Dim ds As New DataSet</p><p>  da.Fill(ds, "chengji")</p><p>  conn.Close()</p><p>  Me.DataGridView1.DataSource = ds.Tables(0)</p><p><b&g

99、t;  End Sub</b></p><p><b>  6.學(xué)生界面</b></p><p>  Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click</p><p>

100、  Dim denglu As New Form1</p><p>  denglu.Show()</p><p><b>  Me.Hide()</b></p><p><b>  End Sub</b></p><p>  Private Sub Button1_Click(ByVal send

101、er As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</p><p>  Dim conn As New SqlConnection</p><p>  Dim comm As New SqlCommand</p><p>  conn.ConnectionString = &

102、quot;server=(local); uid=sa;pwd=1234;database=shiy"</p><p>  conn.Open()</p><p>  comm.CommandText = "select * from scourse"</p><p>  comm.Connection = conn</p>

103、<p>  Dim da As New SqlDataAdapter(comm.CommandText, conn)</p><p>  Dim ds As New DataSet</p><p>  da.Fill(ds, "scourse")</p><p>  conn.Close()</p><p>

104、  Me.DataGridView1.DataSource = ds.Tables(0)</p><p><b>  End Sub</b></p><p>  Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)</p><p&g

105、t;<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>  Dim conn As New SqlConnection</p&g

106、t;<p>  Dim comm As New SqlCommand</p><p>  conn.ConnectionString = "server=(local); uid=sa;pwd=1234;database=shiy"</p><p>  conn.Open()</p><p>  comm.CommandText =

107、 "select * from grchengji"</p><p>  comm.Connection = conn</p><p>  Dim da As New SqlDataAdapter(comm.CommandText, conn)</p><p>  Dim ds As New DataSet</p><p>

108、;  da.Fill(ds, "grchengji")</p><p>  conn.Close()</p><p>  Me.DataGridView1.DataSource = ds.Tables(0)</p><p><b>  End Sub</b></p><p>  Private Sub

109、 Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click</p><p>  Dim pingjiao As New Form7</p><p>  pingjiao.Show()</p><p><b>  Me.Hid

110、e()</b></p><p><b>  End Sub</b></p><p><b>  7.網(wǎng)上評教</b></p><p>  Public Class Form7</p><p>  Private Sub Button1_Click(ByVal sender As Syst

111、em.Object, ByVal e As System.EventArgs) Handles Button1.Click</p><p>  Dim denglu As New Form6</p><p>  denglu.Show()</p><p><b>  Me.Hide()</b></p><p><b

112、>  End Sub</b></p><p>  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click</p><p>  MsgBox("提¬¨¢交?成¨

113、66;功|")</p><p><b>  End Sub</b></p><p><b>  End Class</b></p><p><b>  六、系統(tǒng)實(shí)現(xiàn)結(jié)果</b></p><p><b>  實(shí)驗(yàn)分工及總結(jié)</b></p>

溫馨提示

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

最新文檔

評論

0/150

提交評論