酒店管理系统是我们常说的MIS (Management Information System,管理信息系统)的一-种,在强调管理,强调信息的现代社会中它越来越得到普及,酒店管理系统的主要目标是实现对酒店内部各种管理的电子化和自动化,提高酒店的办公效率,为高质量的酒店服务提供保证。
该系统属于简易版的,适用于初学者学习,主要功能有以下几个模块:1、用户管理;2、客户管理;3、客房管理。具体请详看下面的截图
语言:C#
数据库:SQLServer 2008 R2
开发工具:Visual Studio 2015
Tips
简易版的酒店管理系统基本呈现在上图所示
using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace 酒店管理系统 { public partial class FormMain : Form { public string constr = ConfigurationManager.ConnectionStrings["sqlserver"].ConnectionString; public string UserId = ""; public FormMain() { InitializeComponent(); } private void 用户列表ToolStripMenuItem_Click(object sender, EventArgs e) { FormUserInfo frm = new FormUserInfo(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.constr = constr; frm.UserName = UserId; frm.Show(); } private void 密码修改ToolStripMenuItem_Click(object sender, EventArgs e) { ChangePassword frm = new ChangePassword(UserId); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.constr = constr; frm.Show(); } private void 客房管理ToolStripMenuItem_Click(object sender, EventArgs e) { FormRoomInfo frm = new FormRoomInfo(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.constr = constr; frm.UserName = UserId; frm.Show(); } private void 客户管理ToolStripMenuItem_Click(object sender, EventArgs e) { FormCustomerInfo frm = new FormCustomerInfo(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.constr = constr; frm.UserName = UserId; frm.Show(); } private void 关于系统ToolStripMenuItem_Click(object sender, EventArgs e) { FormAbout frm = new FormAbout(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.Show(); } private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { Application.Exit(); } } }