2024-03-21 10:48 기소유예 대상자 excel 송출 기능
This commit is contained in:
parent
a9f970be21
commit
f88bc41937
@ -45,6 +45,7 @@ import kcc.let.utl.fcc.service.ITNotiUtil;
|
|||||||
import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO;
|
import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO;
|
||||||
import kcc.ve.cmm.VeConstants;
|
import kcc.ve.cmm.VeConstants;
|
||||||
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO;
|
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO;
|
||||||
|
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduMIXService;
|
||||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsAplctPrdService;
|
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsAplctPrdService;
|
||||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsCntntVO;
|
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsCntntVO;
|
||||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsDetailVO;
|
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsDetailVO;
|
||||||
@ -133,6 +134,10 @@ public class CndtnTrgtMngController {
|
|||||||
@Resource(name = "iTNotiUtil")
|
@Resource(name = "iTNotiUtil")
|
||||||
private ITNotiUtil iTNotiUtil;
|
private ITNotiUtil iTNotiUtil;
|
||||||
|
|
||||||
|
//과정 관리
|
||||||
|
@Resource(name = "vEEduMIXService")
|
||||||
|
private VEEduMIXService vEEduMIXService;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
// 교육신청 서비스단
|
// 교육신청 서비스단
|
||||||
@ -2417,6 +2422,107 @@ public class CndtnTrgtMngController {
|
|||||||
|
|
||||||
return modelAndView;
|
return modelAndView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//교육신청 확정자 엑셀 다운로드
|
||||||
|
@RequestMapping("/kccadr/oprtn/cndtnSspnIdtmt/trgtEduAplctCnfrmExcel.do")
|
||||||
|
public ModelAndView trgtEduAplctCnfrmExcel(
|
||||||
|
@ModelAttribute("vEPrcsDetailVO") VEPrcsDetailVO vEPrcsDetailVO
|
||||||
|
, ModelMap model
|
||||||
|
, HttpServletRequest request
|
||||||
|
) throws Exception {
|
||||||
|
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("excelDownloadView");
|
||||||
|
|
||||||
|
|
||||||
|
//로그인 처리====================================
|
||||||
|
//로그인 정보 가져오기
|
||||||
|
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
|
||||||
|
SsoLoginVO ssoLoginVO = checkLoginUtil.getSSOLoginVO(request); //SSO 로그인 정보 가져오기
|
||||||
|
|
||||||
|
System.out.println("loginVO.getAuthority() :: "+ loginVO.getAuthority());
|
||||||
|
|
||||||
|
String s_oprtnLoginCheckNInfo = checkLoginUtil.oprtnCheckNInfo(model);
|
||||||
|
if (!"".equals(s_oprtnLoginCheckNInfo)) {
|
||||||
|
modelAndView.addObject(model);
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
|
//로그인 처리====================================
|
||||||
|
|
||||||
|
List<VEEduAplctVO> vEPrcsDetailVOList = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
//과정 신청자 정보 가져오기
|
||||||
|
//해당 과정을 제출한 사용자 정보를 가져온다.
|
||||||
|
VEEduAplctVO paramVO = new VEEduAplctVO();
|
||||||
|
paramVO.setPrcsOrd(vEPrcsDetailVO.getPrcsAplctPrdOrd());
|
||||||
|
paramVO.setSbmtYn("Y");
|
||||||
|
|
||||||
|
// 검색 - 날짜
|
||||||
|
paramVO.setSearchSmbtStartDt(vEPrcsDetailVO.getSearchSmbtStartDt());
|
||||||
|
paramVO.setSearchSmbtEndDt(vEPrcsDetailVO.getSearchSmbtEndDt());
|
||||||
|
// 검색 - 검색어
|
||||||
|
paramVO.setSearchStatus(vEPrcsDetailVO.getSearchStatus());
|
||||||
|
paramVO.setSearchSelStatus(vEPrcsDetailVO.getSearchSelStatus());
|
||||||
|
|
||||||
|
if(StringUtils.isNotEmpty(vEPrcsDetailVO.getSearchStatus())) {
|
||||||
|
|
||||||
|
String searchQuery = "AND vadi.APLCT_STATE_CD = "+vEPrcsDetailVO.getSearchStatus();
|
||||||
|
paramVO.setSearchQuery(searchQuery);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
paramVO.setSiteId("60"); //설문정보를 위해서 설문지의 대상값을 넣는다. VE0011 10-청소년, 20-성인,30-체험, 40-외부, 50-기반, 60-기소
|
||||||
|
vEPrcsDetailVOList = vEEduMIXService.selectTrgtList4Cmplt(paramVO);
|
||||||
|
vEPrcsDetailVOList = egovCryptoUtil.decryptVeEduAplctList(vEPrcsDetailVOList);
|
||||||
|
|
||||||
|
|
||||||
|
//<ve:code codeId="VEA002" code="${list.eduStateCd}"/>
|
||||||
|
|
||||||
|
|
||||||
|
ComDefaultCodeVO vo = new ComDefaultCodeVO();
|
||||||
|
|
||||||
|
for(VEEduAplctVO tmp : vEPrcsDetailVOList) {
|
||||||
|
//교육상태
|
||||||
|
if(StringUtil.isNotEmpty(tmp.getEduStateCd())) {
|
||||||
|
vo.setCodeId("VEA002");
|
||||||
|
vo.setCode(tmp.getEduStateCd());
|
||||||
|
CmmnDetailCode cmmnDetailCodeEduState= egovCmmUseService.selectCmmCodeDetailValue(vo);
|
||||||
|
if (cmmnDetailCodeEduState!=null) tmp.setEduStateCd((StringUtil.escapeXml(cmmnDetailCodeEduState.getCodeNm())));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}catch(Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int[] width = {
|
||||||
|
4000, 5000, 5000, 5000, 3000
|
||||||
|
}; // 너비
|
||||||
|
String[] header = {
|
||||||
|
"신청자", "주민번호앞자리", "이메일", "연락처", "교육이수여부"
|
||||||
|
}; // 헤더에 들어갈 이름
|
||||||
|
String[] order = {
|
||||||
|
"TrgtNm", "DBirth", "Email", "Phone", "EduStateCd"
|
||||||
|
}; // vo 내부의 필드 이름 (첫글자 대문자, 낙타체 사용)
|
||||||
|
|
||||||
|
excelDown(
|
||||||
|
vEPrcsDetailVOList,
|
||||||
|
"교육확정상세-교육신청자",
|
||||||
|
width,
|
||||||
|
header,
|
||||||
|
order,
|
||||||
|
model
|
||||||
|
);
|
||||||
|
|
||||||
|
modelAndView.addObject(model);
|
||||||
|
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|||||||
@ -446,6 +446,13 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fncExcel(){
|
||||||
|
var vForm = document.detailForm ;
|
||||||
|
// listForm.searchCondition.value = $("#searchCondition").val() ;
|
||||||
|
vForm.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/trgtEduAplctCnfrmExcel.do'/>";
|
||||||
|
vForm.submit();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@ -846,6 +853,16 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="btn_wrap btn_layout01">
|
||||||
|
<div class="btn_left">
|
||||||
|
</div>
|
||||||
|
<div class="btn_center">
|
||||||
|
</div>
|
||||||
|
<div class="btn_right">
|
||||||
|
<button type="button" class="btn_type08" onclick="fncExcel();">교육신청자 엑셀 다운로드</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
<p>교육신청자 알림정보</p>
|
<p>교육신청자 알림정보</p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user