【正文】
...............................................................................................................19 身份證合法性驗證 ....................................................................................................19 宿費提醒功能 ............................................................................................................20第六章 系統(tǒng)實現(xiàn) .........................................................................................................................21 系統(tǒng)登錄模塊實現(xiàn)............................................................................................................21 系統(tǒng)主程序?qū)崿F(xiàn)................................................................................................................22 住宿登記功能實現(xiàn)............................................................................................................23 退宿登記功能實現(xiàn)............................................................................................................24 客房信息查詢功能 實現(xiàn)....................................................................................................25 顧客信息查詢功能實現(xiàn)....................................................................................................25 宿費提醒功能實現(xiàn)............................................................................................................26第七章 系統(tǒng)測試 .........................................................................................................................27 測試的目的與原則............................................................................................................27 單元測試............................................................................................................................27 系統(tǒng)入口單元測試 ....................................................................................................27 數(shù)據(jù)錄入測試 ............................................................................................................29 系統(tǒng)測試內(nèi)容....................................................................................................................31 系統(tǒng)測試結(jié)果....................................................................................................................31第八章 結(jié)論 .................................................................................................................................32 系統(tǒng)的設(shè)計情況................................................................................................................32 系統(tǒng)特點............................................................................................................................32 系統(tǒng)改進的方向................................................................................................................33 系統(tǒng)今后的發(fā)展方向........................................................................................................33結(jié)束語 ...........................................................................................................................................34謝 辭 ...........................................................................................................................................35參考文獻 .......................................................................................................................................36第一章 引 言隨著我國改革開放的不斷推進,國內(nèi)人民生活水平的不斷提高,旅游出行的人民越來越多,商務(wù)活動也相當(dāng)?shù)幕钴S;再加上入境旅游的人也越來越多,入境從事商務(wù)活動的外賓也越來越多。關(guān)鍵詞:SWING;MYSQL;信息管理;酒店客房管理AbstractWith the expansion of the scale of hotels and rapaid increment of the amount of the hotel rooms,some information of the hotel rooms are being wider and the enormous information,it is necessary for us to develop the hotel room’s management system to enhance the efficiency of management in hotels.The hotel room’s management system is the system that is corelly based on the management of the hotel system makes advantage of the pattern of Application in JAVA,it is implemented with the user interface of Swing ponents and system provide us for the functions of selecting,management of hotel rooms and so on,certainly it offer the module of management in administrators,customers and the system information.The system accords the rules in software thesis introduce the whole process in developing and it talks about the requirement of system,design of concpetance,test and debug in the system analysis the experiment in developing,at the same time it involvs the way of correcting in the future.Keywords:SWING。 所達到的目標(biāo)酒店客房信息管理系統(tǒng),是為了節(jié)約勞動成本,提高工作人員效率,保證信息的一致性和安全性而開發(fā)。這樣 Java 程序可以只編譯一次,就可以在各種系統(tǒng)中運行。基于以上的系統(tǒng)角色以及分析的各個角色的系統(tǒng)需求,可以建立以下幾種系統(tǒng)用例:(1)客房管理(2)用戶信息管理(3)系統(tǒng)管理(4)住宿管理 系統(tǒng)用例圖模型將已經(jīng)確定并分析出的系統(tǒng)角色和系統(tǒng)用例,使用用例圖規(guī)范,確定系統(tǒng)用例圖模型:圖 系統(tǒng)用例圖第三章 概要設(shè)計 系統(tǒng)功能模塊設(shè)計 系統(tǒng)功能點系統(tǒng)主要的用戶分為兩類:普通用戶、管理員用戶;現(xiàn)以不同用戶種類列出系統(tǒng)的功能點設(shè)計:普通用戶:登錄功能、退出功能、住宿登記、退宿登記、住宿調(diào)房、住宿續(xù)房、顧客信息查詢、客房信息查詢、修改個人密碼及其信息、查詢宿費提醒、用戶重新登錄;管理員用戶:登錄功能、退出功能、客房信息管理、用戶信息的添加與刪除、顧客信息的添加與刪除、系統(tǒng)的維護。該表字段 ci_typeno 為外鍵字段,與 t_customertype表中的主鍵字段相關(guān)聯(lián),從而避免了數(shù)據(jù)的冗余,該表結(jié)構(gòu)如下:表 顧客信息表序號 列名 數(shù)據(jù)類型 長度 主鍵 允許空值 備注1 ci_no Int 11 是 否 顧客編號2 ci_name varchar 36 是 顧客姓名3 ci_sex varchar 36 是 顧客性別4 ci_cardstyle varchar 36 是 證件類型5 ci_cardno varchar 36 是 證件編號6 ci_address varchar 36 是 證件地址7 ci_phoneno varchar 36 是 聯(lián)系方式8 ci_typeno int 11 是 顧客類型9 ci_state varchar 36 是 顧客狀態(tài)10 ci_totalmoney varchar 36 是 總計金額(6)顧客類型信息表(t_customertype 表)在 t_customertype 表中,主要存儲了所有的各種顧客類型的信息,主要包括類型名、折扣比例,從而實現(xiàn)系統(tǒng)在對待不同類型顧客時的結(jié)果不同,該表結(jié)構(gòu)如下:表 顧客類型信息表序號 列名 數(shù)據(jù)類型 長度 主鍵 允許空值 備注1 ct_no int 11 是 否 類型編號2 ct_name varchar 36 是 類型名稱3 ct_discount int 11 是 折扣優(yōu)惠(7)住宿信息表(t_bookroominfo 表)在 t_bookroominfo 表中,主要存儲了所有顧客的定住、住宿信息,該表中顧客編號字段關(guān)聯(lián)顧客信息表中的顧客編號字段,客房號字段關(guān)聯(lián)客房信息表中的客房編號字段,該表結(jié)構(gòu)如下:表 住宿信息表序號 列名 數(shù)據(jù)類型 長度 主鍵 允許空值 備注1 bri_no int 11 是 否 編號2 bri_roomno int 11 是 客房號3 bri_booktime date 是 住宿時間4 bri_bookdays int 11 是 住宿天數(shù)5 bri_endtime date 是 退宿時間6 bri_customerno int 11 是 顧客編號7 bri_type varchar 36 是 住宿類型8 bri_actualvalue varchar 36 是 總計金額9 bri_shouquvalue varchar 36 是 實際金額10 bri_discoutvalue varchar 36