refactor:과거사건등록 팝업으로 수정
This commit is contained in:
parent
62b3e52859
commit
6f5bfc669f
@ -240,7 +240,7 @@ public class AdjReqMgrPastController {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("/kccadr/adjReqMgOff/adjReqMgrPastProgRegist.do")
|
||||
@RequestMapping("/kccadr/adjReqMgOff/popup/adjReqMgrPastProgRegist.do")
|
||||
public String adjReqMgrPastProgRegist(@ModelAttribute("adjReqMgrPastVO") AdjReqMgrPastVO adjReqMgrPastVO, ModelMap model) throws Exception {
|
||||
|
||||
//TODO 테스트로 인한 seq 코딩
|
||||
@ -273,7 +273,7 @@ public class AdjReqMgrPastController {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("/kccadr/adjReqMgOff/adjReqMgrPastFileRegist.do")
|
||||
@RequestMapping("/kccadr/adjReqMgOff/popup/adjReqMgrPastFileRegist.do")
|
||||
public String adjReqMgrPastFileRegist(@ModelAttribute("adjReqMgrPastVO") AdjReqMgrPastVO adjReqMgrPastVO, ModelMap model) throws Exception {
|
||||
|
||||
logger.info(" ++ [{}]", adjReqMgrPastVO.getAdrSeq());
|
||||
@ -387,7 +387,7 @@ public class AdjReqMgrPastController {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("/kccadr/adjReqMgOff/adjReqMgrPastRecordRegist.do")
|
||||
@RequestMapping("/kccadr/adjReqMgOff/popup/adjReqMgrPastRecordRegist.do")
|
||||
public String adjReqMgrPastRecordRegist(@ModelAttribute("adjReqMgrPastVO") AdjReqMgrPastVO adjReqMgrPastVO, ModelMap model) throws Exception {
|
||||
|
||||
|
||||
|
||||
@ -1396,10 +1396,14 @@ function fn_goListPage(){
|
||||
|
||||
<!-- btn_wrap -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="area_left">
|
||||
<div class="area_left" style="width:350px;">
|
||||
<button type="button" class="btnType06 progReg">차수등록</button>
|
||||
<button type="button" class="btnType06 fileReg">파일등록</button>
|
||||
<button type="button" class="btnType06 recordReg">이력등록</button>
|
||||
|
||||
</div>
|
||||
<div class="area_right">
|
||||
<button type="button" class="btnType06" onclick="fn_adjReqMgr_insert(); return false;">다음단계 저장 ></button>
|
||||
<button type="button" class="btnType06" onclick="fn_adjReqMgr_insert(); return false;">저장</button>
|
||||
<button class="btnType04" onclick="fn_goListPage(); return false;">목록</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -1409,7 +1413,8 @@ function fn_goListPage(){
|
||||
</div>
|
||||
</div>
|
||||
</form:form>
|
||||
<form id="nextGoPageForm" action="<c:url value='/kccadr/adjReqMgOff/adjReqMgrPastProgRegist.do' />">
|
||||
<%-- <form id="nextGoPageForm" action="<c:url value='/kccadr/adjReqMgOff/adjReqMgrPastProgRegist.do' />"> --%>
|
||||
<form id="nextGoPageForm">
|
||||
<input type="hidden" id="adrSeqHidden" name="adrSeq" value="<c:out value="${adrVO.adrSeq }" />" />
|
||||
</form>
|
||||
<!-- //cont -->
|
||||
|
||||
@ -34,15 +34,15 @@
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$('#goPage').on('click', function(){
|
||||
$('#goPageForm').attr('action', '<c:url value="/kccadr/adjReqMgOff/adjReqMgrPastRecordRegist.do" />');
|
||||
$('#goPageForm').submit();
|
||||
});
|
||||
// $('#goPage').on('click', function(){
|
||||
// $('#goPageForm').attr('action', '<c:url value="/kccadr/adjReqMgOff/adjReqMgrPastRecordRegist.do" />');
|
||||
// $('#goPageForm').submit();
|
||||
// });
|
||||
|
||||
$('#prevPage').on('click', function(){
|
||||
$('#goPageForm').attr('action', '<c:url value="/kccadr/adjReqMgOff/adjReqMgrPastProgRegist.do" />');
|
||||
$('#goPageForm').submit();
|
||||
});
|
||||
// $('#prevPage').on('click', function(){
|
||||
// $('#goPageForm').attr('action', '<c:url value="/kccadr/adjReqMgOff/adjReqMgrPastProgRegist.do" />');
|
||||
// $('#goPageForm').submit();
|
||||
// });
|
||||
});
|
||||
|
||||
//더하기 버튼 alert
|
||||
@ -247,11 +247,11 @@ function fn_goListPage(){
|
||||
<!-- 하단 버튼 -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="area_left">
|
||||
<button type="button" id="prevPage" class="btnType04">< 이전단계 이동</button>
|
||||
<!-- <button type="button" id="prevPage" class="btnType04">< 이전단계 이동</button> -->
|
||||
</div>
|
||||
<div class="area_right">
|
||||
<button type="button" id="goPage" class="btnType06">다음단계 이동 ></button>
|
||||
<button class="btnType04" onclick="fn_goListPage(); return false;">목록</button>
|
||||
<!-- <button type="button" id="goPage" class="btnType06">다음단계 이동 ></button> -->
|
||||
<button class="btnType04" onclick="window.close(); return false;">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //하단 버튼 -->
|
||||
|
||||
@ -183,11 +183,12 @@ function fn_goListPage(){
|
||||
<!-- //list -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="area_left">
|
||||
<button type="button" id="prevPage" class="btnType04">< 이전단계 이동</button>
|
||||
<!-- <button type="button" id="prevPage" class="btnType04">< 이전단계 이동</button> -->
|
||||
</div>
|
||||
<div class="area_right">
|
||||
<button type="button" id="goPage" class="btnType06">다음단계 이동 ></button>
|
||||
<button class="btnType04" onclick="fn_goListPage(); return false;">목록</button>
|
||||
<!-- <button type="button" id="goPage" class="btnType06">다음단계 이동 ></button> -->
|
||||
<!-- <button class="btnType04" onclick="fn_goListPage(); return false;">목록</button> -->
|
||||
<button class="btnType04" onclick="window.close(); return false;">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //page -->
|
||||
|
||||
@ -220,7 +220,8 @@ $(document).on('click','#regBtn', function(){
|
||||
console.log('data : ', data);
|
||||
if(data.status == 'OK'){
|
||||
alert(data.data);
|
||||
fn_goListPage();
|
||||
window.close();
|
||||
// fn_goListPage();
|
||||
// $('#adrSeq').val(data.dataSub);
|
||||
// $('#nextGoPageForm').submit();
|
||||
}
|
||||
@ -401,11 +402,11 @@ function fn_goListPage(){
|
||||
<!-- //page -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="area_left">
|
||||
<button type="button" id="prevPage" class="btnType04">< 이전단계 이동</button>
|
||||
<!-- <button type="button" id="prevPage" class="btnType04">< 이전단계 이동</button> -->
|
||||
</div>
|
||||
<div class="area_right">
|
||||
<button type="button" id="regBtn" class="btnType06">완료</button>
|
||||
<button class="btnType04" onclick="fn_goListPage(); return false;">목록</button>
|
||||
<button type="button" id="regBtn" class="btnType06">저장</button>
|
||||
<!-- <button class="btnType04" onclick="window.close(); return false;">닫기</button> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -31,7 +31,22 @@ function openExampleAdminPop(exmpCd) {
|
||||
commonPopWindowopenForm("/kccadr/adjPgrMgr/apm/popup/"+uri, '600', '400', "openExampleAdminPop", $('#pop'));
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.progReg').on('click', function(){
|
||||
commonPopWindowopenForm("/kccadr/adjReqMgOff/popup/adjReqMgrPastProgRegist.do", '820', '600', "adjReqMgrPastProgRegist", $('#nextGoPageForm'));
|
||||
});
|
||||
|
||||
$('.fileReg').on('click', function(){
|
||||
commonPopWindowopenForm("/kccadr/adjReqMgOff/popup/adjReqMgrPastFileRegist.do", '1250', '600', "adjReqMgrPastFileRegist", $('#nextGoPageForm'));
|
||||
});
|
||||
|
||||
$('.recordReg').on('click', function(){
|
||||
commonPopWindowopenForm("/kccadr/adjReqMgOff/popup/adjReqMgrPastRecordRegist.do", '1250', '600', "adjReqMgrPastRecordRegist", $('#nextGoPageForm'));
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
최종결과 선택에 따른 액션
|
||||
|
||||
@ -1088,7 +1088,7 @@
|
||||
var msg = "";
|
||||
var url = "";
|
||||
|
||||
console.log('$(#adrSeq).val() :', $('#adrSeq').val());
|
||||
// var regUpdt = false;
|
||||
if($('#adrSeq').val() != '')
|
||||
{
|
||||
msg= "조정신청 정보 수정을 진행하시겠습니까?";
|
||||
@ -1117,9 +1117,18 @@
|
||||
success: function (data) {
|
||||
alert(data.data);
|
||||
if(data.status == 'OK')
|
||||
{
|
||||
if($('#adrSeqHidden').val() == null)
|
||||
{
|
||||
$('#adrSeqHidden').val(data.dataSub);
|
||||
$('#nextGoPageForm').submit();
|
||||
}
|
||||
if($('#adrSeq').val() == null)
|
||||
{
|
||||
$('#adrSeq').val(data.dataSub);
|
||||
}
|
||||
|
||||
|
||||
// $('#nextGoPageForm').submit();
|
||||
}
|
||||
else if(data.status == 'Unauthorized' || data.status == 'BAD_REQUEST')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user