资源简介

使用SSH框架实现的人事管理系统。数据库使用MySQL. Struts2+Spring+Hibernate,页面设计简单

资源截图

代码片段和文件信息

package com.ambow.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.ambow.entity.Attendance;
import com.ambow.entity.Dept;
import com.ambow.entity.Employee;
import com.ambow.service.AttendanceService;
import com.opensymphony.xwork2.ActionContext;

public class AttendanceAction implements SessionAwareRequestAware{

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

public String first(){
Employee emp = (Employee) map.get(“emps“);
attendanceService.save(emp);
return “success“;
}

public String last(){
Employee emp = (Employee) map.get(“emps“);
attendanceService.update(emp);
return “success“;
}

public String isClick(){
Employee emp = (Employee) map.get(“emps“);
String types = attendanceService.getByEmp(emp);
req.put(“types“ types);
return “isClick“;
}

public String findAttAll(){
Employee emp = (Employee) map.get(“emps“);
List alist = attendanceService.findAttAll(emp);
ActionContext.getContext().put(“alist“ alist);
return “findAll“;
}


public String findAttDeAll(){
Employee emp = (Employee) map.get(“emps“);
List alist = attendanceService.findAttDeAll(emp);
ActionContext.getContext().put(“alist“ alist);
return “findDeAll“;
}

Mapject> map;
@Override
public void setSession(Mapject> arg0) {
this.map = arg0;
}

Mapject> req;
@Override
public void setRequest(Mapject> arg0) {
this.req = arg0;

}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-18 21:43  ssh\
     目录           0  2018-07-18 21:43  ssh\ssh\
     文件        1214  2018-07-04 09:47  ssh\ssh\.classpath
     文件        1328  2018-06-11 15:47  ssh\ssh\.project
     目录           0  2018-07-18 21:43  ssh\ssh\.settings\
     文件         522  2018-06-11 15:17  ssh\ssh\.settings\.jsdtscope
     文件          74  2018-07-04 21:39  ssh\ssh\.settings\com.genuitec.eclipse.core.prefs
     文件         111  2018-07-06 11:39  ssh\ssh\.settings\org.eclipse.core.resources.prefs
     文件         364  2018-06-11 15:17  ssh\ssh\.settings\org.eclipse.jdt.core.prefs
     文件         543  2018-06-11 15:43  ssh\ssh\.settings\org.eclipse.wst.common.component
     文件         414  2018-06-11 15:17  ssh\ssh\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-06-11 15:17  ssh\ssh\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-06-11 15:17  ssh\ssh\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件        1177  2018-06-11 17:50  ssh\ssh\20180611.txt
     目录           0  2018-07-18 21:43  ssh\ssh\conf\
     文件        6447  2018-07-06 22:35  ssh\ssh\conf\applicationContext-bean.xml
     文件        2947  2018-07-03 09:08  ssh\ssh\conf\applicationContext.xml
     文件         198  2018-07-06 22:15  ssh\ssh\conf\db.properties
     文件        1859  2018-06-11 15:43  ssh\ssh\conf\hibernate.cfg.xml
     文件        2769  2018-07-07 00:00  ssh\ssh\conf\struts.xml
     目录           0  2018-07-18 21:43  ssh\ssh\src\
     目录           0  2018-07-18 21:43  ssh\ssh\src\com\
     目录           0  2018-07-18 21:43  ssh\ssh\src\com\ambow\
     目录           0  2018-07-18 21:43  ssh\ssh\src\com\ambow\action\
     文件        1761  2018-07-06 19:40  ssh\ssh\src\com\ambow\action\AttendanceAction.java
     文件        1116  2018-07-06 08:04  ssh\ssh\src\com\ambow\action\DeptAction.java
     文件        1922  2018-07-06 22:48  ssh\ssh\src\com\ambow\action\EmployeeAction.java
     文件         942  2018-07-06 11:32  ssh\ssh\src\com\ambow\action\FunctionAction.java
     文件        2516  2018-07-06 23:53  ssh\ssh\src\com\ambow\action\LeaveTimeAction.java
     文件        1725  2018-07-06 23:25  ssh\ssh\src\com\ambow\action\OvertimeAction.java
     文件        1268  2018-07-05 23:21  ssh\ssh\src\com\ambow\action\PersonalAction.java
............此处省略151个文件信息

评论

共有 条评论