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

View File

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