Merge branch 'hylee'

This commit is contained in:
hylee 2022-12-20 09:20:38 +09:00
commit e49bf9713f
2 changed files with 267 additions and 266 deletions

View File

@ -1,266 +1,264 @@
ㅊ <%-- ㅊ <%--
대국민 사용자 대국민 사용자
Class Name : adjstReq4Regist.jsp Class Name : adjstReq4Regist.jsp
Description : 조정신청 등록화면4 - 신청취지/원인 정보 등록 Description : 조정신청 등록화면4 - 신청취지/원인 정보 등록
Modification Information Modification Information
수정일 수정자 수정내용 수정일 수정자 수정내용
------- -------- --------------------------- ------- -------- ---------------------------
2021.08.24 우영두 내용 2021.08.24 우영두 내용
author : 우영두 author : 우영두
since : 2021.08.24 since : 2021.08.24
--%> --%>
<%-- 공통 JS 함수 정의 : /jsp/web/com/webLayout.jsp --%> <%-- 공통 JS 함수 정의 : /jsp/web/com/webLayout.jsp --%>
<%@ page contentType="text/html; charset=utf-8"%> <%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %> <%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
<un:useConstants var="KccadrConstants" className="kcc.kccadr.cmm.KccadrConstants" /> <un:useConstants var="KccadrConstants" className="kcc.kccadr.cmm.KccadrConstants" />
<!DOCTYPE html> <!DOCTYPE html>
<html lang="ko"> <html lang="ko">
<head> <head>
<title>신청취지/원인 등록</title> <title>신청취지/원인 등록</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
<style> <style>
input::placeholder{color: #ddd;font-size: 16px;} input::placeholder{color: #ddd;font-size: 16px;}
input:disabled{background-color: #f3f3f3 !important;} input:disabled{background-color: #f3f3f3 !important;}
textarea:disabled{background-color: #f3f3f3 !important;} textarea:disabled{background-color: #f3f3f3 !important;}
.mr15{margin-right: 15px !important;} .mr15{margin-right: 15px !important;}
.btn_wrap.btn_layout03 .btn_right{text-align: right} .btn_wrap.btn_layout03 .btn_right{text-align: right}
.btn_wrap.btn_layout03 .btnType01{height: 46px} .btn_wrap.btn_layout03 .btnType01{height: 46px}
@media all and (max-width: 540px){ @media all and (max-width: 540px){
.btn_wrap.btn_layout03 button{min-width: 90px; padding: 0 6px;} .btn_wrap.btn_layout03 button{min-width: 90px; padding: 0 6px;}
} }
</style> </style>
<%-- <un:useConstants var="KccadrConstants" className="kcc.kccadr.cmm.KccadrConstants" /> --%> <%-- <un:useConstants var="KccadrConstants" className="kcc.kccadr.cmm.KccadrConstants" /> --%>
<script type="text/javaScript" language="javascript"> <script type="text/javaScript" language="javascript">
$( document ).ready(function(){ $( document ).ready(function(){
// 현재 작성단계 셋 // 현재 작성단계 셋
AdjstReq.STEP = "<c:out value='${adjstReqVO.step}' />"; AdjstReq.STEP = "<c:out value='${adjstReqVO.step}' />";
var editData = "<c:out value='${editInfo}'/>"; var editData = "<c:out value='${editInfo}'/>";
editData = editData.replace(/&#034;/g, '"'); editData = editData.replace(/&#034;/g, '"');
if(editData != ""){ if(editData != ""){
AdjstReq.EDIT_DATA = eval("("+editData+")"); AdjstReq.EDIT_DATA = eval("("+editData+")");
} }
<%--AdjstReq.STATUS = '${not empty master ? master.statCd : ''}';--%> <%--AdjstReq.STATUS = '${not empty master ? master.statCd : ''}';--%>
AdjstReq.STATUS = "<c:out value="${not empty master ? master.statCd : ''}" />"; AdjstReq.STATUS = "<c:out value="${not empty master ? master.statCd : ''}" />";
// 페이지 로드 업무 프로세스 // 페이지 로드 업무 프로세스
AdjstReq.pageOnload(); AdjstReq.pageOnload();
// 파일등록이벤트 // 파일등록이벤트
$(".btn_add_file").on('click', function(){ $(".btn_add_file").on('click', function(){
$("#file_temp").click(); $("#file_temp").click();
}); });
//첨부파일 보완요청 없을 시 드래그엔 드랍 방지 //첨부파일 보완요청 없을 시 드래그엔 드랍 방지
var test = '<%= request.getRequestURL() %>'; var test = '<%= request.getRequestURL() %>';
$('.upload_area').bind("drop dragover", function(e){ $('.upload_area').bind("drop dragover", function(e){
e.preventDefault(); e.preventDefault();
if(AdjstReq.EDIT_DATA.attchFileYn != 'Y' && AdjstReq.EDIT_DATA.attchFileYn != undefined){ if(AdjstReq.EDIT_DATA.attchFileYn != 'Y' && AdjstReq.EDIT_DATA.attchFileYn != undefined){
if(test.indexOf('adjstReqRegistStep3.jsp') != -1){ if(test.indexOf('adjstReqRegistStep3.jsp') != -1){
adrstReqRegistStep3EditDataAtchFileYn = 'Y'; adrstReqRegistStep3EditDataAtchFileYn = 'Y';
} }
} }
}); });
}); });
function fncGoPrev() { function fncGoPrev() {
var returnVal = AdjstReq.step3Save("<c:out value='${KccadrConstants.ADR_MODE_UPT_TO_GOPREV}' />"); var returnVal = AdjstReq.step3Save("<c:out value='${KccadrConstants.ADR_MODE_UPT_TO_GOPREV}' />");
console.log('returnVal :: ', returnVal) console.log('returnVal :: ', returnVal)
// AdjstReq.fncGoPrev(); // AdjstReq.fncGoPrev();
} }
//미리보기 팝업 //미리보기 팝업
function fn_adjstReq_preview() { function fn_adjstReq_preview() {
<c:choose> <c:choose>
<c:when test="${empty fn:trim(master.ccTy)}"> <c:when test="${empty fn:trim(master.ccTy)}">
// AdjstReq.step3Save(처리구분, 미리보기화면 여부,) // AdjstReq.step3Save(처리구분, 미리보기화면 여부,)
AdjstReq.step3Save("<c:out value='${KccadrConstants.ADR_MODE_NEW}' />", 'Y', "<c:out value='${adjstReqVO.adrSeq}' />"); AdjstReq.step3Save("<c:out value='${KccadrConstants.ADR_MODE_NEW}' />", 'Y', "<c:out value='${adjstReqVO.adrSeq}' />");
</c:when> </c:when>
<c:otherwise> <c:otherwise>
// AdjstReq.step3Save(처리구분, 미리보기화면 여부) // AdjstReq.step3Save(처리구분, 미리보기화면 여부)
AdjstReq.step3Save("<c:out value='${KccadrConstants.ADR_MODE_UPT}' />", 'Y', "<c:out value='${adjstReqVO.adrSeq}' />"); AdjstReq.step3Save("<c:out value='${KccadrConstants.ADR_MODE_UPT}' />", 'Y', "<c:out value='${adjstReqVO.adrSeq}' />");
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
location.reload(); location.reload();
} }
</script> </script>
</head> </head>
<body> <body>
<form:form id="${KccadrConstants.STEP3}" name="${KccadrConstants.STEP3}" commandName="adjstReqVO" method="post"> <form:form id="${KccadrConstants.STEP3}" name="${KccadrConstants.STEP3}" commandName="adjstReqVO" method="post">
<form:input type="hidden" path="adrSeq" id="adrSeq"/> <form:input type="hidden" path="adrSeq" id="adrSeq"/>
<form:input type="hidden" path="adrSn" id="adrSn"/> <form:input type="hidden" path="adrSn" id="adrSn"/>
<form:input type="hidden" path="edtSn" id="edtSn"/> <form:input type="hidden" path="edtSn" id="edtSn"/>
<form:input type="hidden" path="edtTy" id="edtTy"/> <form:input type="hidden" path="edtTy" id="edtTy"/>
<form:input type="hidden" path="atchFileId" id="atchFileId" value="${master.atchFileId}"/> <form:input type="hidden" path="atchFileId" id="atchFileId" value="${master.atchFileId}"/>
<input type="hidden" name="limitcount" value="10" /> <input type="hidden" name="limitcount" value="10" />
<!-- cont --> <!-- cont -->
<div class="cont_wrap sub02_1" id="sub"> <div class="cont_wrap sub02_1" id="sub">
<div class="inner"> <div class="inner">
<div class="cont_tit"> <div class="cont_tit">
<h2>조정신청</h2> <h2>조정신청</h2>
</div> </div>
<c:import url="/web/kccadr/adjst/none/adjstReqStatusProcess.do"/> <c:import url="/web/kccadr/adjst/none/adjstReqStatusProcess.do"/>
<div class="tb_wrap"> <div class="tb_wrap">
<div class="tb_top"> <div class="tb_top">
<p>신청인 취지/원인</p> <p>신청인 취지/원인</p>
</div> </div>
<table class="tbType01" id="adjstInfo"> <table class="tbType01" id="adjstInfo">
<caption>신청인 취지/원인 정보 : 저작물 종류, 신청취지, 신청이유, 첨부파일등의 정보입력</caption> <caption>신청인 취지/원인 정보 : 저작물 종류, 신청취지, 신청이유, 첨부파일등의 정보입력</caption>
<colgroup> <colgroup>
<col style="width: 250px;"> <col style="width: 250px;">
<col style="width: auto;"> <col style="width: auto;">
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
<th scope="row"> <th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p> <p class="req_text"><span>필수입력 항목</span>*</p>
<p>저작물종류</p> <p>저작물종류</p>
</th> </th>
<td> <td>
<label for="ccTy" class="label">저작물종류 선택</label> <label for="ccTy" class="label">저작물종류 선택</label>
<kc:select codeId="CC002" name="ccTy" id="ccTy" selectedValue="${not empty master.ccTy? master.ccTy : '01'}"/> <kc:select codeId="CC002" name="ccTy" id="ccTy" selectedValue="${not empty master.ccTy? master.ccTy : '01'}"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"> <th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p> <p class="req_text"><span>필수입력 항목</span>*</p>
<p>신청취지</p> <p>신청취지</p>
<button class="btnType01 btn_adr_search examBtn" data-tooltip="fee_info_popup" onclick="AdjstReq.openExamplePop('01'); return false;" title="예문 팝업 열림">예문</button> <button class="btnType01 btn_adr_search examBtn" data-tooltip="fee_info_popup" onclick="AdjstReq.openExamplePop('01'); return false;" title="예문 팝업 열림">예문</button>
</th> </th>
<td> <td>
<label for="reqCn1" class="label">신청취지 입력</label> <label for="reqCn1" class="label">신청취지 입력</label>
<textarea name="reqCn1" id="reqCn1" cols="30" rows="5" cssClass="purpose_text"><c:out value='${master.reqCn1}' /></textarea> <textarea name="reqCn1" id="reqCn1" cols="30" rows="5" cssClass="purpose_text"><c:out value='${master.reqCn1}' /></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"> <th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p> <p class="req_text"><span>필수입력 항목</span>*</p>
<p>신청이유</p> <p>신청이유</p>
<button class="btnType01 btn_adr_search examBtn" data-tooltip="fee_info_popup" onclick="AdjstReq.openExamplePop('02'); return false;" title="예문 팝업 열림">예문</button> <button class="btnType01 btn_adr_search examBtn" data-tooltip="fee_info_popup" onclick="AdjstReq.openExamplePop('02'); return false;" title="예문 팝업 열림">예문</button>
</th> </th>
<td> <td>
<label for="reqCn2" class="label">신청이유 입력</label> <label for="reqCn2" class="label">신청이유 입력</label>
<textarea name="reqCn2" id="reqCn2" cols="30" rows="10" cssClass="purpose_text"><c:out value='${master.reqCn2}' /></textarea> <textarea name="reqCn2" id="reqCn2" cols="30" rows="10" cssClass="purpose_text"><c:out value='${master.reqCn2}' /></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"> <th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p> <p class="req_text"><span>필수입력 항목</span>*</p>
<p>첨부파일</p> <p>첨부파일</p>
</th> </th>
<td id="uploadWarp" class="upload_area"> <td id="uploadWarp" class="upload_area">
<label for="fileNm" class="label">첨부파일 선택</label> <label for="fileNm" class="label">첨부파일 선택</label>
<input type="text" id="fileNm" size="30" class="file_input" readonly><button type="button" class="btnType01 btn_add_file">파일 첨부하기</button>(*파일 종류에 제한이 없습니다.) <input type="text" id="fileNm" size="30" class="file_input" readonly><button type="button" class="btnType01 btn_add_file">파일 첨부하기</button>(*파일 종류에 제한이 없습니다.)
<input type="file" id="file_temp" name="file_temp" class="uploadFile" style="display:none;"/> <input type="file" id="file_temp" name="file_temp" class="uploadFile" style="display:none;"/>
<div class="file_wrap file_upload_box no_img_box"> <div class="file_wrap file_upload_box no_img_box">
<table class="tbType02"> <table class="tbType02">
<caption>첨부파일 리스트 : 파일명, 종류, 크기, 삭제</caption> <caption>첨부파일 리스트 : 파일명, 종류, 크기, 삭제</caption>
<colgroup> <colgroup>
<col style="width: 60%;"> <col style="width: 60%;">
<col style="width: auto;"> <col style="width: auto;">
<col style="width: 20%;"> <col style="width: 20%;">
<col style="width: 10%;"> <col style="width: 10%;">
</colgroup> </colgroup>
<thead> <thead>
<!-- <th> <!-- <th>
<input type="checkbox" id="all_check"><label for="all_check"></label> <input type="checkbox" id="all_check"><label for="all_check"></label>
</th> --> </th> -->
<th scope="col">파일 명</th> <th scope="col">파일 명</th>
<th scope="col">종류</th> <th scope="col">종류</th>
<th scope="col">크기</th> <th scope="col">크기</th>
<th scope="col">삭제</th> <th scope="col">삭제</th>
</thead> </thead>
<tbody class="tb_file_before"> <tbody class="tb_file_before">
<tr> <tr>
<td colspan="4"> <td colspan="4">
<p>첨부하실 파일을 <span>마우스로 끌어서</span> 넣어주세요.</p> <p>첨부하실 파일을 <span>마우스로 끌어서</span> 넣어주세요.</p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="file_wrap fileAfter file_list_div"> <div class="file_wrap fileAfter file_list_div">
<table class="tbType02"> <table class="tbType02">
<caption>첨부파일 리스트 : 파일명, 종류, 크기, 삭제</caption> <caption>첨부파일 리스트 : 파일명, 종류, 크기, 삭제</caption>
<colgroup> <colgroup>
<col style="width: 60%"> <col style="width: 60%">
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 20%"> <col style="width: 20%">
<col style="width: 10%"> <col style="width: 10%">
</colgroup> </colgroup>
<thead> <thead>
<!-- <th> <!-- <th>
<input type="checkbox" id="all_check"><label for="all_check"></label> <input type="checkbox" id="all_check"><label for="all_check"></label>
</th> --> </th> -->
<th scope="col">파일 명</th> <th scope="col">파일 명</th>
<th scope="col">종류</th> <th scope="col">종류</th>
<th scope="col">크기</th> <th scope="col">크기</th>
<th scope="col">삭제</th> <th scope="col">삭제</th>
</thead> </thead>
<tbody id="tbody_fiielist" class="tb_file_after"> <tbody id="tbody_fiielist" class="tb_file_after">
<c:forEach var="fileList" items="${fileList}" varStatus="status"> <c:forEach var="fileList" items="${fileList}" varStatus="status">
<tr class="item_<c:out value='${fileList.atchFileId}' />_<c:out value='${fileList.fileSn}' /> uploaded_obj"> <tr class="item_<c:out value='${fileList.atchFileId}' />_<c:out value='${fileList.fileSn}' /> uploaded_obj">
<input type="hidden" name="fileSize" class="item_file_size" value="<c:out value='${fileList.fileSize}' />"> <input type="hidden" name="fileSize" class="item_file_size" value="<c:out value='${fileList.fileSize}' />">
<td class="td_filename"> <td class="td_filename">
<img src="/direct/img/upload_hwp_img.png" alt="파일" /> <img src="/direct/img/upload_hwp_img.png" alt="파일" />
<span class="file_name_text"><c:out value='${fileList.orignlFileNm}' /></span> <span class="file_name_text"><c:out value='${fileList.orignlFileNm}' /></span>
</td> </td>
<td class="td_filesort"> <td class="td_filesort">
<span class="file_filesort_text" value="<c:out value="${fileList.fileExtsn}"/>">.<c:out value="${fileList.fileExtsn}"/></span> <span class="file_filesort_text" value="<c:out value="${fileList.fileExtsn}"/>">.<c:out value="${fileList.fileExtsn}"/></span>
</td> </td>
<td class="td_filesize"> <td class="td_filesize">
<span class="file_size_text" value="<c:out value="${fileList.fileMg}"/>"><c:out value="${fileList.fileMg}"/></span> <span class="file_size_text" value="<c:out value="${fileList.fileMg}"/>"><c:out value="${fileList.fileMg}"/></span>
</td> </td>
<td class="file_del"> <td class="file_del">
<button type="button" class="btn_del" onclick="delAtchFile('<c:out value='${fileList.atchFileId}' />', '<c:out value='${fileList.fileSn}' />'); return false;" title="파일${status.count} 삭제"><i></i></button> <button type="button" class="btn_del" onclick="delAtchFile('<c:out value='${fileList.atchFileId}' />', '<c:out value='${fileList.fileSn}' />'); return false;" title="파일${status.count} 삭제"><i></i></button>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</tbody> </tbody>
</table> </table>
</div> </div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<p class="cf_text02">제출하신 신청서는 조정조사관이 서류미비시 도움을 드리겠습니다.</p> <p class="cf_text02">제출하신 신청서는 조정조사관이 서류미비시 도움을 드리겠습니다.</p>
</div> </div>
<!-- 하단 버튼 --> <!-- 하단 버튼 -->
<div class="btn_wrap btn_layout03"> <div class="btn_wrap btn_layout03">
<!-- <div class="btn_left"><button type="button" class="btnType04 btn_move" onclick="fncGoPrev();">2단계이동</button></div> --> <!-- <div class="btn_left"><button type="button" class="btnType04 btn_move" onclick="fncGoPrev();">2단계이동</button></div> -->
<div class="btn_left"><button type="button" class="btnType04 btn_move" onclick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_UPT_TO_GOPREV}' />'); return false;">2단계이동</button></div> <div class="btn_left"><button type="button" class="btnType04 btn_move" onclick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_UPT_TO_GOPREV}' />'); return false;">2단계이동</button></div>
<div class="btn_right"> <div class="btn_right">
<!-- <button type="button" class="btnType06 btn_preview" onclick="alert('준비중입니다.'); return false;">미리보기</button> --> <button type="button" class="btnType06 btn_preview" onclick="fn_adjstReq_preview(); return false;" title="새창열림">미리보기</button>
<button type="button" class="btnType06 btn_preview" onclick="fn_adjstReq_preview(); return false;" title="새창열림">미리보기</button> <c:choose>
<%-- <button type="button" class="btnType01" onclick="AdjstReq.stepDelete('${adjstReqVO.adrSeq}'); return false;">신청서 삭제</button> --%> <c:when test="${empty fn:trim(master.ccTy)}">
<c:choose> <button type="button" class="btnType01" onClick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_NEW}' />'); return false;">임시저장</button>
<c:when test="${empty fn:trim(master.ccTy)}"> </c:when>
<button type="button" class="btnType01" onClick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_NEW}' />'); return false;">임시저장</button> <c:otherwise>
</c:when> <button type="button" class="btnType01" onClick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_UPT}' />'); return false;">임시저장</button>
<c:otherwise> </c:otherwise>
<button type="button" class="btnType01" onClick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_UPT}' />'); return false;">임시저장</button> </c:choose>
</c:otherwise> <button type="button" class="btnType02 btn_save" onClick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_SMT}' />'); return false;">조정신청서 제출</button>
</c:choose> </div>
<button type="button" class="btnType02 btn_save" onClick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_SMT}' />'); return false;">조정신청서 제출</button> </div>
</div> <!-- //하단 버튼 -->
</div> </div>
<!-- //하단 버튼 --> </div>
</div> <!-- //cont -->
</div> </form:form>
<!-- //cont --> </body>
</form:form> </html>
</body>
</html>

View File

@ -551,6 +551,9 @@ var AdjstReq = {
data.append("mode" , mode); data.append("mode" , mode);
if(!confirm(msg)){ if(!confirm(msg)){
if(mode == "${KccadrConstants.ADR_MODE_UPT_TO_GOPREV}"){ // 수정 후 전 페이지
AdjstReq.fncGoPrev();
}
return false; return false;
} }