Title / Description
Code 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); } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code