refactor:사용자 조정신청 예문관리 화면 - 수정
This commit is contained in:
parent
7b4b027b08
commit
0c752e796e
@ -630,14 +630,12 @@ public class ApmController {
|
||||
|
||||
model.addAttribute("ccTy", adjstReqVO.getCcTy());
|
||||
model.addAttribute("exmpCd", adjstReqVO.getExmpCd());
|
||||
System.out.println("adjstReqVO.getExmpCd() : "+ adjstReqVO.getExmpCd());
|
||||
|
||||
|
||||
return "/kccadr/adjPgrMgr/apm/popup/adjstReqOpenExamplePop";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 대리인등록 팝업 상세
|
||||
*
|
||||
|
||||
@ -52,6 +52,8 @@ public interface AdjstReqService {
|
||||
public AdjstReqVO selectAdjsMgrMaster(AdjstReqVO adjstReqVO) throws Exception;
|
||||
|
||||
public AdjstReqVO selectAdjstReqOpenExamplePopCn(AdjstReqVO adjstReqVO) throws Exception;
|
||||
|
||||
public AdjstReqVO selectAdjstReqOpenExamplePop(AdjstReqVO adjstReqVO) throws Exception;
|
||||
|
||||
// 조정사건 대리인/신청인/피신청인 정보 불러오기
|
||||
public List<AdjstReqVO> selectAdjsReqUserListByadjSeq(AdjstReqVO adjstReqVO) throws Exception;
|
||||
|
||||
@ -176,6 +176,10 @@ public class AdjstReqDAO extends EgovAbstractDAO {
|
||||
return (AdjstReqVO) select("AdjstReqDAO.selectAdjstReqOpenAnswerExamplePop",adjstReqVO);
|
||||
}
|
||||
|
||||
public AdjstReqVO selectAdjstReqOpenExamplePop(AdjstReqVO adjstReqVO) throws Exception {
|
||||
return (AdjstReqVO) select("AdjstReqDAO.selectAdjstReqOpenExamplePop",adjstReqVO);
|
||||
}
|
||||
|
||||
public int selectRespondentSchChk(AdjstReqVO adjstReqVO) {
|
||||
return (Integer) select("AdjstReqDAO.selectRespondentSchChk", adjstReqVO);
|
||||
}
|
||||
|
||||
@ -1175,4 +1175,9 @@ public class AdjstReqServiceImpl extends EgovAbstractServiceImpl implements Adj
|
||||
|
||||
return new RestResponse(HttpStatus.OK, resultMsg, LocalDateTime.now());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdjstReqVO selectAdjstReqOpenExamplePop(AdjstReqVO adjstReqVO) throws Exception {
|
||||
return adjstReqDAO.selectAdjstReqOpenExamplePop(adjstReqVO);
|
||||
}
|
||||
}
|
||||
|
||||
@ -207,6 +207,30 @@ public class AdjstReqWebController {
|
||||
model.addAttribute("exmpCd", adjstReqVO.getExmpCd());
|
||||
return "/web/kccadr/adjst/popup/adjstReqOpenExamplePop";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 예문 팝업 상세
|
||||
*
|
||||
* @param dlvinfoVO
|
||||
* @param model
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/web/kccadr/adjst/popup/adjstReqOpenExamplePop2.do")
|
||||
public String adjstReqOpenExamplePop2(@ModelAttribute("adjstReqVO") AdjstReqVO adjstReqVO, ModelMap model) throws Exception {
|
||||
|
||||
AdjstReqVO exmp = adjstReqService.selectAdjstReqOpenExamplePop(adjstReqVO);
|
||||
|
||||
if (exmp != null && StringUtils.isNotBlank(exmp.getAtchFileId())) {
|
||||
FileVO fileVO = new FileVO();
|
||||
fileVO.setAtchFileId(exmp.getAtchFileId());
|
||||
List<FileVO> fileList = fileService.selectFileInfs(fileVO);
|
||||
model.addAttribute("fileList", fileList);
|
||||
}
|
||||
model.addAttribute("exmp", exmp);
|
||||
return "/web/kccadr/adjst/popup/adjstReqOpenExamplePop2";
|
||||
}
|
||||
|
||||
@RequestMapping("/web/kccadr/adjst/popup/adjstReqOpenExamplePopCn.do")
|
||||
public ResponseEntity<RestResponse> adjstReqOpenExamplePopCn(@RequestBody AdjstReqVO adjstReqVO) throws Exception {
|
||||
|
||||
@ -891,4 +891,21 @@
|
||||
WHERE T1.code_id = #codeId#
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="AdjstReqDAO.selectAdjstReqOpenExamplePop" parameterClass="AdjstReqVO" resultClass="AdjstReqVO">
|
||||
SELECT
|
||||
T1.EXMP_TIT AS exmpTit
|
||||
,T1.ATCH_FILE_ID AS atchFileId
|
||||
,T1.EXMP_CC_TY AS exmpCcTy
|
||||
,T2.EXMP_CD AS exmpCd
|
||||
,T2.EXMP_CN AS exmpCn
|
||||
FROM
|
||||
ADR_EXMP_MGR T1
|
||||
INNER JOIN ADR_EXMP_DTL T2
|
||||
ON T1.EXMP_CC_TY = T2.EXMP_CC_TY
|
||||
WHERE 1=1
|
||||
AND T1.EXMP_CC_TY = #ccTy#
|
||||
AND T2.EXMP_CD = #exmpCd#
|
||||
</select>
|
||||
|
||||
</sqlMap>
|
||||
|
||||
@ -79,7 +79,7 @@ function tutorialPop(){
|
||||
<div class="inner">
|
||||
<div class="cont_tit">
|
||||
<h2>조정신청</h2>
|
||||
<input type="button" value="튜토리얼" onclick="tutorialPop();"/>
|
||||
<input type="button" value="조정신청서 등록 튜토리얼" onclick="tutorialPop();"/>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@ -242,10 +242,10 @@ function fn_adjstReq_preview() {
|
||||
<%-- <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="btnType02 btn_save" onClick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_NEW}' />'); return false;">임시저장</button>
|
||||
<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="btnType02 btn_save" onClick="AdjstReq.step3Save('<c:out value='${KccadrConstants.ADR_MODE_UPT}' />'); return false;">임시저장</button>
|
||||
<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>
|
||||
|
||||
@ -53,31 +53,31 @@ $(document).ready(function(){
|
||||
/*
|
||||
* 상세내용 select
|
||||
*/
|
||||
function fn_selectCn(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/web/kccadr/adjst/popup/adjstReqOpenExamplePopCn.do",
|
||||
data: JSON.stringify({exmpCd : $("#exmpCd").val()
|
||||
, exmpCcTy : $("#exmpCcTy").val() }),
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: "application/json",
|
||||
cache: false,
|
||||
success: function (data) {
|
||||
if(data.status == "OK"){
|
||||
console.log('data : ', data);
|
||||
$('#exmpCn').text(data.data);
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("조회에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
// function fn_selectCn(){
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: "/web/kccadr/adjst/popup/adjstReqOpenExamplePopCn.do",
|
||||
// data: JSON.stringify({exmpCd : $("#exmpCd").val()
|
||||
// , exmpCcTy : $("#exmpCcTy").val() }),
|
||||
// dataType:'json',
|
||||
// async: false,
|
||||
// processData: false,
|
||||
// contentType: "application/json",
|
||||
// cache: false,
|
||||
// success: function (data) {
|
||||
// if(data.status == "OK"){
|
||||
// console.log('data : ', data);
|
||||
// $('#exmpCn').text(data.data);
|
||||
// }else{
|
||||
// return false;
|
||||
// }
|
||||
// },
|
||||
// error: function (e) { alert("조회에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
// });
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
fn_selectCn();
|
||||
// fn_selectCn();
|
||||
|
||||
})
|
||||
</script>
|
||||
@ -105,7 +105,12 @@ $(document).ready(function(){
|
||||
<kc:code codeId="CC040" code="${exmpCd}"/>
|
||||
</td>
|
||||
<td style="line-height: 30px; text-align: left;">
|
||||
<kc:select codeId="CC002" name="exmpCcTy" id="exmpCcTy" selectedValue="${ccTy}"/>
|
||||
<%-- <kc:select codeId="CC002" name="exmpCcTy" id="exmpCcTy" selectedValue="${ccTy}"/> --%>
|
||||
<select style="width: 135px;">
|
||||
<option value="">사건 유형 1</option>
|
||||
<option value="">사건 유형 2</option>
|
||||
<option value="">사건 유형 3</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -113,6 +118,7 @@ $(document).ready(function(){
|
||||
내용
|
||||
</td>
|
||||
<td id="exmpCn" style="line-height: 30px; text-align: left;" >
|
||||
1)피신청인은 신청인에게 저작권 침해에 따른 손해배상 및 위자료로서 금삼백만원(W3,000,000)을 지급한다. 2)피신청인이 제작, 보유하고 있는 본 건 침해물 <월간 스키라이브>를 조정성립일로부터 14일 이내에 폐기처분한다. 라는 조정을 구합니다
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -0,0 +1,75 @@
|
||||
<%@ 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="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%pageContext.setAttribute("crlf", "\r\n"); %>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>조정신청 예문보기</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="/kccadrPb/usr/script/popup.js"></script>
|
||||
<script type="text/javaScript" language="javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
// 레이어팝업 포커싱 이동 수정
|
||||
var popupTit = $(".cont_tit03").text();
|
||||
|
||||
if(popupTit.trim() == "* 신청취지"){
|
||||
$(".tooltip-close").click(function(){
|
||||
var activeTarget = $('[data-tooltip-con="fee_info_popup"]');
|
||||
activeTarget.hide();
|
||||
$('[data-tooltip="fee_info_popup"]').eq(0).focus();
|
||||
});
|
||||
}else{
|
||||
$(".tooltip-close").click(function(){
|
||||
var activeTarget = $('[data-tooltip-con="fee_info_popup"]');
|
||||
activeTarget.hide();
|
||||
$('[data-tooltip="fee_info_popup"]').eq(1).focus();
|
||||
});
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="popup_wrap fee_info_popup" style="max-width: 580px;" tabindex="0" data-tooltip-con="fee_info_popup" data-focus="fee_info_popup" data-focus-prev="fee_info_popup_close">
|
||||
<div class="popup_tit">
|
||||
<p>조정신청 예문</p> <button class="btn_popup_close tooltip-close" data-focus="fee_info_popup_close" title="팝업 닫기"><i></i></button>
|
||||
</div>
|
||||
<div class="popup_cont">
|
||||
<c:if test="${not empty exmp.exmpCd}">
|
||||
<div class="cont_tit03">
|
||||
* <kc:code codeId="CC040" code="${exmp.exmpCd}"/>
|
||||
</div>
|
||||
</c:if>
|
||||
<table class="popup_tbType01 t_center">
|
||||
<colgroup>
|
||||
<col style="width: 60%;">
|
||||
<col style="width: 40%;">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" style="line-height: 30px; text-align: left;">
|
||||
<c:choose>
|
||||
<c:when test="${not empty exmp.exmpCn}">
|
||||
<c:out value="${fn:replace(exmp.exmpCn, crlf , '<br/>')}" escapeXml="false" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
등록된 내용이 없습니다.
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="btn_wrap">
|
||||
<button class="btnType01 tooltip-close" data-focus="fee_info_popup_close" data-focus-next="fee_info_popup">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1224,8 +1224,19 @@ var AdjstReq = {
|
||||
);
|
||||
},
|
||||
openExamplePop : function(exmpCd){
|
||||
var uri = '';
|
||||
if(exmpCd == '01')
|
||||
{
|
||||
uri = "adjstReqOpenExamplePop.do";
|
||||
}
|
||||
else if (exmpCd == '02')
|
||||
{
|
||||
uri = "adjstReqOpenExamplePop2.do";
|
||||
|
||||
}
|
||||
|
||||
commonPopLayeropen(
|
||||
"/web/kccadr/adjst/popup/adjstReqOpenExamplePop.do"
|
||||
"/web/kccadr/adjst/popup/"+uri
|
||||
, 1100
|
||||
, 600
|
||||
, {ccTy : $("#ccTy").val(), exmpCd : exmpCd}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user