酒店管理系统设计论文.docx
《酒店管理系统设计论文.docx》由会员分享,可在线阅读,更多相关《酒店管理系统设计论文.docx(16页珍藏版)》请在冰豆网上搜索。
酒店管理系统设计论文
酒店管理系统
摘要
现代科技的高速发展,互联网已经深入到了我们工作、学习和生活的每一个角落。
在竞争日益激烈的今天,对客户的重视己经为广大商家认同,快速的进行酒店信息的管理需要一套完善的酒店管理系统。
包括客户信息管理、客房信息管理以及客房类型信息管理。
一套优秀的酒店管理信息系统应该是一套适用于宾馆使用的优秀系统,操作简单、灵活性好、系统安全性高、运行稳定,是管理者的理想选择。
,《酒店管理信息系统》正是为此而设计的,该系统是运用MicrosoftOfficeSQL2005数据库系统和ASP技术开发实现的,《酒店管理信息系统》包括了查看客房信息、查看客单类型信息、用户预定客房、管理员改变客房类型信息、管理员改变客房信息,管理员改变用户信息、管理员新增客房信息,管理员新增用户信息、管理员新增客房类型信息。
具有操作简单、界面友善、灵活性好、系统安全性高、运行稳定等特点,是酒店管理者的理想选择。
我的课程设计题目就是设计一个小型酒店管理信息系统,在前期的考察和分析之后,对系统进行了设计,虽然受水平所限,实践经验十分匮乏,独立完成一套完备的优秀的宾馆管理信息系统有很大的难度,但是我努力在实践中巩固以及整理自己在大学期间所学的知识,尽量把这个系统设计的更好。
关键字:
宾馆管理员工作人员管理
Abstract
Therapiddevelopmentofmodernscienceandtechnology,theInternethasbeendeeplytoourwork,studyandlifeofeverycorner.Intheincreasinglycompetitivetoday,tothecustomervaluehasbeenforthegeneralmerchantsidentity,quicklyhotelinformationmanagementneedasetofperfecthotelmanagementsystem.Includingcustomerinformationmanagement,guestroominformationmanagement,andguestroomtypeinformationmanagement.Agoodhotelmanagementinformationsystemshouldbeasetofsuitableforhotelsuseofexcellentsystem,simpleoperation,goodflexibility,highsecuritysystem,stableoperation,istheidealchoiceofthemanagers.,thehotelmanagementinformationsystem"isdesignedforthispurpose,thissystemistouseMicrosoftOfficeSQL2005databasesystemsandASPtechnologytodevelopimplementation,thehotelmanagementinformationsystem,"includingtheviewrooms,checktheguestlistinformationtypeinformation,userscheduledguestroom,administratorchangeroomtypeinformation,administratorchangeroomsinformation,theadministratorchangeuserinformation,administratorsnewroomsinformation,newuserinformation,administratornewguestroomtypeinformationadministrator.Withsimpleoperation,friendlyinterface,flexibilityisgood,thesystemhashighsecurity,stableoperation,andotherfeatures,isthehotelmanagersidealchoice.Mycoursedesigntopicistodesignasmallhotelmanagementinformationsystem,intheexplorationandanalysisofthelater,onthesystemdesign,althoughbythehorizontalplaceisrestricted,practicalexperienceisveryscarce,independentlycompletedacompletegoodhotelmanagementinformationsystemisverydifficult,butIworkhardinpracticeandconsolidatetidyhisinuniversityperiodofknowledge,thissystemdesignasfaraspossiblethebetter.
Keyword:
hoteladministratorstaffmanagement
1.概述
1.1设计的意义
电子计算机科学的飞速发展,给酒店计算机应用带来了蓬勃生机,出现了酒店计算机管理信息系统、安全保卫系统、电子门锁系统、酒店信息服务系统、客房电脑保险系统以及计算机娱乐系统。
计算机在酒店中的应用,已深入到酒店的各个部门,特别在信息处理领域,计算机已成为最重要的工具。
在酒店现代管理理论中,酒店管理信息系统已成为酒店现代科学管理的重要内容,是酒店经营必不可缺少的现代科学工具。
近年来,随着我国改革开放的发展,国内的酒店服务业得到了日新月异的发展。
现代酒店作为一体化的接待场所,是一个旅游城市的窗口,也可以说是一个小型社会。
作为一种以服务为主的无烟工业,世界各国对此行业的重视程度并不亚于其它工业。
我设计的酒店管理系统主要是针对酒店各种信息的管理以实现对酒店的管理
1.2应用环境
1.2.1SQL2005
SQL(StructuredQueryLanguage)结构化查询语言,是一种数据库查询和程序设计语言,用于存取数据以及查询、更新和管理关系数据库系统。
同时也是数据库脚本文件的扩展名。
SQL是一门ANSI的标准计算机语言,用来访问和操作数据库系统。
SQL语句用于取回和更新数据库中的数据.
1.2.2VisualStudio2005
VisualStudio是微软公司推出的开发环境,VisualStudio可以用来创建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,username
Hoteluser显示管理员信息;
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体系结构设计
3.3数据库设计
3.3.1实体E-R图
Room表E-R图
RoomTYpe表E-R图
3.3.2数据库实施
usejiajia
go
ifexists(selectnamefromsysobjectswherename='Room')
droptableRoom
ifexists(selectnamefromsysobjectswherename='RoomType')
droptableRoomType
ifexists(selectnamefromsysobjectswherename='HotelUser')
droptableHotelUser
go
createtableRoom
(
RoomIdintidentity(1,1)notnull,
Numbervarchar(50)notnull,
BedNumberintnotnull,
Descriptionnvarchar(255)notnull,
Statenvarchar(50)notnull,
GuessNumberintnotnull,
TypeIDintnull
)
createtableRoomType
(
TypeIdintidentity(1,1)notnull,
TypeNamenvarchar(50)notnull,
TypePriceintnotnull,
IsAddBednchar(10)notnull,
AddBedPriceintnotnull,
Remarknvarchar(50)null,
)
createtableHotelUser
(
UserNamenvarchar(50)notnull,
Passwordnvarchar(50)notnull,
)
go
3.4源程序代码
3.4.1登录代码
usingSystem;
usingSystem.Data;
usingSystem.Data.SqlClient;
usingSystem.Configuration;
usingSystem.Collections;
usingSystem.Web;
usingSystem.Web.Security;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.Web.UI.WebControls.WebParts;
usingSystem.Web.UI.HtmlControls;
publicpartialclass登陆:
System.Web.UI.Page
{protectedvoidImageButton1_Click(objectsender,ImageClickEventArgse)
{
stringstr="DataSource=.;InitialCatalog=jiajia;UserId=sa;Password=123";
SqlConnectionconn=newSqlConnection(str);
conn.Open();
stringstr1="select*fromHotelUserwhereUserName='"+TextBox1.Text+"'andPassword='"+TextBox2.Text+"'";
SqlCommandcmd=newSqlCommand(str1,conn);
SqlDataReaderreader=cmd.ExecuteReader();
if(reader.Read())
{Response.Redirect("登陆成功.aspx");
}else
{Response.Write("你登录的密码有错,请从新输入!
!
");return;}
conn.Close();
}
protectedvoidImageButton2_Click(objectsender,ImageClickEventArgse)
{Response.Redirect("登陆.aspx");}
protectedvoidImageButton3_Click(objectsender,ImageClickEventArgse)
{stringstr="DataSource=.;InitialCatalog=jiajia;UserId=sa;Password=123";
SqlConnectionconn=newSqlConnection(str);
conn.Open();
stringstr1="select*from用户注册表where用户名='"+TextBox3.Text+"'and密码='"+TextBox4.Text+"'";
SqlCommandcmd=newSqlCommand(str1,conn);
SqlDataReaderreader=cmd.ExecuteReader();
if(reader.Read())
{Response.Redirect("用户登陆成功.aspx");}
else
{Response.Write("你登录的密码有错,请从新输入!
!
");return;}
conn.Close();}
protectedvoidImageButton4_Click1(objectsender,ImageClickEventArgse)
{Response.Redirect("注册.aspx");}}
3.4.2注册
usingSystem;
usingSystem.Data;
usingSystem.Data.SqlClient;
usingSystem.Configuration;
usingSystem.Collections;
usingSystem.Web;
usingSystem.Web.Security;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.Web.UI.WebControls.WebParts;
usingSystem.Web.UI.HtmlControls;
publicpartialclass注册:
System.Web.UI.Page
{protectedvoidImageButton1_Click(objectsender,ImageClickEventArgse)
{stringstr="DataSource=.;InitialCatalog=jiajia;UserId=sa;Password=123";
SqlConnectionconn=newSqlConnection(str);
conn.Open();
stringstrSql="insertintousvalues('"+TextBox1.Text+"','"+TextBox3.Text+"')";
SqlCommandcmd=newSqlCommand(strSql,conn);
cmd.ExecuteNonQuery();
Response.Write("注册成功!
!
");
conn.Close();}}
3.4.3添加客户信息
usingSystem;
usingSystem.Data;
usingSystem.Data.SqlClient;
usingSystem.Configuration;
usingSystem.Collections;
usingSystem.Web;
usingSystem.Web.Security;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.Web.UI.WebControls.WebParts;
usingSystem.Web.UI.HtmlControls;
publicpartialclass新增住客:
System.Web.UI.Page
{protectedvoidCalendar1_SelectionChanged(objectsender,EventArgse)
{TextBox4.Text=Calendar1.SelectedDate.ToShortDateString();}
protectedvoidCalendar2_SelectionChanged(objectsender,EventArgse)
{TextBox5.Text=Calendar2.SelectedDate.ToShortDateString();}
protectedvoidImageButton1_Click1(objectsender,ImageClickEventArgse)
{stringsex="男";
if(!
RadioButton1.Checked)
sex="女";
stringstr="DataSource=.;InitialCatalog=jiajia;UserId=sa;Password=123";
SqlConnectionconn=newSqlConnection(str);
conn.Open();
stringsql="insertintousersvalues('"+TextBox2.Text+"','"+sex+"','"+DropDownList1.Text+"','"+TextBox4.Text+"','"+TextBox5.Text+"')";
SqlCommandcmd=newSqlCommand(sql,conn);
cmd.ExecuteNonQuery();
Response.Write("增加成功");
conn.Close();
}
}
3.4.4新增客房信息
usingSystem;
usingSystem.Data;
usingSystem.Data.SqlClient;
usingSystem.Configuration;
usingSystem.Collections;
usingSystem.Web;
usingSystem.Web.Security;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.Web.UI.WebControls.WebParts;
usingSystem.Web.UI.HtmlControls;
publicpartialclass新增客房信息:
System.Web.UI.Page
{protectedvoidImageButton1_Click(objectsender,ImageClickEventArgse)
{stringstr="DataSource=.;InitialCatalog=jiajia;UserId=sa;Password=123";
SqlConnectionconn=newSqlConnection(str);
conn.Open();
stringstrSql="Insertintoroomvalues('"+TextBox2.Text+"','"+TextBox3.Text+"','"+TextBox4.Text+"','"+TextBox1.Text+"','"+TextBox5.Text+"','"+TextBox6.Text+"')";
SqlCommandcmd=newSqlCommand(strSql,conn);
cmd.ExecuteNonQuery();
Response.Write("客房信息增添成功!
!
");
conn.Close();}
protectedvoidImageButton2_Click1(objectsender,ImageClickEventArgse)
{Response.Redirect("登陆成功.aspx");}}
3.4.5新增客房类型信息
usingSystem;
usingSystem.Data;
usingSystem.Data.SqlClient;
usingSystem.Configuration;
usingSystem.Collections;
usingSystem.Web;
usingSystem.Web.Security;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.Web.UI.WebControls.WebParts;
usingSystem.Web.UI.HtmlControls;
publicpartialclass新增客房类型信息:
System.Web.UI.Page
{protectedvoid