软件工程课程设计_宾馆信息管理系统方案

上传人:xmg****18 文档编号:118955517 上传时间:2020-01-01 格式:DOC 页数:30 大小:86.37KB
返回 下载 相关 举报
软件工程课程设计_宾馆信息管理系统方案_第1页
第1页 / 共30页
软件工程课程设计_宾馆信息管理系统方案_第2页
第2页 / 共30页
软件工程课程设计_宾馆信息管理系统方案_第3页
第3页 / 共30页
软件工程课程设计_宾馆信息管理系统方案_第4页
第4页 / 共30页
软件工程课程设计_宾馆信息管理系统方案_第5页
第5页 / 共30页
点击查看更多>>
资源描述

《软件工程课程设计_宾馆信息管理系统方案》由会员分享,可在线阅读,更多相关《软件工程课程设计_宾馆信息管理系统方案(30页珍藏版)》请在金锄头文库上搜索。

1、. . . . .分类号 编 号 华北水利水电大学 North China University of Water Resources and Electric Power实 验 报 告课 程: 软 件 工 程 实验项目2: 软件编码与测试 题 目: 宾馆管理信息系统 院 系 信息工程学院 专 业 计算机科学与技术 班级学号 201415717 姓 名 李卫朋 指 导 教 师 庄 晋 林 2017年 5 月 29 日华北水利水电大学 软件工程 实验报告20162017学年 第 二 学期 2014 级 计算机科学与技术 专业一、实验内容:宾馆管理信息系统 任务:入住或预订客房时,用户要对客户管理

2、模块或预订管理模块进行核对审查,并进行登记;客户换房时,要对换房信息进行查询和更新;客户退房时,要进行结算,并对更新客房信息。 主要功能模块:(1)登录模块:对用户身份进行验证,只有合法用户才能进入系统;(2)系统管理模块:对系统用户进行管理,更改用户名、密码、权限等;(3)客房管理模块:对客房信息的添加、修改和删除等;(4)入住管理模块:对客户入住信息的登记、查询等功能(5)订房管理模块:对客户订房信息的登记、查询等。(6)换房管理模块:对客户换房信息的登记、查询等(7)宾馆结算模块:对已入住宾馆的顾客进行结算及对订房客户已交的押金进行结算、查询。二、程序源: Win7 64位电脑,vs20

3、12编辑环境,sql2005数据库。 程序源码: 1、登录设计:namespace 宾馆管理信息系统 public partial class login1 : Form public login1() InitializeComponent(); private connection c = new connection(); private void button1_Click(object sender, EventArgs e) if (textBox1.Text.Trim().ToString()!= String.Empty & textBox2.Text.Trim().ToStr

4、ing() != String.Empty) string id = null, pw = null, gd = null; var result = from info in c.linq.login where info.id = textBox1.Text.ToString().Trim() select new ID = info.id, pw = info.password, gd = info.grade, ; if (result.Count() = 0) MessageBox.Show(用户名不存在!); else if (result.Count() = 1) foreach

5、 (var p in result) id = p.ID; pw = p.pw; gd = p.gd; if (pw.Trim() = textBox2.Text.ToString().Trim() this.Hide(); manger lf = new manger(gd,textBox1.Text.Trim().ToString(); lf.Show(); else MessageBox.Show(密码错误!); else MessageBox.Show(不能为空!); private void button2_Click(object sender, EventArgs e) this

6、.Close(); private void login1_FormClosed(object sender, FormClosedEventArgs e) System.Environment.Exit(0); 2、添加住户设计namespace 宾馆管理信息系统 public partial class addpeople : Form private connection c = new connection(); private string s; public addpeople(Form f,string s) this.Owner = f; InitializeComponent

7、(); this.s = s;/房间号 comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; private void button1_Click(object sender, EventArgs e) if (textBox1.Text.Trim().ToString() != String.Empty & comboBox1.Text.Trim().ToString() != String.Empty & textBox3.Text.Trim().ToString() != String.Emp

8、ty & textBox4.Text.Trim().ToString() != String.Empty) var result = from info in c.linq.room where info.房间号码 = s.Trim().ToString() select new 房间号 = info.房间号码, 房间类型 = info.房间种类, 房间单价 = info.房间单价, 房间是否使用 = info.房间是否正在使用, ; foreach (var item in result) if (item.房间单价 = int.Parse(textBox4.Text.Trim().ToString() try guest r = new guest(); r.住店人身份证号码 = textBox1.Text.Trim().ToString(); r.姓名 = textBox2.Text.Trim().ToString(); r.性别 = comboBox1.Text.Trim().ToString(); r.所交押金 = int.Parse(textBox4.Text.Trim().ToString(); r.人数 = textBox3.Text.Trim().ToString(); r.房间号码 = s;

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号