package org.better.hr.web.action;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
import org.better.hr.biz.ConfigFileFirstKindBiz;
import org.better.hr.biz.ConfigFileSecondKindBiz;
import org.better.hr.biz.ConfigFileThirdKindBiz;
import org.better.hr.biz.ConfigMajorBiz;
import org.better.hr.biz.ConfigMajorKindBiz;
import org.better.hr.biz.ConfigPublicCharBiz;
import org.better.hr.biz.HumanFileBiz;
import org.better.hr.biz.HumanFileDigBiz;
import org.better.hr.biz.SalaryStandardBiz;
import org.better.hr.comm.CopyBean;
import org.better.hr.comm.Load;
import org.better.hr.comm.Util;
import org.better.hr.entity.EngageResume;
import org.better.hr.entity.HumanFile;
import org.better.hr.entity.HumanFileDig;
import org.better.hr.exception.HrException;
import org.better.hr.web.form.HumanFileForm;
import org.springframework.beans.BeanUtils;
public class HumanFileAction extends BasicAction {
private HumanFileBiz humanfileBiz; //业务操作对象
private ConfigPublicCharBiz configpubliccharBiz;
private ConfigFileFirstKindBiz configfilefirstkindBiz;
private ConfigFileSecondKindBiz configfilesecondkindBiz;
private ConfigFileThirdKindBiz configfilethirdkindBiz;
private ConfigMajorKindBiz configmajorkindBiz;
private ConfigMajorBiz configmajorBiz;
private SalaryStandardBiz salarystandardBiz;
private HumanFileDigBiz humanfiledigBiz;
private final String _PICPATH = "Upload\\img\\";
private final String _ATTPATH = "Upload\\attach\\";
public HumanFileBiz getHumanfileBiz() {
return humanfileBiz;
}
public void setHumanfileBiz(HumanFileBiz humanfileBiz) {
this.humanfileBiz = humanfileBiz;
}
public ConfigPublicCharBiz getConfigpubliccharBiz() {
return configpubliccharBiz;
}
public void setConfigpubliccharBiz(ConfigPublicCharBiz configpubliccharBiz) {
this.configpubliccharBiz = configpubliccharBiz;
}
public ConfigFileFirstKindBiz getConfigfilefirstkindBiz() {
return configfilefirstkindBiz;
}
public void setConfigfilefirstkindBiz(
ConfigFileFirstKindBiz configfilefirstkindBiz) {
this.configfilefirstkindBiz = configfilefirstkindBiz;
}
public ConfigFileSecondKindBiz getConfigfilesecondkindBiz() {
return configfilesecondkindBiz;
}
public void setConfigfilesecondkindBiz(
ConfigFileSecondKindBiz configfilesecondkindBiz) {
this.configfilesecondkindBiz = configfilesecondkindBiz;
}
public ConfigFileThirdKindBiz getConfigfilethirdkindBiz() {
return configfilethirdkindBiz;
}
public void setConfigfilethirdkindBiz(
ConfigFileThirdKindBiz configfilethirdkindBiz) {
this.configfilethirdkindBiz = configfilethirdkindBiz;
}
public ConfigMajorBiz getConfigmajorBiz() {
return configmajorBiz;
}
public void setConfigmajorBiz(ConfigMajorBiz configmajorBiz) {
this.configmajorBiz = configmajorBiz;
}
public ConfigMajorKindBiz getConfigmajorkindBiz() {
return configmajorkindBiz;
}
public void setConfigmajorkindBiz(ConfigMajorKindBiz configmajorkindBiz) {
this.configmajorkindBiz = configmajorkindBiz;
}
public SalaryStandardBiz getSalarystandardBiz() {
return salarystandardBiz;
}
public void setSalarystandardBiz(SalaryStandardBiz salarystandardBiz) {
this.salarystandardBiz = salarystandardBiz;
}
public HumanFileDigBiz getHumanfiledigBiz() {
return humanfiledigBiz;
}
public void setHumanfiledigBiz(HumanFileDigBiz humanfiledigBiz) {
this.humanfiledigBiz = humanfiledigBiz;
}
/**
* 跳转到新增页面
* @param mapping
* @param form
* @param request
* @param response
* @return
*/
public ActionForward toAdd(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws HrException
{
List list_firstkind = this.getConfigfilefirstkindBiz().list(null);
List list_secondkind = this.getConfigfilesecondkindBiz().list(null);
List list_thirdkind = this.getConfigfilethirdkindBiz().list(null);
List list_majorkind = this.getConfigmajorkindBiz().list(null);
List list_major = this.getConfigmajorBiz().list(null);
HashMap map = this.getConfigpubliccharBiz().listForHumanFile(null);
List list_salary = this.getSalarystandardBiz().list(null);
request.setAttribute("list_firstkind", list_firstkind);
request.setAttribute("list_secondkind", list_secondkind);
request.setAttribute("list_thirdkind", list_thirdkind);
request.setAttribute("list_majorkind", list_majorkind);
request.setAttribute("list_major", list_major);
request.setAttribute("map", map);
request.setAttribute("list_salary", list_salary);
return mapping.findForward("add");
}
/**
* 跳转到添加图片页面
* @param mapping
* @param form
* @param request
* @param response
* @return
*/
public ActionForward toUpLoadPhoto(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws HrException
{
HumanFileForm myForm = (HumanFileForm) form;
HttpSession session = request.getSession();
if(myForm.getItem().getHumanName() != null)
session.setAttribute("item", myForm.getItem());
String method = request.getParameter("method");
if(method.equals("register"))
return mapping.findForward("register_addPhoto");
else if(method.equals("check"))
return mapping.findForward("check_addPhoto");
else
return mapping.findForward("change_addPhoto");
}
/**
* 执行添加图片操作
* @param mapping
* @param form
* @param request
* @param response
* @return
* @throws HrException
*/
public ActionForward doUpLoadPhoto(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws HrException
{
HumanFileForm myForm = (HumanFileForm) form;
FormFile file = myForm.getThePhoto();
String filepath = servlet.getServletContext().getRealPath("\\") + _PICPATH;
String myPic = Load.upload(file, filepath);
HttpSession session = request.getSession();
HumanFile hufile = (HumanFile)session.getAttribute("item");
hufile.setHumanPicture(_PICPATH + myPic);
session.setAttribute("item", hufile);
String method = request.getParameter("method");
if(method.equals("register"))
return mapping.findForward("register_addAttach");
else if(method.equals("check"))
return mapping.findForward("check_addAttach");
else
return mapping.findForward("change_addAttach");
}
/**
* 跳转到添加附件页面
* @param mapping
* @param form
* @param request
* @param response
* @return
* @throws HrException
*/
public ActionForward toUpLoadAttach(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws HrException
{
HumanFileForm myForm = (HumanFileForm) form;
HttpSession session = request.getSession();
if(myForm.getItem().getHumanName() != null)
session.setAttribute("item", myForm.getItem());
String method = request.getParameter("method");
if(method.equals("register"))
return mapping.findForward("register_addAttach");
else if(method.equals("check"))
return mapping.findForward("check_addAttach");
else
return mapping.findForward("change_addAttach");
}
/**
* 执行添加附件操作
* @param mapping
* @param form
* @param request
* @param response
* @return
* @throws HrException
*/
public ActionForward doUpLoadAttach(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws HrException
{
HumanF
没有合适的资源?快使用搜索试试~ 我知道了~
非常好的人力资源管理系统(hr)
共848个文件
gif:166个
class:165个
jsp:163个
4星 · 超过85%的资源 需积分: 9 126 下载量 147 浏览量
2010-06-25
22:40:46
上传
评论 7
收藏 7.71MB RAR 举报
温馨提示
人力资源管理,是基于先进的信息和互联网技术的全新人力资源管理模式,它可以降低成本、提高效率、改进员工服务模式的目的。HR 的引入可减少企业人力资源行政的负荷,优化人力资源管理流程,改善人力资源管理部门的服务质量,提供决策支持,帮助企业实现战略性人力资源管理的转变。 非常好的人力资源管理系统 全部是JAVA语言写出来,想学人力资源,想学更高层的JAVA语言技术,易看,易懂。大家必需更多去学习。这样磨练才会成功。代码更加成熟。谢谢!
资源推荐
资源详情
资源评论
收起资源包目录
非常好的人力资源管理系统(hr) (848个子文件)
go.bmp 1KB
HumanFileAction.class 17KB
AbstractHumanFileDig.class 16KB
AbstractHumanFile.class 16KB
AbstractEngageResume.class 13KB
EngageResumeAction.class 13KB
AbstractMajorChange.class 9KB
EngageMajorReleaseAction.class 8KB
SalaryStandardAction.class 8KB
HumanFile.class 7KB
EngageSubjectsAction.class 6KB
AbstractEngageInterview.class 6KB
ConfigPublicCharBiz.class 6KB
ExportFileAction.class 6KB
EngageInterviewAction.class 6KB
AbstractEngageMajorRelease.class 5KB
HumanFileBiz.class 5KB
EngageResume.class 5KB
UsersAction.class 5KB
HumanFileDig.class 5KB
AbstractSalaryGrant.class 5KB
AbstractTraining.class 5KB
AbstractEngageSubjects.class 4KB
ConfigFileFirstKindAction.class 4KB
AbstractBonus.class 4KB
AbstractSalaryStandard.class 4KB
BasicDao.class 4KB
ConfigFileThirdKindAction.class 4KB
AbstractEngageAnswer.class 4KB
ConfigPrimaryKeyAction.class 3KB
EngageMajorReleaseBiz.class 3KB
ConfigMajorKindAction.class 3KB
ConfigFileSecondKindAction.class 3KB
TrainingAction.class 3KB
EngageResumeBiz.class 3KB
ExportFileList.class 3KB
EngageSubjectsBiz.class 3KB
SalaryStandardBiz.class 3KB
ConfigProfessionDesignAction.class 3KB
ConfigPublicCharAction.class 3KB
ConfigFileFirstKindBiz.class 3KB
HumanFileDao$1.class 3KB
ConfigFileThirdKindBiz.class 3KB
ConfigFileSecondKindBiz.class 3KB
Excel.class 3KB
EngageSubjects.class 3KB
EngageInterviewBiz.class 3KB
ConfigMajorKindBiz.class 3KB
ConfigMajorBiz.class 3KB
updownPage.class 3KB
AbstractConfigFileThirdKind.class 3KB
AbstractSalaryGrantDetails.class 3KB
ConfigFileSecondKindDao$1.class 3KB
AbstractEngageExam.class 3KB
ConfigQuestionSecondKindBiz.class 3KB
ConfigMajorAction.class 3KB
HumanFileDigBiz.class 3KB
EngageResumeDao$1.class 3KB
ConfigQuestionFirstKindBiz.class 3KB
ConfigFileFirstKindDao$1.class 2KB
SalaryStandard.class 2KB
SalaryStandardDetailsBiz.class 2KB
ExportFileBiz.class 2KB
TrainingBiz.class 2KB
Util.class 2KB
SalaryStandardDao$1.class 2KB
ExportFileDao.class 2KB
ConfigPrimaryKeyBiz.class 2KB
AbstractConfigFileSecondKind.class 2KB
AbstractEngageExamDetails.class 2KB
EngageSubjectsDao$1.class 2KB
ConfigMajorKindDao$1.class 2KB
EngageMajorRelease.class 2KB
EngageInterview.class 2KB
AbstractSalaryStandardDetails.class 2KB
UsersBiz.class 2KB
SalaryStandardDetailsDao.class 2KB
ConfigFileFirstKindDao.class 2KB
ConfigFileSecondKindDao.class 2KB
MajorChange.class 2KB
ConfigFileThirdKindDao.class 2KB
EngageMajorReleaseDao.class 2KB
EngageInterviewDao.class 2KB
SalaryStandardDao.class 2KB
ConfigMajorKindDao.class 2KB
ConfigPublicCharDao$1.class 2KB
EngageResumeDao.class 2KB
EngageInterviewDao$1.class 2KB
SalaryStandardDetailsDao$1.class 2KB
ConfigPrimaryKeyDao$1.class 2KB
AbstractConfigMajor.class 2KB
UsersDao$1.class 2KB
HumanFileDigDao$1.class 2KB
HumanFileDao.class 2KB
CopyBean.class 2KB
AbstractConfigPrimaryKey.class 2KB
HumanFileForm.class 2KB
AbstractConfigFileFirstKind.class 2KB
AbstractConfigQuestionSecondKind.class 2KB
ConfigQuestionSecondKindDao$1.class 2KB
共 848 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
- 丝路花雨的泪2014-04-04值得借鉴,可以作为入门学习
- 罗伯特先森2012-12-05可以 写论文的时候可以参考下。
- love520hujian2012-06-13不错的。很实用
- lon8944750632014-05-19数据库有问题
- eg9001112013-09-11还不错,可以拿来学习下
iceman_hua
- 粉丝: 12
- 资源: 155
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Kotlin语言的Android开发工具类集合源码
- 零延迟 DirectX 11 扩展实用程序.zip
- 基于Java的语音识别系统设计源码
- 基于Java和HTML的yang_home766个人主页设计源码
- 基于Java与前端技术的全国实时疫情信息网站设计源码
- 基于鸿蒙系统的HarmonyHttpClient设计源码,纯Java实现类似OkHttp的HttpNet框架与优雅的Retrofit注解解析
- 基于HTML和JavaScript的廖振宇图书馆前端设计源码
- 基于Java的Android开发工具集合源码
- 通过 DirectX 12 Hook (kiero) 实现通用 ImGui.zip
- 基于Java开发的YY网盘个人网盘设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功