【正文】
case JSJ: dt = (select * from 成績 where 考試證件號碼 like 39。 and 考試類型 =39。)。 break。% + + %39。四六級 39。 = 大學(xué)英語四六級成績查詢 。 case ZJB: dt = (select * from 成績 where 考試證件號碼 like 39。 and 考 試類型 =39。 )。 break。如圖: 圖 期末考試成績查詢 相關(guān)代碼如下: protected void initGrid() { DataTable dt = new DataTable()。% + + %39。% + + %39。 if ( 1) { (())。 ()。如圖: 圖 空閑教室查詢 相關(guān)代碼如下: protected void initGrid() { DataTable dt = new DataTable()。++39。++39。 if ( 1) { (())。 ()。 其他課程查詢的模塊于此類似,不一一闡述了。 dt = (SELECT * FROM 教室課程 INNER JOIN 教室 ON 教室課程 .教室代碼 = 教室 .教室代碼 INNER JOIN 分配課程 ON 教室課程 .班級課程代碼 = 分配課程 .班級課程代碼 where 教室名稱 like 39。 )。 } = 。 } 六、測試 測試是系統(tǒng)開發(fā)時期最后一個階段,是保證軟件質(zhì)量的重要手段。軟件測試過程中應(yīng)該故意地去促使錯誤的發(fā)生 ,也就是事情在不該出現(xiàn)的時候出現(xiàn)或者在應(yīng)該出現(xiàn)的時候沒有出現(xiàn)。 28 (一)測試的概述 測試的概念及意義 測試的定義:程序測試是為了發(fā)現(xiàn)錯誤而執(zhí)行程序的過程。 另一個預(yù)測是相關(guān)的術(shù)語叫糾錯 (Debugging)。測試與糾錯的關(guān)系,可以用圖 61 的數(shù)據(jù)流圖來說明。通常把一次程序執(zhí)行需要的測試數(shù)據(jù),稱為一個 “測試用例 (Test Case)。如果它與 “期望結(jié)果 ”不想符合,便說明程序中存在錯誤,需要用糾錯來改正。為了解決這場 危機(jī),軟件從業(yè)人員、專家和學(xué)者做出了大量的努力。有錯是軟件的屬性,而且是無法改變的,因?yàn)檐浖怯扇藖硗瓿傻?,所有由人做的工作都不會是完美無缺的。 測試的特性 ( 1) 挑剔性 測試是為了證明程序有錯,而不是證明程序無錯。只有抱著 程序有錯的目的去測試,才能八成序中潛在的大部分錯誤找出來。設(shè)計(jì)測試用力是一項(xiàng)需要細(xì)致和高度技巧的高能工作,稍有不慎就會顧此失彼,發(fā)生不應(yīng)用得數(shù)樓。 ( 4) 經(jīng)濟(jì)性 通場這種測試稱為 “選擇測試( Selective Testing) ”。 測試的重要性及范圍 軟件測試在軟件生命周期中占據(jù)重要的地位,在傳統(tǒng)的瀑布模型 中,軟件測試學(xué)僅處于運(yùn)行維護(hù)階段之前,是軟件產(chǎn)品交付用戶使用之前保證軟件質(zhì)量的重要手段。 事實(shí)上,對于軟件來講,不論采用什么技術(shù)和什么方法,軟件中仍然會有錯。測試是所有工程學(xué)科的基本組成單元,是軟件開發(fā)的重要部分。統(tǒng)計(jì)表明,在典型的軟件開發(fā)項(xiàng)目中,軟件測試工作量往往占軟件開發(fā)總工作量的 40%以上。如果把維護(hù)階段也考慮在內(nèi),討論整個軟件生存期時,測試的成本比例也許會有所降低,但實(shí)際上維護(hù)工作相當(dāng)于二次開發(fā),乃至多次開發(fā),其中必定還包含有許多測試工作。 (二)系統(tǒng)測試 系統(tǒng)測試的方法, 測試在軟件開發(fā)過程中一直都是備受關(guān)注的,即使在傳統(tǒng)的軟件工程中,也有一個明確、獨(dú)立的測試階段。測試已經(jīng)不僅僅局限于 系統(tǒng) 開發(fā)中的一個階段,它已經(jīng)開始貫穿于整個 系統(tǒng) 開發(fā)過程,人們已經(jīng)開始認(rèn)識到:測試開始的時間越早,測試執(zhí)行的越頻繁,所帶來的整個軟件開發(fā)成本的下降就會越多。 為了使本軟件運(yùn)行更加穩(wěn)定,我對它進(jìn)行了全面的測試,測試分為二部分來進(jìn)行,一是:界面測試;二是功能測試。我把完整程序拷貝到 Windows XP Profressional SP2 環(huán)境下,程序運(yùn)行界面正常,界面上的字體等設(shè)置都保持得相當(dāng)好。 本系統(tǒng)測試采用了黑盒測試 的方法。至此,在功能的測試上也已經(jīng)比較圓滿的完成了。 在幾個月的系統(tǒng)開發(fā)和論文撰寫過程中,通過查閱、研究大量的相關(guān)文獻(xiàn),分析相關(guān)領(lǐng)域的特色網(wǎng)站并結(jié)合實(shí)際,論文先論述了 教務(wù)系統(tǒng) 方面的理論知識,包括對它的定義,內(nèi)涵,特點(diǎn),功能,技術(shù)等方面的研究。 通過與數(shù)據(jù)庫的連接,完 成了 系統(tǒng) 管理功能,運(yùn)行本操作系統(tǒng)實(shí)現(xiàn)了 管理員維護(hù)各種教務(wù)信息,其他人員登陸系統(tǒng)后查詢自己需要的教務(wù)信息 。另外通過 C#腳本語言實(shí)現(xiàn)對網(wǎng)站的動態(tài)連接。 31 參考文獻(xiàn) [1] DUSAN PETKOVIC. SQL Server 2021 基礎(chǔ)教程 [M].清華大學(xué)出版社 . [2] 黃梯云 . SQL Server 2021 實(shí)用教程 [M].人民郵電出版社 . [3] 孫永強(qiáng) 戴鋒 陳宗斌 . Visual C .NET程序設(shè)計(jì)基礎(chǔ) [M].清華大學(xué)出版社 ,2021. [4] [英 ]夏普 . Visual C2021從入門到精通 [M].周靖 譯 .清華大學(xué)出版社 ,2021. [5] [英 ]費(fèi)森 . Visual C基于組件的開發(fā) [M].戰(zhàn)曉蘇 譯 .清華大學(xué)出版社 ,2021. [6] 李律松 馬傳寶 李婷 . Visual C+SQL Server 數(shù)據(jù)庫開發(fā)與實(shí)例 [M].清華大學(xué)出版社 ,2021. [7] Karli Watson .C 入門經(jīng)典 [M].康博 譯 .清華大學(xué)出版社 ,2021. [8] Jones[美 ]. C從入門到精通 [M]. 電子工業(yè)出版社 ,2021. [9] 霍夫曼 (Hoffman K.) [美 ] 科魯格 (Kruger L.)[美 ]. C.NET技術(shù)內(nèi)幕 [M].董梁 高猛 譯 .清華大學(xué)出版社, 2021. [10] 羅會濤 .精通 MS SQL [M].電子工業(yè)出版社 ,2021. [11] 范國平 陳曉鵬 .SQL 數(shù)據(jù)庫 系統(tǒng)開發(fā)實(shí)例導(dǎo)航 [M].人民郵電出版社 ,2021. [12] 李曉哲 張曉輝 李祥勝 .SQL Server 2021 管理及應(yīng)用系統(tǒng)開發(fā) [M].人民郵電出版社 . [13] Jason Prince amp。他耐心、詳細(xì)、實(shí)際的指導(dǎo)給我了許多計(jì)算機(jī)方面專業(yè)知識,他豐富的學(xué)識使我受益匪淺,他對我的畢業(yè)設(shè)計(jì)給予了很多建議和意見,給了我極大的幫助、鼓勵和關(guān)懷,在此向他表示深深的謝意。 通過 進(jìn)行畢業(yè)設(shè)計(jì)使我綜合運(yùn)用所學(xué)的基礎(chǔ)理論、專業(yè)知識和基本技能,提高分析與解決實(shí)際問題的能力,也培養(yǎng)了我的創(chuàng)新精神和實(shí)踐能力 。 最后,再次對關(guān)心、幫助我的老師和同學(xué)表示衷心地感謝! 33 he new army slippers. How nice my handkerchiefs look, don39。s gone and put `Mother39。. How funny! cried Jo, taking one up. Isn39。s initials are ., and I don39。, looking troubled. It39。s Mother. Hide the basket, quick! cried Jo, as a door slammed and steps sounded in the hall. Amy came in hastily, and looked rather abashed when she saw her sisters all waiting for her. Where have you been, and what are you hiding behind you? asked Meg, surprised to see, by her hood and cloak, that lazy Amy had been out so early. Don39。t mean anyone should know till the time came. I only meant to change the little bottle for a big one, and I gave all my money to get it, and I39。, while Beth ran to the window, and picked her finest rose to ornament the stately bottle. You see I felt ashamed of my present, after reading and talking about being good this morning, so I ran round the corner and changed it the minute I was up, and I39。m glad you began at once, and hope you will keep on. But I want to say one word before we sit down. Not far away from here lies a poor woman with a little newborn baby. Six children are huddled into one bed to keep from freezing, for they have no fire. There is nothing to eat over there, and the oldest boy came to tell me they were suffering hunger and cold. My girls, will you give them your breakfast as a Christmas present? They were all unusually hungry, having waited nearly an hour, and for a minute no one spoke, only a minute, for Jo exclaimed impetuously, I39。d do it, said Mrs. March, smiling as if satisfied. You shall all go and help me, and when we e back we will have bread and milk for breakfast, and make it up at dinnertime. They were soon ready, and the procession set out. Fortunately it was early, and they went through back streets, so few people saw them, and no one laughed at the queer party. A poor, bare, miserable room it was, with broken windows, no fire, ragged bedclothes, a sick mother, wailing baby, and a group of pale, hungry children cuddled under one old quilt, trying to keep warm. How the big eyes stared and the blue lips smiled as the girls went in. Ach, mein Gott! It is good angels e to us! said the poor woman, crying for joy. Funny angels in hoods and mittens, said Jo, and set them to laughing. In a few minutes it really did seem as if kind spirits had been at wor k there. Hannah, who had carried wood, made a fire, and stopped up the broken panes with old hats and her own cloa k. Mrs. March gave the mother tea and gruel, and forted her with promises of help, while she dressed the li