數(shù)據(jù)庫實驗報告(賓館客房管理系統(tǒng))_第1頁
數(shù)據(jù)庫實驗報告(賓館客房管理系統(tǒng))_第2頁
數(shù)據(jù)庫實驗報告(賓館客房管理系統(tǒng))_第3頁
數(shù)據(jù)庫實驗報告(賓館客房管理系統(tǒng))_第4頁
數(shù)據(jù)庫實驗報告(賓館客房管理系統(tǒng))_第5頁
已閱讀5頁,還剩7頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、摘 要文章從系統(tǒng)結構圖賓館住宿系統(tǒng),對賓館內(nèi)部集中管理,集中控制,快速的反應各個部門的經(jīng)營狀況,大大降低工作人員的勞動強度,提高工作效率,給客戶帶來極大的便利,同時帶來良好的經(jīng)濟效益和社會效益,此外賓館管理中各種信息的提供便利,同時帶來良好的經(jīng)濟效益和社會效益。此外,賓館中各種信息的提供使管理著實時動態(tài)的掌握賓館的經(jīng)營狀況,還為管理者提供了有利的決策支持。目前網(wǎng)絡發(fā)展迅速,也使遠程客戶預訂提供了實現(xiàn)的可能.本人設計的賓館住宿管理以實用為主。關鍵詞;賓館住宿管理 AbstractThe from the system structure diagram guesthouse accommodat

2、ion, the hotel internal centralized management, centralized control, fast reaction of various departments operating conditions, greatly reducing the labor intensity of the staff, improve work efficiency, and brings great convenience to customers, and bring good economic benefit and social benefit。 I

3、n addition all kinds of information in hotel management provide convenient, at the same time bring good economic and social benefits. In addition, the hotel provides a variety of information to enable the management of real-time dynamic grasp of the operating conditions of the hotel, but also for th

4、e managers to provide a favorable decision support。 At present, the rapid development of the network, but also to make remote client booking provides the possibility to achieve。 I designed the hotel accommodation management with practical.Key words; hotel accommodation management目 錄1.系統(tǒng)功能需求分析12.數(shù)據(jù)庫設

5、計分析23.數(shù)據(jù)庫整體邏輯結構設計34.數(shù)據(jù)庫實現(xiàn)44。1建立數(shù)據(jù)庫和表44.2建立視圖44。3建立存儲過程44。4建立觸發(fā)器45。課程設計總結5參考文獻7謝辭81。系統(tǒng)前期分析設計1。1 系統(tǒng)功能分析需求 近年來,賓館業(yè)迅猛發(fā)展,市場的競爭日趨激烈,全面提高賓館的軟件管理水準,已成為賓館業(yè)發(fā)展的當務之急。尤其是對于星級賓館,既需要完成前臺的一些服務工作,還需要完成后臺的管理工作。然而,傳統(tǒng)的人工管理模式已經(jīng)遠遠不能滿足有效、快捷地處理經(jīng)營中產(chǎn)生的大量信息數(shù)據(jù)的需要,從而使得企業(yè)決策層無法及時、準確地掌握一線資料,繼而影響對市場進行正確地分析和預測。像沿海城市三星級以上賓館引進外方管理,使小部

6、分賓館管理水準幾乎接近或達到國際水平。但對占80%以上的廣大中小型賓館來說,是難以做到的。因此,欲在競爭中甩開對手,取得優(yōu)勢,必須在經(jīng)營、管理、產(chǎn)品、服務等方面具備獨到之處。而對賓館的經(jīng)營狀況起決定作用的是客房的管理。簡單的服務標準已不是制勝的錦囊,只有管理做到最細微之處,才能讓顧客體會到賓館服務的高標準、高質量,而準確、快速、周全往往就是最基本的成功要素. 傳統(tǒng)的管理方法已經(jīng)不能適應現(xiàn)代社會的需要,因此采用電腦管理業(yè)務、財務等諸多環(huán)節(jié)已成為推動賓館業(yè)迅速發(fā)展的先決條件,賓館客房管理信息系統(tǒng)是各大中小型賓館所需要使用的一個管理系統(tǒng)。1。2 用戶需求 建立一套功能完善的管理信息系統(tǒng),既能滿足業(yè)務

7、人員日常處理的需要,增強企業(yè)經(jīng)營全過程的數(shù)字化管理水平;又能滿足管理人員決策分析的需要,提高公司管理層對公司經(jīng)營反饋信息的響應速度。從而大幅度提高工作效率,提高實施管理的準確性、科學性,使擔負管理的工作人員從繁雜的手工勞作中解脫出來.快速實現(xiàn)客人入住登記和賬務處理,減少客人住店及離店時的等待時間準確實現(xiàn)客人預訂入住的要求,實現(xiàn)有效及有保障的前臺系統(tǒng)作業(yè)快速響應住宿客人的有關項目查詢要求實現(xiàn)入住、消費、結賬一條龍服務,方便客人在店內(nèi)的各類消費要求提供清晰、準確的各類明細報表、賬單,給客人留下良好的管理印象1。3 系統(tǒng)需求分析需求分析圖:客房客房信息 客房信息預訂入住退房客人預定人信息預訂單帳單預

8、定單入住管理帳單管理員賓館客房管理系統(tǒng)的數(shù)據(jù)字典:數(shù)據(jù)流名稱:客人信息來源:客人去向:訂單包含的數(shù)據(jù)項:預定人,姓名,身份證號,VIP(賓館客房管理系統(tǒng)的數(shù)據(jù)流客人信息) 數(shù)據(jù)流名稱:訂單來源:訂單去向:入住包含的數(shù)據(jù)項:訂單編號,姓名,性別,身份證號,客戶編號,客房類型,抵房時間,入住 人數(shù),預定人,電話,住幾天,訂單狀態(tài)(賓館客房管理系統(tǒng)的數(shù)據(jù)流-訂單)數(shù)據(jù)流名稱:客房信息來源:訂單去向:退房包含的數(shù)據(jù)項:客房編號,客房類型,客房價格,客房狀態(tài)(賓館客房管理系統(tǒng)的數(shù)據(jù)流客房信息)數(shù)據(jù)流名稱:入住單來源:入住去向:退房包含的數(shù)據(jù)項:入住單號,客房編號,客房類型,入住時間,入住人數(shù),姓名,退房

9、時間,訂單編號,入住單狀態(tài)(賓館客房管理系統(tǒng)的數(shù)據(jù)流-入住單)數(shù)據(jù)流名稱:帳單來源:管理員去向:退房包含的數(shù)據(jù)項:帳單編號,姓名,消費金額,入住時間,退房時間,備注(賓館客房管理系統(tǒng)的數(shù)據(jù)流帳單)賓館客房管理系統(tǒng)的數(shù)據(jù)項:數(shù)據(jù)項名稱數(shù)據(jù)類型及長度說明預定人字符,可變長度10不能為空預定人電話字符,可變長度15不能為空客人姓名字符,可變長度10不能為空客人性別字符,可變長度2客人身份證號字符,可變長度18VIP字符,可變長度2訂單編號字符,可變長度36不能為空入住單號字符,可變長度36不能為空客房編號字符,可變長度6不能為空帳單編號字符,可變長度36不能為空客房類型字符,可變長度10客房價格貨幣

10、型客房狀態(tài)字符,可變長度2不能為空抵店時間日期型入住人數(shù)字符,可變長度10不能為空住幾天字符,可變長度10訂單狀態(tài)字符,可變長度4入住單狀態(tài)字符,可變長度4入住時間日期型不能為空退房時間日期型消費金額貨幣型備注字符,可變長度401.4 概念設計ER圖:離開 m n預訂客人客房預定人 m n入住 m n姓名性別訂單編號身份證號抵房時間客房類型預定入住人數(shù)客房編號住幾天客房類型客房編號姓名入住入住單號入住單狀態(tài)入住時間訂單編號入住人數(shù)退房時間帳單編號客房編號離開備注姓名退房時間消費金額入住時間客房編號姓名客人客房客戶價格VIP客戶類型身份證號姓名預訂人電話1。5邏輯結構設計客人信息 (預定人姓名,

11、身份證號,VIP)訂單 (訂單編號,姓名,身份證號,客房編號,客房類型,抵店時間,入住人數(shù),預定人,電話,住幾天,訂單狀態(tài))客房信息(客房編號,客房類型,客房價格,客房狀態(tài))入住單(入住單號,客房編號,客房類型,入住時間,入住人數(shù),姓名,退房時間,訂單編號,入住單狀態(tài))帳單(帳單編號,客房編號,姓名,消費金額,入住時間,退房時間,備注) 2。系統(tǒng)具體實施過程create table roominfo /*創(chuàng)建數(shù)據(jù)表roominfo/(rid char(6) not null, rstyle varchar(10), kfzt char(2) not null)gocreate table li

12、veorder /創(chuàng)建數(shù)據(jù)表liveorder*/(lno varchar(36) not null, rid char(6) not null, rstyle varchar(10), btime datetime not null, cno char(10), cname varchar(10) not null, etime datetime, ono varchar(36), lzt char(4) )gocreate table bill /創(chuàng)建數(shù)據(jù)表bill/(bno varchar(36) not null, rid char(6) not null, cname varchar

13、(10), cust money, btime datetime, etime datetime, remarks varchar(40)) gocreate table roomsp /*創(chuàng)建數(shù)據(jù)表roomsp*/(rstyle varchar(10) not null, rprice money)gocreate table hordform /創(chuàng)建數(shù)據(jù)表hordform*/(ono varchar(36) not null, cname varchar(10) not null, csex char(2), cid char(18), rid char(6) not null, rsty

14、le varchar(10), arrivetime datetime, cno char(10) not null, dingname varchar(10), livetime char(10), dingph char(15) not null, ozt char(4))gocreate table hliveorder /創(chuàng)建數(shù)據(jù)表hliveorder*/(lno varchar(36) not null, rid char(6) not null, rstyle varchar(10), btime datetime not null, cno char(10), cname var

15、char(10) not null, etime datetime, ono varchar(36), lzt char(4) )goinsert into cusinfo values('mao,zcl#39;,n)insert into cusinfo values('qxb,zyy''n)goinsert into roominfo values('2010',s,n)insert into roominfo values('2201,s,'n)

16、insert into roominfo values(2301',s,'n) insert into roominfo values('3010',s,y) insert into roominfo values(3012,s','n)insert into roominfo values('3015,s',n)insert into roominfo values(4210','d',n')insert into roominfo values('4110,d,n)insert into

17、 roominfo values(4010',d,n)insert into roominfo values(5220,'d,n')insert into roominfo values('5210,d,n')insert into roominfo values(5201,d,n)goinsert into roomsp values(s,200)insert into roomsp values(d,300)go insert into ordform values(o0201001,zcl','f',330227198805

18、060071',2301',s,2010-0102,'1,mao,'1,883060089,'n)goinsert into liveorder values('l2010001,2301,s,20100102,1',zcl,20100103,o0201001',n')insert into liveorder values('l2010002,3010,s,20100103,1,'qxb,20100104','o0201002,y)insert into liveorder(lno,rid

19、,rstyle,btime,cno,cname,ono,lzt) values('l2010003,5220,d','20100109',1,'myy',o0201003,y)insert into liveorder(lno,rid,rstyle,btime,cno,cname,ono,lzt)values(l2010004,'5201,d,201001-02,'2,zxx',null,y')goinsert into bill(bno,rid,cname,cust,btime) values('b201

20、0003,'5220,myy,0,201001-10)insert into bill(bno,rid,cname,cust,btime) values(b2010004,5201,'zxx,0,'2010-0102)goalter table cusinfo add primary key(dingname)alter table ordform add primary key(ono)alter table roominfo add primary key(rid)alter table liveorder add primary key(lno)alter tab

21、le bill add primary key(bno)alter table roomsp add primary key(rstyle)gocreate proc ordformproc lno varchar(36) /*保存入住單/asbegin tranupdate roominfo set kfzt=y from roominfo,liveorder where liveorder。rid=roominfo。rid and liveorder。lno=lno /修改客房信息*/update ordform set ozt='y from ordform,liveorder

22、where liveorder。ono=ordform.ono and liveorder。lno=lno /*修改預訂單信息/insert into hordform select from ordform where ozt=y' /將已入住的預訂單放入歷史/delete from ordform where ozt=y /清除已入住預訂單/commitgoselect * from roominfoselect from ordformgoexec ordformproc 'l2010001exec ordformproc l2010004select * from ro

23、ominfoselect from ordformgocreate proc liveorderproc lno varchar(36) /*收銀退房*/asbegin tranupdate liveorder set etime=getdate(),lzt=n where lno=lnoupdate roominfo set kfzt=n from roominfo,liveorder where roominfo。rid=liveorder。rid and liveorder。lno=lno /*修改客房狀態(tài)/insert into hliveorder select * from liv

24、eorder where lno=lno /導入歷史*/delete from liveorder where lno=lno /*清除入住單/commitgoselect from liveorderselect * from hliveordergoexec liveorderproc l2010004goselect * from liveorderselect * from hliveorder select from roominfo where rid='5201gocreate proc billproc lno varchar(36) /*計算應收款*/asbegin

25、trandeclare total moneydeclare datecount intupdate liveorder set etime=getdate() where lno=lno /設置離店時間*/select datecount=datediff(dd,btime,getdate()) from liveorder where lno=lno /計算住店天數(shù)/select total=0select total=datecount(isnull(rprice,0)) from liveorder,bill,roomspwhere bill。rid=liveorder.rid and

26、 liveorder。rstyle=roomsp。rstyle and lno=lno /計算住店金額/update bill set etime=getdate(),cust=total from bill,liveorder where bill。rid=liveorder.rid and lno=lno /修改賬單/commitgo select * from liveorderselect * from bill goexec billproc 'l2010004goselect from liveorderselect from bill2.1程序代碼create datab

27、ase hotelmanager /創(chuàng)建數(shù)據(jù)庫hotelmanager/gouse hotelmanagergocreate table cusinfo /創(chuàng)建數(shù)據(jù)表cusinfo/(dingname varchar(10) not null, cname varchar(10), cid char(18), vip char(2))gocreate table ordform /創(chuàng)建數(shù)據(jù)表ordform/(ono varchar(36) not null, cname varchar(10) not null, csex char(2), cid char(18), rid char(6)

28、not null, rstyle varchar(10), arrivetime datetime, cno char(10) not null, dingname varchar(10), livetime char(10), dingph char(15) not null, ozt char(4))go2。2 數(shù)據(jù)庫的完整性和安全性1。數(shù)據(jù)庫的完整性 數(shù)據(jù)庫的完整性是指數(shù)據(jù)的正確性和相容性。數(shù)據(jù)庫管理系統(tǒng)(DBMS)用一定的機制來檢查數(shù)據(jù)庫中的數(shù)據(jù)是否滿足規(guī)定的條件-完整性約束條件,數(shù)據(jù)的約束條件是語義的體現(xiàn),將作為模式的一部分存入數(shù)據(jù)庫中。 本系統(tǒng)中定義了表與表之間的聯(lián)系有助于實現(xiàn)完整性規(guī)則,一般在程序中實現(xiàn)具體的完整性控制。2。數(shù)據(jù)庫的安全性 數(shù)據(jù)庫的安全性是指保護數(shù)據(jù)庫以防止不合法的使用所造成的數(shù)據(jù)泄漏、更改或破壞。在數(shù)據(jù)庫系統(tǒng)中,大量的數(shù)據(jù)集中存放,而且為許多用戶直接共享,是寶貴的信息資源,系統(tǒng)的安全保護措施就顯得更為重要,它保護數(shù)據(jù)庫防止惡意的破壞和非法的存取。

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論