当前位置:文档之家› 教务管理系统课程设计报告

教务管理系统课程设计报告

课程设计报告课程设计题目: 教务管理系统学生姓名:王丙焱专业:计算机科学与技术学号:201130050202班级:1130502指导教师:李丽华2013年6月20日1 课程设计目标课程设计总的目标是衡量学生是否取得学习效果,培养学生具有专业网站初步的规划、设计、制作能力。

具体表现在网站内容、功能、安全等方面合理策划和规划;培养具有主页和二级页面的创意、设计等方面的技术处理能力和具有强大的动态效果制作能力。

培养学生具有基于后台数据库的编程技术,实现客户—服务器端交互式动态网页的制作能力,掌握实际网页设计与制作开发流程和开发方法。

具体应达到以下目的:1.提高学生在实际操作中收集信息,对信息进行价值判断,进行信息整理、加工的能力。

2.在实际的项目任务中培养网页设计方面的素养。

3.在实际的项目任务中使学生网页编程和制作的能力得到提高。

4.培养学生团队协作和人际交往方面的能力。

5. 培养相关知识和技能的综合应用能力。

6、掌握运用及数据库原理知识进行系统分析和设计的方法7、掌握关系数据库的设计方法8、掌握SQL Sever2000的应用9、掌握简单的数据库应用程序编写方法10、理解B/S模式结构2 系统的运行环境本系统软件基本配置为Windows Server2003/XP/2000/Windows 7。

数据库可以选用:Microsoft SQL server 2000,s等,系统开发软件可以选用Visual Studio 2005等。

硬件最低配置为CPU: Pentium 1G MHz 以上,内存至少1G,硬盘空间2G,显示器800 *600或1024 *768。

一、实验目的1.通过该题目的设计,使学生掌握软件开发过程的问题分析、系统设计、程序编码、测试等基本方法和技能;2. 掌握利用web开发数据库系统的方法;3. 掌握文件的操作方法。

4. 掌握运用语言及数据库原理知识进行系统分析和设计的方法5. 掌握SQL Sever2000技术的应用二、实验内容1、题目:教务管理系统2、功能要求:功能包括:各专业课教师个人基本信息管理、教学任务发布、教学工作量管理、考评考核管理、科研管理等。

●选课管理功能包括:教务管理人员依据教学计划和培养计划,设置选课课程并统计生成己选课学生名单等。

●教学计划管理功能主要包括:根据培养计划和各个专业上报的教学计划,添加各专业教学计划,包括教学计划的修改删除等操作。

●成绩管理功能包括:每门课程结束后,由教师进行成绩登记,然后教务管理人员对登记的信息进行管理,如教师登录成绩后发现成绩有错误,只能由教务管理人员核实后进行修改。

还有根据成绩就算出学生的学分,以便学籍管理的需要。

●课程管理功能主要有:安排各个专业所开设课程的上课时间和上课教室。

(2)教材管理人员功能需求功能包括:(1)教材的基本信息的管理(按书名或作者)具有良好的人机界面;(2)供求信息查询,支持多条件和模糊查询;(3)普通用户不用注册可以浏览信息;(4)保证后台数据库安全;3、开发环境【Microsoft Visual Studio 2005,SQL SERVER 2005】三、E-R 图退出系统进入教师子模块用户名及密码是否正确 管理员?输入用户名及密码开 始 正确用户名不存在或密码错误否是学生?教师?否否是是进入后台管理模块进入学生子模块安全退出 是否安全退出是否安全退出是否四、数据库建表1)用户数据表2)学生表(3)教师表(4)课程表(5)班级表(6)专业表(7)成绩表(8)学院表四、详细设计(1)代码:(1)登录代码:Using System.Data.Sqlclient;using System.Configuration;string con = System.Configuration.ConfigurationManager.ConnectionStrings["connectionString"]. ConnectionString.ToString();SqlConnection sqlcon = new SqlConnection(con);//创建与数据库的连接sqlcon.Open();string play;play = RadioButtonList1.SelectedValue.ToString();string sqlstr = "select * from [usertable] where userid='" + TextBox1.Text + "' and pwd='" + TextBox2.Text + "' and [group]='"+play+"'";//构造SQL查询语句SqlCommand cmd = new SqlCommand(sqlstr, sqlcon);SqlDataReader dr = cmd.ExecuteReader();//执行SQL语句if (dr.Read()){if (RadioButtonList1.SelectedValue.ToString() == "0"){Response.Redirect("~/Master.aspx?name=" + TextBox1.Text + "&?psd=" + TextBox2.Text + "");}if (RadioButtonList1.SelectedValue.ToString() == "1"){Response.Redirect("~/Teacher/scorein.aspx?name=" +TextBox1.Text + "&?psd="+TextBox2.Text+"");}if (RadioButtonList1.SelectedValue.ToString() == "2"){Response.Redirect("~/Student/scorecheck.aspx?name=" + TextBox1.Text + "&?psd="+TextBox2.Text+"");}}//判断用户角色else{Response.Write("<script> alert('登录失败!');location.href='Default.aspx';</script>");}(2)学生查询代码:string con = System.Configuration.ConfigurationManager.ConnectionStrings["connectionString"]. ConnectionString.ToString();SqlConnection sqlcon = new SqlConnection(con);sqlcon.Open();DataSet ds = new DataSet();string sqlcmd1 = "select stuid,stuname,departname,classname,zhuanyename,address,phone from [StuTable] where zhuanyename='" + DropDownList1.SelectedItem.Text.ToString() + "' and classname='" + DropDownList2.SelectedItem.Text.ToString() + "'";string sqlcmd2 = "select stuid,stuname,departname,classname,zhuanyename,address,phone from [StuTable] where stuname='" + TextBox1.Text.ToString() + "'";//构造查询学生SQL语句if (TextBox1.Text == ""){SqlCommand cmd = new SqlCommand(sqlcmd1, sqlcon);SqlDataAdapter sda = new SqlDataAdapter(cmd);sda.Fill(ds, "ds");GridView1.DataSource = ds.Tables[0].DefaultView;GridView1.DataBind();}else{SqlCommand cmd = new SqlCommand(sqlcmd2, sqlcon);SqlDataAdapter sda = new SqlDataAdapter(cmd);sda.Fill(ds, "ds");GridView1.DataSource = ds.Tables[0].DefaultView;GridView1.DataBind();}//判断查询方法并邦定到GridView1控件(3)学生成绩查询代码:string con = System.Configuration.ConfigurationManager.ConnectionStrings["connectionString"]. ConnectionString.ToString();SqlConnection sqlcon = new SqlConnection(con);sqlcon.Open();DataSet ds = new DataSet();string sqlcmd = "select id,stuid,courcename,score,xuefen,xuenian,restudy from [ScoreTable] where xuenian='" + DropDownList1.SelectedItem.Text.ToString() + "'and stuid='" + Request.QueryString["name"] +"'";//通过Request.QueryString["name"]获取学生学号SqlCommand cmd = new SqlCommand(sqlcmd, sqlcon);SqlDataAdapter sda = new SqlDataAdapter(cmd);sda.Fill(ds, "ds");GridView1.DataSource = ds.Tables[0].DefaultView;GridView1.DataBind();(4)老师成绩录入代码:string con = System.Configuration.ConfigurationManager.ConnectionStrings["connectionString"]. ConnectionString.ToString();SqlConnection sqlcon = new SqlConnection(con);sqlcon.Open();DataSet ds = new DataSet();for (int i = 0; i < GridView1.Rows.Count; i++){DropDownList coure = (DropDownList)GridView1.Rows[i].FindControl("courceList");DropDownList xuefen = (DropDownList)GridView1.Rows[i].FindControl("xuefenList");DropDownList xuenian = (DropDownList)GridView1.Rows[i].FindControl("xuenianList");DropDownList restudy = (DropDownList)GridView1.Rows[i].FindControl("restudyList");TextBox fenshu = (TextBox)GridView1.Rows[i].FindControl("fenshuBOX");//从GridView控件中找控件string stu= GridView1.Rows[i].Cells[0].Text.ToString();string c=coure.SelectedItem.Text.ToString();string xf = xuefen.SelectedItem.Text.ToString();string xn = xuenian.SelectedItem.Text.ToString();string r = restudy.SelectedItem.Text.ToString();string f = fenshu.Text.ToString();//获取控件中的值SqlCommand cmd = new SqlCommand("INSERT INTO [ScoreTable] V ALUES ('" + GridView1.Rows[i].Cells[0].Text.ToString() + "','" + coure.SelectedItem.Text.ToString() + "','" + fenshu.Text.ToString() + "','" + xuefen.SelectedItem.Text.ToString() + "','" + xuenian.SelectedItem.Text.ToString() + "','" + restudy.SelectedItem.Text.ToString() + "')", sqlcon);int a = cmd.ExecuteNonQuery();}Label1.Text = "成绩录入成功";sqlcon.Close();(2):运行结果:(1)登录界面(2)管理员主界面(3)学生查询页面(4)学生成绩查询页面(5)教师成绩按班别录入六、总结在本系统的开发过程中,由于本人开发软件经验不足,在知识、经验方面都存在着不足。

相关主题