ImageVerifierCode 换一换
格式:DOCX , 页数:16 ,大小:291.59KB ,
资源ID:3694733      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/3694733.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(C#大作业学生成绩管理系统.docx)为本站会员(b****4)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

C#大作业学生成绩管理系统.docx

1、C#大作业学生成绩管理系统C#大作业学生成绩管理系统D 主界面设计要求简单明了,能把系统的所有功能展现在主界面上面,能让人方便的查询学生的各种信息,包括系统管理、学生信息管理、课程信息管理、成绩信息管理、选课信息管理、特殊情况管理等功能,不仅如此,界面的设计也要美观大方,这样很好的实现了人机交互。学生信息查询:1.1功能(1)根据查询条件实现学生信息的查询(2)学生选课信息查询、成绩信息的查询(3)学生信息、课程信息、成绩信息的增加、删除、修改(4)对基本信息完成增加、删除、修改时,需注意表与表之间的关联1.2功能需求分析 学生信息查询:学生可以根据学号、姓名、专业进行查询.1.3软件环境需求

2、利用Visual Studio 2010作为前台开发工具,后台SQL数据库管理实现学生成绩管理系统。设计2.1学生信息查询模块学生信息查询:学生可以根据学号、姓名、班级、学院进行查询。 学生信息查询班级查询学院查询姓名查询学号查询2.2学生信息内容学生的信息包括学号,姓名,性别,民族,班级,院系,出生日期,政治面貌。学 生 信 息性别学号姓名政治面貌出生日期院系班级民族 3.数据库设计 本系统的数据库是SQL server数据库,在SQL环境下创建数据库学生管理系统文件。根据以上模块划分图分析,针对学生信息管理系统,分别对个人基本信息、选课、成绩进行详细的研究分析。数据库的设计采用一库多表式设

3、计。即设计了一个用户登录,添加学生信息,数据库中对学生的信息加入基础的添加、查询、修改和删除。该数据库包括Student、Score、Other、Course、Choice、User列表。本人负责部分为后用户信息“Student”表。以下是数据库的表清单:User表:Student表:Score表:Other表:Course表:Choice表:4.测试:主界面:学生信息查询:主要功能代码:Mainframe代码:namespace StudentIfoMag public partial class MainFrm : Form public MainFrm() InitializeCompo

4、nent(); private void 退出ToolStripMenuItem_Click(object sender, EventArgs e) this.Close(); private void 学生信息录入ToolStripMenuItem_Click(object sender, EventArgs e) StuIfoEnter ent = new StuIfoEnter(); ent.MdiParent = this; ent.Show(); tssStu.Text = ent.Text; private void 学生信息更新ToolStripMenuItem_Click(ob

5、ject sender, EventArgs e) StuIfoSearch ser = new StuIfoSearch(); ser.MdiParent = this; ser.Show(); tssStu .Text = ser.Text; private void 学生信息更新ToolStripMenuItem1_Click(object sender, EventArgs e) StuIfoUpdate upt = new StuIfoUpdate(); upt.MdiParent = this; upt.Show(); tssStu.Text = upt.Text; private

6、 void 课程信息录入ToolStripMenuItem_Click(object sender, EventArgs e) CourseEnter en = new CourseEnter(); en.MdiParent = this; en.Show(); tssStu.Text = en.Text; private void 成绩录入ToolStripMenuItem_Click(object sender, EventArgs e) ScoreEnter enter = new ScoreEnter(); enter.MdiParent = this; enter.Show () ;

7、 tssStu.Text = enter.Text; private void 成绩更新ToolStripMenuItem_Click(object sender, EventArgs e) ScoreUpdate up = new ScoreUpdate(); up.MdiParent = this; up.Show(); tssStu.Text = up.Text; private void 成绩排名ToolStripMenuItem_Click(object sender, EventArgs e) Rank ra = new Rank(); ra.MdiParent = this; r

8、a.Show(); tssStu.Text = ra.Text; private void 班级选课ToolStripMenuItem_Click(object sender, EventArgs e) CurChoice ch = new CurChoice(); ch.MdiParent = this; ch.Show(); tssStu.Text = ch.Text; private void 留级休学ToolStripMenuItem_Click(object sender, EventArgs e) Other oth = new Other(); oth.MdiParent = t

9、his; oth.Show(); tssStu.Text = oth.Text; private void 留级ToolStripMenuItem_Click(object sender, EventArgs e) Other2 the = new Other2(); the.MdiParent = this; the.Show(); tssStu.Text = the.Text; 学生信息查询代码:namespace StudentIfoMag public partial class StuIfoSearch : Form public StuIfoSearch() InitializeC

10、omponent(); private void StuIfoSearch_Load(object sender, EventArgs e) comboBox1.SelectedIndex = 0; / TODO: 这行代码将数据加载到表“studentIfoMagDataSet.Student”中。您可以根据需要移动或移除它。 / this.studentTableAdapter.Fill(this.studentIfoMagDataSet.Student); private void button1_Click(object sender, EventArgs e) string conn

11、String = Data Source=.SQLEXPRESS;AttachDbFilename=E:汪依清2012014574大三C#STUDENTINFORMATIONMAGStudentIfoMag.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True; SqlConnection connection = new SqlConnection(connString); if (textBox1.Text = ) /未输入查询条件时显示全部内容 string sql = String.Format(selec

12、t * from Student); /SQL语句 try connection.Open(); /打开数据库连接 SqlDataAdapter adapter = new SqlDataAdapter(sql, connection); DataSet DS = new DataSet(); adapter.Fill(DS, Student); dataGridView1.DataSource = DS.TablesStudent; catch (SqlException ex) /数据库出错情况 MessageBox.Show(ex.Message, 操作数据库出错!, MessageBo

13、xButtons.OK, MessageBoxIcon.Error); finally connection.Close(); /关闭数据库情况 else /输入了查询条件 string sql; switch (comboBox1.SelectedItem.ToString() case 学号: sql = String.Format(select * from Student where studentNo = 0 , textBox1.Text); try connection.Open(); /打开数据库连接 DataSet DS = new DataSet(); SqlDataAda

14、pter adapter = new SqlDataAdapter(sql, connection); adapter.Fill(DS, Student); dataGridView1.DataSource = DS.TablesStudent; if (DS.Tables0.Rows.Count = 0) /如果未查询到任何信息,给出提示,并显示全部信息 MessageBox.Show(没有查到相关信息,请检查查询条件!, 提示, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); catch (SqlException ex) /数据库出错

15、情况 MessageBox.Show(ex.Message, 操作数据库出错!, MessageBoxButtons.OK, MessageBoxIcon.Error); finally connection.Close(); /关闭数据库连接 break; case 姓名: sql = String.Format(select * from Student where convert(nvarchar(255),studentName) LIKE %0% , textBox1.Text); try connection.Open(); /打开数据库连接 DataSet DS = new Da

16、taSet(); SqlDataAdapter adapter = new SqlDataAdapter(sql, connection); adapter.Fill(DS, Student); dataGridView1.DataSource = DS.TablesStudent; if (DS.Tables0.Rows.Count = 0) /如果未查询到任何信息,给出提示,并显示全部信息 MessageBox.Show(没有查到相关信息,请检查查询条件!, 提示, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); catch (SqlE

17、xception ex) /数据库出错情况 MessageBox.Show(ex.Message, 操作数据库出错!, MessageBoxButtons.OK, MessageBoxIcon.Error); finally connection.Close(); /关闭数据库连接 break; case 班级: sql = String.Format(select * from Student where convert(nvarchar(255),studentClass) = 0 , textBox1.Text); try connection.Open(); /打开数据库连接 Data

18、Set DS = new DataSet(); SqlDataAdapter adapter = new SqlDataAdapter(sql, connection); adapter.Fill(DS, Student); dataGridView1.DataSource = DS.TablesStudent; if (DS.Tables0.Rows.Count = 0) /如果未查询到任何信息,给出提示,并显示全部信息 MessageBox.Show(没有查到相关信息,请检查查询条件!, 提示, MessageBoxButtons.OK, MessageBoxIcon.Exclamatio

19、n); catch (SqlException ex) /数据库出错情况 MessageBox.Show(ex.Message, 操作数据库出错!, MessageBoxButtons.OK, MessageBoxIcon.Error); finally connection.Close(); /关闭数据库连接 break; case 学院: sql = String.Format(select * from Student where convert(nvarchar(255),studentAcademy) LIKE %0% , textBox1.Text); try connection

20、.Open(); /打开数据库连接 DataSet DS = new DataSet(); SqlDataAdapter adapter = new SqlDataAdapter(sql, connection); adapter.Fill(DS, Student); dataGridView1.DataSource = DS.TablesStudent; if (DS.Tables0.Rows.Count = 0) /如果未查询到任何信息,给出提示,并显示全部信息 MessageBox.Show(没有查到相关信息,请检查查询条件!, 提示, MessageBoxButtons.OK, Mes

21、sageBoxIcon.Exclamation); catch (SqlException ex) /数据库出错情况 MessageBox.Show(ex.Message, 操作数据库出错!, MessageBoxButtons.OK, MessageBoxIcon.Error); finally connection.Close(); /关闭数据库连接 break; private void button3_Click(object sender, EventArgs e) this.Close(); private void button2_Click(object sender, Eve

22、ntArgs e) string connString = Data Source=.SQLEXPRESS;AttachDbFilename=E:汪依清2012014574大三C#STUDENTINFORMATIONMAGStudentIfoMag.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True; SqlConnection connection = new SqlConnection(connString); string sql = String.Format(select * from Student)

23、; /SQL语句 connection.Open(); /打开数据库连接 SqlDataAdapter adapter = new SqlDataAdapter(sql, connection); DataSet DS = new DataSet(); adapter.Fill(DS, Student); dataGridView1.DataSource = DS.TablesStudent; studentTableAdapter.Fill(studentIfoMagDataSet.Student); 5.总结本次系统设计让我知道了进行管理系统开发这样的工作,要有恒心,要能静下新来做,而不能浮躁。要真真实实的多查资料,多问,多看。要善于同同学和老师交流与合作,善于获取各种有用的资源。更让我认识到一个系统开发的过程中编码不是重要的,最重要的是分析系统、建立起系统模型。只有分析出来才能进行编码。在分析一个系统前,操作者必须要对将要开发的系统所涉及到的各方面知识有一个整体的认识,然后将系统的模型建立起来。在程序编写中,我认识到软件要有简便的界面,良好的程序风格。拥有这些条件,程序的可读性才会好,开发的复杂度才能大大减少,修改代码时更加容易下手。

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1