数据库课程设计——宾馆客房管理内容摘要:
rId)) { (删除成功 , 提示 , )。 ()。 ()。 } else { (删除失败 , 提示 , )。 } } else { (用户密码输入错误 , 错误 , , )。 } 20 } } else { (用户数为 1,不可以再删除 , 警告 , , )。 } } (3)、房间管理模块: 房间类型操作类: ;房间类型操作类完成各种对房间类型的创建和维护的操作,例如增加删除等等。 /// summary /// 增加新房屋类型信息 /// /summary public void RoomType_Add(string typename, int area, int bednum, float price, int telephone, int tv, int toilet, int aircondition) { = insert into RoomType values( + 39。 + typename + 39。 , + area + , + bednum + , + price + , + aircondition + , + telephone + , + tv + , + toilet + )。 =。 try { ()。 ()。 } catch ( E) { 21 (())。 } finally { ()。 } } /// summary /// 删除房屋类型信息 /// /summary public void Room_Delete(string roomID) { = delete from Room where RoomID= + roomID。 =。 try { ()。 ()。 } catch ( E) { (())。 } finally { ()。 } } /// summary 22 /// 更新房屋类型信息 /// /summary public bool Room_Modify(string typename, int area, int bednum, float price, int telephone, int tv, int toilet, int aircondition) { = update RoomType set Area= + area + , + BedNum= + bednum + , + Price= + price + , + Toilet= + toilet + , + AirCondition= + aircondition + , + Television= + tv + , + Phone= + telephone + where RoomTypeName= + 39。 + typename + 39。 =。 try { ()。 ()。 return true。 } catch ( E) { (())。 return false。 } finally { ()。 } } /// summary /// 得到房屋类型名称 /// /summary 23 public DataTable GetRoomType() { = select RoomTypeName from RoomType。 =。 try { ()。 SqlDataAdapter Adapter = new SqlDataAdapter()。 DataSet ds = new DataSet()。 (ds)。 ()。 return [0]。 } catch (SqlException sqlEx) { throw sqlEx。 } } 房间类型管理: 房间类型管理窗体如图 5 图 6 详细代码实现: /// summary /// 读取房屋类型信息 24 /// /summary private void UpdateListView() { ()。 ()。 = select * from RoomType。 =。 try { if ( == ) ()。 = ()。 while (()) { ListViewItem li = new ListViewItem()。 ()。 [0].Text = sqlDataReader1[RoomTypeName].ToString()。 (sqlDataReader1[Area].ToString())。 (sqlDataReader1[BedNum].ToString())。 (sqlDataReader1[Price].ToString())。 if ((sqlDataReader1[AirCondition]) == true) (是 )。 else (否 )。 if ((sqlDataReader1[Phone]) == true) (是 )。 else (否 )。 if ((sqlDataReader1[Television]) == true) 25 (是 )。 else (否 )。 if ((sqlDataReader1[Toilet]) == true) (是 )。 else (否 )。 (li)。 } } catch ( E) { (())。 } finally { ()。 ()。 } if ( == 0) { (没有记录存在 , 没有记录 , , )。 } } /// summary /// 查找房屋类型信息 /// /summary private void button1_Click(object sender, EventArgs e) 26 { for (int i = 0。 i。 i++) { if ([i].SubItems[0].Text == ) { [i].Selected = true。 return。 } } (没有找到该记录 , 没有找到 )。 } /// summary /// 写入新房屋类型信息 /// /summary private void button4_Click(object sender, EventArgs e) { if (CheckInfor()) { string typename =。 int area = ()。 float price = ()。 int bednum = ()。 int tv = ()。 int telephone = ()。 int aircondition = ()。 int toilet = ()。 if (add) { roomtypeManage = new RoomTypeManage()。 (typename, area, 27 bednum, price, telephone, tv, toilet, aircondition)。 (添加信息成功 )。 ()。 } else {。数据库课程设计——宾馆客房管理
相关推荐
库存 查询:根据 库存 情况,按需要对 库存 情况进行查询。 在该查询模块中,可以按照商品编号进行查询 图 3 库存管理部分 第 1 层图 销售 管理 本模块的主要功能是把销售信息写入销售清单, 同时对库存数据进行 更新。 销售查询:根据商品销售情况,按需要对销售情况进行查询。 在该查询模块中,可以按照商品编号进行查询 销售信息 已进货信息 库存信息查询 1:查询 1:更新 库存信息清单
archar(20) not null, 上级图书编号 int )。 create table cardtype ( 借阅证类型编号 varchar(10) primary key, 借阅证类型名称 varchar(20) , 借阅证有效期限 smallint , 最大借阅量 smallint , 最大借阅时间 smallint )。 create table borrowinfo ( 图书
用户登录 输入计算机 系统管理员信息管理员 主控台 9 系统用户管理业务流程图: 输出 权 限 图 27系统用户管理业务流程 汽车销售汇总管理业务流程图: 输出 权 限 图 28汽车销售汇总管理业务流程 数据流程分析 由于本系统的数据模块较多,下面仅以职工信息管理模块为例来进行编制。 汽车销售理系统 0 层数据流程图: 用户登录 输入计算机 系统管理员 主控 台 用户登录 输入计算机
、关系数据库系统阶段,现在正向面向对象数据库系统发展。 在数据库相关的基本概念中包含了数据、数据库、数据库管理系统和数据库系统。 目前,软件开发时经常使用的数据库管理系统主要有 Access 、 Microsoft SQL Server、 Oracle、My SQL、 DB Sybase 等,其中又以 Microsoft SQL Server、 Oracle、 My SQL 和 Access
位 、 座位号、订票时间、订票数量 的 添加、修改、删除和查询 功能。 旅客信息 管理功能 (2)主要 是 实现 管理员对 旅客一些基本信息,如 旅客 姓名、性别、电话号码、身份证号 、 工作单位 的 添加、修改、删除和查询 功能。 (3) 航班信息管理 功能 主要 实现 管理员对航班的一些基本信息,航班 号、起飞地、目的地、起飞时 间的添加、修改、删除 查询 和 功能。 (4) 机票信息管理
SE,ASP,C ERP 中,我主要负责公司应付模块的开发和维护,模块内容主要包括采购系统、应付系统(财务方面)、票据系统、零用金系统等等。 广东 xx 科技有限公司 ( 1 年) 数字化变电站事业部 | 技术工程师 | 20204000 元 /月 电气 /电力 /水利 | 企业性质:民营 | 规模: 100499 人 工作描述: 主要负责互感器的安装和调试,包括电流