• 大小: 18.93MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-02
  • 语言: Java
  • 标签: java  

资源简介

Java 人力资源管理系统

资源截图

代码片段和文件信息

package com.coe.action;

import java.util.Date;
import java.util.Iterator;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.coe.dto.Attendance;
import com.coe.dto.Information;
import com.coe.service.IAttendanceService;
import com.coe.service.IIformationService;

public class AttendanceAction extends DispatchAction {

private IAttendanceService attendanceService;
private IIformationService iformationService;

public IAttendanceService getAttendanceService() {
return attendanceService;
}

public void setAttendanceService(IAttendanceService attendanceService) {
this.attendanceService = attendanceService;
}

public IIformationService getIformationService() {
return iformationService;
}

public void setIformationService(IIformationService iformationService) {
this.iformationService = iformationService;
}

public ActionForward findattendance(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception {
String level=request.getParameter(“level“);
String department=request.getParameter(“department“);
if (level.equals(“一般管理员“)) {
List list = this.getAttendanceService().findAttendancebymh(
“from Attendance as a where a.information.department = ‘“
+ department + “‘“);
request.setAttribute(“list“ list);
return mapping.findForward(“ybglSuc“);
} else {
List list = this.getAttendanceService().findAllAttendance();
List inforList = this.getIformationService().findAllUser();
request.setAttribute(“inforList“ inforList);
request.setAttribute(“list“ list);
return mapping.findForward(“suc“);
}
}

public ActionForward findAttendencebymh(ActionMapping mapping
ActionForm form HttpServletRequest request
HttpServletResponse response) throws Exception {
String username = request.getParameter(“username“);
String department = request.getParameter(“department“);
String level = request.getParameter(“level“);
String attendance = request.getParameter(“kg“);

if (level.equals(“超级管理员“)) {
String hql = “ from Attendance as a where 1=1 “;
if(username!=null&&!username.equals(““)){
hql+=“ and a.information.userid=“+username;
}
if(department!=null&&!department.equals(““)){
hql+=“ and a.information.department=‘“+department+“‘“;
}
if (!attendance.equals(““) && attendance != null) {
hql += “ and a.attendance =“ + attendance;
}
List list = this.getAttendanceService().findAttendancebymh(hql);
request.setAttribute(“list“ list);
List list1 = this.getIformationService().findAllUser();
request.setAttribute(“inforList“ list1);

return mapping.findForward(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-04-11 10:25  java人力资源管理系统\
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\
     文件       17897  2016-04-26 11:11  java人力资源管理系统\代码\hr.sql
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\hrfinal\
     文件        3970  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.classpath
     文件         294  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.mymetadata
     文件        1750  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.project
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\hrfinal\.settings\
     文件         500  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.settings\.jsdtscope
     文件         119  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.settings\org.eclipse.core.resources.prefs
     文件         334  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.settings\org.eclipse.jdt.core.prefs
     文件         459  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.settings\org.eclipse.wst.common.component
     文件         252  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\hrfinal\src\
     文件          48  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\.properties
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\hrfinal\src\com\
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\hrfinal\src\com\coe\
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\hrfinal\src\com\coe\action\
     文件        5906  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\AttendanceAction.java
     文件        6556  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\CandidatesAction.java
     文件        5653  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\ContractAction.java
     文件       17851  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\DynaChartAction.java
     文件       14990  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\InformationAction.java
     文件        5601  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\NoticeAction.java
     文件        5355  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\RecruitmentinfoAction.java
     文件        7010  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\SalaryAction.java
     文件       18478  2016-04-26 11:11  java人力资源管理系统\代码\hrfinal\src\com\coe\action\TrainingMangmentAction.java
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\hrfinal\src\com\coe\dao\
     目录           0  2019-04-11 10:25  java人力资源管理系统\代码\hrfinal\src\com\coe\daoImp\
............此处省略643个文件信息

评论

共有 条评论