您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 能源与动力工程 > 华南理工大学-数据库课程设计报告(完整程序代码)
目录一.概述·······················································································································11.开发背景································································································································11.开发环境································································································································1二.系统分析设计············································································································11.功能需求分析·······················································································································12.数据库需求分析设计············································································································13.软件功能分析设计················································································································4(1).公共模块设计········································································································4(2).登录模块设计········································································································5(3).成绩管理模块设计································································································9三.心得体会··············································································································10学生成绩管理系统一.【概述】:1.开发背景:随着科学技术的不断提高,计算机科学日渐成熟,其强大的功能已为人们深刻认识,它已进入人类社会的各个领域并发挥着越来越重要的作用。作为计算机应用的一部分,使用计算机对学生成绩信息进行管理,有着手工管理所无法比拟的优点。例如:检索迅速、查找方便、可靠性高、存储量大、保密性好、寿命长、成本低等。这些优点能够极大地提高学生成绩管理的效率。因此,开发一套成绩管理系统成为很有必要的。2.开发环境:操作系统:Windows8.1(x64)开发环境支持平台:Microsoft.NetFramework4开发环境:VisualStudio2013集成开发环境开发数据库:MicrosoftSqlServer2012开发语言:ASP.NET4.0Web服务:IIS8.5浏览器:InternetExplorer11.0及以上二.【系统分析设计】1功能需求分析学生成绩管理系统需要实现的功能包括:用户登录、管理学生个人信息、成绩信息查询和管理、课程信息查询和管理、班级信息查询和管理以及管理员信息的查询和是授权。(1)管理员信息管理普通管理员:可以管理学生信息、成绩、系部、班级、课程超级管理员:具备普通管理员所有权限,还可以进行新的管理权限授权(2)管理员登录和身份验证所有操作都必须先登录方可进行,以此确保数据安全性(3)成绩管理模块登录后,可以添加,编辑,删除成绩信息(4)系部管理模块登录后,可以添加,编辑,删除系部信息(5)班级管理模块登录后,可以添加,编辑,删除班级信息(6)学生信息管理模块登录后,可以添加,编辑,删除学生信息【系统功能模块】【系统使用流程】2数据库需求分析设计根据上述对系统功能和数据库需求的分析,数据库需要设计如下表来存储信息:用户信息表(users),学生信息表(stuinfo),成绩信息表(grade),系部信息表(department),课程信息表(course),班级信息表(class)。(1)用户信息表(users)用来存放管理员(普通/超级)的账号和密码字段名称数据类型说明unamenchar(20)用户名upswdnchar(20)密码rolenchar(20)角色(2)学生信息表(stuinfo)用来存放学生个人基本信息字段名称数据类型说明sidnchar(10)学号cidnchar(10)班级名称snamenchar(20)姓名sgendlenchar(4)性别sagesmallint年龄snationalnchar(10)民族sphonenchar(12)电话(3)成绩信息表(grade)用来存放学生成绩信息字段名称数据类型说明gidnchar(10)成绩编号sidnchar(10)学生姓名coidnchar(10)课程名称gradessmallint分数(4)课程信息表(course)用来存放课程基本信息字段名称数据类型说明coidnchar(10)课程编号conamenchar(20)课程名称cregidtsmallintd课程学分periodsmallint课程学时materialsnchar(20)课程教材teachernchar(20)授课教师(5)系部信息表(department)用来存储系部信息字段名称数据类型说明didnchar(10)系部编号dnamenchar(20)系部名称(6)班级信息表(class)用来存放班级信息字段名称数据类型说明cidnchar(10)班级名称didnchar(10)系部名称cnamenchar(20)班级名称数据库关系视图如下:3软件功能分析设计根据以上对系统功能和数据库要求的分析,软件设计上需要设置以下窗口已实现需求功能:login.aspx(登录界面),About.aspx(帮助界面),liststuinfo.aspx(查询学生信息界面),addstuinfo.aspx(编辑学生个人信息界面)等。3.1公共模块用于管理员在不同页面进行操作,此模块所有界面都会进行调用因此将其封装便于调用。【顶部页面】公共模块代码head.ascs:divstyle=color:#008080br/asp:LinkButtonID=LinkButton1runat=serverPostBackUrl=~/admin/listdepartment.aspx查询系部/asp:LinkButton asp:LinkButtonID=LinkButton2runat=serverPostBackUrl=~/admin/listclass.aspx查询班级/asp:LinkButton asp:LinkButtonID=LinkButton3runat=serverPostBackUrl=~/admin/liststuinfo.aspx查询学生信息/asp:LinkButton asp:LinkButtonID=LinkButton4runat=serverPostBackUrl=~/admin/listcourse.aspx查询课程信息/asp:LinkButton asp:LinkButtonID=LinkButton5runat=serverPostBackUrl=~/admin/listgrade.aspx查询学生成绩/asp:LinkButton asp:LinkButtonID=LinkButton12runat=serverPostBackUrl=~/admin/listadmin.aspx查询管理员/asp:LinkButton p/asp:LinkButtonID=LinkButton6runat=serverPostBackUrl=~/admin/adddepartment.aspx添加系部/asp:LinkButton asp:LinkButtonID=LinkButton7runat=serverPostBackUrl=~/admin/addclass.aspx添加班级/asp:LinkButton asp:LinkButtonID=LinkButton8runat=serverPostBackUrl=~/admin/addstuinfo.aspx添加学生信息/asp:LinkButton asp:LinkButtonID=LinkButton9runat=serverPostBackUrl=~/admin/addcourse.aspx添加课程信息/asp:LinkButton asp:LinkButtonID=LinkButton10runat=serverPostBackUrl=~/admin/addgrade.aspx添加学生成绩/asp:LinkButton asp:LinkButtonID=LinkButton13runat=serverPostBackUrl=~/admin/addadmin.aspx添加管理员/asp:LinkButton asp:LinkButtonID=LinkButton11runat=serverPostBackUrl=~/about.aspx帮助/asp:LinkButtonbr/hr/3.2用户登录模块为确保系统整体安全性,进行操作前需先进行登录,即用户在相应的文本框中输入用户姓名和密码后,单击登录按钮,系统对用户输入的用户名和密码与数据库users表中的用户名进行比较,若找到匹配的用户名,则登录成功,用户可以进行后续操作,若不成功则保持在登录界面。【登录页面】用户登录模块实现后台代码login.aspx.csprotectedvoidbtnlog_Click(objectsender,EventArgse){stringstrconn=ConfigurationManager.ConnectionStrings[xscgConnStr].ConnectionString;SqlConnectionconn=newSqlConnection(strconn);conn.Open();stringusername=txtUserName.Text.ToString();stringuserpswd=txtUserpass.Text.ToString();stringsqlSel=;if(radlistRole.SelectedValue.Trim
本文标题:华南理工大学-数据库课程设计报告(完整程序代码)
链接地址:https://www.777doc.com/doc-6010495 .html