资源简介
基本功能以完善,可根据自己需要进行修改。页面是基于bootstrap开发的。
代码片段和文件信息
package com.ys.oa.action.announcement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.ys.oa.dao.announcement.IAnnouncementMapper;
import com.ys.oa.dao.department.IDepartmentMapper;
import com.ys.oa.dao.post.IPositionMapper;
import com.ys.oa.entity.announcement.AnnouncementEntity;
import com.ys.oa.entity.department.DepartmentEntity;
import com.ys.oa.entity.post.PositionEntity;
import com.ys.oa.entity.user.UserEntity;
import com.ys.oa.pageInfo.PageModel;
import com.ys.oa.pageInfo.PageQuery;
@Controller
@RequestMapping(“announcement“)
public class AnnouncementAction {
@Autowired
private IAnnouncementMapper announcementMapper;
@Autowired
private IDepartmentMapper departmentMapper;
@Autowired
private IPositionMapper positionMapper;
@RequestMapping(“findAnnouncementList“)
public ModelAndView findAnnouncementList() throws Exception{
ModelAndView mv = new ModelAndView(“announcement/announcementList“);
return mv;
}
@RequestMapping(“forPage“)
@ResponseBody
public PageModel forPage(PageQuery p HttpServletRequest request) throws Exception{
if(null == p) p = new PageQuery();
UserEntity user = (UserEntity)request.getSession().getAttribute(“user“);
if(!“超级管理员“.equals(user.getUserName())){
p.setcId(user.getPositionId());
p.setdId(user.getDepartmentId());
}
PageModel model = new PageModel();
List findForPage = announcementMapper.findForPage(p);
if(findForPage != null && findForPage.size() > 0){
for (AnnouncementEntity announcement : findForPage) {
if(“all“.equals(announcement.getSendRangeType())){
announcement.setSendRangeType(“全部员工“);
}
if(“dept“.equals(announcement.getSendRangeType())){
DepartmentEntity findById = departmentMapper.findById(Long.parseLong(announcement.getSendRangeIds()));
announcement.setSendRangeType(“部门:“+findById.getDepartmentName());
}
if(“post“.equals(announcement.getSendRangeType())){
PositionEntity findById = positionMapper.findById(Long.parseLong(announcement.getSendRangeIds()));
announcement.setSendRangeType(“职务:“+findById.getPostName());
}
}
model.setAaData(findForPage);
}else{
model.setAaData(new ArrayList());
}
model.setsEcho(p.getsEcho());
model.setiTotalRecords(findForPage.size());
model.setiTotalDisplayRecords(findForPage.size());
return model;
}
@RequestMapping(“toAdd“)
public ModelAndView toAdd() throws Exception{
ModelAndView mv = new M
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-25 16:28 OA\
目录 0 2015-07-29 09:59 OA\oa\
文件 3562 2015-05-28 18:42 OA\oa\.classpath
目录 0 2015-07-29 09:56 OA\oa\.externalToolBuilders\
文件 548 2015-05-14 17:38 OA\oa\.externalToolBuilders\org.eclipse.wst.jsdt.core.ja
目录 0 2015-05-14 17:36 OA\oa\.myeclipse\
文件 279 2015-08-20 13:48 OA\oa\.myme
文件 1980 2015-05-14 17:38 OA\oa\.project
目录 0 2015-07-29 09:56 OA\oa\.settings\
文件 500 2015-05-14 17:40 OA\oa\.settings\.jsdtscope
文件 332 2015-07-29 11:37 OA\oa\.settings\org.eclipse.core.resources.prefs
文件 364 2015-05-14 17:36 OA\oa\.settings\org.eclipse.jdt.core.prefs
文件 444 2015-05-14 17:36 OA\oa\.settings\org.eclipse.wst.common.component
文件 252 2015-05-14 17:36 OA\oa\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2015-05-14 17:36 OA\oa\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2015-05-14 17:36 OA\oa\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2015-07-29 09:56 OA\oa\src\
目录 0 2015-07-29 09:56 OA\oa\src\com\
目录 0 2015-07-29 09:56 OA\oa\src\com\ys\
目录 0 2015-07-29 09:56 OA\oa\src\com\ys\oa\
目录 0 2015-07-29 09:56 OA\oa\src\com\ys\oa\action\
目录 0 2015-07-29 09:56 OA\oa\src\com\ys\oa\action\announcement\
文件 5833 2015-06-30 16:59 OA\oa\src\com\ys\oa\action\announcement\AnnouncementAction.java
目录 0 2015-07-29 09:56 OA\oa\src\com\ys\oa\action\authority\
文件 2978 2015-06-16 15:14 OA\oa\src\com\ys\oa\action\authority\DepartmentAuthorityAction.java
文件 2852 2015-06-16 15:14 OA\oa\src\com\ys\oa\action\authority\PositiontAuthorityAction.java
文件 7583 2015-05-28 11:15 OA\oa\src\com\ys\oa\action\authority\UserAuthorityAction.java
目录 0 2015-07-29 09:56 OA\oa\src\com\ys\oa\action\company\
文件 4327 2015-07-30 17:47 OA\oa\src\com\ys\oa\action\company\CompanyControlAction.java
目录 0 2015-07-29 09:56 OA\oa\src\com\ys\oa\action\department\
文件 4860 2015-08-03 08:59 OA\oa\src\com\ys\oa\action\department\DepartmentControlAction.java
............此处省略2002个文件信息
相关资源
- 数字通信 Proakis John G.英文原版 第五版
- 百度地图官方demoas与eclipse双版本
- 数字信号处理--第四版中文版_john_G.
- 空间谱估计理论与算法.pdf——王永良
- Computer Vision A Modern Approach 2nd Edition 英
- GEOSOFT Oasis Montaj 操作手册-OM平台
- Digital Signal Processing[美]John G. Proakis著
- Video DownloadHelper Companion App ( VdhCoAp
- D3D11_LoadOBJ
- Broadband Dielectric Spectroscopy
- Principles of Synthetic Aperture Radar Imaging
- gsoap_2.8.94.zip
- VirtualBreadboard/vjredist
- 《Koa与Node.js开发实战》_iKcamp.pdf
- 多任务DownloadDemo.zip
- CiscoanyConnect4.6.zip
- csdn_curve_upload.zip
- RoadFlow 2.1 源代码
- 基于springboot2.x的Oauth2.0一键授权登录
- 完整OA系统源码,可以二次开发
- ComputerNetworking-ATopDownApproach7thconverte
- 计算机网络自顶向下方法 第七版 Co
- gsoap_2.8.102.zip
- Aircraft_Design--A Conceptual Approach
- ssh 办公自动化oa系统视频教程
- Loadrunner12中文版用户手册及使用指南
- VideoDownloadHelperpjb.zip
- 路面识别.rar
- opencv 3.1.0 3rdparty\\ffmpeg\\download
- Computer Networking -Top-Down- Approach 7th [p
评论
共有 条评论