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

资源简介

基本功能以完善,可根据自己需要进行修改。页面是基于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.javascriptValidator (1).launch
     目录           0  2015-05-14 17:36  OA\oa\.myeclipse\
     文件         279  2015-08-20 13:48  OA\oa\.mymetadata
     文件        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.xml
     文件          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个文件信息

评论

共有 条评论