資源簡(jiǎn)介
學(xué)生學(xué)籍信息管理系統(tǒng),應(yīng)用ASP編寫,適合初學(xué)者學(xué)習(xí)、借鑒,基于VS平臺(tái)

代碼片段和文件信息
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?StudentMM
{
????public?partial?class?Main?:?Form
????{
????????public?Main()
????????{
????????????InitializeComponent();
????????}
????????private?void?enter_Click(object?sender?EventArgs?e)
????????{
????????????string?source=““;
????????????if?(manager.Checked?==?true)
????????????{
????????????????STUid.Text?=?“用戶名“;
????????????????if?(textBox1.Text?==?““?||?textBox2.Text?==?““)
????????????????????MessageBox.Show(“用戶名或密碼為空!“);
????????????????else?if?(textBox1.Text?!=?“guanliyuan“?||?textBox2.Text?!=?“xjgl“)
????????????????????MessageBox.Show(“用戶名或密碼錯(cuò)誤!“);
????????????????else
????????????????{
????????????????????Manager?mana?=?new?Manager();
????????????????????this.Hide();
????????????????????mana.ShowDialog();
????????????????????textBox1.Text?=?““;
????????????????????textBox2.Text?=?““;
????????????????????this.Show();
????????????????}
????????????}
????????????else
????????????{
????????????????STUid.Text?=?“學(xué)號(hào)“;
????????????????if?(textBox1.Text?==?““)
????????????????????MessageBox.Show(“學(xué)號(hào)為空!“);
????????????????else
????????????????{
????????????????????source?=?textBox1.Text;
????????????????????SqlConnection?conn?=?new?SqlConnection(@“data?source=.;Integrated?Security=SSPI;database=student“);
????????????????????try
????????????????????{
????????????????????????source?=?“select?*?from?S?where?StuId=“?+?source;
????????????????????????textBox2.Text?=?source;
????????????????????????conn.Open();
????????????????????????SqlCommand?cmd?=?conn.CreateCommand();
????????????????????????cmd.CommandType?=?CommandType.Text;
????????????????????????cmd.CommandText?=?source;
????????????????????????//cmd.CommandText?=?source;
????????????????????????SqlDataReader?dr?=?cmd.ExecuteReader();
????????????????????????if?(!dr.HasRows)
????????????????????????{
????????????????????????????MessageBox.Show(“該學(xué)號(hào)不存在!“);
????????????????????????}
????????????????????????else
????????????????????????{
????????????????????????????stusearch?stu?=?new?stusearch(textBox1.Text);
???????????????????????
????????????????????????????this.Hide();
????????????????????????????stu.ShowDialog();
????????????????????????????textBox1.Text?=?““;
????????????????????????????textBox1.Text?=?““;
????????????????????????????this.Show();
????????????????????????}
????????????????????}
????????????????????catch?(System.Data.SqlClient.SqlException?ex)
????????????????????{
????????????????????????MessageBox.Show(“數(shù)據(jù)庫(kù)的操作出現(xiàn)錯(cuò)誤!“?+?ex);
????????????????????}
????????????????????finally
????????????????????{
????????????????????????conn.Close();
????????????????????}
????????????????}
????????????}
????????????}
????????}
????}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????916??2006-10-28?01:14??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM.sln
????..A..H.?????26112??2006-11-07?13:14??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM.suo
????..A..H.??????7168??2006-11-07?12:57??學(xué)生學(xué)籍管理系統(tǒng)\Student.suo
?????文件????????393??2006-10-28?01:19??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\app.config
?????文件??????12509??2006-11-05?01:15??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\Manager.cs
?????文件??????32026??2006-11-05?01:15??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\Manager.Designer.cs
?????文件?????143920??2006-11-05?01:15??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\Manager.resx
?????文件????????467??2006-10-28?01:15??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\Program.cs
?????文件?????????38??2006-11-05?01:20??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\ReadMe.txt
?????文件?????169805??2006-11-05?00:20??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet.Designer.cs
?????文件????????381??2006-11-05?00:20??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet.xsc
?????文件??????52960??2006-11-05?00:20??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet.xsd
?????文件???????1451??2006-11-05?00:20??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet.xss
?????文件?????163485??2006-10-28?04:45??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet1.Designer.cs
?????文件??????????3??2006-10-28?04:45??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet1.xsc
?????文件??????49778??2006-10-28?04:45??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet1.xsd
?????文件??????????3??2006-10-28?04:45??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet1.xss
?????文件?????222353??2006-11-05?00:31??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet2.Designer.cs
?????文件????????381??2006-11-05?00:31??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet2.xsc
?????文件??????60836??2006-11-05?00:31??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet2.xsd
?????文件???????2051??2006-11-05?00:31??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\studentDataSet2.xss
?????文件???????6148??2006-11-07?13:05??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\StudentMM.csproj
?????文件????????919??2006-10-28?04:25??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\StudentMM.csproj.user
?????文件??????30112??2006-11-07?13:00??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\Main.Designer.cs
?????文件?????206027??2006-11-07?13:00??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\Main.resx
?????文件??????15693??2006-11-07?13:07??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\stusearch.Designer.cs
?????文件?????113864??2006-11-07?13:07??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\stusearch.resx
?????文件???????2997??2006-11-07?13:11??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\Main.cs
?????文件???????5295??2006-11-07?13:12??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\stusearch.cs
?????文件???????1166??2006-10-28?01:14??學(xué)生學(xué)籍管理系統(tǒng)\StudentMM\Properties\AssemblyInfo.cs
............此處省略31個(gè)文件信息
評(píng)論
共有 條評(píng)論