Merge branch 'advc' of http://yongjoon.cho@vcs.iten.co.kr:9999/hylee/offedu into advc
This commit is contained in:
commit
e3de874101
@ -352,6 +352,23 @@ public class EgovFileMngController {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("/cmm/fms/selectRsltRprtFileWithDelete.do")
|
||||
public String selectRsltRprtFileWithDelete(@ModelAttribute("searchVO") FileVO fileVO, @RequestParam Map<String, Object> commandMap, ModelMap model) throws Exception {
|
||||
String atchFileId = (String) commandMap.get("param_atchFileId");
|
||||
String eduAplctOrd = (String) commandMap.get("eduAplctOrd");
|
||||
String type = (String) commandMap.get("type");
|
||||
|
||||
fileVO.setAtchFileId(atchFileId);
|
||||
List<FileVO> result = fileService.selectFileInfs(fileVO);
|
||||
model.addAttribute("fileList", result);
|
||||
model.addAttribute("updateFlag", "N");
|
||||
model.addAttribute("fileListCnt", result.size());
|
||||
model.addAttribute("atchFileId", atchFileId);
|
||||
model.addAttribute("eduAplctOrd", eduAplctOrd);
|
||||
model.addAttribute("type", type);
|
||||
|
||||
return "cmm/fms/selectRsltRprtFileWithDelete";
|
||||
}
|
||||
@RequestMapping("/cmm/fms/selectRsltRprtFile.do")
|
||||
public String selectRsltRprtFile(@ModelAttribute("searchVO") FileVO fileVO, @RequestParam Map<String, Object> commandMap, ModelMap model) throws Exception {
|
||||
String atchFileId = (String) commandMap.get("param_atchFileId");
|
||||
|
||||
@ -838,6 +838,9 @@
|
||||
<isNotEmpty property="rndsOrd">
|
||||
, RNDS_ORD = #rndsOrd#
|
||||
</isNotEmpty>
|
||||
<!-- <isNotEmpty property="aplctCn"> -->
|
||||
, APLCT_CN = #aplctCn#
|
||||
<!-- </isNotEmpty> -->
|
||||
WHERE EDU_APLCT_ORD = #eduAplctOrd#
|
||||
</update>
|
||||
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%
|
||||
|
||||
/**
|
||||
@ -83,8 +84,9 @@
|
||||
<c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
||||
<a href="javascript:fn_egov_downFile('<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>')" class="file_download_a" title="다운로드" style="display:inline-block;">
|
||||
<c:out value="${fileVO.orignlFileNm}"/>
|
||||
<fmt:parseDate value="${fileVO.creatDt}" var="creatDt" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
(<fmt:formatDate value="${creatDt}" pattern="yyyy년MM월dd일"/>)
|
||||
</a>
|
||||
<img src="<c:url value='/images/egovframework/com/cmm/btn/btn_del.png' />" class="cursor" onClick="delRsltRprtFile('<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}" />', '<c:out value="${type}"/>'); return false;" alt="첨부파일">
|
||||
<br/>
|
||||
</c:forEach>
|
||||
|
||||
|
||||
@ -0,0 +1,96 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%
|
||||
|
||||
/**
|
||||
* @Class Name : selectScholSealInfs.jsp
|
||||
* @Description : 파일 목록화면
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ---------- ------ ---------------------------
|
||||
* @ 2009.03.26 이삼섭 최초 생성
|
||||
* @ 2011.07.20 옥찬우 <Input> Tag id속성 추가( Line : 68 )
|
||||
*
|
||||
* @author 공통서비스 개발팀 이삼섭
|
||||
* @since 2009.03.26
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<!-- link href="<c:url value='/css/egovframework/com/com.css' />" rel="stylesheet" type="text/css"-->
|
||||
<script type="text/javascript">
|
||||
|
||||
function fn_egov_downFile(atchFileId, fileSn){
|
||||
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
|
||||
}
|
||||
|
||||
/* 등록되어 있는 파일 삭제버튼 클릭시 */
|
||||
function delRsltRprtFile(itemId , fileSn, rprtFileType){
|
||||
if(!confirm("삭제하시겠습니까?")){
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "<c:url value='/kccadr/oprtn/cpyrgExprnClsrm/rsltRprtfileDeleteAjax.do' />",
|
||||
data:{ "atchFileId" : itemId , "fileSn" : fileSn, "eduAplctOrd" : "${eduAplctOrd}", "rprtFileType" : rprtFileType},
|
||||
dataType:'json',
|
||||
cache: false,
|
||||
async: false,
|
||||
timeout: 600000,
|
||||
success: function (returnData, status) {
|
||||
if(status == 'success'){
|
||||
if(returnData.result == 'fail'){
|
||||
alert("삭제처리가 실패하였습니다.");
|
||||
}else if(returnData.result == 'auth_fail'){
|
||||
alert("세션이 종료되었습니다.");
|
||||
}else if(returnData.result =='success'){
|
||||
$('.item_'+returnData.fmsFileVO.atchFileId+"_"+returnData.fmsFileVO.fileSn).remove();
|
||||
alert("삭제되었습니다.");
|
||||
window.location.reload()
|
||||
}
|
||||
}else{
|
||||
alert("삭제처리에 실패하였습니다.");
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
console.log("ERROR : ", e);
|
||||
alert("삭제처리에 실패하였습니다.");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.cursor {
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- <form name="fileForm" action="" method="post" > -->
|
||||
<input type="hidden" name="atchFileId" value="${atchFileId}">
|
||||
<input type="hidden" name="fileSn" >
|
||||
<input type="hidden" name="fileListCnt" id="fileListCnt" value="${fileListCnt}">
|
||||
<c:set var="fileCount" value="${fn:length(fileList) }" />
|
||||
<!-- </form> -->
|
||||
<!--<title>파일목록</title> -->
|
||||
<c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
||||
<a href="javascript:fn_egov_downFile('<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>')" class="file_download_a" title="다운로드" style="display:inline-block;">
|
||||
<c:out value="${fileVO.orignlFileNm}"/>
|
||||
<fmt:parseDate value="${fileVO.creatDt}" var="creatDt" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
(<fmt:formatDate value="${creatDt}" pattern="yyyy년MM월dd일"/>)
|
||||
</a>
|
||||
<img src="<c:url value='/images/egovframework/com/cmm/btn/btn_del.png' />" class="cursor" onClick="delRsltRprtFile('<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}" />', '<c:out value="${type}"/>'); return false;" alt="첨부파일">
|
||||
<br/>
|
||||
</c:forEach>
|
||||
|
||||
<c:if test="${fn:length(fileList) == 0}">
|
||||
</c:if>
|
||||
|
||||
@ -379,7 +379,7 @@
|
||||
<p>첨부파일</p>
|
||||
</th>
|
||||
<td class="file_download" colspan="3">
|
||||
<c:import url="/cmm/fms/selectScholSealInfs.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.oprtnFileId}" />
|
||||
<c:param name="designTy" value="EMPTY" />
|
||||
</c:import>
|
||||
|
||||
@ -248,7 +248,7 @@
|
||||
<p>첨부파일</p>
|
||||
</th>
|
||||
<td class="file_download">
|
||||
<c:import url="/cmm/fms/selectSimpleDownInfs.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.scholSealAtchFileId}" />
|
||||
</c:import>
|
||||
</td>
|
||||
@ -260,7 +260,7 @@
|
||||
<td class="file_download">
|
||||
|
||||
<c:if test="${info.transAtchFileId ne null}">
|
||||
<c:import url="/cmm/fms/selectSimpleDownInfs.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.transAtchFileId}" />
|
||||
</c:import>
|
||||
</c:if>
|
||||
@ -275,7 +275,7 @@
|
||||
<td class="file_download">
|
||||
|
||||
<c:if test="${info.oathAtchFileId ne null}">
|
||||
<c:import url="/cmm/fms/selectSimpleDownInfs.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.oathAtchFileId}" />
|
||||
</c:import>
|
||||
</c:if>
|
||||
@ -336,7 +336,7 @@
|
||||
<td class="file_download">
|
||||
|
||||
<c:if test="${info.planAtchFileId ne null}">
|
||||
<c:import url="/cmm/fms/selectSimpleDownInfs.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.planAtchFileId}" />
|
||||
</c:import>
|
||||
</c:if>
|
||||
@ -363,7 +363,7 @@
|
||||
<p>결과보고서 원본</p>
|
||||
</th>
|
||||
<td class="file_download" colspan="3">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFileWithDelete.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.orgnlRsltAtchFileId}" />
|
||||
<c:param name="eduAplctOrd" value="${info.eduAplctOrd}" />
|
||||
<c:param name="type" value="rslt" />
|
||||
@ -375,7 +375,7 @@
|
||||
<p>결과보고서 평가용</p>
|
||||
</th>
|
||||
<td class="file_download" colspan="3">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFileWithDelete.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.cpyRsltAtchFileId}" />
|
||||
<c:param name="eduAplctOrd" value="${info.eduAplctOrd}" />
|
||||
<c:param name="type" value="cpy" />
|
||||
@ -387,7 +387,7 @@
|
||||
<p>증빙사진</p>
|
||||
</th>
|
||||
<td class="file_download" colspan="3">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFileWithDelete.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.evdncPhtAtchFileId}" />
|
||||
<c:param name="eduAplctOrd" value="${info.eduAplctOrd}" />
|
||||
<c:param name="type" value="evdnc" />
|
||||
@ -399,7 +399,7 @@
|
||||
<p>원격연수 이수증</p>
|
||||
</th>
|
||||
<td class="file_download" colspan="3">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFile.do" charEncoding="utf-8">
|
||||
<c:import url="/cmm/fms/selectRsltRprtFileWithDelete.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.rmtTrnAtchFileId}" />
|
||||
<c:param name="eduAplctOrd" value="${info.eduAplctOrd}" />
|
||||
<c:param name="type" value="rmt" />
|
||||
|
||||
@ -376,6 +376,13 @@
|
||||
$("#mode").val(VeConstants.MODE_UPT);
|
||||
$("#eduAplctOrd").val(info.eduAplctOrd);
|
||||
$("#eduSlctCd").val(info.eduSlctCd);
|
||||
//오프라인의 경우 교육장소 활성화
|
||||
if(info.eduSlctCd == '20'){
|
||||
$("#juso").show();
|
||||
$("#juso").find("input").removeAttr("disabled", "disabled");
|
||||
$("#mechae").hide();
|
||||
$("#mechae").find("input").attr("disabled", "disabled");
|
||||
}
|
||||
$("#eduMd").val(info.eduMd);
|
||||
$("#eduSlctAreaCd").val(info.eduSlctAreaCd);
|
||||
$("#insttNm").val(info.insttNm);
|
||||
@ -385,6 +392,12 @@
|
||||
$("#addrDetail").val(info.addrDetail);
|
||||
$("#chrgNm").val(info.chrgNm);
|
||||
$("#jobNm").val(info.jobNm);
|
||||
if(isNotEmpty(info.aplctCn)){
|
||||
var aplctCnList = info.aplctCn.split(',');
|
||||
$.each(aplctCnList, function(idx, value){
|
||||
$('input[name=aplctCn][value='+value+']').prop('checked',true);
|
||||
});
|
||||
}
|
||||
|
||||
if(!isEmpty(info.clphone)){
|
||||
var clphone = info.clphone.split('-');
|
||||
@ -416,12 +429,17 @@
|
||||
}
|
||||
console.log("+++++++++++++++++++++++++++++++++");
|
||||
var tr = $('.addClassRow').find('tbody > tr').not('.calendar_wrap tr').eq(idx);
|
||||
tr.find('input[name=eduHopeDt]').val(dateFormat(value.eduHopeDt, 'date'));
|
||||
//tr.find('input[name=eduHopeDt]').val(dateFormat(value.eduHopeDt, 'date'));
|
||||
if(isNotEmpty(info.eduHopeDt)){
|
||||
tr.find('input[name=eduHopeDt0]').val(dateFormat(value.eduHopeDt.replace(/\./g, ""), 'date'));
|
||||
tr.find('input[name=eduHopeDt]').val(dateFormat(value.eduHopeDt.replace(/\./g, ""), 'date'));
|
||||
}
|
||||
tr.find('input[name=strtTm]').val(timeFomat(value.strtTm));
|
||||
tr.find('input[name=endTm]').val(timeFomat(value.endTm));
|
||||
tr.find('input[name=lrnTm]').val(value.lrnTm);
|
||||
tr.find('input[name=trgt]').val(value.trgt);
|
||||
tr.find('input[name=prsnl]').val(value.prsnl);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user