diff --git a/src/main/webapp/WEB-INF/jsp/kccadr/adjPgrMgr/arm/armDetail.jsp b/src/main/webapp/WEB-INF/jsp/kccadr/adjPgrMgr/arm/armDetail.jsp index 65332dd6..0bdadd62 100644 --- a/src/main/webapp/WEB-INF/jsp/kccadr/adjPgrMgr/arm/armDetail.jsp +++ b/src/main/webapp/WEB-INF/jsp/kccadr/adjPgrMgr/arm/armDetail.jsp @@ -213,9 +213,10 @@ } //결재 팝업 이후 처리내용 - function fnc_aprvl_pop_ret(param){ - //location.reload(); - fncGoList('list'); //조정진행목록으로 + function fnc_aprvl_pop_ret(sbmtSeq, sbmtTy){ + $('#sbmtSeq').val(sbmtSeq); + $('#sbmtTy').val(sbmtTy); + fncApprPass(); } function sendDlvInfoPop() { @@ -297,6 +298,77 @@ } + /* 조정권고안 승인요청 후 자동으로 조정부장 결재되도록 처리 */ + function fncApprPass(){ + var data = { + adrSeq : $("#adrSeq").val(), + adrSn : $("#adrSn").val(), + sbmtSeq : $("#sbmtSeq").val(), + sbmtTy : $("#sbmtTy").val(), + sbmtYn : 'Y' + } + + var statCd = $('#statCd').val(); + $.ajax({ + type: "POST", + url: "/web/kccadr/adjcclt/ai/adjstConciliatorApmSave.do", + data: JSON.stringify(data), + dataType:'json', + async: false, + processData: false, + contentType: "application/json", + cache: false, + success: function (returnData, status) { + if(returnData.result == 'FAIL'){ + if(returnData.message != ''){ + alert(returnData.message); + }else{ + alert("처리중 오류가 발생하였습니다."); + } + }else if(returnData.result == 'SUCCESS'){ + var s_adrHstryMgrSeq = returnData.adrHstryMgrSeq; + + var exportUrl = ""; + + exportUrl = "/kccadr/adjPgrMgr/arm/armOzExportAjax.do"; + //조정권고안 종결문서 번호 입력 + $('#closeDocTy').val("30"); + ozExportReport(exportUrl); +// alert("승인되었습니다."); + } + location.reload(); + }, + error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); } + }); + } + + function ozExportReport(exportUrl){ + + var data = new FormData(document.getElementById("detailForm")); + + $.ajax({ + type: "POST", + url: exportUrl, + data: data, + dataType:'json', + async: false, + processData: false, + contentType: false, + cache: false, + success: function (returnData, status) { + console.log(returnData.result); + //alert(returnData.result); + if(returnData.result == 'SUCCESS'){ + + }else{ + alert(returnData.message); + } + }, + error: function (e) { alert("Export 요청에 실패하였습니다."); console.log("ERROR : ", e); } + }); + + } +
@@ -310,6 +382,17 @@ + +