@@ -349,7 +349,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $("#frmSearch--${pageName}");
+ var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@@ -371,7 +371,7 @@ $(document).ready(function(){
var clsForTask = taskSeCd.toLowerCase();
//업무별 조회조건
- renderForTask("frmSearch--${pageName}", clsForTask);
+ renderForTask($P.find("frmSearch"), clsForTask);
//업무별 버튼
renderForTask("gridbuttonArea--${pageName}", clsForTask);
//버튼 이벤트 재매핑
@@ -396,7 +396,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
- var formFields = new FimsFormFields("#frmSearch--${pageName}");
+ var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -447,7 +447,7 @@ $(document).ready(function(){
}
$P.getGridTemplate = () => {
- var clsForTask = $("#frmSearch--${pageName} [name='taskSeCd']:checked").val().toLowerCase();
+ var clsForTask = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
var notFound = [document.getElementById("crdnNotFound--${pageName}").content.querySelector("."+clsForTask+",.cmn").outerHTML];
var foundContent = document.getElementById("crdnRow--${pageName}").content;
var foundTr = $(foundContent).find("tr")[0].cloneNode(false);
@@ -595,21 +595,21 @@ $(document).ready(function(){
/**************************************************************************
* 초기화
**************************************************************************/
- initDatepicker("frmSearch--${pageName}"); //달력 초기화
- initDetailSearchButton("frmSearch--${pageName}");
+ initDatepicker($P.find("frmSearch")); //달력 초기화
+ initDetailSearchButton($P.find("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
if("${taskSeCd}" == ""){
- $("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
} else {
- $("#frmSearch--${pageName} input[name='taskSeCd'][value='" + "${taskSeCd}" + "']").prop("checked",true);
+ $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + "${taskSeCd}" + "']").prop("checked",true);
$P.fnResetAndChangeBiz("${taskSeCd}");
}
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
- $("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
+ $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp
index 57be218b..eaa9b897 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp
@@ -16,7 +16,7 @@
-