中文摘要
I
摘要
本论文主要论述的是基于 WEB 的选课系统的系统维护模块的设计与实现。
设计本系统的目的是对选课信息进行管理。学生选课系统维护模块主要完
成的是系统管理与维护功能。课题研究过程中,首先对系统管理模块进行了详
尽的需求分析,经分析得到系统管理模块主要完成如下的功能:用户基本信息、
选课信息的录入,查看,修改,删除等,同时还具有查询各个模块的功能,数据备
份,数据还原 ,注销等功能。系统管理模块是整个系统的指挥中心,保证整个
系统在校园网上安全有效地运作。之后根据需求提出了系统管理模块的总体设
计方案,并据此进行了详细设计和编码实现。系统使用 B/S 结构设计和开发,
系统的编码实现基于 VS.NET 平台,使用 ASP.NET 作为开发语言,SQL Server
2000 作为数据库。代码中通过使用进程中的 Session、尽量使用存储过程和尽量
减少数据库连接的打开时间等手段来提高性能。
论文中对课题的设计和开发进行了完整地论述。系统开发完成后,对课题
要求的功能设计出测试用例,进行功能测试,测试结果证明学生选课系统的维
护模块实现了对该模块的功能需求,完成了课题的主要任务。
关键词:选课系统,系统管理,ASP .NET
Abstract
II
Abstract
The topic is mainly to comment designment and implementation of the
maintenance module of the Web-based Course Selection System.
The purpose of Course Selection System is to manage the course selection
information on computer. Research process, the first system management module for
a detailed needs analysis. Upon analysis of system management module to be
completed the following functions : basic user information in the Course Selection
logging information, the following changes. delete, inquiry also has the function of
each module, backup data, restore data, the write-off and other functions. The entire
system is the command module management system to ensure that the entire campus
network safe and effective transport system to do. After a demand management
module design program, and thus achieve a detailed design and coding. The system
use the Structure of B/S, using VS.NET as the development language and SQL Server
2000 as database. Session code through the use of the process. Make full use of the
process and minimize storage time open database connectivity to improve
performance.
The design and development of a thesis topic for a complete exposition. System
development is completed, subject to the requirements of the functional test case
design and the functionality, Test results show that the system to safeguard optional
module of the functional requirements of this module, and complete the main task.
Key words : course selection system, management modules,ASP.NET
目录
III
目录
摘要................................................................................................................................I
Abstract .........................................................................................................................II
目录 .............................................................................................................................III
第一章 绪论 ...............................................................................................................1
1.1 课题背景 .............................................................................................................1
1.2 关键技术介绍 .....................................................................................................1
1.2.1 ASP.NET 简介 ..............................................................................................1
1.2.2 SQL Server ....................................................................................................3
1.2.3 ADO.NET 简介.............................................................................................3
1.2.4 HTML ............................................................................................................4
1.2.5 Script..............................................................................................................5
1.3 课题主要工作 .....................................................................................................5
第二章 需求分析 .......................................................................................................7
2.1 可行性分析 .........................................................................................................7
2.1.1 网上选课系统的产生和可行性分析 ..........................................................7
2.2 功能分析 .............................................................................................................8
第三章 系统的设计 .................................................................................................10
3.1 总体设计 ...........................................................................................................10
3.2 功能的详细设计 ...............................................................................................10
3.3 数据库设计 .......................................................................................................11
第四章 系统实现与验证 ...........................................................................................16
4.1 系统实现 ...........................................................................................................16
4.1.1 系统主界面 ................................................................................................16
4.1.2 登录功能 ....................................................................................................17
4.1.3 学生模块功能 ............................................................................................19
4.1.4 教师模块功能 ............................................................................................20
4.1.5 管理员模块功能 ........................................................................................21
4.1.6 存储过程 ....................................................................................................23
4.1.7 类的使用 ....................................................................................................25
4.2 系统验证 ...........................................................................................................26
4.2.1 系统运行环境 ............................................................................................27
目录
IV
4.2.2 系统的验证 ................................................................................................27
结论 .............................................................................................................................29
参考文献 .....................................................................................................................30
致谢 .............................................................................................................................31
第一章 绪论
- 1 -
第一章 绪论
1.1 课题背景
学生选课是学校教学环节开展的前提和基础,是学校工作的重要组成部分。
一直以来人们使用传统人工的方式管理文件挡案,这种管理方式存在着许多缺
点,如:效率低、保密性差,另外时间一长,将产生大量的文件和数据,这对于
查找、更新和维护都带来了不少的困难。
随着科学技术的不断提高,计算机科学日渐成熟,其强大的功能已为人们
深刻认识。使用计算机对选课信息进行管理,有着手工管理所无法比拟的优点,
例如:检索迅速、查找方便、可靠性高、存储量大、保密性好、寿命长、成本
低等。这些优点能够极大地提高人事劳资管理的效率,也是企业的科学化、正
规化管理,与世界接轨的重要条件。 因此,建立一个学生选课系统,使选课管
理工作规范化、系统化、程序化,避免选课管理的随意性,提高信息处理的速
度和准确性,能够及时、准确、有效的查询和修改选课情况。
1.2 关键技术介绍
1.2.1 ASP.NET 简介
ASP.NET 又称 ASP+,但它不是 ASP 的简单升级,而是微软提出的.NET 框
架的一部分,它是一种以.NET 框架为基础开发网上应用程序的全新模式
[4]
。
.NET 的核心内容之一就是要搭建第三代互联网平台,这个网络平台将打破
不同的上网设备、不同的操作系统、不同的网站,以及各大机构和工业界的网
络障碍,将解决网站之间的协同合作,使网站之间形成自动交流,从而最大限
度的共享资源
[2]
。
.NET 框架(.NET Framework)主要有以下 3 部分组成:
公共语言运行库(Common Language Runtime,CLR)
基础库类(Base Class Libarary)