• 大小: 15.13MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-19
  • 语言: 其他
  • 标签:

资源简介

基于SSH整合员工管理系统的增强版,内容包括:部门和员工的增删改查,部门修改,员工相应的修改,部门删除,员工对应部门的删除,

资源截图

代码片段和文件信息

package com.muke.employee.action;

import com.muke.employee.domain.Department;
import com.muke.employee.domain.PageBean;
import com.muke.employee.service.impl.DepartmentServiceImpl;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
/**
 *部门action
 */
@SuppressWarnings(“serial“)
public class DepartmentAction extends ActionSupport implements ModelDriven{
private Department department = new Department();
//spring注入departmentServiceImpl
private DepartmentServiceImpl departmentServiceImpl;
//struts结合spring自动注入的department
private int currentPage=1;
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public void setDepartmentServiceImpl(DepartmentServiceImpl departmentServiceImpl) {
this.departmentServiceImpl = departmentServiceImpl;
}
public Department getModel() {
return department;
}
public String findAll(){
PageBean pageBean = departmentServiceImpl.findByPage(currentPage);
ActionContext.getContext().getValueStack().push(pageBean);
return “findAll“;
}
//通过action返回添加的视图的jsp
public String saveUI(){
return “saveUI“;
}
//添加部门的save方法
public String saveInfo(){
departmentServiceImpl.save(department);
return “saveSuccess“;
}
//通过ID找出对应的Department
public String editById(){
department = departmentServiceImpl.editById(department.getDid());
return “editSuccess“;
}
//修改对应的Department
public String update(){
departmentServiceImpl.update(department);
return “updateSuccess“;
}
public String delete(){
Department dep = departmentServiceImpl.editById(department.getDid());
departmentServiceImpl.delete(dep);
return “deleteSuccess“;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3627  2016-11-17 14:49  ssh_employee\.classpath

     文件        309  2016-11-17 14:48  ssh_employee\.mymetadata

     文件       1285  2016-11-17 15:21  ssh_employee\.project

     文件        330  2016-11-17 14:48  ssh_employee\.settings\org.eclipse.jdt.core.prefs

     文件       3940  2016-11-19 22:35  ssh_employee\src\applicationContext.xml

     文件       1830  2016-11-18 15:55  ssh_employee\src\com\muke\employee\action\DepartmentAction.java

     文件       2587  2016-11-20 00:12  ssh_employee\src\com\muke\employee\action\EmployeeAction.java

     文件        102  2016-11-18 09:59  ssh_employee\src\com\muke\employee\dao\DepartmentDao.java

     文件        100  2016-11-17 16:11  ssh_employee\src\com\muke\employee\dao\EmployeeDao.java

     文件       1511  2016-11-19 22:45  ssh_employee\src\com\muke\employee\dao\impl\DepartmentDaoImpl.java

     文件       1657  2016-11-19 23:57  ssh_employee\src\com\muke\employee\dao\impl\EmployeeDaoImpl.java

     文件        665  2016-11-20 00:28  ssh_employee\src\com\muke\employee\domain\Department.hbm.xml

     文件       1110  2016-11-17 14:59  ssh_employee\src\com\muke\employee\domain\Department.java

     文件        908  2016-11-19 23:09  ssh_employee\src\com\muke\employee\domain\Employee.hbm.xml

     文件       2550  2016-11-19 23:06  ssh_employee\src\com\muke\employee\domain\Employee.java

     文件       1448  2016-11-18 17:26  ssh_employee\src\com\muke\employee\domain\PageBean.java

     文件         81  2016-11-18 10:01  ssh_employee\src\com\muke\employee\service\DepartmentService.java

     文件        112  2016-11-17 16:11  ssh_employee\src\com\muke\employee\service\EmployeeService.java

     文件       1730  2016-11-19 22:36  ssh_employee\src\com\muke\employee\service\impl\DepartmentServiceImpl.java

     文件       1698  2016-11-19 23:56  ssh_employee\src\com\muke\employee\service\impl\EmployeeServiceImpl.java

     文件        130  2016-11-17 14:51  ssh_employee\src\jdbc.properties

     文件       1321  2016-11-19 23:59  ssh_employee\src\struts.xml

     文件        155  2016-11-18 16:00  ssh_employee\src\test\Test.java

     文件       1115  2016-11-18 15:16  ssh_employee\WebRoot\addDepartment.jsp

     文件       1609  2016-11-19 22:55  ssh_employee\WebRoot\frame\addEmployee.jsp

     文件        762  2016-11-18 09:54  ssh_employee\WebRoot\frame\dtree.css

     文件      12410  2016-11-18 09:54  ssh_employee\WebRoot\frame\dtree.js

     文件       1283  2016-11-18 09:54  ssh_employee\WebRoot\frame\editDepartment.jsp

     文件       1948  2016-11-20 00:16  ssh_employee\WebRoot\frame\editEmployee.jsp

     文件       1040  2016-11-18 09:54  ssh_employee\WebRoot\frame\img\base.gif

............此处省略211个文件信息

评论

共有 条评论