diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp index b99d5128..d9ac0788 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp @@ -544,7 +544,7 @@ return response.blob(); }) .then((blob) => { - openPDF(blob, filenameInHeader); + FimsSupport.openPDF(blob, filenameInHeader); }) .catch(()=>{}); } else { diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01120-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01120-info.jsp index de4e4ad9..a7349056 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01120-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01120-info.jsp @@ -388,7 +388,7 @@ return response.blob(); }) .then((blob) => { - openPDF(blob, filenameInHeader); + FimsSupport.openPDF(blob, filenameInHeader); }) .catch(()=>{}); } else { diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01140-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01140-info.jsp index d7e2aba0..630b7573 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01140-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01140-info.jsp @@ -189,7 +189,7 @@ $(document).ready(function(){ return response.blob(); }) .then((blob) => { - openPDF(blob, filenameInHeader); + FimsSupport.openPDF(blob, filenameInHeader); }) .catch(()=>{}); } else { diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01150-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01150-info.jsp index 83fd27d8..0cd95c62 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01150-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01150-info.jsp @@ -184,7 +184,7 @@ $(document).ready(function(){ return response.blob(); }) .then((blob) => { - openPDF(blob, filenameInHeader); + FimsSupport.openPDF(blob, filenameInHeader); }) .catch(()=>{}); } else { diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp index 21316fdb..820b8aeb 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp @@ -880,7 +880,7 @@ return response.blob(); }) .then((blob) => { - openPDF(blob, filenameInHeader); + FimsSupport.openPDF(blob, filenameInHeader); }) .catch(() => { }); } else { diff --git a/src/main/webapp/WEB-INF/jsp/fims/stng01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stng01010-main.jsp index 184ea8b5..a845a55e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stng01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stng01010-main.jsp @@ -783,7 +783,7 @@ $(document).ready(function(){ return response.blob(); }) .then((blob) => { - openPDF(blob, "pdf_sample"); + FimsSupport.openPDF(blob, "pdf_sample"); }) .catch(()=>{}); diff --git a/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js b/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js index 0386aaf5..c8e7af7b 100644 --- a/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js +++ b/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js @@ -118,20 +118,7 @@ function ObjectInspector(doctx, data){ }; -/************************************************************************** -* pdf파일 미리보기 창 -**************************************************************************/ -function openPDF(blob, windowName){ - - var popup = window.open( - wctx.url("/resources/html/pdf.html") - ,windowName - ,'top=10, left=10' - ); - popup.onload = () => { - popup.makePdfFromBlob(blob); - }; -} + /************************************************************************** * UI요소 값 세팅 diff --git a/src/main/webapp/resources/js/fims/cmmn/fims-support.js b/src/main/webapp/resources/js/fims/cmmn/fims-support.js index e8f22ead..4a5bde9b 100644 --- a/src/main/webapp/resources/js/fims/cmmn/fims-support.js +++ b/src/main/webapp/resources/js/fims/cmmn/fims-support.js @@ -16,7 +16,8 @@ class FimsSupport { console.log("getActiveRootTabArea() : 현재 활성화된 최상위 탭 영역을 반환한다."); console.log("fnJsonToFormData(json,배열이름) : son객체 안의 jsonArray를 FormData형식의 키로 치환한다."); console.log("fnJsonArrayToFormData(json배열,배열이름) : jsonArray를 FormData형식의 키를 갖는 json으로 치환한다."); - console.log("getCellDefsForPrivacyCell(TD태그의 제이쿼리 객체) : 엑셀다운로드시 개인정보 포함된 셀의 컬럼명을 추출하는 함수"); + console.log("getCellDefsForPrivacyCell(TD태그의 제이쿼리 객체) : 엑셀다운로드시 개인정보 포함된 셀의 컬럼명을 추출하는 함수"); + console.log("openPDF(blob객체,새 창 이름) : PDF파일 미리보기 창 열기"); } /************************************************************************** @@ -449,6 +450,21 @@ class FimsSupport { } } + /************************************************************************** + * PDF파일 미리보기 창 열기 + **************************************************************************/ + static openPDF(blob, windowName){ + + var popup = window.open( + wctx.url("/resources/html/pdf.html") + ,windowName + ,'top=10, left=10' + ); + popup.onload = () => { + popup.makePdfFromBlob(blob); + }; + } + } const BOOTSTRAP_COLS = [