package com.personnel.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.context.annotation.Scope;
import javax.annotation.Resource;
import java.io.IOException;
import org.apache.commons.beanutils.BeanUtils;
import com.personnel.utils.PageContext;
import com.personnel.utils.ResultUtils;
import com.personnel.model.Search;
import com.personnel.model.Staff;
import com.personnel.service.StaffService;
import com.personnel.model.Dept;
import com.personnel.service.DeptService;
import com.personnel.model.TitleInfo;
import com.personnel.service.TitleInfoService;
import com.personnel.model.Education;
import com.personnel.service.EducationService;
import com.personnel.model.Attendance;
import com.personnel.service.AttendanceService;
import com.personnel.model.State;
import com.personnel.service.StateService;
import com.personnel.model.Leave;
import com.personnel.service.LeaveService;
import com.personnel.model.LeaveState;
import com.personnel.service.LeaveStateService;
import com.personnel.model.Wages;
import com.personnel.service.WagesService;
@Controller
@Scope("prototype")
@RequestMapping(value={"/site"})
public class SiteController extends BaseController {
private Search search;
@Resource
private StaffService staffService ;
@Resource
private DeptService deptService ;
@Resource
private TitleInfoService titleInfoService ;
@Resource
private EducationService educationService ;
@Resource
private AttendanceService attendanceService ;
@Resource
private StateService stateService ;
@Resource
private LeaveService leaveService ;
@Resource
private LeaveStateService leaveStateService ;
@Resource
private WagesService wagesService ;
private String url="";
@RequestMapping("/addStaffInput")
public String addStaffInput(){
Search search = ResultUtils.copyParams(Search.class, request);
Staff staff = ResultUtils.copyParams(Staff.class, request);
int ps = PageContext.getPage().getPageSize();
PageContext.getPage().setPageSize(10000);
Search search2 = new Search();
request.setAttribute("staffList", staffService.search(search));
request.setAttribute("deptList", deptService.search(search));
request.setAttribute("titleInfoList", titleInfoService.search(search));
request.setAttribute("educationList", educationService.search(search));
request.setAttribute("attendanceList", attendanceService.search(search));
request.setAttribute("stateList", stateService.search(search));
request.setAttribute("leaveList", leaveService.search(search));
request.setAttribute("leaveStateList", leaveStateService.search(search));
request.setAttribute("wagesList", wagesService.search(search));
PageContext.getPage().setPageSize(ps);
request.setAttribute("search", search);
request.setAttribute("staff", staffService.findById(search.getId()));
return "add_staff";
}
@RequestMapping("/addStaff")
public String addStaff(){
Search search = ResultUtils.copyParams(Search.class, request);
Staff staff = ResultUtils.copyParams(Staff.class, request);
staffService.add(staff);
int ps = PageContext.getPage().getPageSize();
PageContext.getPage().setPageSize(10000);
Search search2 = new Search();
request.setAttribute("staffList", staffService.search(search));
request.setAttribute("deptList", deptService.search(search));
request.setAttribute("titleInfoList", titleInfoService.search(search));
request.setAttribute("educationList", educationService.search(search));
request.setAttribute("attendanceList", attendanceService.search(search));
request.setAttribute("stateList", stateService.search(search));
request.setAttribute("leaveList", leaveService.search(search));
request.setAttribute("leaveStateList", leaveStateService.search(search));
request.setAttribute("wagesList", wagesService.search(search));
PageContext.getPage().setPageSize(ps);
request.setAttribute("search", search);
request.setAttribute("staff", staffService.findById(search.getId()));
return "redirect:"+url;
}
@RequestMapping("/deleteStaff")
public String deleteStaff(){
Search search = ResultUtils.copyParams(Search.class, request);
Staff staff = ResultUtils.copyParams(Staff.class, request);
staffService.delete(staff);
int ps = PageContext.getPage().getPageSize();
PageContext.getPage().setPageSize(10000);
Search search2 = new Search();
request.setAttribute("staffList", staffService.search(search));
request.setAttribute("deptList", deptService.search(search));
request.setAttribute("titleInfoList", titleInfoService.search(search));
request.setAttribute("educationList", educationService.search(search));
request.setAttribute("attendanceList", attendanceService.search(search));
request.setAttribute("stateList", stateService.search(search));
request.setAttribute("leaveList", leaveService.search(search));
request.setAttribute("leaveStateList", leaveStateService.search(search));
request.setAttribute("wagesList", wagesService.search(search));
PageContext.getPage().setPageSize(ps);
request.setAttribute("search", search);
request.setAttribute("staff", staffService.findById(search.getId()));
return "redirect:"+url;
}
@RequestMapping("/staff")
public String staff(){
Search search = ResultUtils.copyParams(Search.class, request);
int ps = PageContext.getPage().getPageSize();
PageContext.getPage().setPageSize(10000);
Search search2 = new Search();
request.setAttribute("staffList", staffService.search(search));
request.setAttribute("deptList", deptService.search(search));
request.setAttribute("titleInfoList", titleInfoService.search(search));
request.setAttribute("educationList", educationService.search(search));
request.setAttribute("attendanceList", attendanceService.search(search));
request.setAttribute("stateList", stateService.search(search));
request.setAttribute("leaveList", leaveService.search(search));
request.setAttribute("leaveStateList", leaveStateService.search(search));
request.setAttribute("wagesList", wagesService.search(search));
PageContext.getPage().setPageSize(ps);
request.setAttribute("search", search);
request.setAttribute("staff", staffService.findById(search.getId()));
return "staff";
}
@RequestMapping("/staffs")
public String staffs(){
Search search = ResultUtils.copyParams(Search.class, request);
int ps = PageContext.getPage().getPageSize();
PageContext.getPage().setPageSize(10000);
Search search2 = new Search();
request.setAttribute("staffList", staffService.search(search));
request.setAttribute("deptList", deptService.search(search));
request.setAttribute("titleInfoList", titleInfoService.search(search));
request.setAttribute("educationList", educationService.search(search));
request.setAttribute("attendanceList", attendanceService.search(search));
request.setAttribute("stateList", stateService.search(search));
request.setAttribute("leaveList", leaveService.search(search));
request.setAttribute("leaveStateList", leaveStateService.search(search));
request.setAttribute("wagesList", wagesService.search(search));
request.setAttribute("search", search);
PageContext.getPage().setPageSize(ps);
return "staffs";
}
@RequestMapping("/addDeptInput")
public String addDeptInput(){
Search search = ResultUtils.copyParams(Search.class, request);
Dept dept = ResultUtils.copyParams(Dept.class, request);
int ps = PageContext.getPage().getPageSize();
PageContext.getPage().setPageSize(10000);
Search search2 = new Search();
request.setAttribute("staffList", staf
没有合适的资源?快使用搜索试试~ 我知道了~
基于Springboot的企业人事管理系统
共2000个文件
js:723个
png:406个
css:341个
5星 · 超过95%的资源 需积分: 23 34 下载量 108 浏览量
2022-07-25
21:04:55
上传
评论 11
收藏 11.43MB ZIP 举报
温馨提示
后端技术java springboot eclipse Apache Tomcat 9.0 mysql 5.1.7 拥有增删改查,还有管理员跟用户登录两个系统 拥有企业所拥有的请假申请,出勤,工资管理等等各项功能
资源详情
资源评论
资源推荐
收起资源包目录
基于Springboot的企业人事管理系统 (2000个子文件)
add_user.jsp.bak 7KB
main.jsp.bak 3KB
top.jsp.bak 3KB
SiteController.class 37KB
WagesController.class 15KB
LoginController.class 12KB
CommentInfoController.class 8KB
StaffController.class 8KB
PerformanceController.class 8KB
Staff.class 7KB
AttendanceController.class 7KB
LeaveController.class 7KB
WebAppConfigurer.class 7KB
CommentItemController.class 7KB
UploadController.class 7KB
NoticeController.class 6KB
OvertimeController.class 6KB
BtravelController.class 6KB
UserController.class 6KB
CommentInfoDaoImpl.class 5KB
StaffDaoImpl.class 5KB
AttendanceDaoImpl.class 5KB
OvertimeDaoImpl.class 5KB
BtravelDaoImpl.class 5KB
HttpSessionFilter.class 5KB
WagesDaoImpl.class 5KB
LeaveStateDaoImpl.class 5KB
LeaveDaoImpl.class 5KB
CommentItemDaoImpl.class 5KB
LeaveStateController.class 5KB
PerformanceDaoImpl.class 5KB
EducationController.class 5KB
TitleInfoController.class 5KB
TitleInfoDaoImpl.class 5KB
EducationDaoImpl.class 5KB
NoticeDaoImpl.class 5KB
StateDaoImpl.class 5KB
DeptDaoImpl.class 5KB
StateController.class 5KB
DeptController.class 5KB
Search.class 5KB
Wages.class 5KB
CheckCodeController.class 4KB
UserDaoImpl.class 4KB
RoleDaoImpl.class 4KB
ResultUtils.class 4KB
CommentInfo.class 4KB
LoginInterceptor.class 4KB
RoleController.class 3KB
ModelUtil.class 3KB
Performance.class 3KB
InitBeanFactory.class 3KB
Leave.class 3KB
AttachmentFilter.class 3KB
CommentItem.class 3KB
LoginFilter.class 3KB
SystemFunction.class 3KB
SystemController.class 3KB
TitleInfo.class 3KB
Overtime.class 3KB
Btravel.class 3KB
Education.class 3KB
Dept.class 3KB
Attendance.class 3KB
Notice.class 3KB
IndexFilter.class 3KB
State.class 2KB
LeaveState.class 2KB
BaseMapper.class 2KB
ApplicationConfiger.class 2KB
Page.class 2KB
User.class 2KB
PageFilter.class 2KB
BaseDaoImpl.class 2KB
UserServiceImpl.class 2KB
Role.class 2KB
PerformanceServiceImpl.class 2KB
CommentItemServiceImpl.class 2KB
CommentInfoServiceImpl.class 2KB
LeaveStateServiceImpl.class 2KB
AttendanceServiceImpl.class 2KB
EducationServiceImpl.class 2KB
TitleInfoServiceImpl.class 2KB
OvertimeServiceImpl.class 2KB
CheckCodeFilter.class 2KB
BtravelServiceImpl.class 2KB
NoticeServiceImpl.class 2KB
WagesServiceImpl.class 2KB
StaffServiceImpl.class 2KB
StateServiceImpl.class 2KB
LeaveServiceImpl.class 2KB
DeptServiceImpl.class 2KB
Application.class 2KB
EncodingFilter.class 2KB
RoleServiceImpl.class 1KB
IntegerConverter.class 1KB
SessionListener.class 1KB
DateConverter.class 1KB
DateConvert.class 1KB
DataConverter.class 1KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
qq_43356551
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python文本数据分析:求平均值与极值
- 深入比较Oracle与MySQL在集群支持方面的不同策略
- Python中利用pandas读取和分析Excel文件的方法与实例
- 脉冲成形实验matlab代码
- 课程设计:多种波形发生器Multisim代码
- Next Faiz_1.2.apk
- 腾讯开源QUIC协议:TQUIC
- 风光储、风光储并网直流微电网simulink仿真模型 系统由光伏发电系统、风力发电系统、混合储能系统(可单独储能
- 微环谐振腔的光学频率梳matlab仿真 微腔光频梳仿真 包括求解LLE方程(Lugiato-Lefever equation)实
- 51单片机温室大棚温湿度光照控制系统资料包括原理图,PCB文件,源程序,一些软件等,仿真文件 设计简介: (1)51单片机+D
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5