【正文】
, 39。, CurrentUser, 39。, 39。) and type = 39。) and name = 39。) and name = 39。) and = 39。, 1) set identity_insert t_user off /*==============================================================*/ /* Index: Index_code */ /*==============================================================*/ create unique index Index_code on t_user ( code ASC ) go 表格系統(tǒng)用戶(hù)的列清單 國(guó)際賓館管理系統(tǒng) 畢業(yè)論文 第 29 頁(yè) 共 50 頁(yè) 名稱(chēng) 代碼 ID id 代碼 code 姓名 title 密碼 password 權(quán)限 station 表格訂房信息 表格訂房信息的代碼預(yù)覽 if exists (select 1 from r join o on ( = and = 39。, 39。, 39。, 39。, 39。) drop table t_user 國(guó)際賓館管理系統(tǒng) 畢業(yè)論文 第 28 頁(yè) 共 50 頁(yè) go /*==============================================================*/ /* Table: t_user */ /*==============================================================*/ create table t_user ( id id identity, code code not null, title title not null, password txt not null, station enum not null, constraint PK_T_USER primary key (id) ) go declare CurrentUser sysname select CurrentUser = user_name() execute sp_addextendedproperty 39。 and indid 0 and indid 255) drop index go if exists (select 1 from sysobjects where id = object_id(39。) drop table t_standard go /*==============================================================*/ /* Table: t_standard */ /*==============================================================*/ create table t_standard ( id id identity, num num not null, title title not null, area area not null, bed_count amount not null, unit_price money_ not null, air_condition yes_no not null, tv yes_no not null, telephone yes_no not null, toilet yes_no not null, constraint PK_T_STANDARD primary key (id) ) go /*==============================================================*/ /* Index: Index_num */ /*==============================================================*/ create unique index Index_num on t_standard ( num ASC 國(guó)際賓館管理系統(tǒng) 畢業(yè)論文 第 27 頁(yè) 共 50 頁(yè) ) go /*==============================================================*/ /* Index: Index_title */ /*==============================================================*/ create unique index Index_title on t_standard ( title ASC ) go 表格客房標(biāo)準(zhǔn)的列清單 名稱(chēng) 代碼 ID id 標(biāo)準(zhǔn)編號(hào) num 標(biāo)準(zhǔn)名稱(chēng) title 房間面積 area 床位數(shù)量 bed_count 住房單價(jià) unit_price 是否有空調(diào) air_condition 是否有電視機(jī) tv 是否有電話(huà) telephone 是否有單獨(dú)衛(wèi)生間 toilet 表格系統(tǒng)用戶(hù) 表格系統(tǒng)用戶(hù)的代碼預(yù)覽 if exists (select 1 from sysindexes where id = object_id(39。 and indid 0 and indid 255) drop index go if exists (select 1 from sysobjects where id = object_id(39。 and indid 0 國(guó)際賓館管理系統(tǒng) 畢業(yè)論文 第 26 頁(yè) 共 50 頁(yè) and indid 255) drop index go if exists (select 1 from sysindexes where id = object_id(39。) alter table t_room drop constraint FK_T_ROOM_REF_ROOM__T_STANDA go if exists (select 1 from sysindexes where id = object_id(39。) where = object_id(39。) and type = 39。) and name = 39。) and = 39。) alter table t_book drop constraint FK_T_BOOK_REF_BOOK__T_ROOM go if exists (select 1 from r join o on ( = and = 39。) where = object_id(39。 ? 賓館信息管理的查詢(xún) 查詢(xún)?nèi)匀皇遣捎?Datawindow 進(jìn)行設(shè)計(jì)。,Exclamation!,Ok!,1) () return end if boolean check_ok=false =false =false =false =false =true try =正在驗(yàn)證賬戶(hù),請(qǐng)稍后?? =rgb(0,0,0) = = 國(guó)際賓館管理系統(tǒng) 畢業(yè)論文 第 19 頁(yè) 共 50 頁(yè) int pos=0 do while pos100 =pos randomize(0) pos=pos+rand(5)*10 sleep(1) loop =100 sleep(1) //check check_ok=check_login(code,password) finally =false =true =true =true =true end try if check_ok then =false =false =false =false =賬戶(hù)驗(yàn)證成功,正在進(jìn)入系統(tǒng)?? =rgb(0,0,255) sleep(2) 國(guó)際賓館管理系統(tǒng) 畢業(yè)論文 第 20 頁(yè) 共 50 頁(yè) open(w_temp) close(parent) open(w_main) close(w_temp) else =賬戶(hù)驗(yàn)證失敗,請(qǐng)重新輸入。擁有代碼和密碼的用戶(hù)是有管理員在系統(tǒng)里設(shè)置的。 ? 結(jié)算信息查詢(xún):對(duì)已有的結(jié)算信息進(jìn)行查詢(xún)。 ? 訂房信息輸入和修改:錄入訂房信息,和對(duì)已有訂房信息的修改??头繕?biāo)準(zhǔn)時(shí)客房信息和訂房的基礎(chǔ)數(shù)據(jù)。 ? 用戶(hù)管理:管理員身份的用戶(hù)登陸后可以對(duì)系統(tǒng)的用戶(hù)進(jìn)行管理,包括新添用戶(hù)、刪除用戶(hù)、修改用戶(hù)信息、指派用戶(hù)權(quán)限等。具體分析如圖 4- 1 所示: ? 用戶(hù)登陸和注銷(xiāo):用戶(hù)在使用系統(tǒng)前必須先登錄系統(tǒng)。 ? ● 結(jié)算信息的修改和查詢(xún),包括客房編號(hào)、客房種類(lèi)、客房位置、客房單價(jià)、顧客姓名、顧客身份證號(hào)碼、入住日期、折扣、結(jié)日期、備注信息等。 ? 剩余客房信息的查詢(xún)等。 系統(tǒng)功能結(jié)構(gòu)圖 查詢(xún) 錄入和修改 查詢(xún) 查詢(xún) 查詢(xún) 錄入和修改 國(guó)際賓館管理系統(tǒng) 管理員 錄入員 查詢(xún)員 用戶(hù)信息 客房標(biāo)準(zhǔn) 客房信息 訂房信息 結(jié)算信息 錄入和修改 錄入和修改 錄入和修改 國(guó)際賓館管理系統(tǒng) 畢業(yè)論文 第 13 頁(yè) 共 50 頁(yè) 功能模塊分析 ? 有關(guān)客房標(biāo)準(zhǔn)的制定、標(biāo)準(zhǔn)信息的輸入,包括標(biāo)準(zhǔn)編號(hào)、標(biāo)準(zhǔn)名稱(chēng)、房間面積、床位數(shù)量、住房單價(jià)、是否有空調(diào)、電視機(jī)、電話(huà)以及單獨(dú)衛(wèi)生間等。該數(shù)據(jù)庫(kù)引擎還可以支持最大的聯(lián)機(jī)分 析 (OLAP) 數(shù)據(jù)倉(cāng)庫(kù)中的事實(shí)數(shù)據(jù)表和維度表的嚴(yán)格處理要求。 數(shù)據(jù)庫(kù)引擎的分布式查詢(xún)功能使您得以訪(fǎng)問(wèn)所有可通過(guò) OLE DB 訪(fǎng)問(wèn)的數(shù)據(jù)源中的數(shù)據(jù)。在故障發(fā)生的數(shù)分鐘內(nèi),熱備用服務(wù)器可以代替生產(chǎn)服務(wù)器運(yùn)行。在數(shù)據(jù)庫(kù)引擎的早期版本中要求停止和啟動(dòng)的管理操作現(xiàn)在可以在引擎運(yùn)行當(dāng)中執(zhí)行,從而增加了可用性。這表明較小的 SQL Server 版本可用于無(wú)需專(zhuān)職數(shù)據(jù)庫(kù)管理員 的個(gè)人或小型工作組。 關(guān)系數(shù)據(jù)庫(kù)引擎具有高度的可伸縮