资源简介
C#实现的酒店管理系统,里面包含了数据库文件,简易酒店管理系统源码
二、源码特点
1、采用WinFrom程序设计开发的酒店管理系统;
2、应用到标准的三层技术,多个视图工具控件

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace HotelManage
{
public partial class AddRoom : Form
{
public AddRoom()
{
InitializeComponent();
}
private void btnAdd_Click(object sender EventArgs e)
{
string sql ;
string roomType=cboRoomType.Text;
string roomNumber=txtRoomNumber.Text;
float roomPrice=float.Parse(txtRoomPrice.Text);
string remarks=txtRemarks.Text;
int result;
sql = “insert into RoomInfo(RoomNumberRoomTypeRoomPriceRemarks) values( ‘“ + roomNumber + “‘‘“ + roomType + “‘“ + roomPrice + “‘“ + remarks + “‘)“;//定义插入语句
if (txtRoomNumber.Text != ““ && txtRoomPrice.Text != ““ && cboRoomType.Text != ““)//判断输入文本框等是否有数据
{
result = DBHelper.ExecuteSql(sql);//执行插入语句,返回影响行数
if (result == 1)//根据返回影响行数判断是否插入数据成功
{
MessageBox.Show(“客房添加成功!“ “成功提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
}
else
{
MessageBox.Show(“客房添加失败!“ “错误提示“ MessageBoxButtons.OK MessageBoxIcon.Error);
}
}
else
{
MessageBox.Show(“请检查数据输入的正确性!“ “错误提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
}
}
private void btnExit_Click(object sender EventArgs e)
{
this.Close();//关闭当前窗体
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 90624 2018-12-27 22:15 4酒店客房管理系统\HotelManage\.vs\HotelManage\v14\.suo
文件 3145728 2018-12-11 22:28 4酒店客房管理系统\HotelManage\data\2005\Hotel.mdf
文件 1048576 2018-12-11 22:28 4酒店客房管理系统\HotelManage\data\2005\Hotel_log.ldf
文件 3145728 2018-12-11 07:41 4酒店客房管理系统\HotelManage\data\2008\Hotel.mdf
文件 3538944 2018-12-11 15:49 4酒店客房管理系统\HotelManage\data\2008\Hotel_log.ldf
文件 1917 2014-05-15 15:07 4酒店客房管理系统\HotelManage\HotelManage\AddRoom.cs
文件 8279 2014-05-15 15:07 4酒店客房管理系统\HotelManage\HotelManage\AddRoom.Designer.cs
文件 5817 2014-05-15 15:07 4酒店客房管理系统\HotelManage\HotelManage\AddRoom.resx
文件 1941 2014-05-06 17:50 4酒店客房管理系统\HotelManage\HotelManage\AddUser.cs
文件 6769 2014-05-06 17:50 4酒店客房管理系统\HotelManage\HotelManage\AddUser.Designer.cs
文件 5817 2014-05-06 17:50 4酒店客房管理系统\HotelManage\HotelManage\AddUser.resx
....... 304640 2018-12-27 12:45 4酒店客房管理系统\HotelManage\HotelManage\bin\Debug\HotelManage.exe
文件 130560 2018-12-27 12:45 4酒店客房管理系统\HotelManage\HotelManage\bin\Debug\HotelManage.pdb
....... 22696 2018-12-27 22:15 4酒店客房管理系统\HotelManage\HotelManage\bin\Debug\HotelManage.vshost.exe
文件 490 2017-09-29 21:43 4酒店客房管理系统\HotelManage\HotelManage\bin\Debug\HotelManage.vshost.exe.manifest
文件 4198 2014-05-15 15:08 4酒店客房管理系统\HotelManage\HotelManage\BookRoom.cs
文件 17971 2014-05-15 15:08 4酒店客房管理系统\HotelManage\HotelManage\BookRoom.Designer.cs
文件 5817 2014-05-15 15:08 4酒店客房管理系统\HotelManage\HotelManage\BookRoom.resx
文件 1431 2014-05-15 15:08 4酒店客房管理系统\HotelManage\HotelManage\BookSearch.cs
文件 9140 2014-05-15 15:08 4酒店客房管理系统\HotelManage\HotelManage\BookSearch.Designer.cs
文件 5817 2014-05-15 15:08 4酒店客房管理系统\HotelManage\HotelManage\BookSearch.resx
文件 3049 2014-05-15 15:09 4酒店客房管理系统\HotelManage\HotelManage\CancelReservation.cs
文件 17313 2014-05-15 15:09 4酒店客房管理系统\HotelManage\HotelManage\CancelReservation.Designer.cs
文件 5817 2014-05-15 15:09 4酒店客房管理系统\HotelManage\HotelManage\CancelReservation.resx
文件 4859 2014-05-15 15:09 4酒店客房管理系统\HotelManage\HotelManage\CheckIn.cs
文件 20451 2014-05-15 15:09 4酒店客房管理系统\HotelManage\HotelManage\CheckIn.Designer.cs
文件 5817 2014-05-15 15:09 4酒店客房管理系统\HotelManage\HotelManage\CheckIn.resx
文件 6601 2014-05-15 15:11 4酒店客房管理系统\HotelManage\HotelManage\CheckOut.cs
文件 14922 2014-05-15 15:11 4酒店客房管理系统\HotelManage\HotelManage\CheckOut.Designer.cs
文件 5817 2014-05-15 15:11 4酒店客房管理系统\HotelManage\HotelManage\CheckOut.resx
............此处省略94个文件信息
- 上一篇:C# 生成二维码名片
- 下一篇:非常简单的坦克大战.zip
相关资源
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- 超市进销存管理系统 Sqlserver 数据库文
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
评论
共有 条评论