助学系统设计

发布时间 : 星期三 文章助学系统设计更新完毕开始阅读

沈阳理工大学学士学位论文

摘 要

本文主要介绍了西北民族大学助学系统设计。主要为软件程序设计。主要实现两大功能学生功能、老师功能和管理员。学生功能主要是现实用户登录、查看互动、删除互动、创建互动,查看互动在细分出三个功能评价互动、举报互动、修改互动。老师功能主要实现用户登录、查看互动两大功能,查看互动里也细分出三个功能能回复互动、举报互动、修改回复。管理员主要功能是允许修改所有用户,增删用户,还有查看所有举报互动和删除举报互动。

此模块是基于Java开发的,Java是由Sun Microsystems公司于1995年推出的面向对象程序设计语言。Java编程语言的特点是简单、面向对象、分布式、可扩展、高性能和跨平台的语言。本文开发工具使用MyEclipse,采用三层架构思想来完成,Web层,Service层(业务层),Dao层,视图层这块采用JSP、JavaScript、css技术来完成。Web层由Servlet来接收页面传递的参数和调用Service层中的方法,Service层主要调用Dao层中方法做一些简单逻辑判断,Dao层功能是连接数据库,进行数据的增、删、改、查一系列操作。数据库本设计采用Oracle,连接数据工具导入jdbc.jar包来连接数据库。服务器本模块使用Tomcat6.0版本Tomcat是一个开源而且免费的jsp服务器,将项目部署到服务器运行,只要在服务器中能正常运行,运行结果正确,证明设计思路正确。

关键词:Java;Myeclipse;Tomcat服务器;Web

I

沈阳理工大学学士学位论文

Abstract

This paper mainly introduces the design of Northwest University for Nationalities system. The main design is for a software program. The main achievement of the two major functions of students, teachers and the administrator function.The student is the main function of real user login, view, delete, create interactioninteraction interaction, the interaction in three functional evaluation, report,modify the interaction interaction interaction in the subdivision. The teacher function mainly realizes the user login, view the interactive functions of the two,the interaction is divided into three function can reply the interaction, interaction, Ireport. The main functions of the administrator is allowed to modify all users, add and delete users, and view all report interaction and delete report interaction.

This module is based on the development of Java, Java is an object orientedprogramming language developed by Sun Microsystems in 1995. Characteristics of the Java programming language is simple, object-oriented, distributed,scalable, high performance and cross platform language. In this paper, using MyEclipse as the development tool, adopt three layer architecture to complete,Web layer, Service layer (business), Dao layer, view layer using JSP, theJavaScript, CSS technology to finish the. Methods Web layer by Servlet toreceive the page transfer parameters and invoke the Service layer, Service layermethod layer calls Dao to do some simple logic judgment, Dao layer function is toconnect to the database, the data add, delete, change, check a series of operations. Database design using the Oracle tool, connect the data into the jdbc.jar package to connect to the database. The server module uses the Tomcat6.0 version of the Tomcat is an open source and free JSP server, the project will be deployed to the server is running, as long as the normal running on the server, the results correctly, that the design thought is correct.

Keywords: Java;Myeclipse;Tomcat service; Web

II

沈阳理工大学学士学位论文

目 录

1 绪论 ........................................................................................................................................ 1

1.1 开发背景 ...................................................................................................................... 1 1.2 课题现状 ...................................................................................................................... 1 1.3 研究内容 ...................................................................................................................... 1 1.4论文结构 ....................................................................................................................... 2 2 技术背景 ................................................................................................................................ 3

2.1 Oracle数据库介绍 ....................................................................................................... 3

2.1.1发展 ..................................................................................................................... 3 2.1.2功能 ..................................................................................................................... 3 2.1.3特性 ..................................................................................................................... 3 2.2 MyEclipse开发工具介绍 ............................................................................................. 4

2.2.1 MyEclipse的分类 ............................................................................................... 4 2.2.2 MyEclipse的使用 ............................................................................................... 5 2.3 TOMCAT服务器介绍 .................................................................................................. 5 2.4 MVC框架介绍 ............................................................................................................. 6 2.5 JSP技术介绍 ................................................................................................................ 7 2.6 SERVLET技术介绍 ..................................................................................................... 7 2.7开发环境 ....................................................................................................................... 8 3 系统设计 ................................................................................................................................ 9

3.1需求分析 ....................................................................................................................... 9

3.1.1前期工作 ............................................................................................................. 9 3.1.2用例图 ................................................................................................................. 9 3.3概要设计 ..................................................................................................................... 11 3.4数据库的设计 ............................................................................................................. 12 3.5数据库表与对应实体类设计 ..................................................................................... 16 3.6系统文件夹组织结构设计 ......................................................................................... 18 4 详细设计 .............................................................................................................................. 19

4.1 编写连接数据库工具类 ............................................................................................ 19

III

沈阳理工大学学士学位论文

4.2 界面设计 .................................................................................................................... 23 4.3 管理员模块设计与实现 ............................................................................................ 23 4.4 系统主页的实现说明 ................................................................................................ 25

4.4.1 top部分 ............................................................................................................. 25 4.4.2 content部分 ...................................................................................................... 25 4.4.3 bottom部分 ....................................................................................................... 26 4.5 学生模块的设计与实现 ............................................................................................ 26

4.5.1 创建互动 .......................................................................................................... 26 4.5.2 创建互动活动图 .............................................................................................. 28 4.5.3 查询教师 .......................................................................................................... 29 4.5.4 举报互动 .......................................................................................................... 29 4.5.5 删除互动 .......................................................................................................... 29 4.5.6 评价互动 .......................................................................................................... 30 4.5.7 修改互动详细信息 .......................................................................................... 30 4.5.8 学生登录时序图 .............................................................................................. 30 4.5.9 学生操作时序图 .............................................................................................. 31 4.6 教师模块实现 ............................................................................................................ 31 4.7 一些细节问题的实现 ................................................................................................ 32

4.7.1 数据库的连接 .................................................................................................. 32 4.7.2 数据库的操作 .................................................................................................. 33 4.7.3 html中表单使用 ............................................................................................... 34 4.7.4 html中table标签的简单使用 ......................................................................... 34 4.7.5 javascript的简单使用 ....................................................................................... 35 4.7.6 DIV+CSS的简单使用 ...................................................................................... 35 4.7.7 网页之间变量的传值问题 .............................................................................. 36

5 系统运行与测试 .................................................................................................................. 37

5.1 系统部署 .................................................................................................................... 37 5.2系统测试 ..................................................................................................................... 37

5.2.1登录测试 ........................................................................................................... 37 5.2.2互动管理测试 ................................................................................................... 39

IV

联系合同范文客服:xxxxx#qq.com(#替换为@)