酒店管理系统设计论文.doc_第1页
酒店管理系统设计论文.doc_第2页
酒店管理系统设计论文.doc_第3页
酒店管理系统设计论文.doc_第4页
酒店管理系统设计论文.doc_第5页
已阅读5页,还剩13页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

辽宁工程技术大学课程设计(酒店管理系统)目 录摘 要3Abstract41.概述51.1设计的意义51.2应用环境51.2.1SQL200551.2.2VisualStudio200562 系统需求分析62.1 系统功能需求之管理员62.2 系统功能需求之用户62.3 系统数据需求73系统总体设计73.1系统功能73.1.1管理员73.1.2用户73.2体系结构设计83.3数据库设计93.3.1实体E-R图93.3.2数据库实施93.4 源程序代码103.4.1登录代码103.4.2注册123.4.3添加客户信息123.4.4新增客房信息133.4.5新增客房类型信息144技能实现155总结15参考文献16酒店管理系统摘 要现代科技的高速发展,互联网已经深入到了我们工作、学习和生活的每一个角落。在竞争日益激烈的今天,对客户的重视己经为广大商家认同,快速的进行酒店信息的管理需要一套完善的酒店管理系统。包括客户信息管理、客房信息管理以及客房类型信息管理。一套优秀的酒店管理信息系统应该是一套适用于宾馆使用的优秀系统,操作简单、灵活性好、系统安全性高、运行稳定,是管理者的理想选择。,酒店管理信息系统正是为此而设计的,该系统是运用Microsoft Office SQL 2005数据库系统和ASP技术开发实现的,酒店管理信息系统包括了查看客房信息、查看客单类型信息、用户预定客房、管理员改变客房类型信息、管理员改变客房信息,管理员改变用户信息、管理员新增客房信息,管理员新增用户信息、管理员新增客房类型信息。具有操作简单、界面友善、灵活性好、系统安全性高、运行稳定等特点,是酒店管理者的理想选择。我的课程设计题目就是设计一个小型酒店管理信息系统,在前期的考察和分析之后,对系统进行了设计,虽然受水平所限,实践经验十分匮乏,独立完成一套完备的优秀的宾馆管理信息系统有很大的难度,但是我努力在实践中巩固以及整理自己在大学期间所学的知识,尽量把这个系统设计的更好。关键字:宾馆 管理员 工作人员 管理AbstractThe rapid development of modern science and technology, the Internet has been deeply to our work, study and life of every corner. In the increasingly competitive today, to the customer value has been for the general merchants identity, quickly hotel information management need a set of perfect hotel management system. Including customer information management, guest room information management, and guest room type information management. A good hotel management information system should be a set of suitable for hotels use of excellent system, simple operation, good flexibility, high security system, stable operation, is the ideal choice of the managers. , the hotel management information system is designed for this purpose, this system is to use Microsoft Office SQL 2005 database systems and ASP technology to develop implementation, the hotel management information system, including the view rooms, check the guest list information type information, user scheduled guest room, administrator change room type information, administrator change rooms information, the administrator change user information, administrators new rooms information, new user information, administrator new guest room type information administrator. With simple operation, friendly interface, flexibility is good, the system has high security, stable operation, and other features, is the hotel managers ideal choice. My course design topic is to design a small hotel management information system, in the exploration and analysis of the later, on the system design, although by the horizontal place is restricted, practical experience is very scarce, independently completed a complete good hotel management information system is very difficult, but I work hard in practice and consolidate tidy his in university period of knowledge, this system design as far as possible the better.Key word: hotel administrator staff management1.概述1.1设计的意义电子计算机科学的飞速发展,给酒店计算机应用带来了蓬勃生机,出现了酒店计算机管理信息系统、安全保卫系统、电子门锁系统、酒店信息服务系统、客房电脑保险系统以及计算机娱乐系统。计算机在酒店中的应用,已深入到酒店的各个部门,特别在信息处理领域,计算机已成为最重要的工具。在酒店现代管理理论中,酒店管理信息系统已成为酒店现代科学管理的重要内容,是酒店经营必不可缺少的现代科学工具。近年来,随着我国改革开放的发展,国内的酒店服务业得到了日新月异的发展。现代酒店作为一体化的接待场所,是一个旅游城市的窗口,也可以说是一个小型社会。作为一种以服务为主的无烟工业,世界各国对此行业的重视程度并不亚于其它工业。我设计的酒店管理系统主要是针对酒店各种信息的管理以实现对酒店的管理1.2应用环境1.2.1SQL2005SQL(Structured Query Language)结构化查询语言,是一种数据库查询和程序设计语言,用于存取数据以及查询、更新和管理关系数据库系统。同时也是数据库脚本文件的扩展名。 SQL 是一门 ANSI 的标准计算机语言,用来访问和操作数据库系统。SQL 语句用于取回和更新数据库中的数据.1.2.2VisualStudio2005Visual Studio 是微软公司推出的开发环境,Visual Studio 可以用来创建 Windows 平台下的 Windows 应用程序和网络应用程序,也可以用来创建网络服务、智能设备应用程序和 Office 插件。是目前最流行的 Windows平台应用程序开发环境。2 系统需求分析2.1 系统功能需求之管理员1、对客房信息进行查询、更新、删除,添加客房信息;2、 对客房类型信息进行查询、更新、删除,添加客房类型;3、 对用顾客入住信息进行查询、更新、删除,添加顾客入住离开信息;4、 对客户留言的管理。2.2 系统功能需求之用户利用本系统用户在注册或登录后可实现:1、客房远程网上预订, 使客户不在当地也可以订购酒店的客房;2、利用本系统可查询、掌握全酒店客房的运营状况;3、利用本系统 可发布酒店相关信息, 让客户了解酒店的服务理念;4、 提高酒店的知名度;5、 利用本系统实现客户意见反馈,客户通过留言板对酒店服务提出意见,拉近了酒店和客户之间的距离;6、 增加客户的回头率。2.3 系统数据需求共有五张表,分别是:hoteluser,room,roomtype,us,usernameHoteluser显示管理员信息;Room显示客房信息;RoomType显示客房类型信息;us显示用户注册信息;username显示用户预订客房信息3系统总体设计3.1系统功能3.1.1管理员1、对客房信息进行查询、更新、删除,添加客房信息;2、对客房类型信息进行查询、更新、删除,添加客房类型;3、对用顾客入住信息进行查询、更新、删除,添加顾客入住离开信息;4、对客户留言的管理。3.1.2用户1、客房远程网上预订, 使客户不在当地也可以订购酒店的客房;2、利用本系统可查询、掌握全酒店客房的运营状况;3、利用本系统 可发布酒店相关信息, 让客户了解酒店的服务理念;4、提高酒店的知名度;5、利用本系统实现客户意见反馈,客户通过留言板对酒店服务提出意见,拉近了酒店和客户之间的距离;6、增加客户的回头率。3.2体系结构设计Crystal酒店管理系统用户登录管理员登录查看客房类型信息改变客房信息修改客房信息删除客房信息查看客房信息修改客房类型信息删除客房类型信息新增客房信息顾客预定客房改变客房类型信息顾客入住登记新增客房类型信息管理顾客信息修改入住顾客信息删除入住顾客信息3.3数据库设计3.3.1实体E-R图RoomDescriptionptionTypeIDBedNumberGuessNumberRoomIddStateNumber Room表E-R图RoomTypeIsAddBedptionptionTypePriceberRemarkberTypeId dAddBedPriceTypeNameRoomTYpe表E-R图3.3.2数据库实施use jiajiagoif exists(select name from sysobjects where name = Room)drop table Roomif exists(select name from sysobjects where name = RoomType)drop table RoomTypeif exists(select name from sysobjects where name = HotelUser)drop table HotelUsergocreate table Room(RoomId int identity(1,1) not null,Number varchar(50) not null,BedNumber int not null,Description nvarchar(255) not null,State nvarchar(50) not null,GuessNumber int not null,TypeID int null)create table RoomType(TypeId int identity(1,1) not null,TypeName nvarchar(50) not null,TypePrice int not null,IsAddBed nchar(10) not null,AddBedPrice int not null,Remark nvarchar(50) null,)create table HotelUser(UserName nvarchar(50) not null,Password nvarchar(50) not null,)go3.4 源程序代码3.4.1登录代码using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class 登陆 : System.Web.UI.Page protected void ImageButton1_Click(object sender, ImageClickEventArgs e) string str = Data Source=.; Initial Catalog=jiajia; User Id=sa; Password=123; SqlConnection conn = new SqlConnection(str); conn.Open(); string str1 = select * from HotelUser where UserName= + TextBox1.Text + and Password= + TextBox2.Text + ; SqlCommand cmd = new SqlCommand(str1, conn); SqlDataReader reader = cmd.ExecuteReader(); if (reader.Read() Response.Redirect(登陆成功.aspx); else Response.Write(你登录的密码有错,请从新输入!); return; conn.Close(); protected void ImageButton2_Click(object sender, ImageClickEventArgs e) Response.Redirect(登陆.aspx); protected void ImageButton3_Click(object sender, ImageClickEventArgs e) string str = Data Source=.; Initial Catalog=jiajia; User Id=sa; Password=123; SqlConnection conn = new SqlConnection(str); conn.Open(); string str1 = select * from 用户注册表 where 用户名= + TextBox3.Text + and 密码= + TextBox4.Text + ; SqlCommand cmd = new SqlCommand(str1, conn); SqlDataReader reader = cmd.ExecuteReader(); if (reader.Read() Response.Redirect(用户登陆成功.aspx); else Response.Write(你登录的密码有错,请从新输入!); return; conn.Close(); protected void ImageButton4_Click1(object sender, ImageClickEventArgs e)Response.Redirect(注册.aspx); 3.4.2注册using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class 注册 : System.Web.UI.Page protected void ImageButton1_Click(object sender, ImageClickEventArgs e) string str = Data Source=.; Initial Catalog=jiajia; User Id=sa; Password=123; SqlConnection conn = new SqlConnection(str); conn.Open(); string strSql = insert into us values ( + TextBox1.Text + , + TextBox3.Text + ); SqlCommand cmd = new SqlCommand(strSql, conn); cmd.ExecuteNonQuery(); Response.Write(注册成功!); conn.Close();3.4.3添加客户信息using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class 新增住客 : System.Web.UI.Page protected void Calendar1_SelectionChanged(object sender, EventArgs e) TextBox4.Text = Calendar1.SelectedDate.ToShortDateString(); protected void Calendar2_SelectionChanged(object sender, EventArgs e) TextBox5.Text = Calendar2.SelectedDate.ToShortDateString(); protected void ImageButton1_Click1(object sender, ImageClickEventArgs e) string sex = 男; if (!RadioButton1.Checked) sex = 女; string str = Data Source=.; Initial Catalog=jiajia; User Id=sa; Password=123; SqlConnection conn = new SqlConnection(str); conn.Open(); string sql = insert into users values( + TextBox2.Text + , + sex + , + DropDownList1.Text + , + TextBox4.Text + , + TextBox5.Text + ); SqlCommand cmd = new SqlCommand(sql, conn); cmd.ExecuteNonQuery(); Response.Write(增加成功); conn.Close(); 3.4.4新增客房信息using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class 新增客房信息 : System.Web.UI.Page protected void ImageButton1_Click(object sender, ImageClickEventArgs e) string str = Data Source=.; Initial Catalog=jiajia; User Id=sa; Password=123; SqlConnection conn = new SqlConnection(str); conn.Open(); string strSql = Insert into room values ( + TextBox2.Text + , + TextBox3.Text + , + TextBox4.Text + , + TextBox1.Text + , + TextBox5.Text + , + TextBox6.Text + ); SqlCommand cmd = new SqlCommand(strSql, conn); cmd.ExecuteNonQuery(); Response.Write(客房信息增添成功!); conn.Close(); protected void ImageButton2_Click1(object sender, ImageClickEventArgs e) Response.Redirect(登陆成功.aspx); 3.4.5新增客房类型信息using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class 新增客房类型信息 : System.Web.UI.Pageprotected void ImageButton1_Click1(object sender, ImageClickEventArgs e) string str = Data Source=.; Initial Catalog=j

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论