收藏 分销(赏)

酒店管理系统项目开发设计报告.doc

上传人:人****来 文档编号:3405045 上传时间:2024-07-04 格式:DOC 页数:31 大小:611.50KB
下载 相关 举报
酒店管理系统项目开发设计报告.doc_第1页
第1页 / 共31页
酒店管理系统项目开发设计报告.doc_第2页
第2页 / 共31页
点击查看更多>>
资源描述
项目开发设计报告 文档编号: 版 本 号: 项目名称: 酒店客房管理系统 项目负责人: 马静 项目团队成员: 许江燕 丁芳 王静 吕新芳 填写时间: 2014.6.6 目 录 1 系统分析 2 1.1 系统开发背景、开发范围、建设目标与必要性 2 1.2 业务流程分析 3 1.3 数据流程图 4 2 系统设计 5 2.1 功能模块设计 5 2.2 系统运行环境 7 2.2.1 操作平台 7 2.2.2 系统实现平台 7 2.2.3 计算机硬件要求 7 2.3 数据库设计 8 2.3.1 数据库逻辑设计(e-r) 8 2.3.2 数据库逻辑设计 9 2.3.3 数据库模型 10 2.4 输入/输出设计 10 2.4.1 公告模块设计 11 2.4用户界面设计 11 3 系统实施 11 4 参考文献 11 附录(程序关键代码) 12 项目开发设计总结 13 1 系统分析 1.1 系统开发背景、开发范围、建设目标与必要性 随着经济的迅猛发展,第三产业在国民经济中扮演着越来越重要的角色。而随着近年来我国旅游行业的不断扩大,酒店行业的发展趋势不断看涨。旅游业的持续火热随之而来的是酒店需求的剧增。酒店行业的不断扩大,面临的问题也就越来越多。对于任何一个有一定规模的酒店来说都需要有与之相媲美的管理系统。酒店经营管理面临着越来越高的要求,一个高质量的管理信息系统不仅会为酒店创造更多的经济效益,更关乎着酒店的整体形象跟运行效率,为酒店本身及顾客带来更多的利益。 对于一个酒店来说,其最核心的业务就是住房业务,现在一般的酒店管理系统都把住房系统归结于整个管理系统之中,这对于大型的酒店集团来说造成了管理上的不便之处。越来越多的酒店连锁集团需要一个专门的酒店住房系统,独立于其他酒店管理系统。针对于此,由我们小组成员精心设计,采用电脑技术开发而成的酒店住房管理系统,对提高酒店管理水平,改善服务质量,增进资源利用率起了重要作用。建设目标与必要性 每个酒店规模不同,经营方向不同,对酒店管理系统设计目标的要求存明显差异.例如大型酒店有客房、餐饮、康乐、会务、购物中心等分,因此要求饭店管理信息系统的功能比较齐全,能够完成客房、餐饮、会务等各种事务处理,而住房型酒店则仅要求酒店管理信息系统能完成客房、财务等的管理即可.此外,不同酒店的组织机构也相同,供其使用的酒店管理信息系统的系统结构应与其组织机构相适应。在系统中,主要是对客房信息、房间备品信息、经营情况、营业统计、客户的入住信息、员工信息、客户信息反馈、客户网上订房信息、房间类型等管理。为客户提供满意的服务、便捷的通道,通过互联网了解酒店详细情况,为服务员工、管理者提供迅速、高效的服务,减免手工处理的繁琐与误差,及时、准确的反映酒店的工作情况、经营情况。比如,快速的查询、快速的登记顾客订房情况等本系统的建设需求。具体来说,客户从界面上输入入住地区,时间,价位/房间类型就可以查询到符合条件的房间,并且可以切入预定,选择房间类性及付款方式等。内部管理人员从界面上直接输入某个房间号我们就会看到客人的个人信息、住宿期间各种消费、以及是否客满,同样我们输入某个部门名称也会显示它的运营相关情况,并且能够对其实现相应的管理、查询、添加、删除、统计等功能。 1.2 业务流程分析 1.客人入住登记, 客户来到酒店,首先进行入住: (1) 首先,客人对前台的管理员提出住宿要求。管理员根据顾客的要求,查询客房资源,并根据客人提出的条件看是否有符合客人要求的客房。 (2) 如果没有,向客人说明情况并同时向客人推荐其它客房 (3) 如果有合适的客房,对客人进行住宿登记。住宿登记包括顾客信息登记,住房记录登记。 (4) 最后,发放房间钥匙或者住房凭证。 开 始 客人来到前台,提出住宿要求 客人是否满意 是否符合顾客要求 向客人推荐其它客房 否 是 对客人进行住宿登记,发放房间钥匙或者住房凭证 满意 客户入住 客户退房 客人付账,交还钥匙 计算顾客需支付金额 通知前台管理员 结束 图1—1业务流程图 2.退房结账 当客人不再需要住宿的时候,需要执行退房登记步骤。 1.3 数据流程图 退房 订房 管理员 零层数据流: 归还房卡 登陆 酒店客房管理系统 录入信息 图1—3—1零层数据流图 退房 入住 管理员 核心数据流: 退房信息 修改 客房状态 订房信息 修改 客房信息 查询空房 登记入住 房间信息 记录 客人信息 除 删 图1—3—2核心数据流图 2 系统设计 2.1 功能模块设计 本系统主要分为五大模块:客户入住服务模块,客户查询模块,客房管理模块,客房预定模块,管理员操作模块。 1.客户入住服务模块 分为客户入住,客户退房。入住需要客户提供姓名,身份证,电话,房间类型和入住日期。 如果客户没有预定,输入用户的基本信息,单击“入住”按钮,完成客户的 入住,对于没有预定的客户,将客户信息提交至前台管理员,并修改房间状态为“入住”; 如果是已预订的客户入住,获取用户预订信息,单击“入住”按钮,完成客户入 住。对于已经预定的客户,将其预订信息从库中删除,并修改房间状态为“入住”。 当客户入住结束要退房时,在退房界面,获取客户开房的信息,单击“退房” 按钮,弹出用户酒店消费记录单,并提示用户交费。将用户消费添加至库中,并 修改房间状态为“空闲”。 2.客户查询模块 当前台管理员需要客户的信息时,可以对预定过的、入住的、已经离开的客户的信息(顾客姓名、身份证号、房间类型、入住日期、结账日期、消费金额) 进行查询。 系统在查询模块设置的权限,只有酒店的管理人员登录可以查询所有信息, 而工作人员不能对该模块进行操作。 3.客房管理模块 在房间信息设置界面,输入房间基本信息,单击“添加”按钮,将新的房间 信息添加至数据库中。当管理员想要修改某一个房间信息时,在界面上选择要修 改的房间记录,获得房间信息,进行相应修改后,单击“修改”按钮,将原来的 房间信息改为新的房间信息。当管理员想要删除某一个房间时,在界面上选择要 删除的房间,单击“删除”按钮,从数据库中删除原纪录。管理员添加房间信息 时,将新的房间添加到数据库。管理员修改房间信息时,修改数据库中相应记录 的房间信息。管理员删除房间信息时,从数据库中删除此房间。新添加的房间号 码在数据库中已经存在,则不允许添加。删除和修改房间信息时,如果当前房间 的状态为“预定”或者“在住”则不允许操作。 4.客房预定模块 客房预订模块 在订单信息界面中,输入客户姓名,客户证件号码,预定房间号码,单击“预定”按钮。将此预定信息记录至数据库中。客人证件号码,客户姓名,预定房间号码如果为空,则不允许预定。 5.管理员操作模块 管理员对账户名、密码的管理和注册新的账户。 综合以上介绍与描述,可以得到系统的功能结构图如2—1所示。 酒店客房管理 客户查询 管理员操作 客房管理 客户管理 管理员信息管理 客户退房 客户入住 顾客信息 房间信息 房间信息 添加住房 修改住房 删除客房 预定入住 直接入住 用户注册 图2—2—1功能模块图 2.2 系统运行环境 2.2.1 操作平台 本系统使用Microsoft Windows 7 前台使用了Eclipse来完成整个系统 和其他软件系统的数据接口:ODBC 2.2.2 系统实现平台 编程语言:Java 数据库:SqlServer 2008 2.2.3 计算机硬件要求 本系统的运行要求不是很高,可用于CPU:1.0GZ,256PMB 内存500M以上。硬盘在2G以上 2.3 数据库设计 2.3.1 数据库逻辑设计(e-r) 图2—3—1管理员e-r图 图2—3—2订房信息e-r图 图2—3—3客房信息e-r图 图2—3—4退房信息e-r图 图2—3—5顾客信息e-r图 2.3.2 数据库逻辑设计 根据概念实际的结果,将其转换为关系模型: 1,管理员信息表(账户,密码) 2,订房信息表(订单号,房间编号,房间数量,身份证,姓名,入住时间,电话) 3,客房信息表(房间编号,房间类型,价格,状态) 4,退房信息表(姓名,日期,数量,房间编号) 5,顾客信息表(姓名,身份证,电话,房间编号) 表2-3-1 管理员信息表 字段名 数据类型 长度 约束条件 功能描述 name varchar 10 主键 账户名 password varchar 10 密码 表2-3-2 订房信息表 字段名 数据类型 长度 约束条件 功能描述 RID varchar 5 房间编号 num varchar 5 房间数量 IDcard varchar 18 副键 身份证 Cname varchar 10 姓名 date datetime 入住时间 phone varchar 11 电话 bnumber varchar 5 主键 订单号 表2-3-3 客房信息表 字段名 数据类型 长度 约束条件 功能描述 RID varchar 5 主键 房间编号 type varchar 10 副键 房间类型 price money 房间价格 state varchar 10 房间状态 表2-3-4退房信息表 字段名 数据类型 长度 约束条件 功能描述 Cname varchar 10 姓名 date datetime 入住时间 num varchar 8 房间数量 RID varchar 5 副键 房间编号 表2-3-5顾客信息 字段名 数据类型 长度 约束条件 功能描述 Cname varchar 10 姓名 IDcard varchar 18 主键 身份证 phone varchar 11 电话 RID varchar 5 副键 房间编号 2.3.3 数据库模型 2.4 输入/输出设计 输入要求: 输入数据基本为:账户,密码,客户姓名,身份证,电话,房间编号,房间数量,房间类型,价格,房间状态,入住日期。入住日期是datetime类型,价格是money类型,其余均为字符型。输入一般采用界面的形式,如编辑框等。 输出要求: 输出一般采用对话框或打印到纸张上。输出数据只要有客户的住房信息,退房信息以及顾客信息,房间信息。 2.4.1 公告模块设计 ………(对数据库连接类,数据与表转换类等进行必要说明) 2.4用户界面设计 A)系统主窗口 B)管理员登陆窗口 C)查询客房信息窗口 D)删除客房信息窗口 E)添加房间信息窗口 ………(输入界面、输出信息等的格式说明及安全性设计) 3 系统实施 1) 管理员登陆窗口 package jiudian.Frame; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.sql.*; public class system extends JFrame implements ActionListener { static system ss; JPanel panel = new JPanel(); JLabel label1 = new JLabel("用户名:"); JTextField name = new JTextField(); JLabel label2 = new JLabel("密 码:"); JPasswordField password = new JPasswordField(); JButton Enter = new JButton("登录"); JButton Exit = new JButton("退出"); public system() { super("酒店客房管理登录系统"); this.setResizable(false); Enter.setBounds(150,250,80,20); Exit.setBounds(270,250,80,20); Enter.addActionListener(this); Exit.addActionListener(this); panel.add(Enter); panel.add(Exit); panel.setLayout(null); this.add(panel); label1.setBounds(135,130,100,25); panel.add(label1); name.setBounds(265,130,100,25); panel.add(name); label2.setBounds(135,165,100,25); panel.add(label2); password.setBounds(265,165,100,25); panel.add(password); this.setBounds(100,100,500,350); this.setVisible(true); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void actionPerformed(ActionEvent e) { if(e.getSource()==Enter) { String username , pwd; username = name.getText(); pwd = new String(password.getPassword()); try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServeDriver"); } catch (ClassNotFoundException ce) { //JOptionPane.showMessageDialog(ss,ce.getMessage()); } try { Connection con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;DatabaseName=creat","sa","123"); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("select * from [user]"); while(rs.next()) { if(rs.getString("name").equals(username)) if((rs.getString("password").equals(pwd))) { JOptionPane.showMessageDialog(ss,"登陆成功"); Main rd = new Main(); } else { JOptionPane.showMessageDialog(ss,"登录失败"); } } rs.close(); stmt.close(); } catch (SQLException se) { JOptionPane.showMessageDialog(ss,se.getMessage()); } } } public static void main(String[] args) { system sys = new system(); } } 管理员登陆窗口:实现了管理员管理系统的功能 2) 系统主窗口 package jiudian.Frame; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.awt.font.*; import java.sql.*; public class Main extends JFrame implements ActionListener { JMenuBar bar = new JMenuBar(); JMenu menu1 = new JMenu("客户信息"); JMenu menu2 = new JMenu("客房信息"); JMenu menu3 = new JMenu("订房信息"); JMenu menu4 = new JMenu("退房信息"); JMenuItem item1 = new JMenuItem("查看客户信息"); JMenuItem item11 = new JMenuItem("添加客户信息"); JMenuItem item12 = new JMenuItem("删除客户信息"); JMenuItem item2 = new JMenuItem("查看客房信息"); JMenuItem item21 = new JMenuItem("添加客房信息"); JMenuItem item22 = new JMenuItem("删除客房信息"); JMenuItem item3 = new JMenuItem("查看订房信息"); JMenuItem item31 = new JMenuItem("添加订房信息"); JMenuItem item32 = new JMenuItem("删除订房信息"); JMenuItem item4 = new JMenuItem("查看退房信息"); JMenuItem item41 = new JMenuItem("添加退房信息"); JMenuItem item42 = new JMenuItem("删除退房信息"); JPanel jpl = new JPanel(); public Main() { super("主界面"); this.setSize(500,300); this.setResizable(false); this.setBounds(300,40,500,300); this.setVisible(true); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setJMenuBar(bar); this.add(jpl); jpl.setLayout(null); bar.add(menu1); bar.add(menu2); bar.add(menu3); bar.add(menu4); menu1.add(item1); menu1.add(item11); menu1.add(item12); menu2.add(item2); menu2.add(item21); menu2.add(item22); menu3.add(item3); menu3.add(item31); menu3.add(item32); menu4.add(item4); menu4.add(item41); menu4.add(item42); item1.addActionListener(this); item11.addActionListener(this); item12.addActionListener(this); item2.addActionListener(this); item21.addActionListener(this); item22.addActionListener(this); item3.addActionListener(this); item31.addActionListener(this); item32.addActionListener(this); item4.addActionListener(this); item41.addActionListener(this); item42.addActionListener(this); } public void actionPerformed(ActionEvent e) { if(e.getSource()==item1) { Customer ct= new Customer(); } if(e.getSource()==item11) { AddCustomer ck = new AddCustomer(); } if(e.getSource()==item12) { Dltcustomer dc= new Dltcustomer(); } if(e.getSource()==item2) { Room bk = new Room(); } if(e.getSource()==item21) { AddRoom rk = new AddRoom(); } if(e.getSource()==item22) { Dltroom dr= new Dltroom(); } if(e.getSource()==item3) { Broom cr= new Broom(); } if(e.getSource()==item31) { AddBroom br = new AddBroom(); } if(e.getSource()==item32) { Dltbroom db= new Dltbroom(); } if(e.getSource()==item4) { Troom br= new Troom(); } if(e.getSource()==item41) { AddTroom as = new AddTroom(); } if(e.getSource()==item42) { Dlttroom dt= new Dlttroom(); } } public static void main(String[] args) { Main rd = new Main(); } } 系统主窗口:实现了管理员能操作的功能 3) 查询客房信息窗口 package jiudian.Frame; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.awt.font.*; import java.sql.*; public class Room extends JFrame implements ActionListener { static Main s; JLabel title = new JLabel("查询客房信息",JLabel.CENTER); Font f = new Font("楷体",Font.BOLD+Font.ITALIC,16); JPanel jpl = new JPanel(); JLabel label1 = new JLabel("请输入房间编号:",JLabel.CENTER); JTextField num= new JTextField(); JButton serch = new JButton("查询"); JButton reset = new JButton("重置"); JLabel label2 = new JLabel("状态:",JLabel.LEFT); JLabel label3 = new JLabel("价格:",JLabel.LEFT); JLabel label4 = new JLabel("类型:",JLabel.LEFT); JTextField[] txt ={ new JTextField() , new JTextField() , new JTextField()}; static int p = 140; public Room() { super("查询客房信息"); this.setResizable(false); this.setSize(500,550); this.setVisible(true); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); title.setFont(f); this.add(jpl); jpl.setLayout(null); title.setBounds(100,20,300,20); jpl.add(title); label1.setBounds(100,60,90,20); jpl.add(label1); num.setBounds(210,60,140,20); jpl.add(num); serch.setBounds(130,100,90,20); reset.setBounds(240,100,90,20); jpl.add(serch); jpl.add(reset);//重置 serch.addActionListener(this); reset.addActionListener(this); label2.setBounds(100,140,140,20); label3.setBounds(100,180,140,20); label4.setBounds(100,220,140,20); jpl.add(label2); jpl.add(label3); jpl.add(label4); for(int i = 0;i<txt.length ; i++) { txt[i].setBounds(260,p,140,20); jpl.add(txt[i]); p=p+40; } } public void actionPerformed(ActionEvent e) { if(e.getSource()==serch) { String RID =num.getText(); try { Connection con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;DatabaseName=creat","sa","123"); Statement stmt = con.createStatement(); String sql1 ="select RID,state,price,type from room"; ResultSet rs = stmt.executeQuery(sql1); while(rs.next()) { for(int i = 0 ; i<txt.length ; i++) { txt[i].setText(rs.getString(i+2)); } } } catch (SQLException se) { JOptionPane.showMessageDialog(s,se.getMessage()); } } else { for(int i = 0;i<txt.length ; i++) { txt[i].setText(""); } num.setText(""); } } public static void main(String[] args) { Room bk= new Room(); } } 查询客房信息窗口:实现了查询客房信息的功能 4)删除客房信息窗口 package jiudian.Frame; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.Statement; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextField; public class Dltroom extends JFrame implements ActionListener { static Main s; JLabel title = new JLabel("删除客房信息",JLabel.CENTER); Font f = new Font("楷体",Font.BOLD+Font.ITALIC,16); JPanel jpl = new JPanel(); JLabel label1 = new JLabel("请输入客房号:",JLabel.CENTER); JTextField num= new JTextField(); JButton dte= new JButton("删除"); JButton reset = new JButton("重置"); public Dltroom() { super("删除客房信息"); this.setResizable(false); this.setSize(500,550); this.setVisible(true); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); title.setFont(f); this.add(jpl); jpl.setLayout(null); title.setBounds(100,20,300,20); jpl.add(title); label1.setBounds(100,60,90,20); jpl.add(label1); num.setBounds(210,60,140,20); jpl.add(num); dte.setBounds(130,100,90,20); reset.setBounds(240,100,90,20); jpl.add(dte); jpl.add(reset);//重置 dte.addActionListener(this); reset.addActionListener(this); } public void actionPerformed(ActionEvent e) { if(e.getSource()==dte) { String RID =num.getText(); /*try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServeDriver"); } catch (ClassNotFoundException ce) { JOptionPane.showMessageDialog(s,ce.getMessage()); } */
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传
相似文档                                   自信AI助手自信AI助手

当前位置:首页 > 行业资料 > 酒店餐饮

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4009-655-100  投诉/维权电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服