資源簡介
一個自己制作的很簡單的程序 可以實現基本的查刪改 適合新手學習用

代碼片段和文件信息
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.OleDb;
namespace?酒店管理系統
{
????public?partial?class?Form1?:?Form
????{
????????static?public?string?userid;
????????static?public?string?userpass;
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(textBox1.Text.Trim()?==?““?||?textBox2.Text.Trim()?==?““)
????????????{
????????????????MessageBox.Show(“請輸入完整信息!!“);
????????????????return;
????????????}
????????????OleDbConnection?con=new?OleDbConnection();
????????????con.ConnectionString?=?@“Provider=Microsoft.Jet.OLEDB.4.0;Data?Source=“?+?AppDomain.CurrentDomain.baseDirectory?+?“酒店管理系統數據庫.mdb“;
????????????con.Open();
????????????string?ol?=?“select?用戶名用戶密碼?from?用戶表?where?用戶名=‘“+textBox1.Text+“‘and?用戶密碼=‘“+textBox2.Text+“‘“;
????????????OleDbCommand?cmd?=?new?OleDbCommand(olcon);
????????????OleDbDataReader?dr?=?cmd.ExecuteReader();
????????????if?(dr.Read())
????????????{
????????????????userid?=?textBox1.Text;
????????????????userpass?=?textBox2.Text;
????????????????Form2?Form2?=?new?Form2();
????????????????Form2.Show();
????????????????Hide();
????????????}
????????????else
????????????{
????????????????MessageBox.Show(“用戶名或密碼不正確!!“);
????????????}
????????????con.Close();
????????}
????????private?void?label4_Click(object?sender?EventArgs?e)
????????{
????????????Application.Exit();
????????}
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????Form3?From3?=?new?Form3();
????????????From3.Show();
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????}
????????private?void?label5_Click(object?sender?EventArgs?e)
????????{
????????????Form13?Form13?=?new?Form13();
????????????Form13.Show();
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????740??2010-06-23?12:36??酒店管理系統\酒店管理系統\app.config
?????文件????????740??2010-06-23?12:36??酒店管理系統\酒店管理系統\bin\Debug\app.publish\Application?Files\酒店管理系統_1_0_0_1\酒店管理系統.exe.config.deploy
?????文件?????458752??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\app.publish\Application?Files\酒店管理系統_1_0_0_1\酒店管理系統.exe.deploy
?????文件???????9230??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\app.publish\Application?Files\酒店管理系統_1_0_0_1\酒店管理系統.exe.manifest
?????文件?????528384??2010-06-27?15:00??酒店管理系統\酒店管理系統\bin\Debug\app.publish\Application?Files\酒店管理系統_1_0_0_1\酒店管理系統數據庫.mdb.deploy
?????文件?????461728??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\app.publish\setup.exe
?????文件???????5331??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\app.publish\酒店管理系統.application
?????文件???????1614??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統.application
?????文件?????458752??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統.exe
?????文件????????740??2010-06-23?12:36??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統.exe.config
?????文件???????5594??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統.exe.manifest
?????文件?????253440??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統.pdb
?????文件???????1614??2010-09-30?22:50??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統.vshost.application
?????文件??????14328??2010-12-12?17:09??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統.vshost.exe
?????文件????????740??2010-06-23?12:36??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統.vshost.exe.config
?????文件?????528384??2010-06-27?15:00??酒店管理系統\酒店管理系統\bin\Debug\酒店管理系統數據庫.mdb
?????文件???????2163??2010-06-28?12:08??酒店管理系統\酒店管理系統\Form1.cs
?????文件???????8662??2010-06-28?12:08??酒店管理系統\酒店管理系統\Form1.Designer.cs
?????文件?????165202??2010-06-28?12:08??酒店管理系統\酒店管理系統\Form1.resx
?????文件????????776??2010-06-23?13:41??酒店管理系統\酒店管理系統\Form10.cs
?????文件???????4501??2010-06-23?13:41??酒店管理系統\酒店管理系統\Form10.Designer.cs
?????文件???????6469??2010-06-23?13:41??酒店管理系統\酒店管理系統\Form10.resx
?????文件???????5922??2010-06-23?13:32??酒店管理系統\酒店管理系統\Form11.cs
?????文件??????30958??2010-06-23?13:32??酒店管理系統\酒店管理系統\Form11.Designer.cs
?????文件???????9152??2010-06-23?13:32??酒店管理系統\酒店管理系統\Form11.resx
?????文件???????3233??2010-06-27?14:32??酒店管理系統\酒店管理系統\Form12.cs
?????文件???????9711??2010-06-26?09:01??酒店管理系統\酒店管理系統\Form12.Designer.cs
?????文件???????5814??2010-06-26?09:01??酒店管理系統\酒店管理系統\Form12.resx
?????文件???????2871??2010-06-28?11:53??酒店管理系統\酒店管理系統\Form13.cs
?????文件???????6240??2010-06-28?11:53??酒店管理系統\酒店管理系統\Form13.Designer.cs
............此處省略90個文件信息
評論
共有 條評論