计算机102201H霍璐 企业MIS系统.ppt

企业MIS系统设计

收藏

资源目录
跳过导航链接。
企业MIS系统设计.rar
计算机102201H 霍璐 企业MIS系统
计算机102201H霍璐 企业MIS系统.ppt---(点击预览)
计算机102201H 霍璐 企业MIS系统.doc---(点击预览)
数据库
dyjz_db.sql
源码
dyjz
.myeclipse
.settings
src
WebRoot
.classpath
.mymetadata
.project
压缩包内文档预览:(预览前20页/共25页)
预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图
编号:30909052    类型:共享资源    大小:9.38MB    格式:RAR    上传时间:2019-12-13 上传人:遗**** IP属地:湖北
30
积分
关 键 词:
企业 MIS 系统 设计
资源描述:
企业MIS系统设计,企业,MIS,系统,设计
内容简介:
华科学院HUAKE INSTITUTE OF TAIYUAN UNIVERSITY OF SCIENCE & TECHNOLOGY 毕业设计(论文)题目:企业OA管理系统的开发与实现学 生 姓 名 霍璐 学 号 201022030109 班 级 计算机102201H 所属院(系) 计算机科学与技术系 指 导 教 师 田璟霞 2014 年 4 月 18 日太原科技大学毕业设计(论文)任务书学院(直属系):计算机科学与技术系 时间: 2014年 4 月 18 日学 生 姓 名霍璐指 导 教 师田璟霞设计(论文)题目企业MIS系统主要研究内容1.Java面向对象程序设计2.JavaEE企业开发方式以及相关技术3.OA的核心概念以及Java平台的实现研究方法按照软件开发CMM标准实施,具体包括,需求分析、体系结构设计、模块设计、数据库设计等相关设计。主要技术指标(或研究目标)JavaEE企业核心技术(servlet、jsp、jdbc、框架ssh、工作流引擎jbmp)主要参考文献1 王家华软件工程M,沈阳:东北大学出版社,2012,46-199。2 李金山. 学生信息管理系统的设计J.太原:科技情报开发与经济2012,(14):132.3 黄理,李积善,曹林有,张勇.用JSP轻松开发Web网站(第一版)M.北京:北京希望电子出版社.2011.100152. 4 王小铭.管理信息系统及其开发技术M修订版.北京:电子工业出版社,2012企业mis管理系统的开发与实现摘 要随着社会信息化的发展,网络化办公代表了新时代工作模式的一个发展方向,已经成为现代工作模式的一个特征,并对广大个人或是各个公司领域的发展形成新的推动力。为了让管理更快捷、更准确,实现人事管理的信息化已经成为各个企业的当务之急。传统的办公方式一般要经过人工登记员工信息、制定部门计划、手动录入薪资档案等过程。对于一些日常的工作来说,随着部门数量的增加,员工数量的扩大,对于办公者来说工作量将会越来越大,并且其工作十分烦琐和非常容易出错。人力资源管理系统课题产生的背景是当今办公信息化的趋势,目的是充分利用公司现有的计算机软、硬件和网络资源实现无纸化办公以避免传统工作模式的不足。与传统工作模式相比,网络办公渗入了更多的技术环节,对实现安全性的途径、方法也提出了更高的技术要求。通过Internet来实现网络办公,是现代办公技术的一个具体实现,具有很重要的现实意义。论文包括以下几个部分:第一部分系统分析,通过对用户需求的分析,说明了中小型企业人事管理系统的背景、研究意义、系统功能分析以及数据流图、数据字典分析。第二部分概要设计, 设计了系统的功能、数据库分析、数据库概念分析、数据库逻辑结构设计以及数据库物理结构设计。第三部分详细设计,设计了数据库连接模块、登录模块、管理员管理模块、员工管理模块、逻辑结构等。第四部分系统实现,通过对系统的分析、概要设计、详细设计完成了中小型企业人事管理系统的各个模块的实现,达到方便用户使用中小型企业人事管理系统。本课题的实施将会促进企业的无纸化办公,避免人工管理中出现各种差错,提高企业管理效率,使得管理者能够更加方便的了解到企业内部人事状况。关键字:中小型企业人事管理 结构化分析 mysqlIIDevelopment and Implementation of MIS management systemAbstractWith the development of the information society, office network represents a direction of the working mode of the new era, has become a feature of the modern working mode, and the majority of individuals or companies in the field of development of the formation of a new driving force. In order to make the management more efficient, more accurately, realize the personnel management information has become a pressing matter of the moment of each enterprise.The traditional office mode in general to go through the process of manual registration staff information, formulate plans, manual entry salary archives. For some daily work, along with the increase of the number of departments, to expand the number of employees, for office who will be increasing the workload, and their work is very cumbersome and very error-prone. Issues of human resource management system of the background of todays office of information technology trends, to make full use of the existing computer software, hardware and cyber source to achieve paperless office in order to avoid the shortcomings of the traditional working mode. Compared with the traditional working mode, network office into the more technical aspects, but also put forward higher requirements for the technical method of the way to achieve security. Internet to achieve through the network office, is a modern office technology specific implementation, has very important practical significance.This article includes the following parts:The first part of the analysis system, based on the analysis of user demand, illustrates the background, significance of research, analysis of the system function and data flow diagram, data dictionary analysis of personnel management system for small and medium enterprises. The second part outline design, the system function design, database analysis, database concept analysis, database logical structure design and physical structure of the database design. The third part of the detailed design, design of database connection module, login module, the administrator management module, staff management module, logical structure. The realization of the fourth part of the system, through the system analysis, the outline design, detailed design and Realization of each module to complete the personnel management system of small and medium-sized enterprises, to facilitate the users to use the personnel management system for small and medium enterprisesDevelopment of the paperless office this issue will facilitate the implementation, to avoid the artificial management in a variety of errors, improve the efficiency of enterprise management, make managers to understand the situation of internal personnel more convenientKeywords: OA management system, ssh, POI, AJAX 太原科技大学华科学院毕业设计(论文)目 录摘 要IAbstractII第一章 系统分析- 1 -1.1问题来源- 1 -1.2选题背景- 1 -1.2.1 问题定义- 1 -1.2.2选题意义- 2 -1.3系统功能分析- 2 -1.4数据流图- 3 -1.5数据字典- 4 -第二章 基础理论知识- 5 -2.1 JSP语言简介- 5 -2.2 Java语言- 5 -2.3 MYSQL简介- 6 -2.4 servlet应用- 8 -2.5 MyEclipse简介- 9 -2.6 Tomcat简介- 9 -第三章 概要设计- 10 -3.1 系统结构- 10 -3.2功能设计- 10 -3.3 数据库分析- 11 -3.3.1 实体分析- 11 -3.3.2 实体属性- 11 -3.3.3 实体之间联系- 12 -3.4 数据库概念设计- 12 -3.5 数据库逻辑结构设计- 13 -3.6 数据库物理结构设计- 16 -第四章 详细设计- 18 -4.1 数据库连接模块的设计- 18 -4.2 登录模块详细设计- 18 -4.2.1 用户登录功能- 18 -4.2.2 用户登录流程- 19 -4.2.3 主页面功能- 19 -4.3 主页面模块的详细设计- 20 -4.3.1 部门管理功能- 20 -4.3.2 人员档案管理功能- 20 -4.3.3 修改密码功能- 20 -4.4员工模块的详细设计- 21 -4.4.1 查看工资功能- 21 -4.4.2 查看考勤功能- 21 -4.4.3 查看奖励功能- 21 -4.4.4 查看调动功能- 21 -4.5安全设置模块的详细设计- 21 -4.6开发工具及环境- 21 -第五章 系统实现- 22 -5.1登录管理模块- 22 -5.2部门信息管理界面- 25 -5.3员工档案管理界面- 26 -5.4员工考勤管理界面- 28 -5.5工资信息管理界面- 29 -5.6员工奖励管理界面- 30 -5.7员工登陆界面- 31 -5.8员工修改密码界面- 32 -5.9员工工资查询界面- 33 -5.10员工奖励查询界面- 34 -5.11员工简历查询界面- 34 -5.12员工调动查询界面- 34 -结束语- 36 -参考文献- 37 -致 谢- 38 -附录 英文资料翻译- 39 -II- 1 -第一章 系统分析1.1问题来源企业人力资源管理系统是当前一个很热门,实用性很强的系统,这里我们实现的是它的员工、薪金以及培训招聘等模块,把它作为毕业设计的题目,可以把已有的知识用于实践,又可以学到一些新的概念,在这个过程中,可以增加我们的工程经验,对以后的工作学习是一次很有意义的经验积累随着计算机技术的飞速发展,计算机在人事管理中应用的普及,利用计算机在实现公司人事档案的管理势在必行。当今社会正快速向信息化社会前进,信息自动化的作用也越来越大。从而使我们从繁杂的事务中解放出来,提高了我们的工作效率。目前很多公司部门的人事管理还处于人工管理的阶段,效率低下,已经远远落后于当今技术的发展。并且人工管理的弊端也愈来愈严重,由于不可避免的人为因素,造成数据的遗漏、误报,而造成公司部门重大损失的事例层出不穷。1.2选题背景1.2.1 问题定义计算机信息化管理有着储存信息量大,速度快等许多优点,提供给我们的处理信息及时快捷,同时也提高了我们工作人员的自身素质。因此我们利用计算机提供给我们信息,做出了这个公司人事信息管理系统。公司人事管理系统是现在公司管理工作不可缺少的一部分是适应现在公司制度的要求。推动公司人事管理走向科学化、规范化的必要条件。传统的办公模式主要以纸介质为主,在信息革命的浪潮中,显然已经远远不能满足高效率、快节奏的现代工作和生活的需要。如何实现信息处理的自动化和办公的无纸化逐步得到了人们的重视。如今,随着计算机技术的普及人们开始采用MIS,它是集计算机技术、网络通信技术为一体的信息系统工程,能使公司部门运行的数据更加准确、及时、全面、详实,同时对各种信息进一步地加工,使公司部门领导层对人事管理的决策依据更充分,更具有合理性科学性,并创造出更多的发展机会;另外也进一步加强公司部门的科学化、合理化、制度化、规范化管理,为公司部门的管理水平跨上新台阶,为公司部门持续、健康、稳定的发展打下基础。MIS是一门新的学科,它跨越了若干个领域,比如管理科学、系统科学,运筹学、统计学以及计算机科学。在这些学科的基础上,形成信息收集和加工的方法,从而形成一个纵横交织的系统。在强调管理,强调信息的现代社会中它变得越来越普及。1.2.2选题意义中小型企业人事管理系统的开发目的是使中小型企业人事管理模式从手工记录转变成信息管理,为中小型企业人事管理人员提供方便条件。对中小型企业人事管理的实际情况进行调研之后,进行详细的需求分析,对现有的管理模式进行改进,开发出一套新型的管理系统,从中领悟系统开发的思想,掌握系统开发的流程和方法。随着信息系统的不断完善,中小型企业的管理将越来越依赖于信息化的管理。所以系统开发将围绕中小型企业人事工作的实际情况,使之能迅速适应中小型企业的需要。1.3系统功能分析下面是主要实现的功能:员工模块:用户注册登录模块:用户注册后方可登录系统,该模块判断登录的而用户是否合法,并对不同的用户进行权限的控制,是整个系统的入口。个人资料档案模块:实现个人资料档案的有效管理,并可查询每位员工的基本信息;个人简历模块:该模块包含个人介绍、工作经历以及其他,可进行添加、查询、清空简历的操作;员工信息模块:主要是公司员工的基本信息,修改员工信息资料,以及查询相关信息等;工资信息管理模块:主要记录公司员工的工资以及奖金等信息;考勤信息管理模块:主要记录了在某一段时间(本系统中以月为单位),员工的出勤情况以及休假情况。 管理员模块部分:用户管理:实现查询、删除;个人资料档案管理:实现人事档案的增、删、改、查等功能。个人简历:实现个人简历的添加和查询功能。员工信息查询:实现对员工信息进行查看的查询功能。工资信息管理:实现工资信息的添加、修改、查询的功能。考勤信息管理:每位员工均需进行上下班考勤,员工可查看考勤信息,管理员对信息进行相关添加、修改等操作。 1.4数据流图数据流程是指数据在系统中产生、传输、加工处理、使用、存储的过程。数据流程分析是把数据在现行系统内部的流动抽象的独立起来,舍去了具体组织机构、信息载体、处理工具、物质、材料等,单从数据流动过程来考查实际业务的数据处理模式。图1-1数据流图数据流程与数据流程分析是今后建立数据库系统和设计功能模块处理过程的基础。描述数据流程的工具是数据流程图以及其附带的数据字典、处理逻辑等图表。其中数据流程图是描述系统逻辑模型的主要工具,它以少数几种符号综合地反映出信息在系统中的流动、存储和传递。在业务流程分析的基础上,对数据流进行了分析,从数据流动过程考察了实际业务的数据处理模式。该层数据流图如图1-1所示。1.5数据字典名字:部门列表描述:部门列表所有部门的列表定义:编号名称备注位置:部门管理页面描述:管理员的所有信息定义:管理员列表编号用户名密码+权限位置:管理员管理页面名字:部门编号描述:唯一标识部门的字段定义:部门编号数字位置:部门表涉及该数据库的数据结构及其数据项图下表所示。第二章 基础理论知识根据前几个阶段的分析和设计,本系统在设计方面采用B/S模式,同时使用JSP技术进行基本页面的设计与功能实现,后台数据库选用MySQL数据库。2.1 JSP语言简介Java Server Page或简称为JSP是由Sun公司在Java语言上开发出来的一种动态网页制作技术,它提供了一种建立动态网页的简单方法,并为开发人员提供了一个Server端框架,基于这个框架,开发人员可以综合使用 HTML,XML,JAVA语言以及其他脚本语言,灵活,快速地创建和维护动态网页,特别是目前的商业系统。作为JavaTM 技术的一部分,JSP能够快速的开发出基于所有Web服务器和应用服务器环境,独立于平台的应用程序,而且具有非常强的可伸缩性。同时,JSP把用户界面从系统内容中分离开来,使得设计人员能够在不改变底层动态内容的前提下改变网页布局。JSP编程技术的优势在于:(1)一次编写,到处运行。在这一点上Java比JSP更出色,除了系统之外,代码不用做任何更改。(2)系统的多平台支持。基本上可以在所有平台上的任意环境中开发,在任意环境中进行系统部署,在任意环境中扩展。相比ASP/JSP的局限性是显而易见的。 (3)强大的可伸缩性。从只有一个小的Jar文件就可以运行Servlet/JSP,到由多台服务器进行集群和负载均衡,到多台Application进行事务处理,消息处理,一台服务器到无数台服务器,Java显示了一个巨大的生命力。 (4)多样化和功能强大的开发工具支持。这一点与ASP很像,Java已经有了许多非常优秀的开发工具,而且许多可以免费得到,并且其中许多已经可以顺利的运行于多种平台之下。2.2 Java语言Java是一种简单的,面象对象的,分布式的,解释的,健壮的安全的,结构的中立的,可移植的,性能很优异的多线程的,动态的语言。它有以下特点:1. 平台无关性 平台无关性是指Java能运行于不同的平台。Java引进虚拟机 原理,并运行于虚拟机,实现不同平台的Java接口之间。使 用Java编写的程序能在世界范围内共享。Java的数据类型与 机器无关,Java虚拟机(Java Virtual Machine)是建立在 硬件和操作系统之上,实现Java二进制代码的解释执行功能, 提供于不同平台的接口的。 2. 安全性 Java的编程类似C+,学习过C+的读者将很快掌握Java的精 髓。Java舍弃了C+的指针对存储器地址的直接操作,程序 运行时,内存由操作系统分配,这样可以避免病毒通过指 针侵入系统。Java对程序提供了安全管理器,防止程序的 非法访问。 3. 面向对象 Java 吸取了C+面向对象的概念,将数据封装于类中,利用类 的优点,实现了程序的简洁性和便于维护性。类的封装性、 继承性等有关对象的特性,使程序代码只需一次编译,然后 通过上述特性反复利用。程序员只需把主要精力用在类和接 口的设计和应用上。Java 提供了众多的一般对象的类,通 过继承即可使用父类的方法。在 Java 中,类的继承关系是单一的非多重的,一个子类 只有一个父类,子类的父类又有一个父类。Java 提供的 Object 类及其子类的继承关系如同一棵倒立的树形,根类 为 Object 类, Object 类功能强大,经常会使用到它及其 它派生的子类。 4. 分布式 Java建立在扩展TCP/IP网络平台上。库函数提供了用HTTP和FTP协议传送和接受信息的方法。这使得程序员使用网络上的文件和使用本机文件一样容易。 5. 键壮性 Java致力于检查程序在编译和运行时的错误。类型检查帮助检查出许多开发早期出现的错误。Java自己操纵内存减少了内存出错的可能性。Java还实现了真数组,避免了覆盖数据的可能。这些功能特征大大提高了开发Java应用程序的周期。Java提供: Null指针检测、 数组边界检测、 异常出口、 Byte code校验。2.3 MYSQL简介MySQL是一个关系型数据库管理系统,由瑞典MySQL AB公司开发,目前属于Oracle公司。MySQL是一种关联数据库管理系统,关联数据库将数据保存在不同的表中,而不是将所有数据放在一个大仓库内,这样就增加了速度并提高了灵活性。MySQL的SQL语言是用于访问数据库的最常用标准化语言。MySQL软件采用了双授权政策(本词条“授权政策”),它分为社区版和商业版,由于其体积小、速度快、总体拥有成本低,尤其是开放源码这一特点,一般中小型网站的开发都选择MySQL作为网站数据库。由于其社区版的性能卓越,搭配PHP和Apache可组成良好的开发环境。与其他的大型数据库例如Oracle、DB2、SQL Server等相比,MySQL自有它的不足之处,如规模小、功能有限(MySQL Cluster的功能和效率都相对比较差)等,但是这丝毫也没有减少它受欢迎的程度。对于一般的个人使用者和中小型企业来说,MySQL提供的功能已经绰绰有余,而且由于MySQL是开放源码软件,因此可以大大降低总体拥有成本。 LAMP:目前Internet上流行的网站构架方式是LAMP(Linux+Apache+ MySQL+php/perl/Python)和LNMP(Linux+Nginx+MySQL+php/perl/Python),即使用Linux作为操作系统,Apache和Nginx作为Web服务器,MySQL作为数据库,PHP/Perl/Python作为服务器端脚本解释器。由于这四个软件都是免费或开放源码软件(FLOSS),因此使用这种方式不用花一分钱(除开人工成本)就可以建立起一个稳定、免费的网站系统。系统特性:1使用C和C+编写,并使用了多种编译器进行测试,保证源代码的可移植性2支持AIX、FreeBSD、HP-UX、Linux、Mac OS、NovellNetware、OpenBSD、OS/2 Wrap、Solaris、Windows等多种操作系统3为多种编程语言提供了API。这些编程语言包括C、C+、Python、Java、Perl、PHP、Eiffel、Ruby和Tcl等。4支持多线程,充分利用CPU资源5优化的SQL查询算法,有效地提高查询速度6既能够作为一个单独的应用程序应用在客户端服务器网络环境中,也能够作为一个库而嵌入到其他的软件中。7提供多语言支持,常见的编码如中文的GB 2312、BIG5,日文的Shift_JIS等都可以用作数据表名和数据列名。8提供TCP/IP、ODBC和JDBC等多种数据库连接途径。9提供用于管理、检查、优化数据库操作的管理工具。10支持大型的数据库。可以处理拥有上千万条记录的大型数据库。11支持多种存储引擎。2.4 servlet应用Servlet是一种服务器端的Java应用程序,具有独立于平台和协议的特性,可以生成动态的Web页面。 它担当客户请求(Web浏览器或其他HTTP客户程序)与服务器响应(HTTP服务器上的数据库或应用程序)的中间层。 Servlet是位于Web 服务器内部的服务器端的Java应用程序,与传统的从命令行启动的Java应用程序不同,Servlet由Web服务器进行加载,该Web服务器必须包含支持Servlet的Java虚拟机。servlet是在服务器上运行的小程序。这个词是在Java applet的环境中创造的,Java applet是一种当作单独文件跟网页一起发送的小程序,它通常用于在服务器端运行,结果得到为用户进行运算或者根据用户互作用定位图形等服务。服务器上需要一些程序,常常是根据用户输入访问数据库的程序。这些通常是使用公共网关接口(CGI(Common Gateway Interface))应用程序完成的。然而,在服务器上运行Java,这种程序可使用Java编程语言实现。在通信量大的服务器上,Java servlet的优点在于它们的执行速度更快于CGI程序。各个用户请求被激活成单个程序中的一个线程,而无需创建单独的进程,这意味着服务器端处理请求的系统开销将明显降低。Servlet看起来像是通常的Java程序。Servlet导入特定的属于Java ServletAPI的包。因为是对象字节码,可动态地从网络加载,可以说Servlet对Server就如同Applet对Client一样,但是,由于Servlet运行于Server中,它们并不需要一个图形用户界面。从这个角度讲,Servlet也被称为FacelessObject。一个servlet就是Java编程语言中的一个类,它被用来扩展服务器的性能,服务器上驻留着可以通过“请求-响应”编程模型来访问的应用程序。虽然servlet可以对任何类型的请求产生响应,但通常只用来扩展Web服务器的应用程序。与传统的CGI和许多其他类似CGI的技术相比,Java Servlet具有更高的效率,更容易使用,功能更强大,具有更好的可移植性,更节省投资。在未来的技术发展过程中,Servlet有可能彻底取代CGI。在传统的CGI中,每个请求都要启动一个新的进程,如果CGI程序本身的执行时间较短,启动进程所需要的开销很可能反而超过实际执行时间。而在Servlet中,每个请求由一个轻量级的Java线程处理(而不是重量级的操作系统进程)。 在传统CGI中,如果有N个并发的对同一CGI程序的请求,则该CGI程序的代码在内存中重复装载了N次;而对于Servlet,处理请求的是N个线程,只需要一份Servlet类代码。在性能优化方面,Servlet也比CGI有着更多的选择。2.5 MyEclipse简介MyEclipse企业级工作平台(MyEclipse Enterprise Workbench ,简称MyEclipse)是一个十分优秀的用于开发Java、J2EE的Eclipse插件集合,利用它我们可以在数据库和J2EE的开发、发布,以及应用程序服务器的整合方面极大的提高工作效率。它是功能丰富的J2EE集成开发环境,包括了完备的编码、调试、测试和发布功能,完整支持HTML, Struts, JSF, CSS, Javascript, SQL, Hibernate。快速Java EE部署和测试项目自动部署和启动服务:根据指定的调试和运行模式,自动配置项目和启动服务器;在现有的应用程序配置中可以重新配置;在配置前,自动停止运行的服务器。2.6 Tomcat简介Tomcat是一个轻量级应用服务器,随着java的流行,其在web上的应用也越来越广,tomcat作为一个开源的servlet容器,应用前景越来越广。Tomcat很受广大程序员的喜欢,因为它运行时占用的系统资源小,使用Tomcat可以体验JSP和Servlet的最新规范。经过多年的发展,使得Tomcat不仅是JSP和Servlet规范的标准实现,而且具备了很多商业Java Servlet容器的特性;而且它还在不断的改进和完善中,任何一个感兴趣的程序员都可以更改它或在其中加入新的功能。第三章 概要设计3.1 系统结构中小型企业人事管理系统是一种典型的信息管理系统,它是为了方便中小型企业人事的管理系统,为用户提供充足的信息和快捷的查询手段,方便用户在本系统上了解中小型企业人事管理方面的信息。该系统的开发主要包括前端应用程序和后台数据库两方面。前端应用程序力求做到界面美观大方,简单易用;后台数据库则力求建立一个数据一致性、完整性强和安全性好的数据库,可以进行各种数据的查询和统计。3.2功能设计下面是主要实现的功能:员工模块:用户注册登录模块:用户注册后方可登录系统,该模块判断登录的而用户是否合法,并对不同的用户进行权限的控制,是整个系统的入口。个人资料档案模块:实现个人资料档案的有效管理,并可查询每位员工的基本信息;个人简历模块:该模块包含个人介绍、工作经历以及其他,可进行添加、查询、清空简历的操作;员工信息模块:主要是公司员工的基本信息,修改员工信息资料,以及查询相关信息等;工资信息管理模块:主要记录公司员工的工资以及奖金等信息;考勤信息管理模块:主要记录了在某一段时间(本系统中以月为单位),员工的出勤情况以及休假情况。 管理员模块部分:用户管理:实现查询、删除;个人资料档案管理:实现人事档案的增、删、改、查等功能。个人简历:实现个人简历的添加和查询功能。员工信息查询:实现对员工信息进行查看的查询功能。工资信息管理:实现工资信息的添加、修改、查询的功能。考勤信息管理:每位员工均需进行上下班考勤,员工可查看考勤信息,管理员对信息进行相关添加、修改等操作。 中小型企业人事管理系统功能模块图如图3-1所示:图3-1 中小型企业人事管理系统功能模块图3.3 数据库分析3.3.1 实体分析根据中小型企业人事管理系统的总体设计,我们定义了中小型企业人事管理系统整个系统分为三个模块。由此我们可以首先确定该系统中的实体:管理员、员工、部门、工资、考勤共5个实体。管理员实体、员工实体、部门实体、工资实体、考勤实体。3.3.2 实体属性1.管理员实体编号、用户名、密码、权限2.员工实体编号、用户名、密码、姓名、性别、部门编号、电话、地址、备注3.部门实体编号、名称、备注4.工资实体编号、员工编号、基本工资、奖励工资、总工资、时间5.考勤实体编号、员工编号、考勤情况、时间3.3.3 实体之间联系管理员可以管理员工、管理考勤、管理部门、管理工资,一个管理员可以管理多个员工、多个考勤、多个部门、多个工资,一个部门包括多个员工。3.4 数据库概念设计E-R模型的组成元素有:实体、属性、联系。E-R模型用E-R图表示。实体是用户工作环境中所涉及的事务,属性是对实体特征的描述。1.模型中的实体相当于实体集、一个表,而不是单个实体或表中的一行。实体用矩形框表示,实体名称标注在矩形框内。用菱形表示实体间的联系,菱形框内写上联系名,用无向边把菱形分别与有关实体相连接,在无向边旁标上联系的类型。2.属性是实体的性质。用椭圆框表示,与实体之间用一条线相连表的主码是关键属性,关键属性项加下划线。3.各子系统模块中主键相同的字段之间存在着相互关联的关系。4.在程序中实现对他们的完整性和一致性控制。从数据需求分析中得出系统的实体属性图,遵循三范式原则,对实体之间的依赖关系进行了整合,得出系统E-R图:说明:图中用矩形表示实体。实体之间的关系用菱形表示,用无向边把菱形与有关实体连接,在边上标明联系的类型。实体的属性用椭圆表示,并用无向边把实体与属性联系起来。图3-2 ER图3.5 数据库逻辑结构设计数据库技术是信息资源管理最有效的手段。数据库设计是指对于一个给定的应用环境,构造最优的数据库模式,建立数据库及其应用系统,有效存储数据,满足用户信息要求和处理要求。数据库设计中需求分析阶段综合各个用户的应用需求,在概念设计阶段形成独立于机器特点、独立于各个DBMS产品的概念模式,用E-R图来描述。在逻辑设计阶段将E-R图转换成具体的数据库产品支持的数据模型如关系模型,形成数据库逻辑模式。然后根据用户处理的要求,安全性的考虑,在基本表的基础上再建立必要的视图形成数据的外模式。在物理设计阶段根据DBMS特点和处理的需要,进行物理存储安排,设计索引,形成数据库内模式。数据库设计的主要任务是针对一个给定的应用环境,在给定的硬件环境、操作系统、以及数据库管理信息系统等软件环境下,创建一个性能良好的数据库模式,建立数据库及其应用系统,使之能有效地收集、存储、操作和管理数据,满足用户地各类需求。数据库设计通常是在一个通用的DBMS支持下,即利用现成的DBMS作为开发的基础。数据库表结构如下:表3-1 admin表列名数据类型长度允许空idvarchar(40)utf8_general_ciNOusernamevarchar(10)utf8_general_ciYESpasswordvarchar(40)utf8_general_ciYESquanxianvarchar(40)utf8_general_ciYES表3-2 pay表列名数据类型长度允许空idvarchar(40)utf8_general_ciNOeidvarchar(40)utf8_general_ciNOjmoneyfloat(8)utf8_general_ciNOjlgzfloat(8)utf8_general_ciNOtotalfloat(8)utf8_general_ciYEStimedatetime(8)utf8_general_ciYES表3-3 depart表列名数据类型长度允许空idvarchar(40)utf8_general_ciNOnamevarchar(25)utf8_general_ciNObeizhuvarchar(40)utf8_general_ciNO表3-4 emp表列名数据类型长度允许空idvarchar(40)utf8_general_ciNOusernamevarchar(10)utf8_general_ciYESpasswordvarchar(40)utf8_general_ciYESnamevarchar(40)utf8_general_ciNOsexvarchar(2)utf8_general_ciNOdepartvarchar(40)utf8_general_ciNOtelvarchar(40)utf8_general_ciNOaddressvarchar(40)utf8_general_ciNOremarkvarchar(40)utf8_general_ciNO表3-5 attend表列名数据类型长度允许空idvarchar(40)utf8_general_ciNOeidvarchar(40)utf8_general_ciNOkaoqinvarchar(40)utf8_general_ciNOtimeDatetime(8)utf8_general_ciNO3.6 数据库物理结构设计CREATE TABLE admin ( id varchar(40) NOT NULL, username varchar(30) NOT NULL, password varchar(10) default NULL, quanxian varchar(30) NOT NULL, PRIMARY KEY (id)CREATE TABLE pay ( id varchar(40) NOT NULL, eid varchar(10) NOT NULL, jmoney varchar(20) NOT NULL, jlgz varchar(10) NOT NULL, total varchar(40) NOT NULL, time varchar(40) NOT NULL, PRIMARY KEY (id )CREATE TABLE depart ( id varchar(40) NOT NULL, name varchar(25) NOT NULL, beizhu float(4) NOT NULL, PRIMARY KEY (id )CREATE TABLE emp ( id varchar(40) NOT NULL, username varchar(10) NOT NULL, password float(4 NOT NULL, name float(4) NOT NULL, sex varchar(40) NOT NULL, depart varchar(40) NOT NULL, tel varchar(40) NOT NULL, address varchar(40) NOT NULL, remark varchar(40) NOT NULL, PRIMARY KEY (id)CREATE TABLE attend ( id varchar(40) NOT NULL, eid varchar(40) NOT NULL, kaoqin varchar(40) NOT NULL, time datetime(8) NOT NULL, PRIMARY KEY (id )第四章 详细设计详细设计阶段主要确定每个模块的具体执行过程,它的关键是确定怎样具体实现所要求的目标系统,也就是要设计出未来程序的详细运行模式,除了保证程序的可靠性之外,使将来编写的程序方便使用,代码清晰,易于修改、维护也是详细设计阶段最重要的目标结构化程序设计是实现这一目标的基本保证,是进行详细设计的逻辑基础。下面是对中小型企业人事管理系统的详细设计。4.1 数据库连接模块的设计本系统的开发所使用的数据库为MySQL。MySQL是一个关系型数据库管理系统,由瑞典MySQL AB公司开发,目前属于Oracle公司。MySQL是一种关联数据库管理系统,关联数据库将数据保存在不同的表中,而不是将所有数据放在一个大仓库内,这样就增加了速度并提高了灵活性。MySQL的SQL语言是用于访问数据库的最常用标准化语言。MySQL软件采用了双授权政策,它分为社区版和商业版,由于其体积小、速度快、总体拥有成本低,尤其是开放源码这一特点,一般中小型网站的开发都选择MySQL作为网站数据库。由于其社区版的性能卓越,搭配java和Apache可组成良好的开发环境。 4.2 登录模块详细设计4.2.1 用户登录功能登录界面对于整个系统来说是非常重要的,因为它设置了进入本系统的用户和口令,防止非法用户进入系统,破坏系统安全和所保存的数据,只有合法的用户在输入正确的密码后方可进入系统,否则将提示密码或用户名输入错误,并询问用户是否重新输入。这样就对使用者有了限制,增加了系统的安全性和保密性,便于控制和管理。登录功能要求对用户名及其密码的正确与否进行检测。并对拥有正确的用户名和密码的用户的权限进行判定,已确定登录用户是否有权利登录到系统中,并且分配给用户对中小型企业人事管理系统的应该拥有的操作权利主要包括LoginFrame.java,login.java。登录功能流程说明:1.用户在登录页面输入登录信息。2.在页面用JavaScript对用户输入数据格式和有效性进行检查。3.在数据库中判断是否存在某一列满足用户名和密码为用户输入的数据,存在则通过。4.将用户基本信息保存在session对象中。5.全部正常,跳转到用户登录后的首页上4.2.2 用户登录流程图4-2 用户登录流程图4.2.3 主页面功能登录成功后,就进入登录主页面,根据判断传入的登录信息参数,得到该用户的权限,主页面会自动显示该权限内的功能,用户可以根据自己的需求进行各种功能操作。4.3 主页面模块的详细设计4.3.1 部门管理功能管理员登录本系统后,可以管理部门信息,可以添加部门信息,删除部门信息,也可以查询部门信息。查询功能的实现可以用任何关键字进行查询,修改和删除要选择特定的行才能实现,否则会提示:选择要修改或删除的行。4.3.2 人员档案管理功能管理员登录本系统后,可以管理人员档案的基本信息,可以添加人员档案信息,修改人员档案信息,删除人员档案信息。4.3.3 修改密码功能管理员或者会员登录本系统后,均可以修改个人的登录密码信息。主要包括:Aminman.java,Member.java,Alter.java。图4-3修改密码时序图4.4员工模块的详细设计4.4.1 查看工资功能员工登录本系统后,可以查看自己工资信息。4.4.2 查看考勤功能员工登录本系统后,可以查看自己的考勤信息。4.4.3 查看奖励功能员工登录本系统后,可以查看自己的奖励信息。4.4.4 查看调动功能员工登录本系统后,可以查看自己的调动信息。4.5安全设置模块的详细设计安全设置模块主要是只有管理员授权其他用户,才可以登录本系统,管理员必须有准确的用户名和密码才可以登录本系统的后台,这种密码机制,大大增加了系统的安全性。4.6开发工具及环境操作系统:Win7编程语言:JSP数据库系统: MYSQL开发工具: MyEclipse9.0第五章 系统实现5.1登录管理模块此模块主要功能是用于登录本系统,不同权限的用户登录本系统会进入不同的管理模块界面,因为在后台对该用户进行的判断,首先将从前台页面提交的用户名和密码进行接受,之后在后台进行处理,按照用户名在数据库中进行查询如果查到该用户则将该用户的权限和密码全都取出来分别赋给两个字符串变量,判断从数据库中读出的密码与登录时输入的密码是否配比上,若两个密码相同则根据权限的值进入相应的页面,否则输出密码错误。若用户未被管理员分配好权限那么也是无法登录本系统的。如图5-1所示:图5-1 前台登录界面主要代码如下:if(method.equals(one)/admin登录String username = request.getParameter(username);String password = request.getParameter(password);if(username = null|username.trim().equals()request.setAttribute(message, 请正确输入用户名!);request.getRequestDispatcher(login.jsp).forward(request, response);else if(password = null|password.trim().equals()request.setAttribute(message, 请输入密码!);request.getRequestDispatcher(login.jsp).forward(request, response);elseString md5password = MD5.MD5(password);String agent = request.getHeader(user-agent); StringTokenizer st = new StringTokenizer(agent,;); String useros=st.nextToken();String loginip = request.getRemoteAddr();int flag = loginbean.adminLogin(username,md5password, password,useros,loginip);switch (flag)case Constant.SUCCESS:List list = loginbean.getAdminInfo(username);session.setAttribute(user, username);session.setAttribute(list, list);request.getRequestDispatcher(sysdir+/).forward(request, response);break;case Constant.NAME_ERROR:request.setAttribute(message, 用户名错误!请确认管理权限!);request.getRequestDispatcher(login.jsp).forward(request, response);break;case Constant.PASSWORD_ERROR:request.setAttribute(message, 密码错误,请确认管理权限!);request.getRequestDispatcher(login.jsp).forward(request, response);break;else if(method.equals(editpwd)/admin edit passwordString username2 = (String)session.getAttribute(user);if(username2 = null)request.getRequestDispatcher(error.jsp).forward(request, response);elseString oldpwd = MD5.MD5(request.getParameter(oldpwd).trim();String newpwd = MD5.MD5(request.getParameter(newpwd).trim();String username = (String)session.getAttribute(user);int flag = loginbean.editPassword(username, oldpwd, newpwd);switch (flag)case Constant.SUCCESS:request.setAttribute(message, 密码修改成功!);request.getRequestDispatcher(sysdir+/system/editpwd.jsp).forward(request, response);break;case Constant.PASSWORD_ERROR:request.setAttribute(message, 原始密码错误,请确认权限!)request.getRequestDispatcher(sysdir+/system/editpwd.jsp).forward(request, response);break;case Constant.SYSTEM_ERROR:request.setAttribute(message, 系统维护中,请稍后再试!);request.getRequestDispatcher(sysdir+/system/editpwd.jsp).forward(request, response);break;5.2部门信息管理界面系统管理员登陆本系统后,可以管理部门的信息。如图5-2所示:图5-2部门信息管理界面主要代码如下:public List getDep() String sql = select * from depart order by id desc ;DBO dbo=new DBO();list = new ArrayList();dbo.open();tryrs = dbo.executeQuery(sql);while(rs.next()List list2=new ArrayList();list2.add(rs.getString(1);list2.add(rs.getString(2);list2.add(rs.getString(3);list.add(list2);return list;catch(Exception e)e.printStackTrace();return null;finallydbo.close();public int checkSfz(String sql)DBO dbo = new DBO();dbo.open();tryrs = dbo.executeQuery(sql);if(rs.next()return Constant.SAME_NAME;elsereturn Constant.SUCCESS;catch(Exception e)e.printStackTrace();return Constant.SYSTEM_ERROR;finallydbo.close();5.3员工档案管理界面系统管理员登录本系统后,可以管理员工的档案信息。如图5-3所示:图5-3员工档案管理界面主要代码如下:else if(method.equals(addEmp)String name=request.getParameter(name);String sex=request.getParameter(sex);String bir=request.getParameter(bir);String departs=request.getParameter(departs);String zhiwu=request.getParameter(zhiwu);String mima=request.getParameter(mima);String tel=request.getParameter(tel);String address=request.getParameter(address);String remark=request.getParameter(remark);int tmp=db.checkSfz(select * from emp where zhiwu=+zhiwu+);if(tmp=Constant.SAME_NAME)request.setAttribute(message, 该身份证信息已经存在!);request.getRequestDispatcher(admin/emp/index.jsp).forward(request, response);elseint flag=db.addEmp(name, sex, bir, departs, zhiwu, tel, address, remark,mima);if(flag=Constant.SUCCESS)request.setAttribute(message, 操作成功!);request.getRequestDispatcher(admin/emp/index.jsp).forward(request, response);elserequest.setAttribute(message, 系统维护中,请稍后再试!);request.getRequestDispatcher(admin/emp/index.jsp).forward(request, response);5.4员工考勤管理界面系统管理员登录本系统后,可以对人员考勤信息进行管理。如图5-4所示:图5-4员工考勤管理界面主要代码如下:else if(method.equals(addAtt)String eid=request.getParameter(eid);String type=request.getParameter(type);String money=request.getParameter(money);String ftime=request.getParameter(ftime);String remark=request.getParameter(remark);int flag=db.addAtt(eid, type, money, ftime, remark);if(flag=Constant.SUCCESS)request.setAttribute(message, 操作成功!);request.getRequestDispatcher(admin/attend/index.jsp).forward(request, response);elserequest.setAttribute(message, 系统维护中,请稍后再试!);request.getRequestDispatcher(admin/attend/index.jsp).forward(request, response);5.5工资信息管理界面系统管理员登录本系统后,可以管理工资信息。如图5-5所示:图5-5工资信息管理界面主要代码如下:public List getSearchPay(String eid) String sql = select pay.*, from pay,emp where pay.eid=emp.id and pay.eid=+eid+ ;DBO dbo=new DBO();list = new ArrayList();dbo.open();tryrs = dbo.executeQuery(sql);if(rs.next()list.add(rs.getString(1);list.add(rs.getString(2);list.add(rs.getString(3);list.add(rs.getString(4);list.add(rs.getString(5);list.add(rs.getString(6);list.add(rs.getString(7);list.add(rs.getString(8);list.add(rs.getString(9);list.add(rs.getString(10);list.add(rs.getString(11);list.add(rs.getString(12);list.add(rs.getString(13);return list;catch(Exception e)e.printStackTrace();return null;finallydbo.close();5.6员工奖励管理界面系统管理员登录本系统后,可以管理人员的奖励信息。如图5-6图5-6员工奖励管理界面主要代码如下:else if(method.equals(addJl)String eid=request.getParameter(eid);String type=request.getParameter(type);String money=request.getParameter(money);String ftime=request.getParameter(ftime);String remark=request.getParameter(remark);int flag=db.addJl(eid, type, money, ftime, remark);if(flag=Constant.SUCCESS)request.setAttribute(message, 操作成功!);request.getRequestDispatcher(admin/jl/index.jsp).forward(request, response);elserequest.setAttribute(message, 系统维护中,请稍后再试!);request.getRequestDispatcher(admin/jl/index.jsp).forward(request, response);5.7员工登陆界面图5-7员工登陆界面if(method.equals(login)String username=request.getParameter(username);String password=request.getParameter(password);int flag=db.empLogin(username, password);if(flag=Constant.SUCCESS)session.setAttribute(emp, username);request.setAttribute(message, 操作成功!);request.getRequestDispatcher(emp/index.jsp).forward(request, response);elserequest.setAttribute(message, 登陆信息错误!);request.getRequestDispatcher(emp.jsp).forward(request, response);5.8员工修改密码界面图5-8员工修改密码界面else if(method.equals(editpwd)/admin edit passwordString emp = (String)session.getAttribute(emp);if(emp = null)request.getRequestDispatcher(error.jsp).forward(request, response);elseString oldpwd = request.getParameter(oldpwd);String newpwd = request.getParameter(newpwd);int flag = db.editPassword(emp, oldpwd, newpwd);switch (flag)case Constant.SUCCESS:request.setAttribute(message, 密码修改成功!);request.getRequestDispatcher(emp/pwd.jsp).forward(request, response);break;case Constant.PASSWORD_ERROR:request.setAttribute(message, 原始密码错误,请确认权限!);request.getRequestDispatcher(emp/pwd.jsp).forward(request, response);break;case Constant.SYSTEM_ERROR:request.setAttribute(message, 系统维护中,请稍后再试!);request.getRequestDispatcher(emp/pwd.jsp).forward(request, response);break;5.9员工工资查询界面图5-9员工工资查询界面else if(method.equals(searchEmp)String id=request.getParameter(id); List list=db.getEmp(id);request.setAttribute(list, list);request.getRequestDispatcher(admin/emp/sinfo.jsp).forward(request, response);5.10员工奖励查询界面图5-10员工奖励查询界面else if(method.equals(searchEmp1)String id=request.getParameter(id); List list=db.getEmp2(id);request.setAttribute(list, list);request.getRequestDispatcher(admin/emp2/sinfo.jsp).forward(request, response);5.11员工简历查询界面图5-11员工简历查询界面else if(method.equals(searchEmp2)String id=request.getParameter(id); List list=db.getEmp2(id);request.setAttribute(list, list);request.getRequestDispatcher(admin/emp2/sinfo.jsp).forward(request, response);5.12员工调动查询界面图5-12员工调动查询界面else if(method.equals(searchEmp3)String id=request.getParameter(id); List list=db.getEmp2(id);request.setAttribute(list, list);request.getRequestDispatcher(admin/emp2/sinfo.jsp).forward(request, response);结束语从选题到做需求分析到代码的编写和实现,我对自己所选的系统一步步的有了更加清晰的认识。系统并不大,但是在实现其功能的过程中我还是遇到不少的困难,首先是界面的问题,开始的时候界面感觉不错,但随着功能模块的增加,需要有越来越多的页面,前台和后台的页面又需要不同的风格,这样就需要很多的时间来布置界面,实现功能的代码早已完成,但页面的布置一直跟不上功能的实现。在代码实现的过程中,也遇到很多问题,总结起来就两点,一是经常出现的空指针异常,另一个是找不到目标文件的异常,通过向老师,同学请教或者自己上网查询的方法之后,把这些错误也顺利的解决了。由于时间和能力等各方面的限制,系统的设计和功能方面还存在着很多不足,没有达到预期想象,还需要不断改进和完善。参考文献1 王家华软件工程M,沈阳:东北大学出版社,2012,46-199。2 李金山. 学生信息管理系统的设计J.太原:科技情报开发与经济2012,(14):132.3 黄理,李积善,曹林有,张勇.用JSP轻松开发Web网站(第一版)M.北京:北京希望电子出版社.2011.100152. 4 王小铭.管理信息系统及其开发技术M修订版.北京:电子工业出版社,20125 Jame Gosling,Bill Joy,Guy L. Steele Jr,Gilad BrachaJava语言规范M,北京:机械工业出版社,2011,165-1736 赵海廷. Java语言程序设计. 武汉大学出版社,20117 朱福喜. 傅建明. 唐晓军.Java项目设计与开发范例电子工业出版社,20058 张新曼精通JSP-Web开发技术与典型应用M ,北京:人民邮电出版社,2012,516-564。9 高英 张晓东 Mysql数据库应用系统与实例 人民邮电出版社201210彭勇. 计算机网络基础与Internet应用M北京.电子工业出版社, 200911罗超理.李万红.管理信息系统原理与应用M北京.清华大学出版社,201212张少敏,王保义,基于Web的管理信息系统方案及安全性J华北电力大学报,2012致 谢一个多月的毕业设计生活结束了,我们也面临着毕业了。在这里,我首先要感谢的是我的指导老师田璟霞。在这次毕业设计的过程中,虽然遇到了许许多多的问题,但是老师仍然给了我大量的时间让我完成设计,耐心的指导和严谨的工作态度都让我受益匪浅。正是她的悉心教导和妥善安排保证了我各项任务的完成和论文写作的顺利进行。特别是在论文的审查阶段,田璟霞老师为了指导我们的论文写作严格督促,并耐心指导。我还要感谢我的母校太原科技大学,以及在大学四年生活中给予我关心和帮助的老师和同学,是他们教会了我专业的知识和做人的道理。通过这次毕业论文我还明白了作为一名计算机专业的大学毕业生,我们要会的不仅仅是编写代码,更重要的是要有整体把握系统设计的能力。我会在以后的工作和学习中不断完善自己,为我最热爱的母校争光,为自己翻开辉煌的新篇章。附录 英文资料翻译英文原文:The technique development history of JSPBrian Wright Michael FreedmanThe Java Server Pages( JSP) is a kind of according to web of the script plait distance technique, similar carries the script language of Java in the server of the Netscape company of server- side JavaScript( SSJS) and the Active Server Pages( ASP) of the Microsoft. JSP compares the SSJS and ASP to have better can expand sex, and it is no more exclusive than any factory or some one particular server of Web. Though the norm of JSP is to be draw up by the Sun company of, any factory can carry out the JSP on own system. The After Sun release the JSP( the Java Server Pages) formally, the this kind of new Web application development technique very quickly caused the peoples concern. JSP provided a special development environment for the Web application that establishes the high dynamic state. According to the Sun parlance, the JSP can adapt to include the Apache WebServer, IIS4.0 on the market at inside of 85% server product.This chapter will introduce the related knowledge of JSP and Databases, and JavaBean related contents, is all certainly rougher introduction among them basic contents, say perhaps to is a Guide only, if the reader needs the more detailed information, pleasing the book of consult the homologous JSP.A. GeneralizeThe JSP(Java Server Pages) is from the company of Sun Microsystems initiate, the many companies the participate to the build up the together of the a kind the of dynamic the state web the page technique standard, the it have the it in the construction the of the dynamic state the web page the strong but the do not the especially of the function. JSP and the technique of ASP of the Microsoft is very alike. Both all provide the ability that mixes with a certain procedure code and is explain by the language engine to carry out the procedure code in the code of HTML. Underneath we are simple of carry on the introduction to it.JSP pages are translated into servlets. So, fundamentally, any task JSP pages can perform could also be accomplished by servlets. However, this underlying equivalence does not mean that servlets and JSP pages are equally appropriate in all scenarios. The issue is not the power of the technology, it is the convenience, productivity, and maintainability of one or the other. After all, anything you can do on a particular computer platform in the Java programming language you could also do in assembly language. But it still matters which you choose.JSP provides the following benefits over servlets alone: It is easier to write and maintain the HTML. Your static code is ordinary HTML: no extra backslashes, no double quotes, and no lurking Java syntax. You can use standard Web-site development tools. Even HTML tools that know nothing about JSP can be used because they simply ignore the JSP tags. You can divide up your development team. The Java programmers can work on the dynamic code. The Web developers can concentrate on the presentation layer. On large projects, this division is very important. Depending on the size of your team and the complexity of your project, you can enforce a weaker or stronger separation between the static HTML and the dynamic content.Now, this discussion is not to say that you should stop using servlets and use only JSP instead. By no means. Almost all projects will use both. For some requests in your project, you will use servlets. For others, you will use JSP. For still others, you will combine them with the MVC architecture . You want the appropriate tool for the job, and servlets, by themselves, do not complete your toolkit.B. Source of JSPThe technique of JSP of the company of Sun, making the page of Web develop the personnel can use the HTML perhaps marking of XML to design to turn the end page with format. Use the perhaps small script future life of marking of JSP becomes the dynamic state on the page contents.( the contents changes according to the claim of).The Java Servlet is a technical foundation of JSP, and the large Web applies the development of the procedure to need the Java Servlet to match with with the JSP and then can complete, this name of Servlet comes from the Applet, the local translation method of now is a lot of, this book in order not to misconstruction, decide the direct adoption Servlet but dont do any translation, if reader would like to, can call it as small service procedure. The Servlet is similar to traditional CGI, ISAPI, NSAPI etc. Web procedure development the function of the tool in fact, at use the Java Servlet hereafter, the customer need not use again the lowly method of CGI of efficiency, also need not use only the ability come to born page of Web of dynamic state in the method of API that a certain fixed Web server terrace circulate. Many servers of Web all support the Servlet, even not support the Servlet server of Web directly and can also pass the additional applied server and the mold pieces to support the Servlet. Receive benefit in the characteristic of the Java cross-platform, the Servlet is also a terrace irrelevant, actually, as long as match the norm of Java Servlet, the Servlet is complete to have nothing to do with terrace and is to have nothing to do with server of Web. Because the Java Servlet is internal to provide the service by the line distance, need not start a progress to the each claimses, and make use of the multi-threading mechanism can at the same time for several claim service, therefore the efficiency of Java Servlet is very high.But the Java Servlet also is not to has no weakness, similar to traditional CGI, ISAPI, the NSAPI method, the Java Servlet is to make use of to output the HTML language sentence to carry out the dynamic state web page of, if develop the whole website with the Java Servlet, the integration process of the dynamic state part and the static state page is an evil-foreboding dream simply. For solving this kind of weakness of the Java Servlet, the SUN released the JSP.A number of years ago, Marty was invited to attend a small 20-person industry roundtable discussion on software technology. Sitting in the seat next to Marty was James Gosling, inventor of the Java programming language. Sitting several seats away was a high-level manager from a very large software company in Redmond, Washington. During the discussion, the moderator brought up the subject of Jini, which at that time was a new Java technology. The moderator asked the manager what he thought of it, and the manager responded that it was too early to tell, but that it seemed to be an excellent idea. He went on to say that they would keep an eye on it, and if it seemed to be catching on, they would follow his companys usual embrace and extend strategy. At this point, Gosling lightheartedly interjected You mean disgrace and distend. Now, the grievance that Gosling was airing was that he felt that this company would take technology from other companies and suborn it for their own purposes. But guess what? The shoe is on the other foot here. The Java community did not invent the idea of designing pages as a mixture of static HTML and dynamic code marked with special tags. For example, Cold Fusion did it years earlier. Even ASP (a product from the very software company of the aforementioned manager) popularized this approach before JSP came along and decided to jump on the bandwagon. In fact, JSP not only adopted the general idea, it even used many of the same special tags as ASP did.The JSP is an establishment at the model of Java servlets on of the expression layer technique, it makes the plait write the HTML to become more simple.Be like the SSJS, it also allows you carry the static state HTML contents and servers the script mix to put together the born dynamic state exportation. JSP the script language that the Java is the tacit approval, however, be like the ASP and can use other languages( such as JavaScript and VBScript), the norm of JSP also allows to use other languages.C. JSP characteristicsIs a service according to the script language in some one language of the statures system this kind of discuss, the JSP should be see make is a kind of script language. However, be a kind of script language, the JSP seemed to be too strong again, almost can use all Javas in the JSP.Be a kind of according to text originally of, take manifestation as the central development technique, the JSP provided all advantages of the Java Servlet, and, when combine with a JavaBeans together, providing a kind of make contents and manifestation that simple way that logic separate. Separate the contents and advantage of logical manifestations is, the personnel who renews the page external appearance need not know the code of Java, and renew the JavaBeans personnel also need not be design the web page of expert in hand, can use to take the page of JavaBeans JSP to define the template of Web, to build up a from have the alike external appearance of the website that page constitute. JavaBeans completes the data to provide, having no code of Java in the template thus, this means that these templates can be written the personnel by a HTML plait to support. Certainly, can also make use of the Java Servlet to control the logic of the website, adjust through the Java Servlet to use the way of the document of JSP to separate website of logic and contents.Generally speaking, in actual engine of JSP, the page of JSP is the edit and translate type while carry out, not explain the type of .Explain the dynamic state web page development tool of the type, such as ASP, PHP3 etc., because speed etc. reason, have already cant satisfy current the large electronic commerce needs appliedly, traditional development techniques are all at to edit and translate the executive way change, such as the ASP ASP+;PHP3 PHP4.In the JSP norm book, did not request the procedure in the JSP code part( be called the Scriptlet) and must write with the Java definitely. Actually, have some engines of JSP are adoptive other script languages such as the EMAC- Script, etc., but actually this a few script languages also are to set up on the Java, edit and translate for the Servlet to carry out of. Write according to the norm of JSP, have no Scriptlet of relation with Java also is can of, however, mainly lie in the ability and JavaBeans, the Enterprise JavaBeanses because of the JSP strong function to work together, so even is the Scriptlet part not to use the Java, edit and translate of performance code also should is related with Java.D. JSP mechanismTo comprehend the JSP how unite the technical advantage that above various speak of, come to carry out various result easily, the customer must understand the differentiation of the module develops for the web page of the center and the page develops for the web page of the center first. The SSJS and ASP are all in several year ago to release, the network of that time is still very young, no one knows to still have in addition to making all business, datas and the expression logic enter the original web page entirely heap what better solve the method. This kind of model that take page as the center studies and gets the very fast development easily. However, along with change of time, the people know that this kind of method is unwell in set up large, the Web that can upgrade applies the procedure. The expression logic write in the script environment was lock in the page, only passing to shear to slice and glue to stick then can drive heavy use. Express the logic to usually mix together with business and the data logics, when this makes be the procedure member to try to change an external appearance that applies the procedure but do not want to break with its llied business logic, apply the procedure of maintenance be like to walk the similar difficulty on the eggshell. In fact in the business enterprise, heavy use the application of the module already through very mature, no one would like to rewrite those logics for their applied procedure.HTML and sketch the designer handed over to the implement work of their design the Web plait the one who write, make they have to double work- Usually is the handicraft plait to write, because have no fit tool and can carry the script and the HTML contents knot to the server to put together. Chien but speech, apply the complexity of the procedure along with the Web to promote continuously, the development method that take page as the center limits sex to become to get up obviously. At the same time, the people always at look for the better method of build up the Web application procedure, the module spreads in customers machine/ server the realm. JavaBeans and ActiveX were published the company to expand to apply the procedure developer for Java and Windows to use to come to develop the complicated procedure quickly by the fast application procedure development( RAD) tool. These techniques make the expert in the some realm be able to write the module for the perpendicular application plait in the skill area, but the developer can go fetch the usage directly but need not control the expertise of this realm.Be a kind of take module as the central development terrace, the JSP appeared. It with the JavaBeans and Enterprise JavaBeans( EJB) module includes the model of the business and the data logic for foundation, provide a great deal of label and a script terraces to use to come to show in the HTML page from the contents of JavaBeans creation or send a present in return. Because of the property that regards the module as the center of the JSP, it can drive Java and not the developer of Java uses equally. Not the developer of Java can pass the JSP label( Tags) to use the JavaBeans that the deluxe developer of Java establish. The developer of Java not only can establish and use the JavaBeans, but also can use the language of Java to come to control more accurately in the JSP page according to the expression logic of the first floor JavaBeans. See now how JSP is handle claim of HTTP. In basic claim model, a claim directly was send to JSP page in. The code of JSP controls to carry on hour of the logic processing and module of JavaBeanses hand over with each other, and the manifestation result in dynamic state bornly, mixing with the HTML page of the static state HTML code. The Beans can be JavaBeans or module of EJBs. Moreover, the more complicated claim model can see make from is request other JSP pages of the page call sign or Java Servlets.The engine of JSP wants to chase the code of Java that the label of JSP, code of Java in the JSP page even all converts into the big piece together with the static state HTML contents actually. These codes piece was organized the Java Servlet that customer can not see to go to by the engine of JSP, then the Servlet edits and translate them automatically byte code of Java.Thus, the visitant that is the website requests a JSP page, so the code of JSP in the web page does not need when the every time requests that page is explain. The engine of JSP need to be edit and translate after Servlet the code end is modify only once, then this Servlet that editted and translate can be carry out. The in view of the fact JSP engine auto is born to edit and translate the Servlet also, need not procedure member begins to edit and translate the code, so the JSP can bring vivid sex that function and fast developments need that you are efficiently.Compared with the traditional CGI, the JSP has the equal advantage. First, on the speed, the traditional procedure of CGI needs to use the standard importation of the system to output the equipments to carry out the dynamic state web page born, but the JSP is direct is mutually the connection with server. And say for the CGI, each interview needs to add to add a progress to handle, the progress build up and destroy by burning constantly and will be a not small burden for calculator of be the server of Web. The next in order, the JSP is specialized to develop but design for the Web of, its purpose is for building up according to the Web applied procedure, included the norm and the tool of a the whole set. Use the technique of JSP can combine a lot of JSP pages to become a Web application procedure very expediently.中文译文:JSP技术发展史Brian Wright Michael FreedmanJava Server Pages(JSP)是一种基于web的脚本编程技术,类似于网景公司的服务器端Java脚本语言 server-side JavaScript(SSJS)和微软的Active Server Pages(ASP)。JSP比SSJS和ASP具有更好的可扩展性,并且它不专属于任何一家厂商或某一特定的Web服务器。尽管JSP规范是由Sun公司制定的,但任何厂商都可以在自己的系统上实现JSP。 在Sun正式发布JSP(Java Server Pages)之后,这种新的Web应用开发技术很快引起了人们的关注。JSP为创建高度动态的Web应用提供了一个独特的开发环境。按照Sun的说法,JSP能够适应市场上包括Apache WebServer、IIS4.0在内的85%的服务器产品。本文将介绍JSP相关的知识,以及J
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
提示  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:企业MIS系统设计
链接地址:https://www.renrendoc.com/p-30909052.html

官方联系方式

2:不支持迅雷下载,请使用浏览器下载   
3:不支持QQ浏览器下载,请用其他浏览器   
4:下载后的文档和图纸-无水印   
5:文档经过压缩,下载后原文更清晰   
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

网站客服QQ:2881952447     

copyright@ 2020-2025  renrendoc.com 人人文库版权所有   联系电话:400-852-1180

备案号:蜀ICP备2022000484号-2       经营许可证: 川B2-20220663       公网安备川公网安备: 51019002004831号

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知人人文库网,我们立即给予删除!