【正文】
they were now driven to seek the means of subsistence elsewhere, and they waited sadly to bid farewell to the engineer. James Starr stood upright, at the door of the vast shed in which he had for so many years superintended the powerful machines of the shaft. Simon Ford, the foreman of the Dochart pit, then fiftyfive years of age, and other managers and overseers, surrounded him. James Starr took off his hat. The miners, cap in hand, kept a profound silence. This farewell scene was of a touching character, not wanting in grandeur. My friends, said the engineer, the time has e for us to 第 25 頁 共 23 頁 separate. The Aberfoyle mines, which for so many years have united us in a mon work, are now exhausted. All our researches have not led to the discovery of a new vein, and the last block of coal has just been extracted from the Dochart pit. And in confirmation of his words, James Starr pointed to a lump of coal which had been kept at the bottom of a basket. This piece of coal, my friends, resumed James Starr, is like the last drop of blood which has flowed through the veins of the mine! We shall keep it, as the first fragment of coal is kept, which was extracted a hundred and fifty years ago from the bearings of Aberfoyle. Between these two pieces, how many generations of workmen have succeeded each other in our pits! Now, it is over! The last words which your engineer will address to you are a farewell. You have lived in this mine, which your hands have emptied. The work has been hard, but not without profit for you. Our great family mustrent pits came forward to shake hands with him, whilst the miners waved their caps, shouting, Farewell, James Starr, our master and our friend! This farewell would leave a lasting remembrance in all these honest hearts. Slowly and sadly the population quitted the yard. The black soil of the roads leading to the Dochart pit resounded for the last time to the tread of miners39。 hospital near Lake Placid, and was given shock treatments and released. He married his fianc 閑 , finished his education, and was set up in business in Ilium by his fatherinlaw. Ilium is a particularly good city for optometrists because the General Fe and Foundry Company is there. Every employee is required to own a pair of safety glasses, and to wear them in areas where manufacturing is going on. GFamp。 ( 4)學(xué)??稍试S學(xué)位論文被查閱或借閱。除非另有說明,本文的工作是原始性工作。 第 22 頁 共 23 頁 致 謝 本文是在劉永紅老師和韓斌老師的熱情關(guān)心和指導(dǎo)下完成的,他們淵博的知識和嚴謹?shù)闹螌W(xué)作風使我受益匪淺,對順利 完成本課題起到了極大的作用。 [4] Stephen 秘 (第二版 )[M].北京:中國電力 出版社 ,2021。 由于作者水平和經(jīng)驗所限,系統(tǒng)在設(shè)計開發(fā) 過程中難免出現(xiàn)錯誤,敬請 各位老師 批評指正。在本系統(tǒng)中,用到了不同的控件加載方法,控件作為一個個模塊用于信息顯示、功能導(dǎo)航等,可以實現(xiàn)整體的統(tǒng)一和代碼的重用。這些過程的討論和分析,讓大家對系統(tǒng)的體系結(jié)構(gòu) 、 功能模塊等有了更深 的了解 ,但系統(tǒng) 仍然 不夠完善 , 這些問題主要集中在系統(tǒng)的安全上,雖然系統(tǒng)已經(jīng)通過相關(guān)的控制語句對登 錄 用戶身份進行驗證,但是在當今網(wǎng)絡(luò)信息安全中,僅僅對用戶身份驗證是不夠的,還需要對傳送 的 數(shù)據(jù)進行加密,防止數(shù)據(jù) 在 傳輸過程中被篡改等攻擊。 ( 8)對字符串的格式進行轉(zhuǎn)換。 ( 4)對數(shù)據(jù)庫插入操作異常進行捕捉。在進行系統(tǒng)測試過程中會出現(xiàn)如下幾種情況: ( 1)對頁面提交過來的數(shù)據(jù)進行空指針異常捕捉 。 5 系統(tǒng)測試 測試環(huán)境 本系統(tǒng)測試環(huán)境: CPU PⅢ,內(nèi)存 128M 及以上, SQL SERVER 2021,WIN2021/XP/2021 下均測試通過。用戶信息管理包括添加用戶頁面( )、編輯用戶頁面( )和用戶列表( ),實現(xiàn)對用戶的添加、更新、刪除及查詢操作;角色權(quán)限管理則通過使用 DataGrid 對數(shù)據(jù)進行修改更新以及刪除等操作, AddBtn_Click()函數(shù)處理“添加”按鈕單 擊事件,實現(xiàn)添加用戶類別信息,將復(fù)選框中的信息轉(zhuǎn)換為對應(yīng)數(shù)據(jù)庫需要的信息,其主要處理代碼如下: Private Sub AddBtn_Click (ByVal sender As , ByVal e As ) Handles Dim sqlstr As String = insert into RoleInfo (RoleStyle, BookNum, BookDate, AllowBooking, IsBookManager, IsSysManager) values (“ sqlstr += 39。 當前 預(yù)約信息的主界面圖 圖 11 當前預(yù)約信息界面 歷史 預(yù)約信息的主界面圖 圖 12 歷史預(yù)約信息界面 第 18 頁 共 23 頁 圖書管理模塊的設(shè)計 功能描述 圖書管理模塊主要實現(xiàn)對圖書信息的 管理,包括了圖書添加頁面( )和圖書編輯頁面( )。已過期 39。失效 39。在 Page_Load()函數(shù)中通過識別 type 傳遞參數(shù)來加載不同控件, 1 表示加載當前預(yù)約信息控件, 2 表示加載歷史預(yù)約信息控件。 簡單查詢頁面的主界面圖 圖 10 簡單查詢界面 第 16 頁 共 23 頁 信息發(fā)布模塊的設(shè)計 功能描述 信息發(fā)布模塊包括查看最近上架的圖書信息頁面( )、當前預(yù)約信息控件( )和歷史預(yù)約信息控件( )通過 頁面加載。 + userID + 39。% + str + %39。% + str + %39。 Dim obj As DBController = New DBController (sqlstr, BookingGrid) End Sub 個人預(yù)約信息的主界面圖 圖 8 個人預(yù)約信息界面 圖書查詢預(yù)約模塊的設(shè)計 功能描述 圖書查詢模塊主要包含了簡單查詢頁面( )、普通查詢頁面( )和高級查詢頁面( )。 when 2 then 39。用戶信息頁面包括用戶的用戶名、姓名、性別、 EMail、單位、電話、當前狀態(tài)、是否為圖書管理員或系統(tǒng)管理員等信息;個人預(yù)約信息頁面做成加載控件的形式,通過傳遞參數(shù)在 頁面動態(tài)加載控件。其主要后臺處理代碼如下: Private Sub LoginBtn_Click (ByVal sender As , ByVal e As ) Handles Dim obj As DBController = New DBController If (, ) = 1 Then Session (UserID) = () Else ((), alter, ) End If End Sub 注銷頁面 的設(shè)計 在處理頁面的 Page_Load()函數(shù)中將 Session 賦為空,并將頁面 重定向到。用戶身份驗證模塊 實現(xiàn)用戶合法性檢查, 其中在這個模塊中還提供注銷和修改密碼的功能。 and BookID= + BookID If (sqlstr) = 0 Then Return False Else Return True End If End Function 是否允許 用戶 預(yù)約 的函數(shù)如下: Public Function AllowBooking (ByVal UserID As String) As Boolean Dim sqlstr As String = select * from UserInfo, RoleInfo where = and AllowBooking=1 and UserID=39。 圖書 操作類的設(shè)計 圖書操作類 是基于 DBController 類的,里面封裝了對圖書進行預(yù)約等操作以及獲取指定用戶的借書權(quán)限、借書數(shù)量、 待借天數(shù) 的方法函數(shù)。在需要使用這些方法操作時,僅需要構(gòu)建這些類的對象,調(diào)用類的方法,完成相應(yīng)的功能操作。 數(shù)據(jù)庫的設(shè)計 在本系統(tǒng)中,存在用戶、圖書和角色 3種對象實體。 系統(tǒng)管理模塊 用戶身份驗證控制 用戶個人信息模塊 信息發(fā)布模塊 圖書管理模塊 圖書查詢預(yù)約模塊 系統(tǒng)管理模塊 第 7 頁 共 23 頁 系統(tǒng)管理模塊包括用戶信息管理和角色權(quán)限管理兩個功能。用戶查詢到書后,可以點擊預(yù)約按鈕對相應(yīng)的圖書進行預(yù)約。在這個模塊中提供注銷和修改密碼的功能。其中,用戶登錄與驗證提供對用戶身份的驗證,同時讀取用戶所具有的權(quán)限,只有具有系統(tǒng)賬號的用戶才可以使用系統(tǒng)的所有功能。在用戶編輯修改頁面,可以更改用戶類別和用戶狀態(tài)等,但不可以對用戶的 ID 進行修改。 圖書信息管理 圖書管理員可以對圖書進行添加、更新及刪除操作。 用戶個人信息管理 每個用戶可以對自己的信息進行查看以及修改密碼等操作,還可以查看和刪除自己的預(yù)約信息。 組織結(jié)構(gòu)的分析 下圖是圖書預(yù)約的預(yù)約流程圖: 圖 1 預(yù)約流程圖 開發(fā)運行環(huán)境 開發(fā)此系統(tǒng)所需的基本軟、硬件環(huán)境為: ① Windows9 Windows98 或 WindowsNT/2021/XP ② SQL Server2021 或更高版本 ③ Pentium100 及以上檔次的 IBM PC 及其兼容機 ④ 128M 以上內(nèi)存 用戶登錄 圖書查詢 圖書預(yù)約 注銷 第 4 頁 共 23 頁 ⑤ 1G以上可用硬盤空間 ⑥ VGA顯示器 本系統(tǒng)在 Windows XP 操作系統(tǒng)下,以 Microsoft Visual W