资源简介
采用c#+sql的组合。整个系统是管理酒店的房间。包括旅客入住、退房、换房等。内附系统考核要求

代码片段和文件信息
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;
using System.Data.SqlClient;
namespace 期末大作业系统
{
public partial class LoginForm : Form
{
public static bool blCanLogin = false;
public static int count = 0;
public mainForm objMainForm;
public LoginForm(mainForm obj)
{
InitializeComponent();
objMainForm = obj;
}
private void loginbutten_Click(object sender EventArgs e)
{
SqlConnection con = new SqlConnection(“server=.;database=酒店管理系统;integrated security=true;“);
con.Open();
string sqlStr = “select count(*) from [管理员] where 用户名=@name and 密码=@pass“;
SqlCommand com = new SqlCommand(sqlStr con);
com.Parameters.Add(new SqlParameter(“@name“ SqlDbType.VarChar 20));
com.Parameters[“@name“].Value = textBoxName.Text;
com.Parameters.Add(new SqlParameter(“@pass“ SqlDbType.VarChar 50));
com.Parameters[“@pass“].Value = textBoxpwd.Text;
int result = (int)com.ExecuteScalar();
if (textBoxName.Text == ““ || textBoxpwd.Text == ““)
{
MessageBox.Show(“用户名和密码不能为空!请输入!“);
return;
}
else
{
if (result > 0)
{
//DialogResult = DialogResult.OK;
blCanLogin = true;
this.Visible = false;
return;
}
else
{
count++;
if (count > 2)
{
MessageBox.Show(“你输入错误3次“);
DialogResult = DialogResult.Cancel;
return;
}
MessageBox.Show(“你输入的用户名或密码错误!“);
return;
}
}
}
private void buttonQuxiao_Click(object sender EventArgs e)
{
textBoxName.Text = ““;
textBoxpwd.Text = ““;
}
private void LoginForm_FormClosed(object sender FormClosedEventArgs e)
{
objMainForm.Close();
Application.Exit();
}
private void LoginForm_Load(object sender EventArgs e)
{
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 856576 2010-12-30 16:34 期末大作业系统\期末大作业系统\bin\Debug\期末大作业系统.exe
文件 75264 2010-12-30 16:34 期末大作业系统\期末大作业系统\bin\Debug\期末大作业系统.pdb
文件 14328 2010-12-30 16:34 期末大作业系统\期末大作业系统\bin\Debug\期末大作业系统.vshost.exe
文件 490 2007-07-21 01:33 期末大作业系统\期末大作业系统\bin\Debug\期末大作业系统.vshost.exe.manifest
文件 2703 2010-12-30 16:27 期末大作业系统\期末大作业系统\LoginForm.cs
文件 5921 2010-12-30 16:27 期末大作业系统\期末大作业系统\LoginForm.Designer.cs
文件 5814 2010-12-30 16:27 期末大作业系统\期末大作业系统\LoginForm.resx
文件 2881 2010-12-30 16:00 期末大作业系统\期末大作业系统\mainForm.cs
文件 12687 2010-12-29 14:47 期末大作业系统\期末大作业系统\mainForm.Designer.cs
文件 6216 2010-12-29 14:47 期末大作业系统\期末大作业系统\mainForm.resx
文件 7168 2010-12-30 15:54 期末大作业系统\期末大作业系统\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
文件 6148 2010-12-30 16:34 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.csproj.FileListAbsolute.txt
文件 1890 2010-12-30 16:29 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.csproj.GenerateResource.Cache
文件 856576 2010-12-30 16:34 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.exe
文件 180 2010-12-30 16:27 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.LoginForm.resources
文件 180 2010-12-30 16:04 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.mainForm.resources
文件 75264 2010-12-30 16:34 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.pdb
文件 818880 2010-12-30 16:04 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.Properties.Resources.resources
文件 180 2010-12-30 16:29 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.增加客房信息.resources
文件 180 2010-12-30 16:04 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.客房管理.resources
文件 180 2010-12-30 16:04 期末大作业系统\期末大作业系统\obj\Debug\期末大作业系统.宾客管理.resources
文件 505 2010-12-17 10:20 期末大作业系统\期末大作业系统\Program.cs
文件 1398 2010-12-17 08:43 期末大作业系统\期末大作业系统\Properties\AssemblyInfo.cs
文件 7168 2010-12-30 15:54 期末大作业系统\期末大作业系统\Properties\Resources.Designer.cs
文件 10114 2010-12-30 15:54 期末大作业系统\期末大作业系统\Properties\Resources.resx
文件 1106 2010-12-17 08:43 期末大作业系统\期末大作业系统\Properties\Settings.Designer.cs
文件 249 2010-12-17 08:43 期末大作业系统\期末大作业系统\Properties\Settings.settings
文件 10382 2010-12-30 14:24 期末大作业系统\期末大作业系统\Resources\09211_1.png
文件 9041 2010-12-30 14:20 期末大作业系统\期末大作业系统\Resources\09211_2.png
文件 13018 2010-12-30 14:28 期末大作业系统\期末大作业系统\Resources\09211_22.png
............此处省略43个文件信息
- 上一篇:C#爬虫实现网盘资源搜索
- 下一篇:微软c# chart控件 全部
相关资源
- 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#版保龄球记分代码
评论
共有 条评论