教学管理数据库系统.docx

上传人:b****0 文档编号:12839374 上传时间:2023-04-22 格式:DOCX 页数:30 大小:800.81KB
下载 相关 举报
教学管理数据库系统.docx_第1页
第1页 / 共30页
教学管理数据库系统.docx_第2页
第2页 / 共30页
教学管理数据库系统.docx_第3页
第3页 / 共30页
教学管理数据库系统.docx_第4页
第4页 / 共30页
教学管理数据库系统.docx_第5页
第5页 / 共30页
点击查看更多>>
下载资源
资源描述

教学管理数据库系统.docx

《教学管理数据库系统.docx》由会员分享,可在线阅读,更多相关《教学管理数据库系统.docx(30页珍藏版)》请在冰豆网上搜索。

教学管理数据库系统.docx

教学管理数据库系统

数据库课设教学管理系统

计算机科学与技术

指导教师

设计任务....................................................................................................................................3

评语............................................................................................................................................3

分工安排....................................................................................................................................4

1简介........................................................................................................................................5

1.1.1实验目的..........................................................................................................5

1.1.2背景及范围......................................................................................................5

1.2概述.............................................................................................................................5

1.2.1目标..................................................................................................................5

1.2.1.1开发意图.......................................................................................................5

1.2.1.2应用目标.......................................................................................................6

1.2.1.3作用及范围...................................................................................................6

1.2.1.4背景...............................................................................................................6

1.3.1规格说明..........................................................................................................6

1.3.2引言..................................................................................................................6

1.4各部分功能描述.........................................................................................................6

2概念设计................................................................................................................................7

2.1实体及其属性.............................................................................................................7

2.1.1学生实体E-R图.............................................................................................7

2.1.2课程实体E-R图.............................................................................................7

2.1.3教师信息E-R图.............................................................................................8

3.结构设计.................................................................................................................................8

3.2学生基本信息表.........................................................................................................8

3.3课程信息表.................................................................................................................9

3.4教师信息表.................................................................................................................9

4系统测试................................................................................................................................9

5实验总结..............................................................................................................................26

6参考资料...............................................................................................................................29

设计任务

建库:

1个----教学管理数据库。

建表:

3个----教师表(T表)、学生表(S表)、课程表(SC表)。

编程:

5个----输入、修改、查询、计算、输出等五个子系统。

要求:

(1)每组最多5个人,每人完成一个子系统,每人都要建立库及全部表;

(2)每人写出各自部分的课程设计报告;

(3)程序用选定的语言编写,必须上交上机调试通过的源程序。

评语

分工安排

本次课设我们组所做的是教学管理系统,本组共四人,分工

如下:

输入部分由许丹同学完成;修改部分由张鑫同学完成;查询部分由石佳敏同学完成;计算部分由张建君同学完成。

对于本次报告书写情况如下:

石佳敏:

主要编写由她完成的查询部分。

许丹:

主要编写由她完成的输入部分。

张建君:

主要编写由她完成的计算部分。

张鑫:

主要编写由她完成的修改部分,以及实验报告的其余。

1简介

1.1.1实验目的

熟悉SQL和MicrosoftVisualStudio的实验环境,在本次课程设计过程中,学会将SQL中的数据库和VisualStudio中的内容相绑定,在VisualStudio实现教学管理系统中的输入,修改,查询,计算,输出等一系列操作。

在本次实验中,将同学的课本知识和实践操作能力联系在一起,全面提高同学的综合能力。

1.1.2背景及范围

本项目的名称:

教学管理系统。

教务信息管理系统:

教务信息管理是帮助管理人员管理学生档案的管理软件。

1.2概述

该教务信息管理系统软件目前已有比较完善的管理与使用功能,研制教务信息管理系统软件是为了满足教务处办公室对学生档案管理的方便,以现代化的创新思维模式去工作。

1.2.1目标

1.2.1.1开发意图

a.为了教务处管理系统更完善;

b.为了教务处办公室对学生的管理更方便;

c.为了减轻工作人员的工作负担。

1.2.1.2应用目标

  通过本系统软件,能帮助工作人员利用计算机,快速方便的对学生教务信息管理进行管理、输入、输出、查找等操作,使散乱的档案能够具体化、直观化、合理化。

1.2.1.3作用及范围

本软件适用于教务处,它是比较完善的系统管理软件

1.2.1.4背景

现今教务信息管理的烦琐给具有强烈时间观念的行政人员带来了诸多不便,为了对学生档案的管理方便,因此开发了本软件。

1.3.1规格说明

  查询每个学生、教师的的相关信息。

1.3.2引言

查询学生、教师的相关信息。

外部功能

内部功能

操作员和系统管理员

通过应用界面,应用程序,查询等。

同过SQL语言,对数据库的查询、插入、修改、删除等操作。

1.4各部分功能描述

输入系统:

该系统实现输入操作,是实现其他系统的基础,是系统的基础系统。

修改系统:

该系统实现对数据的修改,是较高级的系统。

查询系统:

该系统实现数据的查询,是修改和分析的前提,是较高级的系

统。

删除系统:

该系统实现对数据的删除,是较高级的系统。

输出系统:

该系统实现输出操作,是其他系统的基础,是系统的基础系统

2概念设计

2.1实体及其属性

2.1.1学生实体E-R图

学生编号

姓名

密码

2.1.2课程实体E-R图

课程编号

课程名称

成绩

2.1.3教师信息E-R图

教师编号

姓名

密码

3.结构设计

3.2学生基本信息表

列名

含义

长度

类型

NULL

DEFAULT

id

学生编号

11

int

no

no

name

姓名

30

varchar

no

no

loginuser

用户名

30

varchar

no

no

password

密码

30

varchar

no

no

3.3课程信息表

列名

含义

长度

类型

NULL

DEFAULT

id

课程编号

11

int

no

no

name

课程名称

30

varchar

no

no

time

成绩

8

date

no

no

3.4教师信息表

列名

含义

长度

类型

NULL

DEFAULT

id

教师编号

11

int

no

no

name

教师姓名

30

varchar

no

no

loginuser

用户名

30

varchar

no

no

password

密码

30

varchar

no

no

4系统测试usingSystem;

usingSystem.Collections.Generic;

usingSystem.ComponentModel;

usingSystem.Data;

usingSystem.Drawing;

usingSystem.Linq;

usingSystem.Text;

usingSystem.Windows.Forms;

usingSystem.Data.SqlClient;

namespaceaa

{

publicpartialclassForm1:

Form

{

publicForm1()

{

InitializeComponent();

}

privatevoidForm1_Load(objectsender,EventArgse)

{

//TODO:

这行代码将数据加载到表“jxglDataSet11.jxglmm”中。

您可以根据需要移动或

移除它。

this.jxglmmTableAdapter.Fill(this.jxglDataSet11.jxglmm);

}

privatevoidbtn_enter_Click(objectsender,EventArgse)

{

SqlConnectioncon=newSqlConnection();

con.ConnectionString="DataSource=XU-PC;InitialCatalog=jxgl;IntegratedSecurity=True";con.Open();

stringusername=this.txtusername.Text;

stringpwd=this.txtpassword.Text;

if(rb_Student.Checked==false&&rb_Teacher.Checked==false&&rb_Admain.Checked

==false)

{

MessageBox.Show("请选择您的身份");

}

else

{

if(rb_Teacher.Checked==true)

{

stringx0="select*fromjxglmmwhereusername='"+txtusername.Text+"'and

userpassword='"+txtpassword.Text+"'andflag=1";

SqlCommandcmd0=newSqlCommand(x0,con);

SqlDataAdapterda0=newSqlDataAdapter(cmd0);

DataTabledt0=newDataTable();

da0.Fill(dt0);

if(dt0.Rows.Count>0)

{

MessageBox.Show("登录成功,进入教师页面");

newForm7().Show();

this.Hide();

}

else

{

MessageBox.Show("信息输入有误");

}

}

else

if(rb_Student.Checked==true)

{

stringx1="select*fromjxglmmwhereusername='"+txtusername.Text+

"'anduserpassword='"+txtpassword.Text+"'andflag=2";

SqlCommandcmd1=newSqlCommand(x1,con);

SqlDataAdapterda1=newSqlDataAdapter(cmd1);

DataTabledt1=newDataTable();

da1.Fill(dt1);

if(dt1.Rows.Count>0)

{

MessageBox.Show("登陆成功,进入学生页面");

newForm4().Show();

this.Hide();

}

else

{

MessageBox.Show("信息输入有误");

}

}

else

if(rb_Admain.Checked==true)

{

stringx2="select*fromjxglmmwhereusername='"+txtusername.Text

+"'anduserpassword='"+txtpassword.Text+"'andflag=0";

SqlCommandcmd2=newSqlCommand(x2,con);

SqlDataAdapterda2=newSqlDataAdapter(cmd2);

DataTabledt2=newDataTable();

da2.Fill(dt2);

if(dt2.Rows.Count>0)

{

MessageBox.Show("登陆成功,进入管理页面");

newForm6().Show();

this.Hide();

}

else

{

MessageBox.Show("信息输入有误");

}

}

}

con.Close();

}

privatevoidbtn_exit_Click(objectsender,EventArgse)

{

this.Close();

}

}

}

usingSystem;

usingSystem.Collections.Generic;

usingSystem.ComponentModel;

usingSystem.Data;

usingSystem.Drawing;

usingSystem.Linq;

usingSystem.Text;

usingSystem.Windows.Forms;

usingSystem.Data.SqlClient;

namespaceaa

{

publicpartialclassForm4:

Form

{

publicForm4()

{

InitializeComponent();

}

privatevoidForm4_Load(objectsender,EventArgse)

{

//TODO:

这行代码将数据加载到表“jxglDataSet.s”中。

您可以根据需要移动或移除它。

this.sTableAdapter.Fill(this.jxglDataSet.s);

this.bindingNavigator1.BindingSource=sBindingSource;

}

privatevoidbutton2_Click(objectsender,EventArgse)

{

this.Close();

}

privatevoidbutton1_Click(objectsender,EventArgse)

{

this.sTableAdapter.Update(jxglDataSet.s);

}

privatevoid成绩查询ToolStripMenuItem_Click(objectsender,EventArgse)

{

newForm5().Show();

this.Hide();

}

privatevoid个人课表ToolStripMenuItem_Click(objectsender,EventArgse)

newForm6().Show();

this.Hide();

}

}

}

usingSystem;

usingSystem.Collections.Generic;

usingSystem.ComponentModel;

usingSystem.Data;

usingSystem.Drawing;

usingSystem.Linq;

usingSystem.Text;

usingSystem.Windows.Forms;

usingSystem.Data.SqlClient;

namespaceaa

{

publicpartialclassForm5:

Form

{

publicForm5()

{

InitializeComponent();

}

publicstaticclassjxgl

{

publicstaticstringstr="DataSource=.;InitialCatalog=jxgl;Integratedsecurity=true";

publicstaticSqlConnectionconn=newSqlConnection(str);

}

privatevoidForm5_Load(objectsender,EventArgse)

{

//TODO:

这行代码将数据加载到表“jxglDataSet2.sc”中。

您可以根据需要移动或移除它。

this.scTableAdapter.Fill(this.jxglDataSet2.sc);

}

privatevoidbutton1_Click(objectsender,EventArgse)

{

this.Close();

newForm4().Show();

this.Hide();

}

privatevoidbtnOK_Click_2(objectsender,EventArgse)

{

jxgl.conn.Open();

if(tbSearch.Text.Length<=0)

{

MessageBox.Show("查询条件不能为空");//,"系统提示:

",MessageBoxButtons.OK,

MessageBoxIcon.Information);

return;

}

if(rbXh.Checked)

{

SqlDataAdapterda=newSqlDataAdapter("select*fromscwhere[sno]='"+

tbSearch.Text.ToString()+"'",

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

当前位置:首页 > 解决方案 > 学习计划

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

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