专业
课程设计题单
班级学生
课程名称 专业课程设计
课 题 四六级报名管理系统
设计要求 1)完成报名信息的输入、修改、删除和查询功能;
2)完成考生信息的输入、修改、删除和查询功能;
3)完成考场信息的输入、修改、删除和查询功能;并能对考生进行考场自动分配;
4)系统要考虑到实际逻辑操作及数据的合理性判断
课 题 发 给 日 期
课程设计完成日期
指 导 教 师
评语:
评分:
摘要
国际社会之间的交流越来越广,英语作为一种交流工具的功效显得日益突出。大学的四六级考试作为一种国家教育考试,在一定程度上起到了对英语教育水平的反馈作用。越来越多的大学生参加英语四六级考试,这对四六级考试管理带来了严峻的考验。
四六级报名管理系统是四六级考试管理中最初也是最重要的一个部分,它要求能对考生信息进行添加、删除、修改和查询,对报名信息(例如是报四级还是六级)进行添加、删除、修改和查询,对考场信息进行添加、删除、修改和查询。由于报名人数非常多,报名管理系统的设计要求能将所有信息的变化实时地更新到后台数据库。
此次课程设计根据C#和数据库的知识,利用visual studio 2005和Microsoft Office Access软件完成了一个小型的模拟四六级报名管理系统,能实现所有的课题设计要求,对考生信息、报名信息和考场信息的更改都能实时更新到后台数据库。
关键字:英语四六级,报名管理系统,visual studio 2005,Access
第一章 需求分析 …………………………………………………… 1
1.1设计目标与任务 …………………………………………… 1
1.2软件功能 …………………………………………………… 1
第二章 数据库设计 ………………………………………………… 2
数据库的概念模型 ………………………………………… 2
数据库的逻辑模型 ………………………………………… 2
数据库结构的详细设计 …………………………………… 3
第三章 概要设计 …………………………………………………… 4
模块分析 …………………………………………………… 4
功能模块结构图 …………………………………………… 4
第四章 详细设计 …………………………………………………… 5
登陆界面 …………………………………………………… 5
选择界面 …………………………………………………… 6
考生信息管理界面 ………………………………………… 7
报名信息管理界面 ………………………………………… 12
考场信息管理界面 ………………………………………… 16
第五章 调试与分析 ………………………………………………… 20
第六章 用户手册 …………………………………………………… 20
总结 ………………………………………………………………… 21
参考文献 …………………………………………………………… 22
附录 shuaxin函数 ………………………………………………… 23
第一章 需求分析
设计目标与任务
众多大学生每年都要报名参加英语四六级考试,对于如此多的报名信息进行合理的管理,是一个很重要也很有挑战性的工作,利用计算机软件可以方便、快捷、安全的完成对四六级报名信息的管理。
利用visual studio 2005与Access的开发环境,可以设计出一个信息管理软件,实现对考生信息、报名信息以及考场信息的添加、删除、修改与查询。
软件功能
软件能实现的功能:
1)管理员登陆,输入正确的用户名与密码才能登录系统。
2)实现报名信息的输入、修改、删除和查询功能;
3)实现考生信息的输入、修改、删除和查询功能;并能对考生进行随机分配准考证号;
4)实现考生信息的输入、修改、删除和查询功能;并能对考生进行考场自动分配。
第二章 数据库设计
数据库的概念模型
根据系统需求分析,可以得出四六级报名管理系统的概念模式。图2-1是用E-R图表示的四六级报名管理系统的概念模型。
图2-1 四六级报名管理系统的E-R图
数据库的逻辑模型
将四六级报名管理系统的E-R图转换成关系数据库的数据模型,其关系模型为:
考生信息(学号,姓名,性别,身份证号,准考证号),其中学号与准考证号是主码;
报名信息(学号,考试等级),学号为主码;
考场信息(准考证号,考场号),准考证号为主码。
数据库结构的详细设计
关系属性的设计包括字段名称、数据类型、数据长度、该属性是否必填等设计。表2-1详细列出了四六级报名管理系统各表的属性设计情况。
表2-1 四六级报名管理系统各表的属性设计情况
表名 | 字段名 | 数据类型 | 长度 | 是否必填 |
考 生 信 息 | 学号 | 数字 | 长整型 | 是 |
姓名 | 文本 | 20 | 是 | |
性别 | 文本 | 4 | 是 | |
身份证号 | 数字 | 长整型 | 是 | |
准考证号 | 数字 | 长整型 | 是 | |
报名 信息 | 学号 | 数字 | 长整型 | 是 |
考试等级 | 文本 | 4 | 是 | |
考场 信息 | 准考证号 | 数字 | 长整型 | 是 |
考场号 | 数字 | 长整型 | 是 | |
第三章 概要设计
模块分析
(1)用户登录模块:用户登录模块的任务是识别用户身份,确定用户操作权,保证系统的安全运行。
(2)选择模块:选择进入考生、报名还是考场信息模块。
(3)考生信息模块:包含对考生的信息进行添加、删除、修改和查询四个子模块。
(4)报名信息模块:包含对报名的信息进行添加、删除、修改和查询四个子模块。
(5)考场信息模块:包含对考场的信息进行添加、删除、修改和查询四个子模块。
(6)添加、删除、修改和查询子模块:分别实现对信息的添加、删除、修改和查询。
功能模块结构图
图3-1 四六级报名管理系统功能模块结构图
第四章详细设计
登陆界面
图 4-1 登录界面设计图
确定登录按钮代码:
private void button1_Click(object sender, EventArgs e)
{
if =="admin"&&=="12345")
{
Form f2 = new Form2();
();
();
}
else
{
("用户名或密码错误!请重新输入", "管理系统");
= "";
= "";
}
}
取消按钮代码:
private void button2_Click(object sender, EventArgs e)
{
("已安全退出", "0");
();
}
选择界面
图4-2 选择界面设计图
考生信息管理按钮代码:
private void button1_Click(object sender, EventArgs e)
{
Form f3 = new Form3();
();
}
报名信息管理按钮代码:
private void button2_Click(object sender, EventArgs e)
{
Form f4 = new Form4();
();
}
考场信息管理按钮代码:
private void button3_Click(object sender, EventArgs e)
{
Form f5 = new Form5();
();
}
考生信息管理界面
图4-3 考生信息管理界面设计图
查询确定按钮代码:
private void button2_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
= aa;
string cmdText = "SELECT * FROM 考生信息where 学号= "++"";
efaultView;
= "";
}
确定删除按钮代码:
private void button4_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
}
修改按钮代码:
private void button3_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
= "";
= "";
= "";
}
添加按钮代码:
private void button1_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
= "";
= "";
= "";
}
更新全部信息按钮代码:
private void button6_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
}
退出报名管理系统代码:
private void button5_Click(object sender, EventArgs e)
{
();
}
报名信息管理界面
图4-4 报名信息管理界面设计图
添加按钮代码:
private void button1_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
}
修改按钮代码:
private void button2_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
}
查询按钮代码:
private void button3_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
= aa;
string cmdText = "SELECT * FROM 报名信息where 学号= " + + "";
efaultView;
= "";
}
确定删除按钮代码:
private void button5_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
}
考场信息管理界面
图4-5 考场信息管理界面设计图
确定删除按钮代码:
private void button1_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
}
查询按钮代码:
private void button2_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
= aa;
string cmdText = "SELECT * FROM 考场信息where 准考证号= " + + "";
efaultView;
= "";
}
添加按钮代码:
private void button5_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
}
修改按钮代码:
private void button6_Click(object sender, EventArgs e)
{
string aa = "Provider= Source=D:\\四六级报名.mdb;Persist Security Info=True ";
OleDbConnection con = new OleDbConnection();
ows)
{
}
}
catch (Exception)
{
}
shuaxin();
= "";
= "";
}
第五章 调试与分析
第六章 用户手册
总结
完整版分享可去留言
参考文献
【1】苗雪兰.数据库系统原理与应用教程.北京:机械工业出版社,
【2】陈立航.Access2000 命令与实例.北京:清华大学出版社,1998
【3】郑阿奇.C#程序设计教程.北京:机械工业出版社,
本文来源:https://www.2haoxitong.net/k/doc/925259ae091c59eef8c75fbfc77da26924c5961c.html
文档为doc格式