資源簡(jiǎn)介
這是一個(gè)用C#實(shí)現(xiàn)的基于Sql Server的新生報(bào)到注冊(cè)系統(tǒng),包括數(shù)據(jù)庫(kù)管理、新生注冊(cè)、注冊(cè)查詢、修改新生信息等模塊。含源代碼和數(shù)據(jù)庫(kù)。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?DBUtil;
namespace?StudentRegisterSystem
{
????public?partial?class?FormEdit?:?Form
????{
????????string?m_strID;
????????public?FormEdit()
????????{
????????????InitializeComponent();
????????}
????????//?查找并填充窗體
????????private?void?btnSearch_Click(object?sender?EventArgs?e)
????????{
????????????DataSet?dsStudent?=?StudentDBUtil.StudentEditQuery(tbxName.Text?“Student“);
????????????if?(dsStudent.Tables[“Student“]?!=?null)
????????????{
????????????????if?(dsStudent.Tables[“Student“].Rows.Count?>?0)
????????????????{
????????????????????m_strID?=?dsStudent.Tables[“Student“].Rows[0][“ID“].ToString();
????????????????????tbxName.Text?=?dsStudent.Tables[“Student“].Rows[0][“Name“].ToString();
????????????????????cbxGender.Text?=?dsStudent.Tables[“Student“].Rows[0][“Gender“].ToString();
????????????????????dtpBirthday.Value?=?Convert.ToDateTime(dsStudent.Tables[“Student“].Rows[0][“Birthday“].ToString());
????????????????????tbxProvince.Text?=?dsStudent.Tables[“Student“].Rows[0][“Province“].ToString();
????????????????????dtpRegDate.Value?=?Convert.ToDateTime(dsStudent.Tables[“Student“].Rows[0][“RegDate“].ToString());
????????????????????cbxCollege.Text?=?dsStudent.Tables[“Student“].Rows[0][“RegCollege“].ToString();
????????????????????nudRegGrade.Value?=?Convert.ToInt32(dsStudent.Tables[“Student“].Rows[0][“RegGrade“].ToString());
????????????????}
????????????}
????????}
????????//?修改
????????private?void?btnEdit_Click(object?sender?EventArgs?e)
????????{
????????????StudentDBUtil.StudentRegisterEdit(
????????????????m_strID
????????????????tbxName.Text
????????????????cbxGender.Text
????????????????dtpBirthday.Text
????????????????tbxProvince.Text
????????????????dtpRegDate.Text
????????????????cbxCollege.Text
????????????????nudRegGrade.Value.ToString());
????????????MessageBox.Show(tbxName.Text?+?“修改成功!“?this.Text?MessageBoxButtons.OK?MessageBoxIcon.Information);
????????}
????????//清空
????????private?void?btnClear_Click(object?sender?EventArgs?e)
????????{
????????????Clear();
????????}
????????//關(guān)閉
????????private?void?btnClose_Click(object?sender?EventArgs?e)
????????{
????????????this.Close();
????????}
????????//?清空
????????private?void?Clear()
????????{
????????????tbxName.Text?=?““;
????????????cbxGender.Text?=?““;
????????????dtpBirthday.Value?=?DateTime.Today;
????????????tbxProvince.Text?=?““;
????????????dtpRegDate.Value?=?DateTime.Today;
????????????cbxCollege.Text?=?““;
????????????nudRegGrade.Text?=?nudRegGrade.Minimum.ToString();
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????422912??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\Setup\Debug\setup.exe
?????文件?????322048??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\Setup\Debug\Setup.msi
?????文件??????27246??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\Setup\Setup.vdproj
?????文件????????197??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\App.config
?????文件??????36864??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\bin\Debug\StudentRegisterSystem.exe
?????文件????????197??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\bin\Debug\StudentRegisterSystem.exe.config
?????文件??????54784??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\bin\Debug\StudentRegisterSystem.pdb
?????文件???????5632??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\bin\Debug\StudentRegisterSystem.vshost.exe
?????文件????????197??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\bin\Debug\StudentRegisterSystem.vshost.exe.config
?????文件???????3192??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\DBUtil\DBUtil.cs
?????文件???????4197??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\DBUtil\StudentDBUtil.cs
?????文件???????2787??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormEdit.cs
?????文件??????13024??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormEdit.Designer.cs
?????文件???????5814??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormEdit.resx
?????文件???????1016??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormMain.cs
?????文件???????4363??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormMain.Designer.cs
?????文件???????6012??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormMain.resx
?????文件????????821??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormQuery.cs
?????文件???????8169??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormQuery.Designer.cs
?????文件???????7125??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormQuery.resx
?????文件???????1542??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormRegister.cs
?????文件??????12424??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormRegister.Designer.cs
?????文件???????5814??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\FormRegister.resx
?????文件???????1033??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\obj\Debug\StudentRegisterSystem.csproj.GenerateResource.Cache
?????文件??????36864??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\obj\Debug\StudentRegisterSystem.exe
?????文件????????180??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\obj\Debug\StudentRegisterSystem.FormEdit.resources
?????文件????????180??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\obj\Debug\StudentRegisterSystem.FormMain.resources
?????文件????????180??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\obj\Debug\StudentRegisterSystem.FormQuery.resources
?????文件????????180??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\obj\Debug\StudentRegisterSystem.FormRegister.resources
?????文件??????54784??2007-04-17?13:26??新生報(bào)到注冊(cè)系統(tǒng)\code\StudentRegisterSystem\obj\Debug\StudentRegisterSystem.pdb
............此處省略32個(gè)文件信息
- 上一篇:數(shù)據(jù)集-用做回歸.csv
- 下一篇:C#仿迅雷程序
評(píng)論
共有 條評(píng)論