資源簡介
本系統主要用于學校學生信息管理,總體任務是實現學生信息關系的系統化、規范化和自動化,其主要任務是用計算機對學生信息進行日常管理,如查詢、修改 、增加、刪除,另外還考慮到用戶登錄的權限,針對學生信息和權限登錄的學生成績管理系統。

代碼片段和文件信息
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?學生成績管理系統
{
????public?partial?class?Login?:?Form
????{
????????static?public?string?snsub;
????????public?Login()
????????{
????????????InitializeComponent();
????????}
????????Form2?fr2?=?new?Form2();?Form3?fr3?=?new?Form3();?Form4?fr4?=?new?Form4();//——————————————————————————創建新窗體
????????private?void?Login_Load(object?sender?EventArgs?e)
????????{
????????????timer1.Start();??????????????????????????????????????????????????????//?——————————————————————————Timer控件
????????}
????????private?void?btnlogin_Click(object?sender?EventArgs?e)
????????{//Password=kzl;Persist?Security?Info=True;User?ID=kzl;Initial?Catalog=學生成績管理系統;Data?Source=(local)
?????????//???string?str?=?“Password=kzl;Persist?Security?Info=True;User?ID=kzl;Initial?Catalog=學生成績管理系統;Data?Source=(local)“;
????????????string?str?=?“Password=kzl;Persist?Security?Info=True;User?ID=kzl;Initial?Catalog=學生成績管理系統;Data?Source=PC-200812051504“;
????????????SqlConnection?conn?=?new?SqlConnection(str);//———————————————————————————————————連接數據庫
????????????conn.Open();
??????????
????????????if(?txtname?.Text==““||txtpassword?.Text==““)
????????????????MessageBox.Show?(“請不要遺漏信息!“);
????????????if?(rbtnmanager.Checked)
????????????{
????????????????string?cstr=“select?*?from?用戶登錄?where?類別=‘管理員‘and?用戶名=‘“+txtname.Text.Trim?()+“‘and?密碼=‘“+txtpassword?.Text.Trim?()+“‘“;
????????????????SqlCommand?comm=new?SqlCommand?(cstrconn?);
????????????????SqlDataReader?dr=comm.ExecuteReader?();
????????????????if?(dr.Read())
????????????????{?sn?=?txtname.Text.Trim();?fr4.Show();?this.Visible?=?false;?}
????????????????else
????????????????{
????????????????????MessageBox.Show(“輸入有誤,請重新輸入!“);
????????????????????txtname.Text?=?““;?txtpassword.Text?=?““;
????????????????}
????????????}
????????????if?(rbtnteacher.Checked)
????????????{
????????????????string?cstr?=?“select?*?from?用戶登錄?where?類別=‘教師‘and?用戶名=‘“?+?txtname.Text.Trim()?+?“‘and?密碼=‘“?+?txtpassword.Text.Trim()?+?“‘“;
????????????????SqlCommand?comm?=?new?SqlCommand(cstr?conn);
????????????????SqlDataReader?dr?=?comm.ExecuteReader();
????????????????if?(dr.Read())
????????????????{?sn?=?txtname.Text.Trim();?sub?=?dr.GetValue(3).ToString?();?fr3.Show();?this.Visible?=?false;?}
????????????????else
????????????????{
????????????????????MessageBox.Show(“輸入有誤,請重新輸入!“);
????????????????????txtname.Text?=?““;?txtpassword.Text?=?““;
????????????????}
????????????}
????????????if?(rbtnstudent.Checked)
????????????{
????????????????string?cstr?=?“select?*?from?用戶登錄?where?類別=‘學生‘and?用戶名=‘“?+?txtname.Text.Trim()?+?“‘and?密碼=‘“?+?txtpassword.Text.Trim()?+?“‘“;
????????????????SqlCommand?comm?=?new?SqlCommand(cstr?conn);
????????????????SqlDataReader?dr?=?comm.ExecuteReader();
????????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????58368??2008-12-23?10:33??學生成績管理系統(C#+SQL)\c#課設任務書-0752.doc
?????文件????1265664??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\bin\Debug\學生成績管理系統.exe
?????文件??????69120??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\bin\Debug\學生成績管理系統.pdb
?????文件???????5632??2005-11-11?22:25??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\bin\Debug\學生成績管理系統.vshost.exe
?????文件???????4106??2008-12-29?19:08??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form1.cs
?????文件??????10846??2008-12-28?23:55??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form1.Designer.cs
?????文件??????50615??2008-12-28?23:55??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form1.resx
?????文件???????6250??2008-12-29?20:01??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form2.cs
?????文件??????17385??2008-12-29?13:09??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form2.Designer.cs
?????文件????1772866??2008-12-29?13:09??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form2.resx
?????文件???????7658??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form3.cs
?????文件??????21230??2008-12-29?17:00??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form3.Designer.cs
?????文件??????13277??2008-12-29?17:00??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form3.resx
?????文件???????5749??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form4.cs
?????文件??????20023??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form4.Designer.cs
?????文件???????6008??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Form4.resx
?????文件???????1016??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.csproj.GenerateResource.Cache
?????文件????1265664??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.exe
?????文件????1178243??2008-12-29?13:10??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.Form2.resources
?????文件???????5372??2008-12-29?17:03??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.Form3.resources
?????文件????????180??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.Form4.resources
?????文件??????30027??2008-12-28?23:55??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.Login.resources
?????文件??????69120??2008-12-29?20:45??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.pdb
?????文件????????180??2008-12-23?10:59??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\Debug\學生成績管理系統.Properties.Resources.resources
?????文件????????543??2008-12-30?13:25??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\obj\學生成績管理系統.csproj.FileList.txt
?????文件????????484??2008-12-26?09:54??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Program.cs
?????文件???????1244??2008-12-23?10:30??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Properties\AssemblyInfo.cs
?????文件???????2902??2008-12-23?10:30??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Properties\Resources.Designer.cs
?????文件???????5612??2008-12-23?10:30??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Properties\Resources.resx
?????文件???????1107??2008-12-23?10:30??學生成績管理系統(C#+SQL)\學生成績管理系統\學生成績管理系統\Properties\Settings.Designer.cs
............此處省略19個文件信息
評論
共有 條評論