資源簡(jiǎn)介
本系統(tǒng)實(shí)現(xiàn)了教室信息的查詢(xún)和調(diào)換功能,增加了報(bào)表管理!
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Data.SqlClient;
namespace?教室管理系統(tǒng)
{
????public?partial?class?changePassword?:?Form
????{
????????public?changePassword()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(textBox1.Text==““||textBox2.Text==““||textBox3.Text==““)
????????????{
????????????????MessageBox.Show(“修改失敗!不允許為空值?!?“友情提示“?MessageBoxButtons.OK?MessageBoxIcon.Information);
????????????}
????????????else?if?(textBox2.Text?!=?textBox3.Text)
????????????????{
????????????????????MessageBox.Show(“修改失敗!請(qǐng)確保兩次輸入的密碼一致!“?“友情提示“?MessageBoxButtons.OK?MessageBoxIcon.Information);
????????????????}
????????????????else
????????????????{
????????????????????SqlConnection?conn?=?教室管理系統(tǒng).db.con();
????????????????????String?sql?=?“update?users?set?password=‘“?+?this.textBox2.Text?+?“‘?where?username=‘“?+?this.textBox1.Text?+?“‘“;
????????????????????conn.Open();
????????????????????SqlCommand?cmd?=?new?SqlCommand(sql?conn);
????????????????????cmd.ExecuteNonQuery();
????????????????????conn.Close();
????????????????????if?(MessageBox.Show(“密碼修改成功“?“信息提示“?MessageBoxButtons.OKCancel?MessageBoxIcon.Asterisk)?==?DialogResult.OK)
????????????????????{
????????????????????????this.Close();
????????????????????}
????????????????}
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件????????943??2010-01-05?15:00??教室管理系統(tǒng)\教室管理系統(tǒng).sln
????..A..H.?????28160??2010-01-07?16:56??教室管理系統(tǒng)\教室管理系統(tǒng).suo
?????文件???????6432??2010-01-07?16:43??教室管理系統(tǒng)\教室管理系統(tǒng)\Report.resx
?????文件???????1662??2010-01-07?16:45??教室管理系統(tǒng)\教室管理系統(tǒng)\changePassword.cs
?????文件???????5032??2010-01-05?15:38??教室管理系統(tǒng)\教室管理系統(tǒng)\changePassword.Designer.cs
?????文件???????5814??2010-01-05?15:38??教室管理系統(tǒng)\教室管理系統(tǒng)\changePassword.resx
?????文件???????1704??2010-01-07?16:43??教室管理系統(tǒng)\教室管理系統(tǒng)\roomUpdate.cs
?????文件???????8421??2010-01-07?16:42??教室管理系統(tǒng)\教室管理系統(tǒng)\changeRoom.Designer.cs
?????文件???????5814??2010-01-07?16:42??教室管理系統(tǒng)\教室管理系統(tǒng)\changeRoom.resx
?????文件???????6105??2010-01-07?16:37??教室管理系統(tǒng)\教室管理系統(tǒng)\checkForm.Designer.cs
?????文件???????6012??2010-01-07?16:37??教室管理系統(tǒng)\教室管理系統(tǒng)\checkForm.resx
?????文件???????2173??2010-01-07?16:40??教室管理系統(tǒng)\教室管理系統(tǒng)\LoginForm.cs
?????文件???????3561??2010-01-07?16:43??教室管理系統(tǒng)\教室管理系統(tǒng)\Report.Designer.cs
?????文件????????328??2010-01-05?15:18??教室管理系統(tǒng)\教室管理系統(tǒng)\db.cs
?????文件???????1812??2010-01-07?16:42??教室管理系統(tǒng)\教室管理系統(tǒng)\changeRoom.cs
?????文件???????9374??2010-01-07?16:40??教室管理系統(tǒng)\教室管理系統(tǒng)\LoginForm.Designer.cs
?????文件???????6012??2010-01-07?16:40??教室管理系統(tǒng)\教室管理系統(tǒng)\LoginForm.resx
?????文件????????753??2010-01-07?16:43??教室管理系統(tǒng)\教室管理系統(tǒng)\Report.cs
?????文件???????6204??2010-01-07?16:43??教室管理系統(tǒng)\教室管理系統(tǒng)\roomUpdate.Designer.cs
?????文件???????2260??2010-01-05?16:37??教室管理系統(tǒng)\教室管理系統(tǒng)\manageUsers.cs
?????文件???????5637??2010-01-05?16:28??教室管理系統(tǒng)\教室管理系統(tǒng)\manageUsers.Designer.cs
?????文件???????5814??2010-01-05?16:28??教室管理系統(tǒng)\教室管理系統(tǒng)\manageUsers.resx
?????文件???????5814??2010-01-07?16:43??教室管理系統(tǒng)\教室管理系統(tǒng)\roomUpdate.resx
?????文件????????477??2010-01-05?15:12??教室管理系統(tǒng)\教室管理系統(tǒng)\Program.cs
?????文件???????9808??2010-01-07?16:25??教室管理系統(tǒng)\教室管理系統(tǒng)\教室管理系統(tǒng).csproj
?????文件????????631??2010-01-06?16:06??教室管理系統(tǒng)\教室管理系統(tǒng)\教室管理系統(tǒng).csproj.user
?????文件????1048576??2010-01-07?16:20??教室管理系統(tǒng)\教室管理系統(tǒng)\manage_Data.MDF
?????文件????????994??2010-01-07?16:21??教室管理系統(tǒng)\教室管理系統(tǒng)\app.config
?????文件??????20914??2010-01-07?16:21??教室管理系統(tǒng)\教室管理系統(tǒng)\manageDataSet.xsd
?????文件??????60607??2010-01-07?16:21??教室管理系統(tǒng)\教室管理系統(tǒng)\manageDataSet.Designer.cs
............此處省略60個(gè)文件信息
- 上一篇:官網(wǎng)Apache2.2
- 下一篇:MT4編程 EA模板
評(píng)論
共有 條評(píng)論