C课程设计报告学生信息管理系统论文.doc

上传人:李司机 文档编号:1163925 上传时间:2022-07-11 格式:DOC 页数:22 大小:116.85KB
返回 下载 相关 举报
C课程设计报告学生信息管理系统论文.doc_第1页
第1页 / 共22页
C课程设计报告学生信息管理系统论文.doc_第2页
第2页 / 共22页
C课程设计报告学生信息管理系统论文.doc_第3页
第3页 / 共22页
C课程设计报告学生信息管理系统论文.doc_第4页
第4页 / 共22页
C课程设计报告学生信息管理系统论文.doc_第5页
第5页 / 共22页
点击查看更多>>
资源描述

《C课程设计报告学生信息管理系统论文.doc》由会员分享,可在线阅读,更多相关《C课程设计报告学生信息管理系统论文.doc(22页珍藏版)》请在三一办公上搜索。

1、-摘要1Abstract21 绪论31.1课题背景31.2系统设计目的与意义32 开发工具的选择42.1 Microsoft Visual Studio 202142.2 ACCESS 200353 系统分析63.1 需求分析63.1.1可行性分析63.1.2 系统性能需求63.2 系统流程图设计73.3数据存储分析:实体联系图E-R84 系统总体设计104.1 系统总体功能层次图104.2 系统功能模块设计114.3 数据库设计114.4 局部源代码的设计125 系统的具体实现及测试215.1运行登录界面215.2 运行修改界面225.3 运行查找界面235.4 运行添加界面245.5 运行

2、删除界面25总 结26致 27参考文献28 摘 要 对学生信息管理的操作,它的工作量可能是其它信息工作量的几倍,学生专业、班级的增加、修改、查找、删除,课程管理,成绩管理等等,每个信息的数据都在不断地变化着,如果采用人工的方式进展操作,一天的工作量,足以让人觉得繁琐。针对这种的情况,学校可以采用学生信息管理系统,让数据查询变得更为简单,让数据变的更易管理。因此,学生信息管理系统是一个教育单位不可缺少的局部,它的容对于学校的决策者和管理者来说都至关重要。 该学生信息管理系统采用C*语言和Microsoft Access 2000数据库完成。系统总体有三局部组成,包括系统登录、学生信息查询、数据库

3、的录入。通过本系统,把本校部查询学生信息、教务信息、学生选课各个环节进展有效地方案、组织和控制。通过本校部的信息,依据统一数据信息进展管理,把任何一块信息所产生的数据变动及时地反映给其它相关信息,做到数据共享。关键词:学生信息管理系统 、C* 、 ACCESS数据库AbstractThe student information, the workload can be several times in other information work, students, class, modify, delete, search increases, curriculum management,

4、 performance management and so on, each information data are constantly changing, if using artificial way operation, a days work, enough to make people feel tedious. In view of this situation, the school can use the student information management system, let the data query bees more simple, let the

5、data bee more manageable. Therefore, the student information management system is an education unit essential part, its content is very important for the policy makers and school managers.The student information management system using C* language and Microsoft Access 2000 database. The whole system

6、 is posed of three parts, including the system login, student information query, the database entry. Through this system, the university internal query student information, academic information, student enrollment in all aspects of effective planning, organization and control. Through the school int

7、ernal information, management based on uniform data information, the generated by any piece of information data changes in a timely manner to reflect to the relevant information, to achieve data sharing.Keyword:SIMS,C*,databaseACCESS1 绪论1.1课题背景 学生信息管理是每一所高校都必须面对的工作,特别是近几年来,国家政策的调整,我国高等院校大规模的扩招,给高等院校

8、的教学管理、学生管理、后勤管理等方面都带来不少的冲击。特别是对于学校的决策者和管理者来说,学生信息管理工作是至关重要的。一直以来人们使用传统的人工方式管理文件档案,这种管理方式存在许多缺点,如:效率低、性差,学生数量的增加,这必然增加了学生档案管理者的工作量和劳动强度,同时将产生大量的文件和数据,这给学生信息的查找、更新和维护都带来了不少困难。据调查,目前我国各类高等院校中还有相当一局部学生档案管理还停留在纸介质的根底上,尤其是中、小学对学生档案的管理更是落后,这样的管理机制已经不能适应时代开展的要求,其管理方法将浪费许多人力和物力。随着科学技术的不断提高,计算机科学与技术日渐成熟,计算机应用

9、的普及已进入人类社会生活的各个领域,并发挥着越来越重要的作用。这种传统的手工管理模式必然被以计算机为物质根底的信息管理方法所取代。1.2系统设计目的与意义学生信息管理系统是一个教育单位不可缺少的局部,它对于学校的决策者和管理者来说至关重要。一个功能齐全、简单易用的信息管理系统不但能有效减轻学校相关工作人员的工作负担,而且能提高数据的性。所以学生信息管理系统能够为用户提供充足的信息和快捷的查询手段。随着科学技术的不断提高,计算机科学日渐成熟,它已进入人类社会的各个领域并发挥着来越重要的作用。作为计算机应用的一局部,使用计算机对学校的各类信息进展管理,具有手工管理所无法比较的优点.例如:检索迅速、

10、查询方便、效率高、可靠性好、存储量大、性好、寿命长、本钱低等。这些优点能够极提高学校信息管理的效率,也是一个单位科学化、正规化管理,与世界接轨的重要条件。1.3 系统开发的目标建立学生信息管理系统,采用计算机对学生信息进展管理,进一步提高办学效益和现代化水平。帮助广阔教师提高工作效率,实现学生信息管理工作流程的系统化、规化和自动化。2 开发工具的选择2.1 MicrosoftVisualStudio 2021现在,市场上可以选购的应用开发产品很多,流行的也有数十种。目前在我国市场上最为流行、使用最多、最为先进的可用作企业级开发工具的产品有:Microsof公司Microsoft Visual

11、Studio 2005,Microsoft Visual Studio 2021,Microsoft Visual Studio 2021等等。在这些程序开发工具中,有的强调程序语言的弹性与执行效率;有的则偏重于可视化程序开发工具所带来的便利性与效率的提高,各有各的优点和特色,也满足了不同用户的需求。然而,语言的弹性和工具的便利性是密不可分的,只有便利的工具,却没有弹性的语言作支持,许多特殊化的处理动作必定要消耗数倍的工夫来处理,使得原来所标榜的效率提高的优点成为了一纸空谈;相反地,如果只强调语言的弹性,却没有便利的工具作配合,会使得一些即使非常简单的界面处理动作,变得复杂和麻烦起来,这样也会

12、浪费程序设计师们的珍贵时间。作为学生信息管理系统的开发,Microsoft Visual Studio 2021是一个非常理想选择,它有效地防止了以上所谈到的诸缺点。2.2 ACCESS 2003数据库 技术是该系统设计中的重要支持技术,在系统开发过程中,如何选择数据库管理也是一个重要的问题,目前,数据库产品可谓琳琅满目,每种产品都具有各自的特点和适用围,因此,在选择数据库前,我慎重考虑了一下,根据数据库应用的特点及适用围,本系统选用了数据库Access 2003,它简单易学、效率高,且功能强大,很适合开发此体统。3 系统分析3.1 需求分析3.1.1可行性分析 经济可行性:由于本系统的主要背

13、景是课程设计,不注重直接的经济效益和其后的开展方向,只在注重自身水平和能力的提高,对自身的经济要求也不高,只要有一台能运行Microsoft Visual Studio 2021软件的电脑便可,所以不用考虑到经济问题。技术可行性: 本系统的开发使用数据库,只需考虑安装SQL sever数据库的问题,在技术上要求并不高,因此本系统在技术上是可行的。运行可行性: 本系统是一个学生信息管理系统,所消耗的资源非常的小,现在一般的电脑无论是硬件还是软件都能够满足条件,因此,本系统在运行上是可行的。综上所述,本系统的设计与开发在技术上和硬件设备上的条件都是满足的,因此,它在技术上是可行的。3.1.2 系统

14、性能需求 实用性:为管理学生提供方便,有效进展学生信息的管理。操作简单:本系统应该适用于不同水平的使用者,同时系统不应太复杂和烦琐,因此要求系统的操作尽可能简单易行。适应性:应该能广泛应用于不同类型的大、中、小学院校,系统采用模块化设计,用户可以根据自己的实际情况自行组合,使系统在不同的硬件环境下都能得以应用。 代码可读性好:文中的代码将尽可能简洁,易懂。3.2 系统流程图设计 假判断 登 录 退 出查询,修改添加,删除查找, 修改学生系统 实现 更新 更新 图3.2.1 系统流程图3.3数据存储分析:实体联系图E-R 学 生*性别*班级密码年龄系别选课表*课程名系别班级* 图3.3.1 学生

15、实体联系图 图3.3.2 选课表实体联系图成绩表*课程名成绩系别班级* 图3.3.3 成绩表实体联系图管理员用户名密码图3.3.4 管理员实体联系图4 系统总体设计4.1 系统总体功能层次图登 录系统登录学生登录添查删改 学 生 课 程 成 绩修改密码个人信息重新登录4.2 系统功能模块设计本系统需要完成的功能主要有:1管理员对学生信息的添加、修改、查询、删除。2学生信息主要有个人根本信息、选课信息和选课成绩信息。3学生对自己信息的查询、密码修改等。4.3 数据库设计管理员表课表 成绩表 学生表4.4 局部源代码的设计登录界面代码private void button1_Click(objec

16、t sender, EventArgs e) if (te*tBo*1 .Te*t = | te*tBo*2 .Te*t = ) MessageBo*.Show(请输入用户名和密码, 提示); else oleConnection1.Open(); OleDbmand cmd = new OleDbmand (,oleConnection1 ); string sql; if (radioButton1 .Checked = true) sql = select * from user_admin where 用户名= + te*tBo*1 .Te*t + and 密码= + te*tBo*2

17、 .Te*t + ; else sql = select * from user_student where *= + te*tBo*1.Te*t + and 密码= + te*tBo*2.Te*t + ; cmd.mandTe*t = sql; if (cmd.E*ecuteScalar() != null) /隐藏登录窗口 this.Visible = false; /创立并翻开主界面 if (radioButton1 .Checked = true) Main_admin main = new Main_admin(); main.Show(); else Main_student ma

18、in = new Main_student(); main.Show(); else MessageBo*.Show(请输入正确的用户名或密码, 提示); te*tBo*2 .Te*t = ; oleConnection1.Close(); Moduser_code.name = te*tBo*1.Te*t; Main_student.name = te*tBo*1.Te*t; 添加学生代码public Adduser_student() Initializeponent(); this.oleConnection1 = new OleDbConnection(学生信息管理.database.

19、dbConnection.connection); this.olemand1 = new OleDbmand(); this.olemand1.Connection = this.oleConnection1; private void button1_Click(object sender, EventArgs e) if (te*tBo*1 .Te*t = | te*tBo*2 .Te*t = | te*tBo*3 .Te*t = |te*tBo*4 .Te*t =|te*tBo*5.Te*t =|te*tBo*6 .Te*t =|te*tBo*7 .Te*t = ) MessageBo

20、*.Show(请输入完整信息!, 警告); else oleConnection1.Open(); string sql; string sql1; string sql2; sql = select * from user_student where *= + te*tBo*2.Te*t + ; OleDbmand cmd=new OleDbmand(sql,oleConnection1); OleDbmand cmd1 = new OleDbmand(,oleConnection1 ); OleDbmand cmd2 = new OleDbmand(,oleConnection1 ); i

21、f (null = cmd.E*ecuteScalar() sql = insert into user_student (,*,年龄,性别,班级,系别,密码) values ( + te*tBo*1.Te*t + , + + te*tBo*2.Te*t + , + te*tBo*3.Te*t + , + te*tBo*4.Te*t + , + te*tBo*5.Te*t + , + + te*tBo*6.Te*t + , + te*tBo*7.Te*t + ); sql1 = insert into user_class (,*,班级,系别,课程名)values( + te*tBo*1.Te

22、*t + , + te*tBo*2.Te*t + , + te*tBo*5.Te*t + , + te*tBo*6.Te*t + ,); sql2 = insert into user_score(,*,班级,系别,课程名,成绩)values( + te*tBo*1.Te*t + , + te*tBo*2.Te*t + , + te*tBo*5.Te*t + , + te*tBo*6.Te*t + ,); cmd.mandTe*t = sql; cmd1.mandTe*t = sql1; cmd2.mandTe*t = sql2; cmd.E*ecuteNonQuery(); cmd1.E*e

23、cuteNonQuery(); cmd2.E*ecuteNonQuery(); MessageBo*.Show(学生添加成功, 提示); clear(); else MessageBo*.Show(号或*一样, 提示); oleConnection1.Close(); 浏览学生信息 private void button1_Click(object sender, EventArgs e) oleConnection1.Open(); string sql; sql = select * from user_student ; OleDbmand cmd = new OleDbmand(sql

24、, oleConnection1); if (null != cmd.E*ecuteScalar() OleDbDataAdapter adp = newOleDbDataAdapter(cmd); DataSet ds = new DataSet(); ds.Clear(); adp.Fill(ds, user_student); dataGridView1.DataSource = ds.Tablesuser_student; oleConnection1.Close(); else MessageBo*.Show(无此人); private void button2_Click(obje

25、ct sender, EventArgs e) oleConnection1.Open(); string sql; sql = select * from user_class; OleDbmand cmd = new OleDbmand(sql, oleConnection1); if (null != cmd.E*ecuteScalar() OleDbDataAdapter adp = new OleDbDataAdapter(cmd); DataSet ds = new DataSet(); ds.Clear(); adp.Fill(ds, user_class); dataGridV

26、iew1.DataSource = ds.Tablesuser_class; oleConnection1.Close(); else MessageBo*.Show(无相关信息!); 浏览查找学生成绩 private void button3_Click(object sender, EventArgs e) oleConnection1.Open(); string sql;sql = select * from user_score; OleDbmand cmd = new OleDbmand(sql, oleConnection1); if (null != cmd.E*ecuteSc

27、alar() OleDbDataAdapter adp = new OleDbDataAdapter(cmd); DataSet ds = new DataSet(); ds.Clear(); adp.Fill(ds, user_score); dataGridView1.DataSource = ds.Tablesuser_score; oleConnection1.Close(); else MessageBo*.Show(无相关信息!); oleConnection1.Close(); private void button4_Click(object sender, EventArgs

28、 e) this.Close(); Main_admin adm = new Main_admin(); adm.Show(); 修改学生信息 private void button1_Click(object sender, EventArgs e) if (te*tBo*1.Te*t = | te*tBo*2.Te*t = | te*tBo*3.Te*t = | te*tBo*4.Te*t = | te*tBo*5.Te*t = | te*tBo*6.Te*t = ) MessageBo*.Show(请输入完整的信息, 提示); else oleConnection1.Open(); st

29、ring sql1 = select * from user_student where *= + te*tBo*1.Te*t + ; olemand1.mandTe*t = sql1; if (null != olemand1.E*ecuteScalar() string sql2 = update user_student set 系别= + te*tBo*6.Te*t + ,= + te*tBo*2.Te*t + , + 年龄= + te*tBo*3.Te*t + ,性别= + te*tBo*4.Te*t + ,班级= + te*tBo*5.Te*t + + where *= + te*

30、tBo*1 .Te*t + ; string sql3 = update user_score set 系别= + te*tBo*6.Te*t + ,= + te*tBo*2.Te*t + , + 班级= + te*tBo*5.Te*t + where *= + te*tBo*1.Te*t + ; string sql4 = update user_class set 系别= + te*tBo*6.Te*t + ,= + te*tBo*2.Te*t + , + 班级= + te*tBo*5.Te*t + where *= + te*tBo*1.Te*t + ; olemand2.mandTe*

31、t = sql2; olemand3.mandTe*t = sql3; olemand4.mandTe*t = sql4; olemand2.E*ecuteNonQuery(); olemand3.E*ecuteNonQuery(); olemand4.E*ecuteNonQuery(); MessageBo*.Show(学生信息修改成功, 提示); this.Close(); else MessageBo*.Show(无此学生, 提示); oleConnection1.Close(); 删除学生成绩private void button1_Click(object sender, Event

32、Args e) if (te*tBo*1.Te*t = | te*tBo*2 .Te*t =) MessageBo*.Show(请填写*和课程名, 提示); else oleConnection1.Open(); string sql; sql = select * from user_score where *= + te*tBo*1.Te*t + and 课程名=+te*tBo*2 .Te*t +; OleDbmand cmd = new OleDbmand(sql, oleConnection1); if (null != cmd.E*ecuteScalar() sql = delete

33、 from user_score where *= + te*tBo*1.Te*t + and 课程名=+te*tBo*2 .Te*t +; cmd.mandTe*t = sql; cmd.E*ecuteNonQuery(); MessageBo*.Show(删除成功, 提示); oleConnection1.Close(); this.Close(); else MessageBo*.Show(信息错误!); 修改密码 private void moduser_code_Load(object sender, EventArgs e) this.te*tBo*1.Te*t = name; p

34、rivate void button1_Click(object sender, EventArgs e) if (te*tBo*2.Te*t = | te*tBo*3.Te*t= | te*tBo*4.Te*t = ) MessageBo*.Show(请输入完整信息!); else oleConnection1.Open(); OleDbmand cmd = new OleDbmand(, oleConnection1); string sql = select * from user_student where *= + name + and 密码= + te*tBo*4.Te*t + ; cmd.mandTe*t = sql; if (cmd.E*ecuteScalar() != null) if (te*tBo*3.Te*t = te*tBo*2.Te*t) string sql1 = update user_student set 密码= + te*tBo*3.Te*t + where *= + name+ ; cmd.mand

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号