陽光酒店管理系統(tǒng)詳細設(shè)計說明書_第1頁
陽光酒店管理系統(tǒng)詳細設(shè)計說明書_第2頁
陽光酒店管理系統(tǒng)詳細設(shè)計說明書_第3頁
陽光酒店管理系統(tǒng)詳細設(shè)計說明書_第4頁
陽光酒店管理系統(tǒng)詳細設(shè)計說明書_第5頁
已閱讀5頁,還剩20頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、。 陽光酒店管理系統(tǒng) 詳細設(shè)計說明書 090821 班第六組 。1 。 目目錄錄 1 1 引言引言 . .3 3 1.1 編寫目的 . 3 1.2 背景 . 3 2 2 客房管理系統(tǒng)界面功能描述客房管理系統(tǒng)界面功能描述 .4 4 2.1 主界面 . 4 2.2 散客開單 . 5 2.3 團體開單 . 7 2.4 賓客結(jié)帳 . 8 2.5 客房預(yù)訂 . 9 2.6 營業(yè)查詢. 12 2.7 客戶管理. 13 2.8 系統(tǒng)設(shè)置 . 16 2.9 關(guān)于我們. 17 3 3 餐飲管理系統(tǒng)界面功能描述餐飲管理系統(tǒng)界面功能描述 .1818 3.1 主界面 . 18 3.2 菜品管理 . 19 3.3 菜系

2、管理 . 20 3.4 臺號管理 . 21 3.5 日(月、年)結(jié)賬 . 22 3.6 修改密碼 . 22 3.7 用戶管理 . 23 。2 。 1 1 引言引言 1.11.1 編寫目的編寫目的 本文檔為陽光酒店管理系統(tǒng)詳細設(shè)計說明書, 為陽光酒店管理系 統(tǒng)編碼的主要依據(jù)。 1.21.2 背景背景 軟件全稱:陽光酒店管理系統(tǒng)。 軟件開發(fā)者:湖州師范學(xué)院 090821 班第六組成員 用戶:湖州師范學(xué)院 090821 班測試組 本軟件系統(tǒng)主要包括酒店客房管理和餐飲管理兩部分,適合各個 酒店管理的需求。 。3 。 2 2 客房管理系統(tǒng)界面功能描述客房管理系統(tǒng)界面功能描述 2.12.1 主界面主界面

3、1、系統(tǒng)運行主框架,實時顯示房態(tài)信息。 2、輸入項 lbB.setText(face + 散 客 開 單 if(initIDV() 窗口 idv.show(); initLeftData(); 數(shù)據(jù) /Endif else if(o = bt2 | o = mi12) -); /傳數(shù)據(jù)給散客開單 /散客開單 /刷新左房間信息欄 lbB.setText(face + 團 體 開 單-); if(initTeam() /傳賓客類型數(shù)據(jù)給 團體開單窗口 tm.show();/團體開單 。4 。 initLeftData(); 數(shù)據(jù) /Endif else if(o = bt3 | o = mi36)

4、 /刷新左房間信息欄 lbB.setText(face + 賓 客 結(jié) 帳 if(initCKO() co.show(); initLeftData(); 數(shù)據(jù) /Endif else if(o = bt5 | o = mi17) -); /傳數(shù)據(jù)給結(jié)算窗口 /賓客結(jié)帳 /刷新左房間信息欄 lbB.setText(face + 客 房 預(yù) 訂-); eg.show();/客房預(yù)訂 initLeftData();/刷新左房間信息欄 數(shù)據(jù) else if(o = bt6) lbB.setText(face + 營 業(yè) 查 詢-); qr.show();/營業(yè)查詢 else if(o = bt7)

5、if(puil.equals(普通操作員) /客戶管理 String msg = 對不起,您的權(quán)限不能進入 客戶管理 頁面,請 用管理員 ID 登錄 .; JOptionPane.showMessageDialog(null,msg,提示, JOptionPane.INFORMATION_MESSAGE); return; lbB.setText(face+客戶管理 -); ct.initDTM1(); /ct.initDTM2(); ct.show(); else if(o = bt8 | o = mi31) 2.22.2 散客開單散客開單 1、完成對散客的開單任務(wù)。最多能追加五個相同類型的

6、房間。 。5 。 2、輸入項 函數(shù)說明 : * *# public Individual(JFrame frame) : *功能: 散客開單窗口 * *# private void addListener() : *功能: 加事件監(jiān)聽 * *# private void buildPanel() : *功能: 制作主面板 * *# private void initDTM1() : *功能: 初始化可供房間列表 * *# private void initDTM2() : 。6 。 * * * * * * * * * * * * * 功能: 初始化開單房間列表 # private void a

7、ddRoom() : 功能: 加到開單區(qū) # private void subRoom() : 功能: 從開單區(qū)移除 # private boolean isValidity() : 功能: 測試用戶輸入的數(shù)據(jù)是否合法 # private void saveLiveIn() : 功能: 保存賓客入住信息 2.32.3 團體開單團體開單 1、完成對團體賓客的開單任務(wù)。房間數(shù)沒有限制,可同時追加不同 類型的房間。 。7 。 2、輸入項 函數(shù)說明 : * *# public Team(JFrame frame) : *功能: 散客開單窗口 * *# private void addListener(

8、) : *功能: 加事件監(jiān)聽 * *# private void buildPanel() : *功能: 制作主面板 * *# private void initDTM1(String cType) : *功能: 初始化可供房間列表 * *# private void initDTM2() : *功能: 初始化開單房間列表 * *# private void addRoom() : *功能: 加到開單區(qū) * *# private void subRoom() : *功能: 從開單區(qū)移除 * *# private boolean isValidity() : *功能: 測試用戶輸入的數(shù)據(jù)是否合法

9、 * *# private void saveLiveIn() : *功能: 保存所有賓客的入住信息 2.42.4 賓客結(jié)帳賓客結(jié)帳 1、自動統(tǒng)計每個登記客人在店時所發(fā)生的消費額和應(yīng)付款額,并完 成結(jié)帳收銀操作。 。8 。 2、輸入項 # private boolean isValidity() :測試用戶輸入的數(shù)據(jù)是否合法 *參數(shù):無 *返回值 :boolean *修飾符 :private *功能:測試用戶輸入的數(shù)據(jù)是否合法 2.52.5 客房預(yù)訂客房預(yù)訂 1、完成增加預(yù)訂、修改預(yù)訂、刪除預(yù)訂,預(yù)訂情況的查詢等功能。 。9 。 添加、修改預(yù)訂信息時彈出子窗口。 2、輸入項 public vo

10、id actionPerformed(ActionEvent ae) Object o = ae.getSource(); if(o=bt1) /增加預(yù)定信息 sunsql.executeUpdate(delete from engage1); String sqlCode = select a.r_type 預(yù)定規(guī)格,b.r_no 房間from roomtype as a,engage1 as b where a.id = b.r_type_id; sunsql.initDTM(ei.dtm1,sqlCode); ei.chk.setSelected(false); ei.show(true

11、); initDTM(); /sunsql.initJComboBox(ei.cb1,select r_type from roomtype where delmark = 0); 。10 。 else if(o=bt2) /修改預(yù)定信息 if(initMrt() /傳數(shù)據(jù)給窗口 em.show(true);/修改預(yù)定信息 initDTM();/刷新表數(shù)據(jù) /Endif else if(o=bt3) /刪除預(yù)定信息 int rRow = tb.getSelectedRows();/刪除預(yù)訂信息 if(delInfo (rRow) /執(zhí)行刪除操作 initDTM();/刷新房間表數(shù)據(jù) /Endi

12、f else if(o=bt4) /查詢 String s = tf1.getText(); String sqlCode = select a.c_name 賓 客 姓 名 ,a.c_tel 聯(lián) 系 電 話,b.r_type 預(yù)定房間類型,a.r_no 預(yù)定房間編號,a.pa_time 預(yù)抵時間,a.keep_time 保留時間,a.eng_time 預(yù)定時間,a.remark 備注 + from engage as a,roomtype as b where a.r_type_id = b.id and a.delmark = 0 and b.delmark = 0 and a.engag

13、emark = 2 and (a.c_name like %+s+% or a.r_no like %+s+% or a.c_tel like %+s+%); sunsql.initDTM(dtm,sqlCode); else if(o=bt6) /刷新 String sqlCode = select a.c_name 賓 客 姓 名 ,a.c_tel 聯(lián) 系 電 話,b.r_type 預(yù)定房間類型,a.r_no 預(yù)定房間編號,a.pa_time 預(yù)抵時間,a.keep_time 保留時間,a.eng_time 預(yù)定時間,a.remark 備注 + from engage as a,roomt

14、ype as b where a.r_type_id = b.id and a.delmark = 0 and b.delmark = 0 and engagemark = 2; sunsql.initDTM(dtm,sqlCode); else if(o=bt7) /開設(shè)房間 int row = tb.getSelectedRow(); if(row 0) JOptionPane.showMessageDialog(null, 請在預(yù)訂列表中選中指定 的預(yù)訂房間,開設(shè)房間, 提示, JOptionPane.INFORMATION_MESSAGE); return; /Endif if(ini

15、tIDV(row) 。11 。 ev.show(true); initDTM(); /Endif else if(o=mi1) /過濾今日預(yù)抵賓客 String date = getDate(); String start = date + 00:00:00; String end = date + 23:59:59; String sqlCode = select a.c_name 賓 客 姓 名 ,a.c_tel 聯(lián) 系 電 話,b.r_type 預(yù)定房間類型,a.r_no 預(yù)定房間編號,a.pa_time 預(yù)抵時間,a.keep_time 保留時間,a.eng_time 預(yù)定時間,a.r

16、emark 備注 + from engage as a,roomtype as b where a.r_type_id = b.id and a.delmark = 0 and b.delmark = 0 and engagemark = 2 and a.pa_time between +start+ and +end+; sunsql.initDTM(dtm,sqlCode); else if(o=mi2) /過濾明日預(yù)抵賓客 String date = tomorrow(); String start = date + 00:00:00; String end = date + 23:59

17、:59; String sqlCode = select a.c_name 賓 客 姓 名 ,a.c_tel 聯(lián) 系 電 話,b.r_type 預(yù)定房間類型,a.r_no 預(yù)定房間編號,a.pa_time 預(yù)抵時間,a.keep_time 保留時間,a.eng_time 預(yù)定時間,a.remark 備注 + from engage as a,roomtype as b where a.r_type_id = b.id and a.delmark = 0 and b.delmark = 0 and engagemark = 2 and a.pa_time between +start+ and

18、+end+; sunsql.initDTM(dtm,sqlCode); 2.62.6 營業(yè)查詢營業(yè)查詢 1、完成結(jié)帳單、全部賓客消費、在店賓客消費、離店賓客消費的查 詢 。12 。 2、輸入項 # public Query(JFrame frame) :構(gòu)造函數(shù) *參數(shù):JDialog 對象表示本對話框的父窗口 *返回值 :無 *修飾符 :public *功能:組建營業(yè)查詢模塊 # private void addListener() : *參數(shù):無 *返回值 :無 *修飾符 :private *功能:加事件監(jiān)聽 加事件監(jiān)聽 2.72.7 客戶管理客戶管理 1、完成會員基本信息的維護和來賓一覽

19、。 。13 。 增加、修改會員信息時彈出子窗口。 2、輸入項 public void actionPerformed(ActionEvent ae) Object o = ae.getSource(); if(o=bt1) /=保存 long pk = Customer.pk;/得到主鍵 String m_id,m_name,sex,zj_no,m_tel,address; m_id = tf1.getText(); 。14 。 m_name = tf2.getText(); sex = cb1.getSelectedItem()+; zj_no = tf3.getText(); m_tel

20、= tf4.getText(); address = tf5.getText(); if(m_name.equals()|zj_no.equals()|m_tel.equals()|address.equal s() /若添加項有空值 JOptionPane.showMessageDialog(null,會員信息有空值, 請重新輸 入!); return; else if(!suntools.isNum(tf4.getText() /判斷電話是否由數(shù)字組 成 JOptionPane.showMessageDialog(null,聯(lián)系電話必須由數(shù)字 組成,請重新輸入!); tf4.setText

21、(); else /將添加的信息插入會員表 StringsqlCode=updatememberset m_id=+m_id+,m_name=+m_name+,sex=+sex+,zj_no=+zj_no+,m_tel= +m_tel+,address=+address+ where pk = +pk; sunsql.executeUpdate(sqlCode); this.setVisible(false); else if(o=bt2) /=取消 this.setVisible(false); else if(o=tf3) tf4.requestFocus(); else if(o=tf4

22、) /判斷必須全部為數(shù)字 if(!suntools.isNum(tf4.getText() /判斷電話是否由數(shù)字組成 JOptionPane.showMessageDialog(null,聯(lián)系電話必須由數(shù)字組成, 請重新輸入!); tf4.setText(); else tf5.requestFocus(); 。15 。 2.82.8 系統(tǒng)設(shè)置系統(tǒng)設(shè)置 1、完成房間項目、客戶類型、操作員、計費設(shè)置。 2、輸入項 函數(shù)說明 : * *# public AddCustomerType(JDialog dialog) : *功能: 添加新的客戶類型 * *# private void addList

23、ener() : *功能: 加事件監(jiān)聽 * *# private boolean isValidity() : *功能: 測試用戶輸入的數(shù)據(jù)是否合法 * *# private void saveAddCustomerType() : *功能: 保存客戶類型 *# public AddRoomInfo(JDialog dialog) : *功能: 添加新的房間信息 * 。16 。 * * * * * * * * * # private void addListener() : 功能: 加事件監(jiān)聽 # private void buildPC() : 功能: 制作信息面板 # private vo

24、id buildPS() : 功能: 制作按鍵面板 2.92.9 關(guān)于我們關(guān)于我們 1、顯示軟件制作小組基本信息。 2、輸入項 public About (JFrame frame) super (frame, 關(guān)于我們, true); top = new JLabel (new ImageIcon(pic/about.gif); li= new JLabel (new ImageIcon(pic/line1.gif); fee = new JLabel (技術(shù)支持: fee版權(quán)所有 (C) 2006 SunshineSOFT Corporation.); tit = new JLabel (

25、歡 迎 使 用 陽 光 酒 店 管 理 系 統(tǒng)); ver = new JLabel (版本: 2006 Bate1 ); user= new JLabel (軟件用戶: + sunini.getIniKey(UserName); co= new JLabel (所屬公司: + sunini.getIniKey(CompName); 。17 。 boss= new JLabel (陽光設(shè)計組成員:顧俊、董豐); temp= new JLabel ( ); bt1 = new TJButton (pic/choose.gif, 確定, ); pm= new JPanel (new BorderL

26、ayout (); info = new JPanel (new GridLayout (4, 1, 0, 0); bott = new JPanel (new BorderLayout (); i1 = new JPanel (); i2 = new JPanel (new FlowLayout (FlowLayout.RIGHT); bp = new JPanel (new FlowLayout (FlowLayout.RIGHT, 10 ,8); 3 3 餐飲管理系統(tǒng)界面功能描述餐飲管理系統(tǒng)界面功能描述 3.13.1 主界面主界面 1、系統(tǒng)運行主框架,實時顯示餐飲管理信息。 2、輸入項

27、GridBagConstraints(); gridBagConstraints_5.gridx = 0; gridBagConstraints_5.gridy = 0; panel.add(topLabel, gridBagConstraints_5); final JLabel leftLabel = new JLabel(); leftLabel.setPreferredSize(new Dimension(140, 0); 。18 。 finalGridBagConstraintsgridBagConstraints_3 GridBagConstraints(); gridBagCon

28、straints_3.gridy = 1; gridBagConstraints_3.gridx = 0; panel.add(leftLabel, gridBagConstraints_3); final JLabel rightLabel = new JLabel(); rightLabel.setPreferredSize(new Dimension(55, 0); finalGridBagConstraintsgridBagConstraints_2 GridBagConstraints(); gridBagConstraints_2.gridy = 1; gridBagConstra

29、ints_2.gridx = 1; panel.add(rightLabel, gridBagConstraints_2); =new =new 3.23.2 菜品管理菜品管理 1、通過各菜品的編碼、名稱、助記碼等來添加或者刪除各個菜品。 2、輸入項 public MenuDialog() super(); setModal(true); getContentPane().setLayout(new BorderLayout(); setResizable(true); setTitle(菜品管理); /2012-4-16 Toolkit toolkit = Toolkit.getDefaul

30、tToolkit(); 。19 。 Dimension screenSize = toolkit.getScreenSize(); setBounds( (int)(screenSize.width*0.1),(int)(screenSize.height*0.1), (int)(screenSize.width*0.8), (int)(screenSize.height*0.8); final JPanel operatePanel = new JPanel(); operatePanel.setLayout(new GridBagLayout(); getContentPane().add

31、(operatePanel,BorderLayout.NORTH); 3.33.3 菜系管理菜系管理 1、添加或刪除各個菜系的管理界面。 2、輸入項 public SortDialog() super(); setModal(true); getContentPane().setLayout(new BorderLayout(); setResizable(true); setTitle(菜系管理); /2012-4-16 Toolkit toolkit = Toolkit.getDefaultToolkit(); Dimension screenSize = toolkit.getScree

32、nSize(); setBounds( (int)(screenSize.width*0.1),(int)(screenSize.height*0.1), (int)(screenSize.width*0.8), (int)(screenSize.height*0.8); final JPanel operatePanel = new JPanel(); getContentPane().add(operatePanel, BorderLayout.NORTH); 。20 。 final JLabel sortNameLabel = new JLabel(); operatePanel.add

33、(sortNameLabel); sortNameLabel.setText(菜系名稱:); sortNameTextField = new JTextField(); operatePanel.add(sortNameTextField); sortNameTextField.setColumns(20); final JLabel topPlaceholderLabel = new JLabel(); topPlaceholderLabel.setPreferredSize(new Dimension(20, 40); operatePanel.add(topPlaceholderLabe

34、l); 3.43.4 臺號管理臺號管理 1、對各個臺號進行添加、刪除管理。 2、輸入項 super(); setModal(true); getContentPane().setLayout(new BorderLayout(); setResizable(true); setTitle(臺號管理); /2012-4-16 Toolkit toolkit = Toolkit.getDefaultToolkit(); Dimension screenSize = toolkit.getScreenSize(); 。21 。 setBounds( (int)(screenSize.width*0.

35、1),(int)(screenSize.height*0.1), (int)(screenSize.width*0.8), (int)(screenSize.height*0.8); 3.53.5 日(月、年)結(jié)賬日(月、年)結(jié)賬 1、通過此管理界面對酒店每天(月、年)的營業(yè)額進行管理和報表 處理。 2、輸入項 super(); setModal(true); setTitle(日結(jié)賬); /2012-4-16 Toolkit toolkit = Toolkit.getDefaultToolkit(); Dimension screenSize = toolkit.getScreenSize(); setBounds(int)(screenSize.width*0.05), (int)(screenSize.height*0.1),(int)(screenSize.width*0.9), (int)(screenSize.height*0.8); final JPanel panel = new JPanel(); getContentPane().

溫馨提示

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

評論

0/150

提交評論