资源简介

适合毕业生的毕业设计项目,java方面的,可以直接下载运行,tomcat服务器,mysql数据库

资源截图

代码片段和文件信息

package cn.uf.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

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

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

import cn.uf.entity.Caigou;
import cn.uf.entity.CaigouCheck;
import cn.uf.entity.CaigouDetail;
import cn.uf.entity.EmailBox;
import cn.uf.entity.Employee;
import cn.uf.entity.ItemType;
import cn.uf.entity.Voucher;
import cn.uf.entity.VoucherCheck;
import cn.uf.entity.VoucherDetail;
import cn.uf.service.CaigouService;
import cn.uf.service.EmailService;
import cn.uf.service.EmployeeService;

@Controller
public class CaigouController {

@Resource
private EmployeeService employeeService;

@Resource
private EmailService emailService;

@Resource
private CaigouService caigouService;

SimpleDateFormat sdf= new SimpleDateFormat(“yyyy-MM-dd“);

@RequestMapping(value=“/caigouAdd“)
public String caigouAdd(HttpServletRequest requestHttpSession session){
Employee employee=(Employee)session.getAttribute(“employee“);
String[]  item=request.getParameterValues(“cgName“);
String[]  account=request.getParameterValues(“account“);
String[]  des=request.getParameterValues(“des“);
Double allCount=Double.parseDouble(request.getParameter(“allCount“));
String status=request.getParameter(“status“);
String event=request.getParameter(“event“);
List caigouDetaillList= new ArrayList();
for (int i = 0; i < item.length-1; i++) {
CaigouDetail caigou= new CaigouDetail();
caigou.setCgName(item[i]);
caigou.setAccount(Integer.parseInt(account[i]));
caigou.setDes(des[i]);
caigouDetaillList.add(caigou);
}
Caigou caigou= new Caigou();
if(employee.getPosition().getDepartment().getId()==4||allCount>=10000.0){
caigou.setOutCount(1);
}else{
caigou.setOutCount(0);
}
caigou.setCreateEmId(employee.getId());
caigou.setAccount(allCount);
caigou.setEvent(event);
caigou.setStatus(status);
if(“新创建“.equals(status)){
caigou.setNextDealEmId(null);
}else{
Employee nextInfo=this.employeeService.findNextEm(employee);
caigou.setNextDealEmId(nextInfo.getId());
}
this.caigouService.addCaigou(caigou);
int id=this.caigouService.findId(employee);
for (CaigouDetail caigouDetail : caigouDetaillList) {
caigouDetail.setCaigouId(id);
this.caigouService.addVoucherDetail(caigouDetail);
}
if(caigou.getNextDealEmId()!=null){
EmailBox emailBox=new EmailBox();
emailBox.setContent(employee.getName()+“于“+sdf.format(new Date())+“提交采购申请。“);
emailBox.settitle(employee.getName()+“_采购申请“);
Employee inEm=this.employeeServ

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

     文件      26756  2018-03-14 12:29  UnFailing小组OA项目\oa.sql

     文件        577  2017-10-11 10:16  UnFailing小组OA项目\Y2Project\.classpath

     文件        300  2017-12-23 12:13  UnFailing小组OA项目\Y2Project\.mymetadata

     文件       1752  2017-10-11 10:56  UnFailing小组OA项目\Y2Project\.project

     文件        500  2017-10-11 10:14  UnFailing小组OA项目\Y2Project\.settings\.jsdtscope

     文件        117  2018-01-06 12:24  UnFailing小组OA项目\Y2Project\.settings\com.genuitec.eclipse.core.prefs

     文件        364  2017-10-11 10:14  UnFailing小组OA项目\Y2Project\.settings\org.eclipse.jdt.core.prefs

     文件        545  2017-10-11 10:16  UnFailing小组OA项目\Y2Project\.settings\org.eclipse.wst.common.component

     文件        252  2017-10-11 10:14  UnFailing小组OA项目\Y2Project\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2017-10-11 10:14  UnFailing小组OA项目\Y2Project\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2017-10-11 10:14  UnFailing小组OA项目\Y2Project\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       3861  2018-01-30 08:30  UnFailing小组OA项目\Y2Project\resources\applicationContext.xml

     文件        160  2017-12-24 15:46  UnFailing小组OA项目\Y2Project\resources\db.properties

     文件        876  2017-08-28 09:40  UnFailing小组OA项目\Y2Project\resources\log4j.properties

     文件        638  2017-10-11 11:11  UnFailing小组OA项目\Y2Project\resources\mybatis-config.xml

     文件       1201  2018-01-30 08:33  UnFailing小组OA项目\Y2Project\resources\springmvc.xml

     文件      12634  2018-03-08 15:08  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\CaigouController.java

     文件       7499  2018-03-08 13:24  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\ConferenceController.java

     文件       4372  2018-02-06 11:17  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\DataController.java

     文件       3236  2018-01-27 12:17  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\DayPlanController.java

     文件       3752  2018-03-06 08:48  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\DepartmentController.java

     文件      13499  2018-03-07 21:10  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\EmailController.java

     文件      10652  2018-03-01 12:48  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\EmployeeController.java

     文件       8279  2018-03-03 12:18  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\IndexController.java

     文件       4929  2018-03-02 19:04  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\JurisdictionController.java

     文件      14392  2018-03-08 14:41  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\LeaveController.java

     文件       1274  2017-12-24 16:44  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\NoteController.java

     文件       4898  2018-03-01 13:04  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\PositionController.java

     文件      14204  2018-03-08 14:47  UnFailing小组OA项目\Y2Project\src\cn\uf\controller\VoucherController.java

     文件        860  2018-02-20 22:50  UnFailing小组OA项目\Y2Project\src\cn\uf\entity\BoardRoom.java

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

评论

共有 条评论