Scala test

Java code posted by asdasdas
created at 13 Jul 15:55, updated at 05 Nov 17:04

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package pdss.biz.ceval.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import pdss.biz.ceval.excel.CevalAdmDivAdjGridExcel;
import pdss.biz.ceval.service.CevalAdmFinalAdjService;
import pdss.biz.ceval.vo.CevalAdmDivAdjGridVO;
import pdss.biz.ceval.vo.CevalAdmDivAdjVO;
import pdss.frame.common.service.CommonService;
import pdss.frame.login.vo.EPUserInfo;
import pdss.frame.util.AuthAnnotation;

@Controller
public class CevalAdmDivAdjController {
  @Autowired
  protected CommonService commonService;
  @Autowired
  protected CevalAdmFinalAdjService cevalAdmDivAdjService;

  @AuthAnnotation(sysid = "EVAL", grades = { "B", "S" })
  @RequestMapping(value = "ceval/cevalAdmDivAdj", method = RequestMethod.GET)
  public String cevalAdmDivAdjView(
      @ModelAttribute("frm") CevalAdmDivAdjVO vo, HttpSession session) {
    return "ceval/cevalAdmDivAdj.menuHRM";
  }

  @RequestMapping(value = "ceval/getCevalAdmDivAdjGrid", method = RequestMethod.POST)
  public @ResponseBody
  List<CevalAdmDivAdjGridVO> getCevalAdmDivAdjGrid(
      @ModelAttribute("frm") CevalAdmDivAdjVO vo) throws IOException {
    @SuppressWarnings("unchecked")
    List<CevalAdmDivAdjGridVO> listVO = (List<CevalAdmDivAdjGridVO>) commonService
        .getDataList("ceval.getCevalAdmDivAdjList", vo);
    return listVO;
  }

  @RequestMapping(value = "ceval/copyEndGradeGrid", method = RequestMethod.POST)
  public @ResponseBody
  int copyEndgradeGrid(@ModelAttribute("frm") CevalAdmDivAdjVO vo) {
    return commonService.updateData("ceval.copyEndGrade", vo);
  }

  @RequestMapping(value = "ceval/doCevalAdmDivAdjConfirm", method = RequestMethod.POST)
  public @ResponseBody
  void doCevalAdmDivAdjConfirm(@ModelAttribute("frm") CevalAdmDivAdjVO vo,
      HttpSession session) {
    EPUserInfo userInfoVO = (EPUserInfo) session
        .getAttribute("EP_USERINFO");
    vo.setIDNO(userInfoVO.getEP_IDNO());
    commonService.updateData("ceval.doCevalAdmDivAdjConfirm", vo);
  }

  @RequestMapping(value = "ceval/getCevalAdmDivAdjGridExcel", method = RequestMethod.POST)
  public ModelAndView getCevalAdmDivAdjGridExcel(
      @ModelAttribute("frm") CevalAdmDivAdjVO vo, ModelMap model) {
    @SuppressWarnings("unchecked")
    List<CevalAdmDivAdjGridVO> listVO = (List<CevalAdmDivAdjGridVO>) commonService
        .getDataList("ceval.getCevalAdmDivAdjList", vo);
    return new ModelAndView(new CevalAdmDivAdjGridExcel(),
        "cevalAdmDivAdjGridList", listVO);
  }

}
2.89 KB in 24 ms with coderay