【正文】
AMD3600+的CPU,內(nèi)存512MB,建議采用1024768分辨率。 關(guān)鍵詞:宿舍管理,Access數(shù)據(jù)庫(kù),VBA語(yǔ)言Design of Student Dormitory Management SystemElectronic Information Science and Technology 20051 Xie ChunyuSupervisor Chen ShidongAbstractThe department of dormitory management plays an important role in college dormitory management, which undertaking the management, the inspection, the supervision and the work in line and so on.With the university scale unceasing expansion and the increasing number of students, the dormitory management also needs to obtain the improvement and the consummation. But the traditional way is manual management, which is limit in some objective factors, such as the manpower, the physical resource and so on. The traditional way is not able to get the task or solve the loopholes. However, with the development of the puter technology and information technology, the widespread application of puter, the information management system has bee as the information interactive platform ultimately. The puter informationization management has provided the possibility for these question solution.The current situation of logistics management in our hospital, through consultation with the needs of user departments. This design uses the VBA(Visual Basic for Application) language and the Access database as the development tool, designs the management system with a prehensive function. In the paper, the author introduced the method and the process of the design, and proves merits of the Access database and the VBA language tool. The system is designed to achieve the existing dormitory management system of information encountered in quarters and a large amount of data stored in the database based on the design and pletion of the classification of information to their quarters, query, add, delete, and modify. This system existence some merits such as operation simple, nimble practical and contact surface artistic and so on, which has certain model significance to university39。隨著高校規(guī)模的不斷擴(kuò)大及學(xué)生人數(shù)的不斷增多,宿舍管理也需要得到改進(jìn)和完善。在論文中介紹了設(shè)計(jì)開發(fā)的方法及過(guò)程,論證說(shuō)明Access數(shù)據(jù)庫(kù)和VBA語(yǔ)言工具的特點(diǎn)。將計(jì)算機(jī)中的數(shù)據(jù)庫(kù)管理系統(tǒng)應(yīng)用于后勤公寓管理,這樣不僅可以根本改變目前純?nèi)斯?、紙張書面管理的模式,提高辦公效率;還可以大大減輕管理人員的工作量,實(shí)施對(duì)房間的標(biāo)準(zhǔn)化管理,更有利于學(xué)院相關(guān)部門的工作開展。DBMS需要有如下功能:數(shù)據(jù)定義功能;數(shù)據(jù)操作功能;數(shù)據(jù)庫(kù)的運(yùn)行管理功能;數(shù)據(jù)定的建立和維護(hù)功能。在人工管理數(shù)據(jù)階段,應(yīng)用程序1數(shù)集1應(yīng)用程序2數(shù)集2…………應(yīng)用程序n數(shù)集n 人工管理階段應(yīng)用程序與數(shù)據(jù)之間的對(duì)應(yīng)關(guān)系 Managed Applications and Data Phase of the Correlation Between Language文件系統(tǒng)階段20世紀(jì)50年代后期到60年代中期,這時(shí)硬件方面已有了磁盤、磁鼓等直接存取存儲(chǔ)設(shè)備;軟件方面,操作系統(tǒng)中已經(jīng)有了專門的數(shù)據(jù)管理軟件,一般稱為文件系統(tǒng);處理方式上,不僅有了批處理,而且能夠聯(lián)機(jī)實(shí)時(shí)處理。在這種背景下,以文件系統(tǒng)作為數(shù)據(jù)管理手段已經(jīng)不能滿足應(yīng)用的需求,于是為解決多用戶、多應(yīng)用共享數(shù)據(jù)的需求,使數(shù)據(jù)為盡可能多的應(yīng)用服務(wù),數(shù)據(jù)庫(kù)技術(shù)便應(yīng)運(yùn)而生,出現(xiàn)了統(tǒng)一管理數(shù)據(jù)的專門軟件系統(tǒng)——數(shù)據(jù)庫(kù)管理系統(tǒng)DBMS。這樣用戶可以容易地將日常工作轉(zhuǎn)換為VBA 程序代碼,使工作自動(dòng)化,因此對(duì)于程序設(shè)計(jì)人員的程序設(shè)計(jì)和開發(fā)更加方便快捷。以Microsoft Office Access為例,邏輯結(jié)構(gòu)設(shè)計(jì)主要完成兩個(gè)任務(wù):●按照一定的原則將數(shù)據(jù)組成一個(gè)或多個(gè)數(shù)據(jù)庫(kù),指明每個(gè)數(shù)據(jù)庫(kù)中包含哪幾個(gè)表,并指出每一個(gè)表包含的字段。完成以上工作后,即刻投入試運(yùn)行,即把數(shù)據(jù)庫(kù)兩種有關(guān)的應(yīng)用程序一起裝入計(jì)算機(jī),從而考察他們?cè)诟鞣N應(yīng)用中能否達(dá)到預(yù)定的功能和性能要求。隨著學(xué)院學(xué)生入學(xué)的增多,宿舍管理人員的負(fù)擔(dān)越來(lái)越重,為了讓所有宿舍管理人員能從繁重的工作中解脫出來(lái),實(shí)現(xiàn)無(wú)紙化辦公,使工作更有條理、更方便、更有效率,而開發(fā)出這套公寓管理系統(tǒng)?!窀鳁澦奚針堑娜藛T晚歸登記情況的輸入、修改和刪除,包括姓名、學(xué)號(hào)、晚歸日期、晚歸時(shí)間、記錄人。在Access中,表有兩種視圖,一是設(shè)計(jì)視圖,它用于創(chuàng)建和修改表的結(jié)構(gòu);二是數(shù)據(jù)表視圖,它用于瀏覽和修改表的內(nèi)容。Access是關(guān)系型數(shù)據(jù)庫(kù),它可以創(chuàng)建3中不同的表關(guān)系,分別是【一對(duì)一】、【一對(duì)多】和【多對(duì)多】。如果“用戶編號(hào)”少于或多于4個(gè)數(shù)字,系統(tǒng)將彈出“用戶編號(hào)是由四位數(shù)字組成!”。切換到“事件”選項(xiàng)卡,找到“單擊”項(xiàng),在其下拉列表框中選擇“[事件過(guò)程]”選項(xiàng),然后單擊其右側(cè)的[生成器]按鈕,打開代碼窗口,代碼窗口添加代碼。 主窗體 Main Window學(xué)生基本信息窗體包括了全院學(xué)生宿舍信息、1—7棟學(xué)生宿舍信息以及晚歸登記,而在全院學(xué)生宿舍信息窗體中又包含了各個(gè)宿舍的衛(wèi)生情況記錄子窗體,主窗體與子窗體之間是通過(guò)宿舍號(hào)來(lái)對(duì)應(yīng)的。建立一個(gè)查詢后,可以將查詢的數(shù)據(jù)顯示在報(bào)表、窗體或圖表上。建立選擇查詢的操作步驟如下(以創(chuàng)建系別查詢?yōu)槔海?)在Access中打開一個(gè)數(shù)據(jù)庫(kù)(這里為學(xué)生宿舍管理系統(tǒng))。(7)從字段列表拖動(dòng)字段名或雙擊字段名,將字段添加到查詢?cè)O(shè)計(jì)的網(wǎng)絡(luò)。、。即報(bào)表只用于輸出數(shù)據(jù),而沒(méi)有修改、刪除或添加數(shù)據(jù)的功能。 系統(tǒng)權(quán)限管理窗體 Window of the Jurisdiction Management Contact為了更好地保護(hù)用戶信息的安全,用戶在登錄系統(tǒng)后需要修改密碼。 New Menu Bar基本啟動(dòng)選項(xiàng),主要包括“應(yīng)用程序標(biāo)題”、系統(tǒng)啟動(dòng)后自動(dòng)打開的窗體,以及數(shù)據(jù)庫(kù)窗口、菜單欄、工具欄是否顯示等選項(xiàng)內(nèi)容。系統(tǒng)投入運(yùn)行后,將有力地推動(dòng)校園的網(wǎng)絡(luò)化和信息化建設(shè)。 以上是我在本系統(tǒng)設(shè)計(jì)過(guò)程中取得的成績(jī),遇到的問(wèn)題及不足之處。如果沒(méi)有陳老師的指導(dǎo),我的設(shè)計(jì)是不會(huì)那么順利完成的。 Mid(gdt, gdi, 1)End Ifgdi = gdi + 1End SubPrivate Sub 用戶編號(hào)_AfterUpdate()On Error GoTo Err_用戶編號(hào)_AfterUpdateDim sTemp As String If IsNull(Me![用戶編號(hào)]) Then UserID = Null Else sTemp = DLookup(用戶編號(hào), 系統(tǒng)用戶, [用戶編號(hào)]= 39。 39。) 39。打開“系統(tǒng)用戶”數(shù)據(jù)表 sTemp, , adOpenKeyset, adLockOptimistic 39。 Me![用戶編號(hào)] amp。刷新“系統(tǒng)權(quán)限管理 子窗體”子窗體 Me![系統(tǒng)權(quán)限管理 子窗體].RequeryExit_用戶編號(hào)_AfterUpdate: Exit SubErr_用戶編號(hào)_AfterUpdate: MsgBox Resume Exit_用戶編號(hào)_AfterUpdateEnd SubPrivate Sub 退出窗體_Click()On Error GoTo Err_退出窗體_Click Exit_退出窗體_Click: Exit SubErr_退出窗體_Click: MsgBox Resume Exit_退出窗體_ClickEnd Sub附錄D 通用代碼Option Compare DatabaseOption Explicit39。判斷用戶是否有權(quán)限打開窗體,blnOpen為“真”有權(quán)限 I