이지우 - 관리자 > 과정관리 > 과정신청기간관리 > 첨부파일 수정, 강사 주소지 수정
This commit is contained in:
parent
e2866776d3
commit
216582111f
@ -2853,21 +2853,45 @@ public class CmdPrcsInfoMngController {
|
||||
|
||||
|
||||
|
||||
//step2.파일 처리====================================
|
||||
//파일 정상 처리 여부와 첨부 파일 정보
|
||||
//String atchFileId = this.takeFile(multiRequest, modelAndView, bmVO);
|
||||
//파일 제한 수량 가져오기, 없으면 기본값 사용
|
||||
int i_file_limit = checkFileUtil.getLimitCount(request); // file count
|
||||
int i_limit_size = checkFileUtil.getLimitSize(request); // file MB
|
||||
String s_file_exts = checkFileUtil.getS_exts(); // file exts
|
||||
|
||||
String atchFileId = checkFileUtil.fileValCheckNdbInsert(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_" //file_name_prefix
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
); //EXT, MB size and ea
|
||||
//step2.첨부파일 체크 후 저장 하기
|
||||
String atchFileId = "";
|
||||
atchFileId = vEPrcsDetailVO.getAtchFileId();
|
||||
|
||||
//DB에서 실제 첨부파일 존재 여부 확인
|
||||
FileVO fileVO = new FileVO();
|
||||
fileVO.setAtchFileId(atchFileId);
|
||||
List<FileVO> result = fileService.selectFileInfs(fileVO);
|
||||
if (result.size()<=0) {
|
||||
atchFileId = "";
|
||||
}
|
||||
|
||||
//파일 제한 수량 가져오기, 없으면 기본값 사용
|
||||
int i_file_limit = checkFileUtil.getLimitCount(request); // file count
|
||||
int i_limit_size = checkFileUtil.getLimitSize(request); // file MB
|
||||
String s_file_exts = checkFileUtil.getS_exts(); // file exts
|
||||
|
||||
if ("".equals(atchFileId)) {
|
||||
//파일 정상 처리 여부와 첨부 파일 정보
|
||||
atchFileId = checkFileUtil.fileValCheckNdbInsert(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_" //file_name_prefix
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
); //EXT, MB size and ea
|
||||
|
||||
}else {
|
||||
|
||||
atchFileId = checkFileUtil.fileValCheckNdbUpdate(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_"
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
, atchFileId
|
||||
); //EXT, MB size and ea
|
||||
|
||||
}
|
||||
|
||||
if ("ERROR".equals(atchFileId)) return modelAndView;
|
||||
|
||||
|
||||
@ -2848,40 +2848,63 @@ public class CndtnPrcsInfoMngController {
|
||||
SsoLoginVO ssoLoginVO = checkLoginUtil.getSSOLoginVO(request); //SSO 로그인 정보 가져오기
|
||||
|
||||
|
||||
//step2.첨부파일 체크 후 저장 하기
|
||||
String atchFileId = "";
|
||||
atchFileId = vEPrcsDetailVO.getAtchFileId();
|
||||
|
||||
//DB에서 실제 첨부파일 존재 여부 확인
|
||||
FileVO fileVO = new FileVO();
|
||||
fileVO.setAtchFileId(atchFileId);
|
||||
List<FileVO> result = fileService.selectFileInfs(fileVO);
|
||||
if (result.size()<=0) {
|
||||
atchFileId = "";
|
||||
}
|
||||
|
||||
//step2.파일 처리====================================
|
||||
//파일 정상 처리 여부와 첨부 파일 정보
|
||||
//String atchFileId = this.takeFile(multiRequest, modelAndView, bmVO);
|
||||
//파일 제한 수량 가져오기, 없으면 기본값 사용
|
||||
int i_file_limit = checkFileUtil.getLimitCount(request); // file count
|
||||
int i_limit_size = checkFileUtil.getLimitSize(request); // file MB
|
||||
String s_file_exts = checkFileUtil.getS_exts(); // file exts
|
||||
|
||||
String atchFileId = checkFileUtil.fileValCheckNdbInsert(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_" //file_name_prefix
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
); //EXT, MB size and ea
|
||||
//파일 제한 수량 가져오기, 없으면 기본값 사용
|
||||
int i_file_limit = checkFileUtil.getLimitCount(request); // file count
|
||||
int i_limit_size = checkFileUtil.getLimitSize(request); // file MB
|
||||
String s_file_exts = checkFileUtil.getS_exts(); // file exts
|
||||
|
||||
if ("".equals(atchFileId)) {
|
||||
//파일 정상 처리 여부와 첨부 파일 정보
|
||||
atchFileId = checkFileUtil.fileValCheckNdbInsert(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_" //file_name_prefix
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
); //EXT, MB size and ea
|
||||
|
||||
}else {
|
||||
|
||||
atchFileId = checkFileUtil.fileValCheckNdbUpdate(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_"
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
, atchFileId
|
||||
); //EXT, MB size and ea
|
||||
|
||||
}
|
||||
|
||||
if ("ERROR".equals(atchFileId)) return modelAndView;
|
||||
|
||||
|
||||
//String prcsAplctPrdOrd = prcsAplctPrdGnrService.getNextStringId(); // 고유ID
|
||||
//vEPrcsDetailVO.setPrcsAplctPrdOrd(prcsAplctPrdOrd);
|
||||
vEPrcsDetailVO.setLctrDivCd("60"); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부
|
||||
vEPrcsDetailVO.setLastUpdusrId(loginVO.getUniqId()); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부
|
||||
//vEPrcsDetailVO.setUseYn("Y");
|
||||
vEPrcsDetailVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id
|
||||
vEPrcsDetailVO.setAtchFileId(atchFileId);
|
||||
|
||||
vEPrcsAplctPrdService.update(vEPrcsDetailVO);
|
||||
|
||||
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
|
||||
return modelAndView;
|
||||
//String prcsAplctPrdOrd = prcsAplctPrdGnrService.getNextStringId(); // 고유ID
|
||||
//vEPrcsDetailVO.setPrcsAplctPrdOrd(prcsAplctPrdOrd);
|
||||
vEPrcsDetailVO.setLctrDivCd("60"); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부
|
||||
vEPrcsDetailVO.setLastUpdusrId(loginVO.getUniqId()); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부
|
||||
//vEPrcsDetailVO.setUseYn("Y");
|
||||
vEPrcsDetailVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id
|
||||
vEPrcsDetailVO.setAtchFileId(atchFileId);
|
||||
|
||||
vEPrcsAplctPrdService.update(vEPrcsDetailVO);
|
||||
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -2654,21 +2654,45 @@ public class PreventMngController {
|
||||
|
||||
|
||||
|
||||
//step2.파일 처리====================================
|
||||
//파일 정상 처리 여부와 첨부 파일 정보
|
||||
//String atchFileId = this.takeFile(multiRequest, modelAndView, bmVO);
|
||||
//파일 제한 수량 가져오기, 없으면 기본값 사용
|
||||
int i_file_limit = checkFileUtil.getLimitCount(request); // file count
|
||||
int i_limit_size = checkFileUtil.getLimitSize(request); // file MB
|
||||
String s_file_exts = checkFileUtil.getS_exts(); // file exts
|
||||
|
||||
String atchFileId = checkFileUtil.fileValCheckNdbInsert(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_" //file_name_prefix
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
); //EXT, MB size and ea
|
||||
//step2.첨부파일 체크 후 저장 하기
|
||||
String atchFileId = "";
|
||||
atchFileId = vEPrcsDetailVO.getAtchFileId();
|
||||
|
||||
//DB에서 실제 첨부파일 존재 여부 확인
|
||||
FileVO fileVO = new FileVO();
|
||||
fileVO.setAtchFileId(atchFileId);
|
||||
List<FileVO> result = fileService.selectFileInfs(fileVO);
|
||||
if (result.size()<=0) {
|
||||
atchFileId = "";
|
||||
}
|
||||
|
||||
//파일 제한 수량 가져오기, 없으면 기본값 사용
|
||||
int i_file_limit = checkFileUtil.getLimitCount(request); // file count
|
||||
int i_limit_size = checkFileUtil.getLimitSize(request); // file MB
|
||||
String s_file_exts = checkFileUtil.getS_exts(); // file exts
|
||||
|
||||
if ("".equals(atchFileId)) {
|
||||
//파일 정상 처리 여부와 첨부 파일 정보
|
||||
atchFileId = checkFileUtil.fileValCheckNdbInsert(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_" //file_name_prefix
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
); //EXT, MB size and ea
|
||||
|
||||
}else {
|
||||
|
||||
atchFileId = checkFileUtil.fileValCheckNdbUpdate(
|
||||
multiRequest, modelAndView
|
||||
, "APLCT_"
|
||||
, s_file_exts
|
||||
, i_limit_size
|
||||
, i_file_limit
|
||||
, atchFileId
|
||||
); //EXT, MB size and ea
|
||||
|
||||
}
|
||||
|
||||
if ("ERROR".equals(atchFileId)) return modelAndView;
|
||||
|
||||
|
||||
@ -225,6 +225,7 @@
|
||||
</form:form>
|
||||
<form:form id="createForm" name="createForm" commandName="vEPrcsDetailVO" method="post">
|
||||
<input type="hidden" name="prcsAplctPrdOrd" value="<c:out value='${vEPrcsDetailVO.prcsAplctPrdOrd}' default='1' />"/>
|
||||
<input type="hidden" name="atchFileId" value="<c:out value='${info.atchFileId}' />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
@ -141,9 +141,9 @@
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 11%;">
|
||||
<col style="width: 15%;">
|
||||
<%-- <col style="width: 10%"> --%>
|
||||
<col style="width: auto;">
|
||||
<%-- <col style="width: 10%"> --%>
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<%-- <col style="width: 9%;"> --%>
|
||||
@ -152,7 +152,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">거주<br>지역</th>
|
||||
<th scope="col">주소</th>
|
||||
<!-- <th scope="col">이동<br>거리</th> -->
|
||||
<th scope="col">선호분야</th>
|
||||
<th scope="col">온라인</th>
|
||||
@ -165,7 +165,7 @@
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td><c:out value='${list.instrNm}'/></td>
|
||||
<td><c:out value='${list.rsdne}'/></td>
|
||||
<td><c:out value='${list.addr}'/> <c:out value='${list.addrDetail}'/></td>
|
||||
<%-- <td><c:out value='${list.onewayDstnc}'/>Km</td> --%>
|
||||
|
||||
<td><ve:code codeId="VE0004" code="${list.prfrnFldCd}"/></td>
|
||||
|
||||
@ -225,6 +225,7 @@
|
||||
</form:form>
|
||||
<form:form id="createForm" name="createForm" commandName="vEPrcsDetailVO" method="post">
|
||||
<input type="hidden" name="prcsAplctPrdOrd" value="<c:out value='${vEPrcsDetailVO.prcsAplctPrdOrd}' default='1' />"/>
|
||||
<input type="hidden" name="atchFileId" value="<c:out value='${info.atchFileId}' />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
@ -141,9 +141,9 @@
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 11%;">
|
||||
<col style="width: 15%;">
|
||||
<%-- <col style="width: 10%"> --%>
|
||||
<col style="width: auto;">
|
||||
<%-- <col style="width: 10%"> --%>
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<%-- <col style="width: 9%;"> --%>
|
||||
@ -152,7 +152,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">거주<br>지역</th>
|
||||
<th scope="col">주소</th>
|
||||
<!-- <th scope="col">이동<br>거리</th> -->
|
||||
<th scope="col">선호분야</th>
|
||||
<th scope="col">온라인</th>
|
||||
@ -165,7 +165,7 @@
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td><c:out value='${list.instrNm}'/></td>
|
||||
<td><c:out value='${list.rsdne}'/></td>
|
||||
<td><c:out value='${list.addr}'/> <c:out value='${list.addrDetail}'/></td>
|
||||
<%-- <td><c:out value='${list.onewayDstnc}'/>Km</td> --%>
|
||||
|
||||
<td><ve:code codeId="VE0004" code="${list.prfrnFldCd}"/></td>
|
||||
|
||||
@ -225,6 +225,7 @@
|
||||
</form:form>
|
||||
<form:form id="createForm" name="createForm" commandName="vEPrcsDetailVO" method="post">
|
||||
<input type="hidden" name="prcsAplctPrdOrd" value="<c:out value='${vEPrcsDetailVO.prcsAplctPrdOrd}' default='1' />"/>
|
||||
<input type="hidden" name="atchFileId" value="<c:out value='${info.atchFileId}' />" />
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
@ -141,9 +141,9 @@
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 11%;">
|
||||
<col style="width: 15%;">
|
||||
<%-- <col style="width: 10%"> --%>
|
||||
<col style="width: auto;">
|
||||
<%-- <col style="width: 10%"> --%>
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<%-- <col style="width: 9%;"> --%>
|
||||
@ -152,7 +152,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">거주<br>지역</th>
|
||||
<th scope="col">주소</th>
|
||||
<!-- <th scope="col">이동<br>거리</th> -->
|
||||
<th scope="col">선호분야</th>
|
||||
<th scope="col">온라인</th>
|
||||
@ -165,7 +165,7 @@
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<td><c:out value='${list.instrNm}'/></td>
|
||||
<td><c:out value='${list.rsdne}'/></td>
|
||||
<td><c:out value='${list.addr}'/> <c:out value='${list.addrDetail}'/></td>
|
||||
<%-- <td><c:out value='${list.onewayDstnc}'/>Km</td> --%>
|
||||
|
||||
<td><ve:code codeId="VE0004" code="${list.prfrnFldCd}"/></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user