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