• 大小: 40.39MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-22
  • 语言: Java
  • 标签: OA  

资源简介

基于java的OA管理系统,后台采用Spring,SpringMVC,hibernate,数据库采用MYSQL可二次开发

资源截图

代码片段和文件信息

package com.vping.oa.controller;

import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.vping.oa.dao.ManagerCarFareDAO;
import com.vping.oa.dao.ManagerUserDAO;
import com.vping.oa.pojo.CarFare;
import com.vping.oa.pojo.User;


@Controller
@RequestMapping(“/carFare“)
public class CarFareController {

@Resource(name=“managerCarFareDAO“)
private ManagerCarFareDAO  managerCarFareDAO;

//all
@RequestMapping(value=“/showAllList“method=RequestMethod.GET)
public @ResponseBody Map getALLCarFare(HttpServletRequest request){
    String pageSize=request.getParameter(“rows“);
    String currentPage=request.getParameter(“page“);
    
    int pageSizeInt=10;
    if(pageSize!=null&&!pageSize.equals(““)){
     pageSizeInt=Integer.parseInt(pageSize);
    }
    int currentPageInt=1;
    if(currentPage!=null&&!currentPage.equals(““)){
     currentPageInt= Integer.parseInt(currentPage);
}
    
    List CarFareList=managerCarFareDAO.getALLCarFare(pageSizeInt currentPageInt);
    long total=managerCarFareDAO.getCarFareRow();
    Map jsonMap=new HashMap();
    jsonMap.put(“total“ total);
    jsonMap.put(“rows“ CarFareList);
    
return jsonMap;
}

//增加
@RequestMapping(value=“/daadd“method=RequestMethod.POST)
public @ResponseBody Map addtask(HttpServletRequest requestHttpServletResponse response) throws UnsupportedEncodingException{
String person;
Map jsonMap=new HashMap();
String reason = request.getParameter(“reason“);
String amount=request.getParameter(“amount“);
//BigDecimal bd = new BigDecimal(“123.23“);
//DecimalFormat df =new DecimalFormat(“###.##“);
//BigDecimal bd = df.format(new BigDecimal(“amount“));
int bill = Integer.parseInt(“bill“);
String explain=request.getParameter(“explain“);
String attach=request.getParameter(“attach“);
//CarFare c = new CarFare();
CarFare pl=new CarFare(reasonamountattachbillexplain);

int result=managerCarFareDAO.addCarFare(pl);
if(result>0){
jsonMap.put(“successmsg“ “操作成功“);
}else{
jsonMap.put(“errormsg“ “操作出现异常“);
}
    
    return jsonMap;
    


//删除
@RequestMapping(value=“/deleteCarFare“method=RequestMethod.POST)
public @ResponseBody Map deletetask(HttpServletRequest request){
String ids=request.getParameter(“id“);

int id=Integer.parseInt(ids);
  
    int result=managerCarFareDAO.delet

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

     文件        619  2018-05-18 23:06  oooo\.classpath

     文件       1038  2018-05-18 14:23  oooo\.project

     文件        567  2018-05-18 14:23  oooo\.settings\.jsdtscope

     文件        322  2018-05-21 21:52  oooo\.settings\org.eclipse.core.resources.prefs

     文件        670  2018-05-18 14:31  oooo\.settings\org.eclipse.jdt.core.prefs

     文件        467  2018-05-18 14:23  oooo\.settings\org.eclipse.wst.common.component

     文件        305  2018-05-18 23:00  oooo\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-05-18 14:23  oooo\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-05-18 14:23  oooo\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件          3  2018-05-18 17:20  oooo\.svn\entries

     文件          3  2018-05-18 17:20  oooo\.svn\format

     文件        191  2018-05-18 17:24  oooo\.svn\pristine\00\007d2527690783a878e3ec76cce9ac7fc88d3fe7.svn-base

     文件        716  2018-05-18 17:25  oooo\.svn\pristine\01\012984c34092c44cc0540e2b881394662236428e.svn-base

     文件        244  2018-05-18 17:25  oooo\.svn\pristine\01\0146248c0358eaae6a002fc7ad492483b60ff503.svn-base

     文件       1038  2018-05-18 17:25  oooo\.svn\pristine\01\01c4bdeb9fc35e840db9a21b303681e4c8d3a574.svn-base

     文件       4467  2018-05-18 17:25  oooo\.svn\pristine\02\0235ba8b489512805ac13a8f9ea77a1ca5ebe3e8.svn-base

     文件       3914  2018-05-18 17:24  oooo\.svn\pristine\02\023ebba94716874ac724a77cdbb79fe766e486fb.svn-base

     文件        898  2018-05-18 17:24  oooo\.svn\pristine\02\028896a3720a16031a3f3ded9454ce93b83ca319.svn-base

     文件        901  2018-05-18 17:25  oooo\.svn\pristine\03\035df1bf8409c6c907590c6a03e6c747360d741a.svn-base

     文件        619  2018-05-18 17:25  oooo\.svn\pristine\05\052b7ecb41113fee184e8608a1e711ef463705a5.svn-base

     文件        184  2018-05-18 17:25  oooo\.svn\pristine\07\0773c36136a0ac43a84c8b43f53b49d46df2d80e.svn-base

     文件       1489  2018-05-18 17:55  oooo\.svn\pristine\07\07c0c4c5773d8dd4b298e236e9de07401f0db548.svn-base

     文件      53082  2018-05-18 17:25  oooo\.svn\pristine\07\07f22a0e9f325e6565b4ea56b479ad76311d146b.svn-base

     文件    1238250  2018-05-18 17:24  oooo\.svn\pristine\09\09e0cf1e73a3b9bd1b7d70fced3fba41fb1574b5.svn-base

     文件       3902  2018-05-18 17:25  oooo\.svn\pristine\0a\0a4437e499f021c332e4eef619c2267fd122b9e8.svn-base

     文件        898  2018-05-18 17:25  oooo\.svn\pristine\0b\0b04a270c24a4fc35761adf608ee44330ecf636d.svn-base

     文件       3475  2018-05-18 17:24  oooo\.svn\pristine\0b\0b5f399259388eb9505b8abcc7f2e27dabc5f74a.svn-base

     文件        159  2018-05-18 17:25  oooo\.svn\pristine\0c\0c46c0a9d24a7ec2bb00c31586ea2636b2565615.svn-base

     文件     321190  2018-05-18 17:24  oooo\.svn\pristine\0c\0c7a17803cc10512e26e285073639543f0c7c764.svn-base

     文件        290  2018-05-18 17:24  oooo\.svn\pristine\0c\0c9f8076bab7a20e30a89b1244dca133a5f40644.svn-base

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

评论

共有 条评论