【正文】
以使用原有的設(shè)備,軟件上,操作系統(tǒng)采用 Windows 系列操作系統(tǒng),數(shù)據(jù)庫管理系統(tǒng)采用 ASP,這些軟件在 MIS 開發(fā)中已被大量應(yīng)用,技術(shù)上都比較成熟。 您可以開發(fā)自己用的 ASP 應(yīng)用程序,或在一個運(yùn)行 Windows NT Server 的計算機(jī)上展開應(yīng)用程序。 如果您是位 HTML 編寫人員,您將發(fā)現(xiàn) ASP 腳本提供了創(chuàng)建交互頁的簡便方法。只要安裝了符合 ActiveX 腳本標(biāo)準(zhǔn)的相應(yīng)腳本引擎,就可以在 ASP 頁中使用任何一種腳本語言。通過創(chuàng)建自己的 ActiveX 組件,可以將應(yīng)用程序中的商業(yè)邏輯封裝到能夠從腳本、其他組件或從其他程序中調(diào)用的模塊。比如 “select * from 數(shù)據(jù)表名 ” 代表要從某個數(shù)據(jù)表中取出全部數(shù)據(jù),在 Oracle 9i、 SQL Server 20 Foxpro 等關(guān)系型數(shù)據(jù)庫中都可以使用這條語句。在 SQLPlus Worksheet 環(huán)境下可以單獨使用的 SQL 語句,幾乎可以不加修改地嵌入到如 VB、 PB 這樣的前端開發(fā)平臺上,利用前端工具的計算能力和 SQL 的數(shù)據(jù)庫操縱能力,可以快速建立數(shù)據(jù)庫應(yīng)用程序。我們便是以此為畢業(yè)設(shè)計的內(nèi)容,來綜合運(yùn)用所學(xué)知識,鍛煉和提高自己實際操作運(yùn)用的能力的,于是一個功能較完備的圖書管理系統(tǒng)便設(shè)計出了。 1. 性能需求:該系統(tǒng)中,管理員模塊只有管理人員才能對其進(jìn)行操作,一般的注冊用戶無權(quán)操作,系統(tǒng)管理人員要進(jìn)行身分驗證才能進(jìn)入界面操作。特別是在項目確定后對 ASP 和網(wǎng)的強(qiáng)化學(xué)習(xí),使本系統(tǒng)成功開發(fā)成為可能。 以現(xiàn)有的人力和時間來衡量,我們只有放棄。所以設(shè)計中要先設(shè)計框架結(jié)構(gòu),再進(jìn)行程序編碼。 這里先介紹數(shù)據(jù)表 Reader,該表用來記錄讀者個人信息 。 程序被調(diào)用后,先判斷輸出入的信息是否為空,為空則光標(biāo)定位于第一個輸入項目,并赤示信息。 加入新成員是通過 AddNewMember 方法來實現(xiàn)的,這個方法是注冊模塊的中心,也比較復(fù)雜,其結(jié)構(gòu)如圖所示。響應(yīng)時間,處理時間均比較短暫。 下面是所需創(chuàng)建的文件: 提交查詢條件用 HTML 表單完成,需創(chuàng)建文件 。該文件由 Form表單和輸入合法性檢查兩部分構(gòu)成。執(zhí)行查詢并返回結(jié)果由 ASP 文件完成,需創(chuàng)建 ReaderQuery. Asp 文件。 表:記錄讀者的個人信息 表:記錄圖書信息 表:記錄讀者對圖書的借閱信息,哪位讀者在什么時間借閱了哪本圖書。 從慢慢的了解本次軟件的開發(fā)到本軟件的成功完成,我們遇到了不少問題,也學(xué)會了一些解決問題的辦法。他 無論在理論上還是在實踐中,都給與我很大的幫助,使我得到不少的提高這對于我以后的工作和學(xué)習(xí)都有一種巨大的幫助,感謝他耐心的輔導(dǎo)。PWD= SQLstr=select * from Reader where Readerid=39。: AdjustedStr=AdjustedStr amp。Readeridamp。 br 錯誤信息: amp。s room. Then followed the worst wait of all. Mary said afterwards that he hummed and ha39。 so far, nobody had thought of looking there for me. It was simply a matter of putting in half an hour or so. Normally the room was very convenient, though just at present its use required caution because the wattle wall between the rooms was cracked and I had to move very cautiously on tiptoe lest my mother should hear me. On that particular day I was just thinking that I had allowed nearly enough time for people to be busy again when a twowheeled trap drove up. As it passed the w indow I had a glimpse of my Aunt Harriet holding the reins. I had only seen her some eight or nine times, for she lived fifteen miles away in the Kentak direction, but what I knew of he r I liked. She was some three years younger than my mother. Superficially they were not dissimilar, and yet, in Aunt Harriet each feature had been a little softened, so that the effect of them all together was differe nt. I used to feel when I looked a t her that I was seeing my mother as she might have been — as, I thought, I would have liked her to be. She was easier to talk to, too。 39。 There was a pause. Presently she added: 39。 39。 39。 Harriet, let me see that child — properly.39。You have the effrontery to bring your monster into my house, and tell me it39。 No wonder you didn39。 Aunt Harriet39。s nothing much.39。Harriet!39。t know what to do. Then when I heard your baby had e early and was a girl, too, it was like God answering a prayer.39。t she a lovely darling?39。s tone, 39。s voice exclaimed in surprise, and not altogether in approval. 39。s bed. She looked so pink and wrinkled to me that I did not see how the inspector could have been quite sure about her. How ever, there was nothing obviously wrong with her, so she had got her certificate. Nobody could blame the inspector for that。 br Else (hrh1) (center注冊成功 p) (/center) (/h1hr) End if End Sub /script Readerregister % language=vbscript % ! include file= html head title讀者注冊 /title /head body % call Register() % ! include file= /body /html html head title圖書歸還 /title /head script language=vbscript ! function datacheck if (=empty) or (=Empty) then focusto(0) msgbox輸同時輸入注冊 ID 和注冊姓名! ,64,請重新輸入 exit function else end if end function Sub focusto(x) (x).focus() end Sub /script body centerfont face=隸書 size=7 color=green圖書管理系統(tǒng) /font/center centerfont color=green之 /font/center centerfont face=華文彩云 size=6 color=green讀者注冊 /font hr /center p font size=4請輸入注冊信息:注冊 font color=red size=6號即讀者編號,可以是 6 個字母數(shù)字組合或者是 3 個字符的漢字,請務(wù)必記住。Readernameamp。AddNewMember 函數(shù)用于添加新用戶 Sub AddNewMember() Dim Readername,Readerid Dim SQLstr On Error Resume Next Readername=(Readername) Readerid=(Readerid) Readername=AdjustedForSQL(Readername) ReaderId=AdjustedForSQL(ReaderId) Set Myconn=() DSN=Book_asp_Data。 Set MyRds=(SQLstr) If then IsAlreadyRegistered=False Else IsAlreadyRegistered=true end if end function 39。 參考文獻(xiàn) [1] 王國榮,張寶剛. ASP 網(wǎng)頁制作教程 [M].北京:人民郵電出版社, 2020 年 [2] 鄭學(xué)堅,周斌.微型計算機(jī)應(yīng)用及原理 [M].北京:清華大學(xué)出版社, 2020年 [3] 謝希仁.計算機(jī)網(wǎng)絡(luò) [M].大連:大連理工大學(xué)出版社, 2020 年 [4] 卡通動畫工作室. Flash 5 事例與操作 [M].北京:中國青年社出版, 2020年 [5] 老虎工作室. Authorware 5 多媒體制作實例詳解 [M].北京:人民郵電出版社, 2020 年 [6] 閃四清.?dāng)?shù)據(jù)庫系統(tǒng) 原理與應(yīng)用教程 [M].北京:清華大學(xué)出版社, 2020 年 [7] Bill Wit .網(wǎng)站訪問量統(tǒng)計教程 [M].北京: 清華大學(xué)出版社, 2020 年 [8] 劉浩.在 NT 網(wǎng)中組建自己的 Web 站點 [M].北京: 人民郵電出版社, 2020年 [9] 閃四清 .完全掌握 SQL Server2020[M].北京:人民郵電出版社, 2020 年 [10] John Chirillo。同時也因為時間的短暫本系統(tǒng)還存在一些缺陷和其他我們沒有發(fā)現(xiàn)的錯誤,還請用戶提出寶貴意見。 Read_book Readerid Bookno Brrowdat Book Bookno Bookname Bookautus Bookstatus Reader Readerid Readername 6 結(jié)束語 隨著計算機(jī)技術(shù)的不斷發(fā)展,用計算機(jī)代替人工進(jìn)行各種各樣的管理慢慢變?yōu)楝F(xiàn)實,從而對人才綜合素質(zhì)的要求也就越來越高。 3 借書模塊 重點在 ,該文件的結(jié)構(gòu)如下 : 提取 Form 字段 SQL 數(shù)據(jù)庫操作 操作是否成功 顯示失敗信息 是否查詢到 顯示未查到信息 顯示結(jié)果信息 查詢結(jié)束 圖書借閱 Output_book 提取 Form 字段 字符轉(zhuǎn)換 是否為本館讀者 是 否 是 否 是 該文件的結(jié)構(gòu)復(fù)雜 ,從圖中可以看出 ,運(yùn)用了多個條件判斷 .每個條件判斷結(jié)果如果為假 ,則顯示響應(yīng)的信息后結(jié)束 。 文件實現(xiàn)了查詢的主要部分,其主調(diào)函數(shù)為 output_book,結(jié)構(gòu)如圖下: