人事管理系统实习报告.docx

上传人:b****0 文档编号:25733517 上传时间:2023-06-12 格式:DOCX 页数:34 大小:106.10KB
下载 相关 举报
人事管理系统实习报告.docx_第1页
第1页 / 共34页
人事管理系统实习报告.docx_第2页
第2页 / 共34页
人事管理系统实习报告.docx_第3页
第3页 / 共34页
人事管理系统实习报告.docx_第4页
第4页 / 共34页
人事管理系统实习报告.docx_第5页
第5页 / 共34页
点击查看更多>>
下载资源
资源描述

人事管理系统实习报告.docx

《人事管理系统实习报告.docx》由会员分享,可在线阅读,更多相关《人事管理系统实习报告.docx(34页珍藏版)》请在冰豆网上搜索。

人事管理系统实习报告.docx

人事管理系统实习报告

ThefinaleditionwasrevisedonDecember14th,2020.

 

人事管理系统实习报告

软件开发生产

实习报告

姓名

学号

班级

项目名称

人事管理系统

实习地点

光谷软件园

实习时间

实习成绩

指导教师签字

信息科学与工程学院

2016年7月15日

软件开发生产实习报告

1.实习目的

使学生全面了解软件项目实施的过程,理解软件企业对于程序员的基本素质和技术能力要求。

使学生掌握JSP及Servlet基本的JavaEE编程技术,能够综合运用oracle数据库及Eclipse开发环境进行小型项目的开发。

重点培养学生的团队精神和协作意识,提高其口头和书面的沟通能力。

使学生掌握快速学习新知识、新技术方法,培养良好的分析问题和解决问题的能力

重点提高学生的编程能力,使学生建立正确的编程理念,养成规范的编程习惯。

2.实习过程

技术准备

JDBC(Java数据库连接)技术

Java数据库连接是java语言中用来规范客户端程序如何来访问数据库的应用程序接口,提供了诸如查询和更新数据库中数据的方法。

本次程序利用该技术连接到oracle数据库,实现数据的更新,删除,插入。

JSP技术

JSP其根本是一个简化的Servlet技术,它是传统的网页HTML文件中插入java程序段。

本次程序利用JSP技术实现其动态跳转。

用到的相关软件

(1)jdk(运行环境):

安装好jdk后,设置好环境变量。

(2)Tomcat:

进行相应的配置。

(3)EclipseJ2EE(开发环境):

启动开发环境,然后配置好之前安装好的jdk。

(4)Oracle数据库(10G):

运行安装程序,设置兼容性,以管理员身份运行,设置密码;安装完成后检查服务,确定以下两个服务:

OracleOraDb10g_home1TNSListener监听服务

OracleServiceORCL(服务名称ORCL)核心服务

这两个服务必须为开启状态。

项目实施

功能需求

部门管理

主要用于部门的管理,描述人事管理系统中的部门信息,其中也包含了部门的上下级关系。

部门管理包含对部门信息的查询,以及添加部门;查询部门时可对部门信息进行修改和删除操作。

不可裁剪

岗位管理

主要用于岗位的管理,描述人事管理系统中的岗位信息。

岗位管理包含对岗位信息的查询,以及添加新的岗位;查询岗位时可以岗位信息进行修改和删除操作,

岗位管理

系统管理

主要用于管理员的管理,描述人事管理系统中的信息。

管理员登录进入系统后,通过系统管理查询管理员的信息,以及添加新的管理员,但不可删除或更改管理员的信息。

不可裁剪

设置关系

主要用于将各个不同的岗位归到相应的部门,便于管理。

不可裁剪

需求描述

功能名称

部门管理

优先级

业务背景

部门是构成一个组织的基本单位。

部门管理用于维护部门的基本信息,以及体现整个系统中部门之间的上下级关系,还有该部门的类型级别是公司还是部门。

功能说明

1.添加部门

2.修改部门信息

3.删除部门

约束条件

系统要求部门的编号唯一。

相关查询

查询部门列表,点击部门查询出现所有的部门信息

其他需求

裁剪说明

不可裁剪

流程描述

数据描述

部门基本信息

编号

部门名称

类型

(下拉框)分为公司、部门

电话

传真

描述

上级部门

(下拉框)分为各个部门,总经办和总公司

成立日期

需求描述

功能名称

岗位管理

优先级

业务背景

岗位是指一个组织中由特定人员所承担的多种职责的集合,一般来讲岗位对应到了特定的部门。

但为了简化实训项目,裁剪了岗位与部门之间的关系。

本功能就是对各岗位进行管理,包括增加、修改、删除岗位,以及查询岗位下的员工等。

功能说明

1.增加岗位

2.修改岗位

3.删除岗位

约束条件

相关查询

查询岗位信息,包括编号,名称,类型,所属部门以及该岗位最大限制多少人。

其他需求

裁剪说明

不可裁剪

流程描述

数据描述

岗位基本信息

岗位编号

岗位名称

类型

(下拉框)分为管理,技术,营销,市场等;

岗位编制限制

岗位上最多可配置多少员工

所属部门

(下拉框)分为行政部,生产部,销售部,技术部,财务部等。

备注1

备注2

备注3

需求描述

功能名称

系统管理

优先级

业务背景

管理管理员相关的信息

功能说明

1、添加管理员

2、查询管理员

3、退出登录

约束条件

相关查询

管理员编号、姓名等

其他需求

裁剪说明

不可裁剪。

流程描述

数据描述

管理员基本信息

编号

名称

登录密码

所属部门

电话

入职日期

需求描述

功能名称

设置关系

优先级

业务背景

每个部门中有不同的岗位

功能说明

将不同的岗位保存到相应的部门

约束条件

相关查询

可通过查询岗位信息来查询该岗位的所属部门

其他需求

裁剪说明

不可裁剪。

总体设计

本次人事管理系统要求完成管理员的登录,添加管理员以及查询管理员信息,部门信息的查询,部门的添加,部门信息的删除和修改,岗位信息的查询,岗位的添加,岗位信息得到删除和修改以及岗位和部门之间的关系设置。

因此该系统除了基本的部门类,管理员类,岗位类等以外主要的就是对他们的操作类,主要如下:

模块名称

功能简述

系统管理模块

1、管理员登录类(ManagerServlet)

2、查询管理员信息类(ManagerSelectServlet)

3、添加管理员信息类(ManagerAddServlet)

部门管理模块

1、查询部门信息类(SkdeptSelectServlet)

2、修改部门信息类(SkdeptModifyServlet)

3、删除部门信息类(SkdeptDeleteServlet)

4、添加部门类(SkdeptAddServlet)

岗位管理模块

1、查询岗位信息类(SkjobSelectServlet)

2、修改岗位信息类(SkjobModifyServlet)

3、删除岗位信息类(SkjobDeleteServlet)

4、添加岗位类(SkjobAddServlet)

设置关系模块

1、添加关系类(AddSkdeptSkjob)

2、添加关系类2(AddSkdeptSkjob2)

详细设计与编码

(1)管理员登录

功能描述

管理员输入账户密码登进人事管理系统

数据结构

与算法

package;

publicclassManagerServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

("utf-8");

("utf-8");

Stringname=("yonghuming");

Stringpassword=("password");

ManagerDaosd=newManagerDao();

HttpSessionsession=();

try{

Managerstu=(name,password);

if(stu==null)

{

("errorMsg","用户名或密码错误!

");

("redirectUrl","");

("").forward(req,resp);

}

else

{

("userInfo",stu);

("");

}

}catch(SQLExceptione){

();

}

}

}

补充说明

(2)查询管理员信息

功能描述

查询管理员的基本信息

数据结构

与算法

package;

publicclassManagerSelectServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

ManagerDaosd=newManagerDao();

try{

Listlist=();().setAttribute("ManagerList",list);

("").forward(req,resp);

}catch(SQLExceptione)

{

();

}

}

}

补充说明

(3)添加管理员

功能描述

添加新的管理员

数据结构

与算法

package;

publicclassManagerAddServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

("utf-8");

("utf-8");

Stringname=("name");

Stringpassword=("pass");

Managerman=newManager();

("utf-8");

("utf-8");

(name);

(password);

ManagerDaod=newManagerDao();

intcount;

try{

count=(man);

if(count>=1)

{

("").forward(req,resp);

}

else

{

HttpSessionsession=();

("errorMsg","添加失败");

("redirectUrl","addmanager");

("").forward(req,resp);

}

}catch(SQLExceptione){

();

}

}

}

补充说明

(1)查询部门信息

功能描述

查询部门的基本信息

数据结构

与算法

package;

publicclassSkdeptSelectServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

SkdeptDaosd=newSkdeptDao();

try{

Listlist=();().setAttribute("SkdeptList",list);

("").forward(req,resp);

}catch(SQLExceptione)

{

();

}

}

}

补充说明

(2)修改部门信息

功能描述

当发现部门的信息有误时,可进行修改

数据结构

与算法

package;

publicclassSkdeptModifyServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

("utf-8");

("utf-8");

Stringid=("id");

Stringname=("name");

Stringtype=("type");

Stringtele=("tele");

Stringfax=("fax");

Stringdiscrip=("discrip");

Stringskdsuper=("skdsuper");

Stringcreatetime=("createtime");

Skdeptskd=newSkdept();

(id));

(name);

(type);

(tele));

(fax);

(discrip);

(skdsuper);

(createtime);

SkdeptDaosd=newSkdeptDao();

try{

intcount=(skd);

if(count>=1)

{

orward(req,resp);

}

else

{

orward(req,resp);

}

}catch(NumberFormatExceptione){

();

}catch(SQLExceptione){

();

}

}

}

补充说明

(3)删除部门信息

功能描述

将部门删除

数据结构

与算法

package;

publicclassSkdeptDeleteServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

("utf-8");

("utf-8");

Stringid=("id");

SkdeptDaosd=newSkdeptDao();

try{

intcount=(id));

if(count>=1)

{

orward(req,resp);

}

else

{

orward(req,resp);

}

}catch(NumberFormatExceptione){

();

}catch(SQLExceptione){

();

}

}

}

补充说明

(4)添加部门

功能描述

添加新的部门

数据结构

与算法

package;

publicclassSkdeptAddServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

("utf-8");

("utf-8");

try{

Stringname=("name");

Stringtype=("type");

Stringtele=("tele");

Stringfax=("fax");

Stringdiscrip=("discrip");

Stringskdsuper=("super");

Stringcreatetime=("createtime");

Skdeptskd=newSkdept();

("utf-8");

("utf-8");

(name);

(type);

(tele));

(fax);

(discrip);

(skdsuper);

(createtime);

SkdeptDaod=newSkdeptDao();

intcount;

count=(skd);

if(count>=1)

{("").forward(req,resp);

}

else

{

HttpSessionsession=();

("errorMsg","添加失败");

("redirectUrl","");

("").forward(req,resp);

}

}catch(Exceptione){

();

HttpSessionsession=();

("errorMsg","添加失败");

("redirectUrl","");

("").forward(req,resp);

}

}

}

补充说明

(1)查询岗位信息

功能描述

查询岗位的基本信息

数据结构

与算法

package;

publicclassSkjobSelectServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

SkjobDaosd=newSkjobDao();

try{

Listlist=();

().setAttribute("SkjobList",list);

("").forward(req,resp);

}catch(SQLExceptione)

{

();

}

}

}

补充说明

(2)修改岗位信息

功能描述

对岗位的信息进行修改

数据结构

与算法

package;

publicclassSkjobModifyServletextendsHttpServlet{

protectedvoiddoGet(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

doPost(req,resp);

}

protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)

throwsServletException,IOException{

("utf-8");

("utf-8");

Stringid=("id");

Stringname=("name");

Stringtype=("type");

Stringlimit=("limit");

Stringdeptno=("deptno");

Stringskd_id=("skd_id");

Stringexplanation1=("explanation1");

Stringexplanation2=("explanation2");

Stringexplanation3=("explanation3");

Skjobskj=newSkjob();

(id));

(name);

(type);

(limit));

(deptno);

(skd_id));

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

当前位置:首页 > 求职职场 > 社交礼仪

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

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