資源簡介
c#學生成績管理系統c#學生成績管理系統c#學生成績管理系統c#學生成績管理系統

代碼片段和文件信息
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?AddCourse?:?Form
????{
????????public?AddCourse()
????????{
????????????InitializeComponent();
????????}
????????OleDbConnection?connection1?=?new?OleDbConnection(“Provider=Microsoft.Jet.OLEDB.4.0;“?+?“Data?Source=D:\\db.mdb“);
????????private?void?AddCourse_Load(object?sender?EventArgs?e)
????????{
????????????connection1.Open();
????????????string?sql?=?“select?SpecialtyIDSpecialtyName?from?SpecialtyInfo“;
????????????OleDbDataAdapter?adp?=?new?OleDbDataAdapter(sql?connection1);
????????????DataSet?ds?=?new?DataSet();
????????????adp.Fill(ds?“SpecialtyInfo“);
????????????cbx_specialty.DataSource?=?ds.Tables[“SpecialtyInfo“].DefaultView;
????????????cbx_specialty.DisplayMember?=?“SpecialtyName“;
????????????cbx_specialty.ValueMember?=?“SpecialtyID“;
????????????txt_year.Text?=?System.DateTime.Now.Year.ToString().Trim();
????????}
????????private?void?cbx_specialty_SelectedIndexChanged(object?sender?EventArgs?e)
????????{
????????????txt_year.Clear();
????????????cbx_class.DataSource?=?null;
????????????cbx_class.SelectedIndex?=?-1;
????????}
????????public?bool?strisyear(string?s)
????????{
????????????if?(s.Trim().Length?!=?4)
????????????????return?(false);
????????????else
????????????{
????????????????int?n?=?1;
????????????????for?(int?i?=?0;?i?<=?s.Length?-?1;?i++)
????????????????{
????????????????????if?(!System.Char.IsNumber(s[i]))
????????????????????{
????????????????????????n?=?-1;
????????????????????????break;
????????????????????}
????????????????}
????????????????if?(n?==?1)
????????????????????return?(true);
????????????????else
????????????????????return?(false);
????????????}
????????}
????????private?void?txt_year_TextChanged(object?sender?EventArgs?e)
????????{
????????????if?(txt_year.Text.Trim()?!=?““?&&?txt_year.Text.Trim().Length?==?4?&&?strisyear(txt_year.Text.Trim()))
????????????{
????????????????string?sql?=?“select?ClassIDClassName?from?ClassInfo?where?SpecialtyName=‘“?+?cbx_specialty.Text.ToString()?+?“‘?and?year(EnrolmentTime)=“?+?txt_year.Text.ToString();
????????????????OleDbDataAdapter?adp?=?new?OleDbDataAdapter(sql?connection1);
????????????????DataSet?ds?=?new?DataSet();
????????????????adp.Fill(ds?“ClassInfo“);
????????????????if?(ds.Tables[“ClassInfo“].Rows.Count?!=?0)
????????????????{
????????????????????cbx_class.DisplayMember?=?“ClassName“;
????????????????????cbx_class.ValueMember?=?“ClassID“;
????????????????????cbx_class.DataSource?=?ds.Tables[0].DefaultView;
????????????????}
????????????????else
????????????????{
????????????????????cbx_class.DataSource?=?null;
????????????????????cbx_class.SelectedIndex?=?-1;
????????????????}
????????????}
??????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????692224??2008-12-11?20:35??學生成績管理系統\db.mdb
?????文件???????6204??2008-12-05?12:39??學生成績管理系統\學生成績管理系統\AddCourse.cs
?????文件???????9214??2008-12-05?12:39??學生成績管理系統\學生成績管理系統\AddCourse.Designer.cs
?????文件???????5814??2008-12-05?12:39??學生成績管理系統\學生成績管理系統\AddCourse.resx
?????文件???????7786??2008-12-05?01:24??學生成績管理系統\學生成績管理系統\AddScore.cs
?????文件??????15287??2008-12-05?01:24??學生成績管理系統\學生成績管理系統\AddScore.Designer.cs
?????文件???????5814??2008-12-05?01:24??學生成績管理系統\學生成績管理系統\AddScore.resx
?????文件??????13448??2008-12-05?01:24??學生成績管理系統\學生成績管理系統\AddStudent.Designer.cs
?????文件???????5814??2008-12-05?01:24??學生成績管理系統\學生成績管理系統\AddStudent.resx
?????文件???????2078??2008-12-05?01:24??學生成績管理系統\學生成績管理系統\AddUser.cs
?????文件???????5818??2008-12-05?01:24??學生成績管理系統\學生成績管理系統\AddUser.Designer.cs
?????文件???????5814??2008-12-05?01:24??學生成績管理系統\學生成績管理系統\AddUser.resx
?????文件?????249344??2008-12-11?20:42??學生成績管理系統\學生成績管理系統\bin\Debug\學生成績管理系統.exe
?????文件?????153088??2008-12-11?20:42??學生成績管理系統\學生成績管理系統\bin\Debug\學生成績管理系統.pdb
?????文件??????14328??2008-12-26?13:53??學生成績管理系統\學生成績管理系統\bin\Debug\學生成績管理系統.vshost.exe
?????文件????????490??2007-07-21?01:33??學生成績管理系統\學生成績管理系統\bin\Debug\學生成績管理系統.vshost.exe.manifest
?????文件???????4413??2008-12-07?00:26??學生成績管理系統\學生成績管理系統\Form1.cs
?????文件???????8251??2008-12-05?12:51??學生成績管理系統\學生成績管理系統\Form1.Designer.cs
?????文件?????262915??2008-12-05?12:51??學生成績管理系統\學生成績管理系統\Form1.resx
?????文件??????10672??2008-12-08?14:56??學生成績管理系統\學生成績管理系統\Main.Designer.cs
?????文件???????6012??2008-12-08?14:56??學生成績管理系統\學生成績管理系統\Main.resx
?????文件???????3379??2008-12-05?01:25??學生成績管理系統\學生成績管理系統\ModifyPasswd.cs
?????文件???????5886??2008-12-05?01:25??學生成績管理系統\學生成績管理系統\ModifyPasswd.Designer.cs
?????文件???????5814??2008-12-05?01:25??學生成績管理系統\學生成績管理系統\ModifyPasswd.resx
?????文件???????1429??2008-12-05?01:22??學生成績管理系統\學生成績管理系統\ModifyScore.cs
?????文件???????4548??2008-12-05?01:22??學生成績管理系統\學生成績管理系統\ModifyScore.Designer.cs
?????文件???????5814??2008-12-05?01:22??學生成績管理系統\學生成績管理系統\ModifyScore.resx
?????文件???????9541??2008-12-08?16:16??學生成績管理系統\學生成績管理系統\ViewCourse.Designer.cs
?????文件???????5814??2008-12-08?16:16??學生成績管理系統\學生成績管理系統\ViewCourse.resx
?????文件????????180??2008-12-08?01:27??學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.AddCourse.resources
............此處省略59個文件信息
評論
共有 條評論