【正文】
房態(tài)信息,以圖形的形式表現(xiàn)出來,非常的直觀。 圖 26 業(yè)務(wù)管理 業(yè)務(wù)管理具有預(yù)訂管理、入住管理、消費(fèi)記賬、收銀退房 ,功能,單擊【業(yè)務(wù)管理】會(huì)出現(xiàn)以下提示 (如圖 28所示 ) 圖 (1)預(yù)訂管理 選擇【預(yù)訂管理】命令,進(jìn)入【預(yù)訂管理】功能窗體,在其中處理客房預(yù)訂的業(yè)務(wù) (如圖 29所示 )。 圖 圖 圖 用戶選擇自己身份后,系統(tǒng)會(huì)自動(dòng)跳出相應(yīng)的用戶名 (如圖 22所示 ),用戶輸入密碼成功后點(diǎn)【確定】會(huì)自動(dòng)進(jìn)入系統(tǒng),如果密碼輸入錯(cuò)誤,系統(tǒng)會(huì)出現(xiàn)以下提示 (如圖 23所示 ) 管理員界面 當(dāng)管理員成功進(jìn)入系統(tǒng)后,可以看到以下界面 (如圖 24 所示 ), 包含有基礎(chǔ)設(shè)置、業(yè)務(wù)管理、房態(tài)管理、退出系統(tǒng)功能。限制要顯示那些狀態(tài)客房的字符串 Public strFilter As String = (3)選擇【文件】下的【添加現(xiàn)有項(xiàng)】命令,將表示客房狀態(tài)的圖片加入到項(xiàng)目中,單擊【打開】按鈕 (4)在【解決方案資源管理器】對(duì)話框設(shè)置剛剛加入到項(xiàng)目的 7個(gè)表示客房狀態(tài)的位圖文件,將【屬性】中的【生成操作】設(shè)置為【嵌入的資源】 (5)功能實(shí)現(xiàn)的部分代碼如下: Private Sub btnSet_Click(ByVal sender As , _ ByVal e As ) Handles Dim iRow, iCol As Integer iRow = iCol = Dim strState As String = (iRow, iCol) Dim strTmpState As String If iCol 0 Then If = True Then strTmpState = 0 ElseIf = True Then strTmpState = 2 ElseIf = True Then strTmpState = 4 ElseIf = True Then strTmpState = 1 23 ElseIf = True Then strTmpState = 3 ElseIf = True Then strTmpState = 5 End If Else Return End If If strTmpState strState Then Dim db As DataBase = New DataBase Dim dv As DataView = = 樓層編號(hào) = + _ (iRow, 0).(/)(0) Dim strSQL As String = update 客房信息 set 狀態(tài) =39。清空 DataSet11 () = Dim strSQL As String _ = SELECT 入住單號(hào) , 客房類型 , 客房編號(hào) , 抵店時(shí)間 , 離店時(shí)間 , 入住價(jià)格 , 加床價(jià)格 , 預(yù)收款 , 應(yīng)收帳款 , 結(jié)帳金額 , 是否結(jié)帳 , 結(jié)帳日期 , 付款方式 FROM 入住單 39。 (strSQL) () 39。 Public Function GetInfo() As String 39。用戶 ID存在 UserId = () 39。登陸的用戶名 Public UserName As String = Friend WithEvents Label1 As 39。在【酒店管理系統(tǒng)屬性頁】對(duì)話框中的【啟動(dòng)對(duì)象】下拉列表中選擇 Sub Main. (5)添加判斷子窗體實(shí)例狀態(tài)的函數(shù) GetInstanceState,此函 數(shù)的主要作用是實(shí)現(xiàn)單擊主窗體的某菜單項(xiàng),如單擊【預(yù)訂管理】時(shí),只是出現(xiàn)一個(gè)預(yù)訂管理子窗體 Private Function GetInstanceState(ByVal name As String) As Boolean 39。用途是散客入住酒店時(shí),信息可由預(yù)訂單轉(zhuǎn)入,如表 6所示 11 表 6.“入住單”表 (7)“入住單歷史”表:入住單號(hào)、訂單編號(hào)、會(huì)員編號(hào)、客房類型、抵店時(shí)間等?!翱头啃畔ⅰ焙推渌黹g的關(guān)系是 1: N的關(guān)系。它最初是由 Microsoft Sybase 和 AshtonTate三家公司共同開發(fā)的,于 1988 年推出了第一個(gè) OS/2 版本 ]1[ 。本套酒店管理系統(tǒng)正是為了解決部門之間的信息交流與處理 ,以提高酒店辦公效率而開發(fā)的 ]5[ 。因此采用全新的計(jì)算機(jī)網(wǎng)絡(luò)和管理系統(tǒng),將成為提高酒店的管理效率,改善服務(wù)水準(zhǔn)的重要手段之一。 畢業(yè)論文(設(shè)計(jì)) 題 目 酒店管理系統(tǒng) 院 系 計(jì)算機(jī)系 專 業(yè) 軟件工程 學(xué)生姓名 學(xué) 號(hào) 指導(dǎo)教師 職 稱 副教授 二O一一年 五 月二十日 聲 明 本人鄭重聲明: 持以“求實(shí)、創(chuàng)新”的科學(xué)精神從事研究工作。雖然信息化并不是酒店走向成功的關(guān)鍵元素,但它可以幫助那些真正影響成敗的要素發(fā)揮更大的效用。作為一有效的統(tǒng)計(jì)分析手段,計(jì)算機(jī)管理系統(tǒng)具有明顯的優(yōu)勢,它在數(shù)據(jù)保存、數(shù)據(jù)交換等方面均能做到快速可靠,是手工操作所不能完成的。 Sql Serve 2021 SQL Server 是一個(gè)關(guān)系數(shù)據(jù)庫管理系統(tǒng)。其他涉及客房的表,都只記錄相應(yīng)的客房編號(hào)。用途是將預(yù)訂單轉(zhuǎn)入到入住單后,將預(yù)訂單清除并導(dǎo)入到預(yù)訂單歷史,如表 5所示 表 5.“ 預(yù)訂單歷史”表 (6)“入住單”表:入住單號(hào)、訂單編號(hào)、會(huì)員編號(hào)、客房類型、抵店時(shí)間等。合法用戶進(jìn)入系統(tǒng) If = True Then Dim frm As frmMain = New frmMain = = (frm) End If End Sub (4)設(shè)置程序的啟動(dòng)項(xiàng)目,讓從系統(tǒng) Main啟動(dòng),而不是窗體啟動(dòng)。登陸用戶的 ID Public UserId As String = 39。用戶 ID不存在 15 = = = Else 39??头?編號(hào) Private strRoomCode As String = (5)為窗體類 frmReserve添加公有函數(shù) GetInfo。 + + 39。 (4)功能實(shí)現(xiàn)部分代碼如下: Public Overrides Sub LoadData() 39。雙擊 DataGrid的單元格是否關(guān)閉窗口 Public bClose As Boolean = False 39。用戶可根 24 據(jù)自己的身份選擇適合的角色 ]8[ 。樓層編號(hào)一樣,從“樓層”用戶表中選擇樓層名稱,保存的是樓層的編號(hào)。核對(duì)賬單準(zhǔn)確無誤后,選擇付款方式,單擊【收銀結(jié)賬退房】按鈕,完成收銀工作,將客房狀態(tài)改為空房。正是有了他們的悉心幫助和支持,才使我的畢業(yè)論文工作順利完成,在此向 南京信息工程 大學(xué) 計(jì)算機(jī)與軟件學(xué)院 的全體老師表示由衷的謝意 , 感謝他們四年來的辛勤栽培。 Visual 31 附錄 A 外文原文 (出處: Malcolm Davis. Strutsan opensource MVC implementation [J]. IBM Systems Journal, 2021,44(2):3337.) Struts—— an opensource MVC implementation Malcolm Davis This article introduces Struts, a ModelViewController implementation that uses servlets and JavaServer Pages (JSP) technology. Struts can help you control change in your Web project and promote specialization. Even if you never implement a system with Struts, you may get some ideas for your future servlets and JSP page implementation. Introduction Kids in grade school put HTML pages on the Inter. However, there is a monumental difference between a grade school page and a professionally developed Web site. The page designer (or HTML developer) must understand colors, the customer, product flow, page layout, browser patibility, image creation, JavaScript, and more. Putting a great looking site together takes a lot of work, and most Java developers are more interested in creating a great looking object interface than a user interface. JavaServer Pages (JSP) technology provides the glue between the page designer and the Java developer. If you have worked on a largescale Web application, you understand the term change. ModelViewController (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data. Struts is an MVC implementation that uses Servlets and JSP tags, from the J2EE specifications, as part of the implementation. You may never implement a system with Struts, but looking at Struts may give you some ideas on your future Servlets and JSP implementations. ModelViewController (MVC) JSP tags solved only part of our problem. We still have issues with validation, flow control, and updating the state of the application. This is where MVC es to the rescue. MVC helps resolve some of the issues with the single module ap