|
|
@ -22,7 +22,7 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<form id="frmSearch--${pageName}" name="frmSearch">
|
|
|
|
<form name="frmSearch">
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="col-12">
|
|
|
@ -349,7 +349,7 @@ $(document).ready(function(){
|
|
|
|
* pageObject.function
|
|
|
|
* pageObject.function
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$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='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
@ -371,7 +371,7 @@ $(document).ready(function(){
|
|
|
|
var clsForTask = taskSeCd.toLowerCase();
|
|
|
|
var clsForTask = taskSeCd.toLowerCase();
|
|
|
|
|
|
|
|
|
|
|
|
//업무별 조회조건
|
|
|
|
//업무별 조회조건
|
|
|
|
renderForTask("frmSearch--${pageName}", clsForTask);
|
|
|
|
renderForTask($P.find("frmSearch"), clsForTask);
|
|
|
|
//업무별 버튼
|
|
|
|
//업무별 버튼
|
|
|
|
renderForTask("gridbuttonArea--${pageName}", clsForTask);
|
|
|
|
renderForTask("gridbuttonArea--${pageName}", clsForTask);
|
|
|
|
//버튼 이벤트 재매핑
|
|
|
|
//버튼 이벤트 재매핑
|
|
|
@ -396,7 +396,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
$P.getParams = () => {
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
var formFields = new FimsFormFields($P.selector("frmSearch"));
|
|
|
|
var data = formFields.get();
|
|
|
|
var data = formFields.get();
|
|
|
|
data.fetchSize = $P.ctrl.defaultFetchSize;
|
|
|
|
data.fetchSize = $P.ctrl.defaultFetchSize;
|
|
|
|
|
|
|
|
|
|
|
@ -447,7 +447,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.getGridTemplate = () => {
|
|
|
|
$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 notFound = [document.getElementById("crdnNotFound--${pageName}").content.querySelector("."+clsForTask+",.cmn").outerHTML];
|
|
|
|
var foundContent = document.getElementById("crdnRow--${pageName}").content;
|
|
|
|
var foundContent = document.getElementById("crdnRow--${pageName}").content;
|
|
|
|
var foundTr = $(foundContent).find("tr")[0].cloneNode(false);
|
|
|
|
var foundTr = $(foundContent).find("tr")[0].cloneNode(false);
|
|
|
@ -595,21 +595,21 @@ $(document).ready(function(){
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기화
|
|
|
|
* 초기화
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
initDatepicker("frmSearch--${pageName}"); //달력 초기화
|
|
|
|
initDatepicker($P.find("frmSearch")); //달력 초기화
|
|
|
|
initDetailSearchButton("frmSearch--${pageName}");
|
|
|
|
initDetailSearchButton($P.find("frmSearch"));
|
|
|
|
|
|
|
|
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
if("${taskSeCd}" == ""){
|
|
|
|
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);
|
|
|
|
$P.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
} else {
|
|
|
|
} 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}");
|
|
|
|
$P.fnResetAndChangeBiz("${taskSeCd}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
|
|
|
|
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");
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|