资源简介
使用springMvc+mybatis实现的需求管理系统,主要分为用户管理和需求管理两个大部分。用户管理分为部门管理,角色管理和职员管理;需求管理分为个人信息和需求管理;权限设定,ui设计等,是入门学习springMvc最好的项目,全项目采用注解,达到0配置的要求,供大家分享学习,提出宝贵的意见。

代码片段和文件信息
package com.live800.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
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.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.live800.pojo.Approval;
import com.live800.pojo.Damand;
import com.live800.service.ApprovalService;
import com.live800.service.DamandService;
import com.live800.utils.DateUtil;
@Controller
public class ApprovalController {
private Damand damand ;
private List damands;
private Approval approval;
private List approvals;
@Autowired
private DamandService damandService;
@Autowired
private ApprovalService approvalService;
private int damid;
private int aid;
private int currentPage =1;
private int pageSize;
private int maxPage;
private List pages;
@Autowired
private HttpSession session;
/**
*
* @return显示待审批的需求信息
*/
@RequestMapping(“/findAllDamandOfNeed.do“)
public ModelAndView findAllDamandOfNeed(HttpServletRequest request){
if(request.getParameter(“currentPage“)!=null&&!““.equals(request.getParameter(“currentPage“))){
currentPage = Integer.parseInt(request.getParameter(“currentPage“));
}
damands = damandService.findAllDamandOfNeed(currentPage8);
maxPage = damandService.getDamandMaxPage();
pages = new ArrayList();
for(int i=1;i<=maxPage;i++){
pages.add(i);
}
Mapject> map = new HashMapject>();
map.put(“damands“ damands);
map.put(“maxPage“ maxPage);
map.put(“currentPage“ currentPage);
map.put(“pages“ pages);
return new ModelAndView(“leaderapproval/damandInfo_need“ “map“ map);
}
/**
*
* @return显示已审批的需求信息
*/
@RequestMapping(“/findAllDamandOfFinish.do“)
public ModelAndView findAllDamandOfFinish(HttpServletRequest request){
if(request.getParameter(“currentPage“)!=null&&!““.equals(request.getParameter(“currentPage“))){
currentPage = Integer.parseInt(request.getParameter(“currentPage“));
}
damands = damandService.findAllDamandOfFinish(currentPage8);
maxPage = damandService.getFinishDamandMaxPage();
pages = new ArrayList();
for(int i=1;i<=maxPage;i++){
pages.add(i);
}
Mapject> map = new HashMapject>();
map.put(“damands“ damands);
map.put(“maxPage“ maxPage);
map.put(“currentPage“ currentPage);
map.put(“pages“ pages);
return new ModelAndView(“leaderapproval/damandInfo_finish“ “map“ map);
}
/**
*
* @return显示详细的未审核需求信息
*/
@RequestMapping(“/DetailOfDamand.do“)
public ModelAndView DetailOfDamand(HttpServletRequest request){
damid = Integer.parseInt(
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-03-20 09:48 需求管理系统\
目录 0 2015-03-20 09:47 需求管理系统\DemandSystem\
文件 849 2013-08-30 10:54 需求管理系统\DemandSystem\.classpath
文件 1261 2013-08-22 10:10 需求管理系统\DemandSystem\.project
目录 0 2015-03-20 09:47 需求管理系统\DemandSystem\.settings\
文件 454 2013-08-21 13:35 需求管理系统\DemandSystem\.settings\.jsdtscope
文件 238 2013-08-30 08:57 需求管理系统\DemandSystem\.settings\org.eclipse.core.resources.prefs
文件 629 2013-08-22 10:37 需求管理系统\DemandSystem\.settings\org.eclipse.jdt.core.prefs
文件 466 2013-08-21 13:35 需求管理系统\DemandSystem\.settings\org.eclipse.wst.common.component
文件 320 2013-08-21 13:35 需求管理系统\DemandSystem\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2013-08-21 13:35 需求管理系统\DemandSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2013-08-21 13:35 需求管理系统\DemandSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 299 2013-08-22 10:37 需求管理系统\DemandSystem\.settings\org.eclipse.wst.validation.prefs
目录 0 2015-03-20 09:47 需求管理系统\DemandSystem\WebContent\
目录 0 2015-03-20 09:47 需求管理系统\DemandSystem\WebContent\me
文件 36 2013-08-21 13:36 需求管理系统\DemandSystem\WebContent\me
目录 0 2015-03-20 09:47 需求管理系统\DemandSystem\WebContent\WEB-INF\
文件 1366 2013-08-22 11:15 需求管理系统\DemandSystem\WebContent\WEB-INF\admin.jsp
目录 0 2015-03-20 09:50 需求管理系统\DemandSystem\WebContent\WEB-INF\classes\
目录 0 2015-03-20 09:47 需求管理系统\DemandSystem\WebContent\WEB-INF\config\
文件 4316 2013-08-30 14:47 需求管理系统\DemandSystem\WebContent\WEB-INF\config\application-common.xm
文件 1427 2013-08-30 14:13 需求管理系统\DemandSystem\WebContent\WEB-INF\config\spring-servlet.xm
目录 0 2015-03-20 09:47 需求管理系统\DemandSystem\WebContent\WEB-INF\damandmanage\
文件 4676 2013-08-27 10:31 需求管理系统\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_add.jsp
文件 5689 2013-08-28 16:41 需求管理系统\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_all.jsp
文件 5631 2013-08-27 17:31 需求管理系统\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_edit.jsp
文件 5893 2013-08-27 16:29 需求管理系统\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_mine.jsp
文件 3112 2013-08-28 14:53 需求管理系统\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_read.jsp
文件 869 2013-08-30 14:52 需求管理系统\DemandSystem\WebContent\WEB-INF\error.jsp
文件 1367 2013-08-26 15:06 需求管理系统\DemandSystem\WebContent\WEB-INF\leader.jsp
目录 0 2015-03-20 09:47 需求管理系统\DemandSystem\WebContent\WEB-INF\leaderapproval\
............此处省略250个文件信息
相关资源
- 酒店管理系统基于Qt Creator5)
- 软考数据库系统工程师复习资料(完
- 设备管理系统源码
- 价值2k的H漫画小说系统
- DV泵加罗茨泵独立控制系统PID.smart
- 基于ACCESS的生产管理信息系统.mdb
- 电力系统潮流计算程序集合
- layui后台管理模板
- 联想扬天电脑用户手册
- 三星笔记本电源管理软件 v2.1.4.3 官方
- 升腾Win终端系统升级方法新版.doc
- 批处理获取系统版本及位数
- CAD中插入带坐标的正射影像——Inse
- Uninstall_Cortana_WINCLIENT.CN.rar
-
大数据。基于Hba
se的网站日志分析系 - 益和注册机
- ManageEngine_OpManager_12.3安装手册+管理员
- Python全栈学习笔记面向对象大作业:
- TCL-S1916 ,1924交换机管理程序
- 一个超简单的企业管理系统(带ACCE
- PowerBuilder*图书馆管理系统*需求分析
- B/S 网上订餐系统
- Linux任务管理器
- 加密软件漏洞评测系统 V8.9
- 交通咨询模拟系统完整代码
- 数据库课设:图书管理系统报告
- 用汇编实现的学生成绩档案管理系统
- VC 获得文件属性 获取文件的创建时
- 网上拍卖系统完整源代码
- 教室管理系统.rar
评论
共有 条评论