【正文】
39。 said Legolas. 39。 39。 said Aragorn. 39。 39。 said Gimli. 39。 39。 said Legolas. 39。 39。 he did not think tha t they were dead. I sent him to follow Merry and Pippin。 answered Aragorn wearily. 39。 39。 cried Gimli 39。 39。 said Aragorn. 39。 39。s side. 39。Alas!39。s hand. So it was that Legolas and Gimli found him. They came from the western slopes of the hill, silently, creeping through the trees as if they were hunting. G imli had his axe in hand, and Legolas his long knife: all his arrows were spent. When they came into the glade they halted in amazement。 but where are the Ring and the Bearer? How shall I find them and save the Quest from disaster?39。Thus passes the heir of Dehor, L ord of the Tower of Guard! This is a bitter end. Now the Company is all in ruin. It is I that have failed. Vain was Gandalf39。Alas!39。Which way did they go? Was Frodo there?39。You have conquered. Few have gained such a victory. Be at peace! Minas Tirith shall not fall!39。No!39。Farewell, Aragorn! Go to Minas Tirith and save my people! I have failed.39。They have gone: the Halflings: the Orcs have taken them. I think they are not dead. Orcs bound them.39。 His glance strayed to his fallen enemies。 he said. 39。 his horn cloven in two was at his side. Many Orcs lay slain, piled all about him and at his feet. Aragorn knelt beside him. Boromir opened his eyes and strove to speak. At last slow words came. 39。 and as he turned to the left and ran towards them they retreated, until at last he could hear them no more. Drawing his bright sword and crying _Elendil! Elendil!_ he crashed through the trees. A mile, maybe, from Parth Galen in a little glade not far from the la ke he found Boromir. He was sitting with his back to a great tree, as if he was resting. But Aragorn saw that he was pierced with many blackfeathered arrows。 在此,我們首先要向各位領(lǐng)導(dǎo),老師致以最衷心的謝意!我們特別要感謝的是我們的畢業(yè)設(shè)計(jì)指導(dǎo)老師―王奉元老師和張冬梅老師,不辭辛苦的指導(dǎo)我們,啟發(fā)我們,幫助我們查找資料,為我們解答疑惑!在這里請(qǐng)讓我們懷著最大的誠(chéng)意道一聲“您辛苦了,衷心地謝謝您!” ,感謝電子信息系的全體老師和同學(xué)多年來(lái)的關(guān)心和支持! 第四章 系統(tǒng)實(shí)現(xiàn)與驗(yàn)證 32 r, but fainter now and desperately the horn was blow ing. Fierce and shrill rose the yells of the Orcs, and suddenly the horncalls ceased. Aragorn raced down the last slope, but before he could reach the hill39。這次畢業(yè)設(shè)計(jì)是對(duì)我們大學(xué)學(xué)習(xí)成果的考驗(yàn)和總結(jié),是我們實(shí)現(xiàn)理想之前的一次實(shí)戰(zhàn),一次磨練,一次提高。雖然面臨的信息很多,但是如何從大量的信息中篩選出所需的信息,有用的信息,才是解決問(wèn)題的關(guān)鍵。系統(tǒng)還原上也出現(xiàn)問(wèn)題,由于系統(tǒng)正在使用,還原會(huì)出現(xiàn)排它訪問(wèn),導(dǎo)致不能進(jìn)行還原,這就必修斷開(kāi)與數(shù)據(jù)庫(kù)的連結(jié),到 master 數(shù)據(jù)庫(kù)中進(jìn)行還原,需要?dú)⑺老到y(tǒng)所在數(shù)據(jù)庫(kù)的進(jìn)程號(hào),另外在網(wǎng)頁(yè)中腳本代碼與 html 代碼之間的關(guān)系上都有過(guò)很大的困難,通過(guò)在網(wǎng)上尋找有關(guān)資料以及 同學(xué)的幫助下最后都得到了解決。 由于在此之前對(duì)于 和網(wǎng)頁(yè)知識(shí)的了解太少,從書(shū)本上學(xué)到的知識(shí)有限,所以從一開(kāi)始就碰到許多困難。 結(jié)論 29 結(jié)論 通過(guò)最后兩個(gè)多月的畢業(yè)設(shè)計(jì),我對(duì)使用 開(kāi)發(fā)頁(yè)面的能力有了很大提高。 4)所有基本表的設(shè)計(jì)均應(yīng)盡量符合第三范式。鍵是表間連接的工具,主鍵越少,表間的連接就越簡(jiǎn)單。要設(shè)計(jì)出一個(gè)好的管理系統(tǒng)數(shù)據(jù)庫(kù),除滿足系統(tǒng)所要求的功能外,還必須遵守下列原則: 1)基本表的個(gè)數(shù)越少越好。 系統(tǒng)所涉及的數(shù)據(jù)庫(kù)設(shè)計(jì)的重要步驟加載測(cè)試。我們?cè)诒鞠到y(tǒng)的測(cè)試中使用了黑盒法(即不關(guān)心程序內(nèi)部的邏輯結(jié)構(gòu),而是根據(jù)程序的功能來(lái)設(shè)計(jì)檢測(cè))請(qǐng)一位不熟悉本系統(tǒng)的人來(lái)進(jìn)行隨意性的操作,打破習(xí)慣的操作順序,從中發(fā)現(xiàn)錯(cuò)誤,在此階段系統(tǒng)的大量錯(cuò)誤得到了改正。反之,返回零 End If End Sub End Class 系統(tǒng)驗(yàn)證 第四章 系統(tǒng)實(shí)現(xiàn)與驗(yàn)證 27 系統(tǒng)運(yùn)行環(huán)境 PC 機(jī)一臺(tái) 1)以 Windows NT/2020 Server/XP 作為學(xué)生選課管理系統(tǒng)的后臺(tái)操作系統(tǒng) 2)前臺(tái)開(kāi)發(fā)軟件為 、 、 、 SQL Server 2020 3)后臺(tái)數(shù)據(jù)庫(kù)系統(tǒng)采用 SQL Server 2020 系統(tǒng)的驗(yàn)證 表 學(xué)生登錄驗(yàn)證 測(cè)試用例 用例描述 預(yù)期結(jié)果 實(shí)際結(jié)果 1 0001, 0001 存在 登陸成功 成功 2 0001, 0005 不存在 不成功 不成功 表 刪除課程信息 驗(yàn)證 測(cè)試用例 用例描述 預(yù)期結(jié)果 實(shí)際結(jié)果 1 0001 存在 刪除成功 成功 2 005 不存在 不成功 不成功 表 添加教師信息 驗(yàn)證 測(cè)試用例 用例描述 預(yù)期結(jié)果 實(shí)際結(jié)果 1 0006, 0006,子哈,女, 不存在 添加成功 成功 第四章 系統(tǒng)實(shí)現(xiàn)與驗(yàn)證 28 0001,教授,研究生 2 0001, 0001,含笑 ,女,0001,教授,研究生 存在 不成功 不成功 表 修改課程信息 驗(yàn)證 測(cè)試用例 用例描述 預(yù)期結(jié)果 實(shí)際結(jié)果 1 0001,英語(yǔ) 存在 修改成功 成功 2 003 不存在 不成功 不成功 在模塊的建立時(shí),很多時(shí)候發(fā)現(xiàn)功能不能正常運(yùn)行,在檢查完程序語(yǔ)句的結(jié)構(gòu)之后,發(fā)現(xiàn)并沒(méi)有錯(cuò)誤,于是在檢查頁(yè)面與頁(yè)面交互時(shí)發(fā)現(xiàn)了問(wèn)題,很多地方傳遞的參數(shù)并沒(méi)有真正的執(zhí)行,還有些地方?jīng)]有進(jìn)行參數(shù)的設(shè)置,才導(dǎo)致了程序的錯(cuò)誤。清空已有表 () End If retok = 0 () (ds) () If 0 Then If (0). 0 Then retok = 1 39。加入?yún)?shù) For Each myDE In para (, ) Next myDE () 39。uid=csf。出錯(cuò)返回 Nothing Public Sub runproc(ByVal procNAME As String, Optional ByVal master As Boolean = False) Dim db As String If master Then db = master Else db = cc End If Dim conn As New SqlConnection(server=.。使用 sql 訪問(wèn)數(shù)據(jù)庫(kù)的對(duì)象 Public Shared ds As New Public retok As Boolean 39。 類的使用 在 OOP(面向?qū)ο蟮木幊蹋┲?,類定義一類對(duì)象 ,通過(guò)將大量邏輯添加到自定義類中,不僅能使代碼更易于重復(fù)使用,還可以擴(kuò)展現(xiàn)有的類,添加新的功能或修改現(xiàn)有的功能。 + CAST(spid AS char(10)) EXEC(sql) FETCH NEXT FROM deluser INTO spid end CLOSE deluser DEALLOCATE deluser restore database cc from bf if error=0 select 39。) OPEN deluser FETCH NEXT FROM deluser INTO spid WHILE FETCH_STATUS != 1 begin 第四章 系統(tǒng)實(shí)現(xiàn)與驗(yàn)證 25 SET sql = 39。 下面是登陸時(shí)調(diào)用的存儲(chǔ)過(guò)程: CREATE proc login 第四章 系統(tǒng)實(shí)現(xiàn)與驗(yàn)證 24 user char(10),pwd char(10),type int=0 as if type=0 begin select * from 學(xué)生信息 as b where =user and =pwd end if type=1 begin select * from 教師信息 as b where =user and =pwd end if type=2 begin select * from 管理員信息 as b where =user and =pwd end 下面是還原時(shí)調(diào)用的存儲(chǔ)過(guò)程: CREATE PROCEDURE hy AS DECLARE spid smallint DECLARE sql char(10) DECLARE deluser CURSOR FAST_FORWARD FOR SELECT spid FROM sysprocesses as p where dbid in (select from sysdatabases as s where =39。顯示班級(jí)名 = (0).Columns(0).ToString 39。 第四章 系統(tǒng)實(shí)現(xiàn)與驗(yàn)證 22 圖 管理員登錄成功界面 1)還原 的 LinkButton_Click 中添加代碼 (hy, True) If Then () Else () End If 2) 中的代碼如下 page_load 中的代碼 (grade) If Then = (0) 39。 第四章 系統(tǒng)實(shí)現(xiàn)與驗(yàn)證 21 圖 教師登錄成功界面 管理員模塊功能 管理員登陸成功后,界面如圖 所示,重新