2024-01-19 16:27 체험교실 통계 수정
This commit is contained in:
parent
82be7f6228
commit
c483b95de6
@ -8,8 +8,6 @@ import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.poi.EncryptedDocumentException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
@ -21,10 +19,7 @@ import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.ss.usermodel.WorkbookFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import kcc.com.cmm.ComDefaultCodeVO;
|
||||
import kcc.com.cmm.service.EgovCmmUseService;
|
||||
import kcc.ve.oprtn.cndtnSspnIdtmt.trgtMng.service.CndtnTrgtMngVO;
|
||||
|
||||
public class TrgtExcelReader {
|
||||
@ -49,30 +44,38 @@ public class TrgtExcelReader {
|
||||
Row row = sheet.getRow(i);
|
||||
if (row != null) {
|
||||
|
||||
CndtnTrgtMngVO cndtnTrgtMngVO = new CndtnTrgtMngVO();
|
||||
|
||||
// cndtnTrgtMngVO.set getCellValue(row.getCell(0));
|
||||
cndtnTrgtMngVO.setReqPnttm(getCellValue(row.getCell(1))); // 의뢰번호
|
||||
|
||||
String vntInfo[] = getCellValue(row.getCell(2)).split("형제");
|
||||
cndtnTrgtMngVO.setVntYear( vntInfo[0] ); // 사건번호 년
|
||||
cndtnTrgtMngVO.setVntNmbr( vntInfo[1] ); // 사건번호 번호
|
||||
cndtnTrgtMngVO.setCmptntAthrt( getCellValue(row.getCell(3)));
|
||||
cndtnTrgtMngVO.setdBirth( getCellValue(row.getCell(4)).replaceAll("-", "")); // 생년월일
|
||||
cndtnTrgtMngVO.setTrgtNm( getCellValue(row.getCell(5))); // 대상자 이름
|
||||
cndtnTrgtMngVO.setSex( getCellValue(row.getCell(6)));
|
||||
cndtnTrgtMngVO.setAddr( getCellValue(row.getCell(7))); // 주소, detail과 구분해야함
|
||||
cndtnTrgtMngVO.setPost( getCellValue(row.getCell(8))); // 우편번호
|
||||
cndtnTrgtMngVO.setClphone( getCellValue(row.getCell(9)).replaceAll("-", "")); // 핸드폰
|
||||
cndtnTrgtMngVO.setReqNmbr( getCellValue(row.getCell(10))); // 의뢰번호
|
||||
cndtnTrgtMngVO.setPrsctrNm( getCellValue(row.getCell(11))); // 담당검사 이름
|
||||
try {
|
||||
CndtnTrgtMngVO cndtnTrgtMngVO = new CndtnTrgtMngVO();
|
||||
|
||||
// cndtnTrgtMngVO.set getCellValue(row.getCell(0));
|
||||
cndtnTrgtMngVO.setReqPnttm(getCellValue(row.getCell(1))); // 의뢰번호
|
||||
|
||||
System.out.println("row.getCell(2)");
|
||||
System.out.println(row.getCell(2));
|
||||
|
||||
String vntInfo[] = getCellValue(row.getCell(2)).split("형제");
|
||||
cndtnTrgtMngVO.setVntYear( vntInfo[0] ); // 사건번호 년
|
||||
cndtnTrgtMngVO.setVntNmbr( vntInfo[1] ); // 사건번호 번호
|
||||
cndtnTrgtMngVO.setCmptntAthrt( getCellValue(row.getCell(3)));
|
||||
cndtnTrgtMngVO.setdBirth( getCellValue(row.getCell(4)).replaceAll("-", "")); // 생년월일
|
||||
cndtnTrgtMngVO.setTrgtNm( getCellValue(row.getCell(5))); // 대상자 이름
|
||||
cndtnTrgtMngVO.setSex( getCellValue(row.getCell(6)));
|
||||
cndtnTrgtMngVO.setAddr( getCellValue(row.getCell(7))); // 주소, detail과 구분해야함
|
||||
cndtnTrgtMngVO.setPost( getCellValue(row.getCell(8))); // 우편번호
|
||||
cndtnTrgtMngVO.setClphone( getCellValue(row.getCell(9)).replaceAll("-", "")); // 핸드폰
|
||||
cndtnTrgtMngVO.setReqNmbr( getCellValue(row.getCell(10))); // 의뢰번호
|
||||
cndtnTrgtMngVO.setPrsctrNm( getCellValue(row.getCell(11))); // 담당검사 이름
|
||||
|
||||
cndtnTrgtMngVO.setReqStateCd( getCellValue(row.getCell(12)) ); // 의뢰상태 코드 , if로 구분해야함
|
||||
cndtnTrgtMngVO.setEduStateCd( getCellValue(row.getCell(13))); // 교육 상태 코드
|
||||
cndtnTrgtMngVO.setPrcsAplctPrdOrdCmplt( getCellValue(row.getCell(14))); // 병합상태코드
|
||||
cndtnTrgtMngVO.setRmrks( getCellValue(row.getCell(15))); // 비고
|
||||
|
||||
cndtnTrgtInfoMngVOList.add(cndtnTrgtMngVO);
|
||||
cndtnTrgtMngVO.setReqStateCd( getCellValue(row.getCell(12)) ); // 의뢰상태 코드 , if로 구분해야함
|
||||
cndtnTrgtMngVO.setEduStateCd( getCellValue(row.getCell(13))); // 교육 상태 코드
|
||||
cndtnTrgtMngVO.setPrcsAplctPrdOrdCmplt( getCellValue(row.getCell(14))); // 병합상태코드
|
||||
cndtnTrgtMngVO.setRmrks( getCellValue(row.getCell(15))); // 비고
|
||||
|
||||
cndtnTrgtInfoMngVOList.add(cndtnTrgtMngVO);
|
||||
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -304,10 +304,24 @@
|
||||
});
|
||||
alert("발송되었습니다.");
|
||||
}
|
||||
|
||||
function fn_excel_upload() {
|
||||
|
||||
var form = document.excelForm;
|
||||
|
||||
// form.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/popup/duplChkPopup.do'/>";
|
||||
form.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/popup/excelUploadPopup.do'/>";
|
||||
|
||||
window.open("#", "_duplChkPopup", "scrollbars = no, top=100px, left=100px, height=750px, width=950px");
|
||||
form.target = "_duplChkPopup";
|
||||
form.submit();
|
||||
}
|
||||
</script>
|
||||
<title>교육과정관리</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="excelForm" name="excelForm" method="post" >
|
||||
</form>
|
||||
<form id="popForm" name="popForm" method="post">
|
||||
<input type="hidden" name="sspnIdtmtTrgtOrd" value=""/>
|
||||
<input type="hidden" name="targetId" value=""/>
|
||||
@ -606,9 +620,10 @@
|
||||
</div>
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="btn_left">
|
||||
<button type="button" class="btn_type06" onclick="openSmsPopup();">문자발송</button>
|
||||
<button type="button" class="btn_type04" onclick="fn_excel_upload(); return false;">엑셀 업로드</button>
|
||||
</div>
|
||||
<div class="btn_center">
|
||||
<button type="button" class="btn_type06" onclick="openSmsPopup();">문자발송</button>
|
||||
</div>
|
||||
<div class="btn_right">
|
||||
<button type="button" class="btn_type01" onclick="fncCreate(); return false;">등록</button>
|
||||
|
||||
@ -13,6 +13,16 @@
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
$( document ).ready(function(){
|
||||
|
||||
if (${empty list}){
|
||||
alert("운영 중인 체험교실이 없습니다.");
|
||||
location.href = "<c:url value='/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/exprnClsrmAplctGuide.do'/>";
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm ;
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
|
||||
@ -550,7 +550,7 @@
|
||||
<dt>전체 교육인원</dt>
|
||||
<dd>
|
||||
<label for="trgtPrsnlRealTxt" class="label">전체 교육인원</label>
|
||||
<input type="text" id="trgtPrsnlRealTxt" onkeyup="onlyNumber(this);" value="${info.trgtPrsnlReal}" title="전체 교육인원" size="20" maxlength="3">
|
||||
<input type="text" id="trgtPrsnlRealTxt" onblur="onlyNumber(this);" value="${info.trgtPrsnlReal}" title="전체 교육인원" size="20" maxlength="3">
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
}
|
||||
</style>
|
||||
<script type="text/javaScript" language="javascript">
|
||||
var aprvlCd = ${info.aprvlCd}
|
||||
var aprvlCd = "${info.aprvlCd}";
|
||||
|
||||
$( document ).ready(function(){
|
||||
if(${info == null}){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user