【正文】
9。)。_ (39。?sort_id=amp。sort_idamp。39。)。/Script end If 分類刪除 刪除操作也是在 文件中執(zhí)行的。在 文件中,如果讀取 action 的值為 delete,則執(zhí)行刪除操作,在代碼中,首先讀取 id 和 sort_id 的值,然后執(zhí)行 del()過程將所有相關分類刪除,最后根據 sort_id 的值將頁面轉到 相關頁。其中 del()過程是一個遞歸過程,其基本思想是:首先判斷改分類的下級分類,對每一個下級分類,如果是,則直接刪除改分類,完成操作。如果不是最下級分類,則查詢該分類的下級分類,對每一下級分類,執(zhí)行與該分類同樣的操作,即首先根據情況處理。最后直到所有的下級分類以及下下級分類等都刪除掉,然后再將改分類刪除。 del()的具體代碼如下: Function Del(sort_id,id) Set drs = () Select * from sort where sort_id=amp。id,conn,1,3 If or Then 39。不存在滿足條件的記錄,即該分類是最下級分類 (delete * from sort where ID=amp。id) 39。刪除該分類 Exit Function 39。跳出 Function 過程 Else 39。還存在下級分類 Do While Not 39。循環(huán)處理每一個下級分類 nid = drs(id) 39。下級分類的 id Del id,nid 39。刪除該下級分類 39。 指向下一條記錄 第 20 頁 共 23頁 Loop End If 39。關閉 RecordSet 對象 Set drs = nothing (delete * from sort where id=amp。id) 39。刪除該分類 End Function 6 系統(tǒng)性能測試 系統(tǒng)測試環(huán)境 本系統(tǒng)測試環(huán)境: CPU intel(R),內存 SDRAM 256M, WIN2020/XP,2020 下均測試通過。 測試結果 在系統(tǒng)的各個模塊設計完成之后,需要對整個系統(tǒng)進行全面的測試。目的是讓整個系 統(tǒng)能夠快速、穩(wěn)定、安全的運行。在進行系統(tǒng)測試過程中會出現如下幾種情況: 1.管理員能準確無誤的對數據庫進行修改。 2.客戶能順利的進行查詢、登錄和修改。 3.管理員和客戶都能進行基本信息的修改。 4.可以安全退出系統(tǒng)。 5. 權限控制,通過 session 會話變量對管理員和用戶的權限進行控制。 6. 頁面的編碼方式不同,需要的對字符串進行轉碼操作。 結 論 通過此次課題的設計,我們深刻感覺到代碼重用和合理建庫的重要性。代碼重用是近年來軟件工程領域一直提倡的開發(fā)方法。同時,在開發(fā)過程中要注意 質量管理,否則開發(fā)工作一旦進行到后期,無論怎樣通過測試和補漏洞,都會無濟于事。編碼的錯誤容易查出,但設計的錯誤如果帶到編碼階段就會使錯誤逐步擴大,最終很可能造成嚴重的后果。所以應編寫一些公共的類的方法,提供統(tǒng)一的數據讀寫方法,以降低代碼重用率。 文章首先介紹了搜索引擎的發(fā)展動向,然后對該系統(tǒng)所采用的技術以及數據庫的設計作了詳細的分析和說明。 然后再 深入剖析該系統(tǒng)各功能模塊的詳細設計思路。 在論文的最后,建立了測試系統(tǒng),并根據系統(tǒng)的要求,對實現的功能進行 第 21 頁 共 23頁 了測試。該系統(tǒng) 操作簡單,通用性強,可以滿足用戶對信息搜索的需 要。并且對用戶設定了網站的管理權限。普通用戶不需要登錄便可使用搜索功能。 但是系統(tǒng)還有如下工作需要進一步研究: (1)數據庫的大小與搜索性能的關系 。目前并沒對數據庫的設計做優(yōu)化處理。檢索速度的快慢會隨著數據庫的增大而變慢。 因此下一步將對數據庫的優(yōu)化作進一步的研究。 (2)搜索功能缺乏人性化。目前比較流行的搜索引擎,如 “百渡 ”和 “谷歌 ”,都有自己獨特的中文分詞算法和強大的中文分詞庫。對用戶輸入的關鍵字再進行分詞,才體現出現代搜索引擎的人性化特點。因此下一步還要對中文分詞的功能作進一步研究。 參考文獻 [1] 張海藩 .軟件工程導論 [M].北京:清華大學出版社, 1999 [2] 方睿,刁仁宏,吳四九 . 網絡數據庫原理及應用 [M]四川:四川大學出版社 [3] 鄧文淵 .,陳惠貞 . ASP 與網絡數據庫技術 [M].北京:中國鐵道出版社, 2020 [4] 吳濤 .網站全程設計技術 [J].北京:清華大學出版社, 2020。 [5] 周楓,劉曉燕,李秀敏,李丹 .軟件工程 [J].重慶:重慶大學出版社, 1998 [6] 尹喆,馮碼,賈志博 . Visual Basic 數據庫編程寶典譯 [M].北京:電子工業(yè)出版社, 1998 [7] 石志國 . ASP 精解案例教程 [M]. 北方交通大學出版社, 2020 第 22 頁 共 23頁 致 謝 本文是在王翔老師的熱情關心和指導下完成的,他淵博的知識和嚴謹的治學作風使我受益匪淺,對順利完成本課題起到了極大的作用。在此向他表示我最衷心的感謝! 在論文完成過程中,本人還得到了其他老師和許多同學的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評審本文的各位專家、老師表示衷心的感謝! 作者簡介 姓 名: 王海鈺 性別:男 出生年月: 19831101 民族:漢 Email: 第 23 頁 共 23頁 聲 明 本論文的工作是 2020 年 2 月至 2020 年 7 月在成都信息工程學院網絡工程系完成的。文中除了特別加以標注地方外,不包含他人已經發(fā)表或撰寫過的研究成果,也不包含為獲得成都信息工程學院或其他教學機構的學位或證書 而使用過的材料。除非另有說明,本文的工作是原始性工作。 關于學位論文使用權和研究成果知識產權的說明: 本人完全了解成都信息工程學院有關保管使用學位論文的規(guī)定,其中包括: ( 1)學校有權保管并向有關部門遞交學位論文的原件與復印件。 ( 2)學??梢圆捎糜坝?、縮印或其他復制方式保存學位論文。 ( 3)學??梢詫W術交流為目的復制、贈送和交換學位論文。 ( 4)學??稍试S學位論文被查閱或借閱。 ( 5)學校可以公布學位論文的全部或部分內容(保密學位論文在解密后遵守此規(guī)定)。 除非另有科研合同和其他法律文書的制約,本論文的科 研成果屬于成都信息工程學院。 特此聲明! 作者簽名: 2020 年 07 月 25 日 第 24 頁 共 23頁 veother case beincurable. If any one convict in a court of law a stranger or aslave of a theft of public property, let the court determine whatpunishment he sha ll suffer, or what penalty he shall pay, bearing inmind that he is probably not incurable. But the citizen w ho has beenbrought up as our citizens w ill have been, if he be fou nd guilty ofrobbing his country by fraud sold anyadulterated goods, in addition to losing the goods themselves, shallbe beaten with stripesa stripe for a drachma, according to theprice of the goods。 and the herald shall proclaim in the agora theoffence for which he is going to be beaten. The warden of the agoraand the guardians of the law shall obtain information from experiencedpersons about the rogueries and adul terations of the sellers, andshall write up what the seller ought and ought not to do in each case。and let them inscribe their laws on a column in front of the courtof the wardens of the agora, that they may be clear instructors ofthose who have business in the agora. Enough has been said in what haspreceded about the wardens of the city, and if anything seems to bewanting, let them municate with the guardians of the law, and writedow n the omission, and place on a column in the court of the wardensof the city the primary and secondary regulations which are laiddown for them about their office. After the practices of adulteration naturally follow the practicesof retail trade. Concerning these, we will first of all give a word ofcounsel and reason, and the law shall e afterwards. Retail trade ina city is not by nature intended to do any harm, but quite thecontrary。 for is not he a benefactor who reduces the inequalitiesand inmensurabilities of goods to equality and mon measure?And this is what the power of money acplishes, and the merchant maybe said to be appointed for this purpose. The hireling and thetavernke eper, and many other occupations, some of them more andothers less seemly alike have this object。they seek to satisfy ourneeds and equalize our possessions. Let us then endeavour to seewhat has brought retail trade into il lodour, and wherein, lies thedishonour and unseemliness of it, in order that if not entirely, wemay yet partially, cure the evil by legislation. To effect this isno easy matter, and requires a great deal of virtue. Cleinias. What do you mean? Athenian Stranger. Dear Cleinias, the class of men is smalltheymust have been rarely gifted by nature, and trained