From 2d0c7207f41d04e397cfb08544a1ee547039b0dc Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 14 Jun 2024 16:46:32 +0900 Subject: [PATCH] =?UTF-8?q?FormFields=20=ED=81=B4=EB=9E=98=EC=8A=A4?= =?UTF-8?q?=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/adds/nims/bssh-popup.jsp | 4 ++-- .../webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp | 2 +- .../webapp/WEB-INF/jsp/adds/nims/dsuseMgt-info.jsp | 2 +- .../WEB-INF/jsp/adds/nims/dsuseMgtMapping-info.jsp | 4 ++-- .../WEB-INF/jsp/adds/nims/dsuseMgtMapping-main.jsp | 2 +- .../WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp | 4 ++-- .../WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp | 2 +- .../webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp | 2 +- .../webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp | 2 +- .../webapp/WEB-INF/jsp/adds/nims/product-popup.jsp | 4 ++-- src/main/webapp/WEB-INF/jsp/include/tail.jsp | 2 +- .../js/base/{fimsFormFields.js => addsFormFields.js} | 10 ++-------- 12 files changed, 17 insertions(+), 23 deletions(-) rename src/main/webapp/resources/js/base/{fimsFormFields.js => addsFormFields.js} (91%) diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/bssh-popup.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/bssh-popup.jsp index 42e1bd0..f7c374d 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/bssh-popup.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/bssh-popup.jsp @@ -85,7 +85,7 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.formFields = new FimsFormFields("#frmSearch--${pageName}"); + $P.formFields = new AddsFormFields("#frmSearch--${pageName}"); /************************************************************************** * DatasetControl @@ -219,7 +219,7 @@ content: "현재 " + $P.control.prefixName + " 정보를 선택 하시겠습니까?" , init: () => { setDialogZindex(); } , onOK: () => { - let openPage = new FimsFormFields("#${openPage}"); + let openPage = new AddsFormFields("#${openPage}"); openPage.set (null,$P.control.getCurrent()); // formFields dialog.close("bsshPopupDialog"); } diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp index edb543b..491c29d 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp @@ -149,7 +149,7 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.formFields = new FimsFormFields("#frmSearch--${pageName}"); + $P.formFields = new AddsFormFields("#frmSearch--${pageName}"); /************************************************************************** * DatasetControl diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgt-info.jsp index e28f2f9..e3890a1 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgt-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgt-info.jsp @@ -180,7 +180,7 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.formFields = new FimsFormFields("#frmEdit--${pageName}"); + $P.formFields = new AddsFormFields("#frmEdit--${pageName}"); /************************************************************************** * DatasetControl diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtMapping-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtMapping-info.jsp index b73eceb..44adedc 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtMapping-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtMapping-info.jsp @@ -225,8 +225,8 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.bsshFormFields = new FimsFormFields("#bssh--${pageName}"); - $P.productFormFields = new FimsFormFields("#product--${pageName}"); + $P.bsshFormFields = new AddsFormFields("#bssh--${pageName}"); + $P.productFormFields = new AddsFormFields("#product--${pageName}"); /************************************************************************** * DatasetControl diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtMapping-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtMapping-main.jsp index 064ea48..92ad682 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtMapping-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtMapping-main.jsp @@ -189,7 +189,7 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.formFields = new FimsFormFields("#frmSearch--${pageName}"); + $P.formFields = new AddsFormFields("#frmSearch--${pageName}"); /************************************************************************** * DatasetControl diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp index ba0c769..d6f05cd 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp @@ -173,8 +173,8 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.bsshFormFields = new FimsFormFields("#bssh--${pageName}"); - $P.productFormFields = new FimsFormFields("#product--${pageName}"); + $P.bsshFormFields = new AddsFormFields("#bssh--${pageName}"); + $P.productFormFields = new AddsFormFields("#product--${pageName}"); /************************************************************************** * DatasetControl diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp index beabda6..0bfe6e7 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp @@ -189,7 +189,7 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.formFields = new FimsFormFields("#frmSearch--${pageName}"); + $P.formFields = new AddsFormFields("#frmSearch--${pageName}"); /************************************************************************** * DatasetControl diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp index b8af1d9..c51d131 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp @@ -140,7 +140,7 @@ $P.fileArr = []; // FormFields - $P.formFields = new FimsFormFields("#frmEdit--${pageName}"); + $P.formFields = new AddsFormFields("#frmEdit--${pageName}"); /************************************************************************** * DatasetControl diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp index 42e86b4..a8a67d8 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp @@ -189,7 +189,7 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.formFields = new FimsFormFields("#frmSearch--${pageName}"); + $P.formFields = new AddsFormFields("#frmSearch--${pageName}"); /************************************************************************** * DatasetControl diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp index bae5ac8..201168c 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp @@ -92,7 +92,7 @@ let $P = pageObject["${pageName}"]; // FormFields - $P.formFields = new FimsFormFields("#frmSearch--${pageName}"); + $P.formFields = new AddsFormFields("#frmSearch--${pageName}"); /************************************************************************** * DatasetControl @@ -240,7 +240,7 @@ content: "현재 " + $P.control.prefixName + " 정보를 선택 하시겠습니까?" , init: () => { setDialogZindex(); } , onOK: () => { - let openPage = new FimsFormFields("#${openPage}"); + let openPage = new AddsFormFields("#${openPage}"); openPage.set (null,$P.control.getCurrent()); // formFields dialog.close("productMainDialog"); } diff --git a/src/main/webapp/WEB-INF/jsp/include/tail.jsp b/src/main/webapp/WEB-INF/jsp/include/tail.jsp index 7eec96f..855be53 100644 --- a/src/main/webapp/WEB-INF/jsp/include/tail.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/tail.jsp @@ -35,7 +35,7 @@ - + diff --git a/src/main/webapp/resources/js/base/fimsFormFields.js b/src/main/webapp/resources/js/base/addsFormFields.js similarity index 91% rename from src/main/webapp/resources/js/base/fimsFormFields.js rename to src/main/webapp/resources/js/base/addsFormFields.js index 80686ff..f4b1292 100644 --- a/src/main/webapp/resources/js/base/fimsFormFields.js +++ b/src/main/webapp/resources/js/base/addsFormFields.js @@ -1,7 +1,7 @@ /************************************************************************** -* FimsFormFields +* AddsFormFields **************************************************************************/ -class FimsFormFields extends FormFields { +class AddsFormFields extends FormFields { /** * form 에 json data set @@ -66,12 +66,6 @@ class FimsFormFields extends FormFields { } else { input.value = value; } - - //보안모드 마스킹 항목 - if(input.tagName === 'INPUT' && input.id && input.classList.contains("privacy")){ - let maskVal = value.replace(/./g, "*"); - document.getElementById("mask-"+input.id).value = maskVal; - } } }