refactor:체험하기 하단 버튼 수정

This commit is contained in:
hylee 2022-11-11 18:13:58 +09:00
parent ec53ce06b1
commit 30b2ceb324
3 changed files with 49 additions and 7 deletions

View File

@ -60,6 +60,20 @@ $( document ).ready(function(){
}
});
}
$('.temporaryBtn').click(function(){
console.log($(this).hasClass('udpate'));
if(confirm("신청인 정보 임시저장을 진행하시겠습니까?"))
{
if(confirm("신청인 정보 임시저장이 완료되었습니다.\n다음 페이지로 이동하시겠습니까?"))
{
document.STEP7.action = "/web/kccadr/adjstExp/adjstReqRegistStep2.do";
document.STEP7.submit();
}
}
});
});
@ -547,11 +561,12 @@ $( document ).ready(function(){
<div class="btn_wrap btn_layout01">
<c:choose>
<c:when test="${empty adjstReqVO.adrSeq}">
<button type="button" class="btnType02 btn_save" onclick="AdjstReq.step1Save('${KccadrConstants.ADR_MODE_NEW}'); return false;">임시저장</button>
<button type="button" class="btnType01 insert temporaryBtn">임시저장</button>
<button type="button" class="btnType02 btn_save" onclick="AdjstReq.step1Save('${KccadrConstants.ADR_MODE_NEW}'); return false;">2단계 이동</button>
</c:when>
<c:otherwise>
<%-- <button type="button" class="btnType01" onclick="AdjstReq.stepDelete('${adjstReqVO.adrSeq}'); return false;">신청서 삭제</button> --%>
<button type="button" class="btnType02 btn_save" onclick="AdjstReq.step1Save('${KccadrConstants.ADR_MODE_UPT}'); return false;">임시저장</button>
<button type="button" class="btnType01 udpate temporaryBtn">임시저장</button>
<button type="button" class="btnType02 btn_save" onclick="AdjstReq.step1Save('${KccadrConstants.ADR_MODE_UPT}'); return false;">2단계 이동</button>
</c:otherwise>
</c:choose>
</div>

View File

@ -65,6 +65,19 @@
if ($("button.delPerson").length>0){
//$("button.delPerson:eq(0)").hide();
}
$('.temporaryBtn').click(function(){
console.log($(this).hasClass('udpate'));
if(confirm("피신청인 정보 임시저장을 진행하시겠습니까?"))
{
if(confirm("피신청인 정보 임시저장이 완료되었습니다.\n다음 페이지로 이동하시겠습니까?"))
{
document.STEP8.action = "/web/kccadr/adjstExp/adjstReqRegistStep3.do";
document.STEP8.submit();
}
}
});
});
</script>
@ -492,15 +505,15 @@
<c:when test="${fn:length(list) eq 0}">
<div class="btn_right">
<!-- <button type="button" class="btnType01" onclick="AdjstReq.stepDelete('${adjstReqVO.adrSeq}'); return false;">신청서 삭제</button> -->
<button type="button" class="btnType02 btn_save" onclick="AdjstReq.step2Save('${KccadrConstants.ADR_MODE_NEW}'); return false">임시저장</button>
<button type="button" class="btnType01 insert temporaryBtn">임시저장</button>
<button type="button" class="btnType02 btn_save" onclick="AdjstReq.step2Save('${KccadrConstants.ADR_MODE_NEW}'); return false">3단계 이동</button>
</div>
</c:when>
<c:otherwise>
<div class="btn_right">
<%-- <button type="button" class="btnType01" onclick="AdjstReq.stepDelete('${adjstReqVO.adrSeq}'); return false;">신청서 삭제</button> --%>
<button type="button" class="btnType02 btn_save" onclick="AdjstReq.step2Save('${KccadrConstants.ADR_MODE_UPT}'); return false">임시저장</button>
<button type="button" class="btnType01 insert temporaryBtn">임시저장</button>
<button type="button" class="btnType02 btn_save" onclick="AdjstReq.step2Save('${KccadrConstants.ADR_MODE_UPT}'); return false">3단계 이동</button>
</div>
</c:otherwise>
</c:choose>

View File

@ -77,6 +77,19 @@ $( document ).ready(function(){
alert("체험하기 기능 입니다.");
});
$('.temporaryBtn').click(function(){
console.log($(this).hasClass('udpate'));
if(confirm("신청인 취지/원인 정보 임시저장을 진행하시겠습니까?"))
{
if(confirm("신청인 취지/원인 정보 임시저장이 완료되었습니다.\n다음 페이지로 이동하시겠습니까?"))
{
document.STEP9.action = "/web/kccadr/adjstExp/adjstReqRegistStep3.do";
document.STEP9.submit();
}
}
});
});
function fncGoList(status) {
@ -220,6 +233,7 @@ function fncGoList(status) {
<div class="btn_wrap btn_layout03">
<div class="btn_left"><!--<button type="button" class="btnType04 btn_move" onclick="AdjstReq.fncGoPrev();">2단계이동</button>--></div>
<div class="btn_right">
<button type="button" class="btnType01 insert temporaryBtn">임시저장</button>
<button type="button" class="btnType02 btn_save" onClick="fncGoList(''); return false;">조정신청서 제출</button>
</div>
</div>