소스정리(html엘리먼트 id제거 및 name추가)

main
이범준 3 months ago
parent f26611ba16
commit 5c59e41a63

@ -7,17 +7,17 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
</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-6"> <div class="col-6">
@ -53,16 +53,18 @@
</form> </form>
<div> <div>
<div id="gridbuttonArea--${pageName}" class="container-page-btn"> <div name="gridbuttonArea" class="container-page-btn">
<div class="d-flex flex-row justify-content-between"> <div class="d-flex flex-row justify-content-between">
<span id="layoutPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></span> <span id="layoutPaging--${pageName}PagingInfo"
<ul id="layoutPaging--${pageName}" class="pagination pagination-primary"> name="layoutPagingPagingInfo" class="dataTables_info" role="status" aria-live="polite"></span>
<ul id="layoutPaging--${pageName}"
name="layoutPaging" class="pagination pagination-primary">
</ul> </ul>
</div> </div>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" class="btn btn-primary w-px-120" <button type="button" class="btn btn-primary w-px-120"
id="btnAdd--${pageName}" title="추가"> name="btnAdd" title="추가">
추가 추가
</button> </button>
</span> </span>
@ -70,12 +72,11 @@
</div> </div>
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-500"> <div name="table-responsive" class="table-responsive ox-scroll oy-scroll h-px-500">
<table id="DataTables_Table_0--${pageName}" <table class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr id="layoutThead--${pageName}"> <tr>
<th style="width: 80px;">No.</th> <th style="width: 80px;">No.</th>
<th style="width: 160px;">업무명</th> <th style="width: 160px;">업무명</th>
<th style="width: 240px;">부서명</th> <th style="width: 240px;">부서명</th>
@ -85,9 +86,9 @@
<th class="cmn dummy-th"></th> <th class="cmn dummy-th"></th>
</tr> </tr>
</thead> </thead>
<tbody id="layoutTbody--${pageName}"> <tbody name="layoutTbody">
</tbody> </tbody>
<template id="layoutRow--${pageName}"> <template name="layoutRow">
<tr data-key="{FILE_LAYOUT_ID}"> <tr data-key="{FILE_LAYOUT_ID}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{TASK_SE_NM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{TASK_SE_NM}</td>
@ -98,7 +99,7 @@
<td class="dummy-td cmn"></td> <td class="dummy-td cmn"></td>
</tr> </tr>
</template> </template>
<template id="layoutNotFound--${pageName}"> <template name="layoutNotFound">
<tr> <tr>
<td valign="top" colspan="7" class="dataTables_empty text-center"> <td valign="top" colspan="7" class="dataTables_empty text-center">
레이아웃 정보를 찾지 못했습니다. 레이아웃 정보를 찾지 못했습니다.
@ -159,7 +160,7 @@ $(document).ready(function(){
}; };
$P.ctrl.dataset.onCurrentChange = (dataItem) => { $P.ctrl.dataset.onCurrentChange = (dataItem) => {
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $("#layoutTbody--${pageName}")[0]); Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("layoutTbody"));
} }
/************************************************************************** /**************************************************************************
@ -173,7 +174,7 @@ $(document).ready(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='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
@ -183,7 +184,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;
@ -208,8 +209,8 @@ $(document).ready(function(){
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [document.getElementById("layoutNotFound--${pageName}").innerHTML]; var notFound = [$P.find("layoutNotFound").innerHTML];
var found = document.getElementById("layoutRow--${pageName}").innerHTML; var found = $P.find("layoutRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickLayoutList('" + dataItem.getValue("FILE_LAYOUT_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickLayoutList('" + dataItem.getValue("FILE_LAYOUT_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickLayoutList('" + dataItem.getValue("FILE_LAYOUT_ID") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickLayoutList('" + dataItem.getValue("FILE_LAYOUT_ID") + "');");
@ -229,7 +230,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
} }
@ -239,7 +240,7 @@ $(document).ready(function(){
return; return;
} }
$("#layoutTbody--${pageName}").setCurrentRow(dataKey); $P.$find("layoutTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -299,24 +300,24 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchLayoutList()); $P.$find("btnReset").on('click', () => $P.fnReset());
$('#btnAdd--${pageName}').on('click', () => $P.createLayout()); $P.$find("btnSearch").on('click', () => $P.searchLayoutList());
$('#btnDel--${pageName}').on('click', () => $P.removeLayout()); $P.$find("btnAdd").on('click', () => $P.createLayout());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollLayoutList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollLayoutList);
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#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);
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");
}); });
}); });

@ -6,26 +6,26 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<div class="w-100 d-flex justify-content-center"> <div class="w-100 d-flex justify-content-center">
<div class="btn-group"> <div class="btn-group">
<button type="button" id="btnPhotoInspection--${pageName}" <button type="button" name="btnPhotoInspection"
class="btn btn-blue btn-outline-some" title="단속사진 비교">단속사진 비교</button> class="btn btn-blue btn-outline-some" title="단속사진 비교">단속사진 비교</button>
<button type="button" id="btnSameVehicleInspection--${pageName}" <button type="button" name="btnSameVehicleInspection"
class="btn btn-blue btn-outline-some" title="동일단속차량 검사">동일단속차량 검사</button> class="btn btn-blue btn-outline-some" title="동일단속차량 검사">동일단속차량 검사</button>
</div> </div>
</div> </div>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" <button type="button" name="btnSearch"
class="btn btn-search w-px-120" title="검색">검색</button> class="btn btn-search w-px-120" title="검색">검색</button>
<button type="button" id="btnExcel--${pageName}" <button type="button" name="btnExcel"
class="btn btn-excel w-px-120" title="엑셀 저장">엑셀</button> class="btn btn-excel w-px-120" title="엑셀 저장">엑셀</button>
</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">
@ -42,7 +42,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <div class="col-6">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schCrdnYmdFrom--${pageName}">단속일자</label> <label class="form-label fw-bold form-search-title w-px-120 text-end">단속일자</label>
<span class="form-search-linebox"> <span class="form-search-linebox">
<input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom" <input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
class="form-control form-date" class="form-control form-date"
@ -108,7 +108,8 @@
<input type="text" class="form-control w-px-400" id="term--${pageName}" name="term" autocomplete="off" /> <input type="text" class="form-control w-px-400" id="term--${pageName}" name="term" autocomplete="off" />
<!-- 상세 검색조건 버튼 --> <!-- 상세 검색조건 버튼 -->
<span class="flr"> <span class="flr">
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}"> <button type="button" class="btn btn-open-detail" data-bs-toggle="collapse"
data-bs-target="[data-doctx='${pageName}'] [name='searchDetail']">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
상세검색 상세검색
</button> </button>
@ -116,7 +117,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse"> <div name="searchDetail" class="container-search container-search-detail collapse">
<div class="row"> <div class="row">
<div class="col-4"> <div class="col-4">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnSttsCd--${pageName}">자료상태</label> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnSttsCd--${pageName}">자료상태</label>
@ -157,7 +158,7 @@
</div> </div>
</form> </form>
<div id="gridbuttonArea--${pageName}" class="container-page-btn"> <div name="gridbuttonArea" class="container-page-btn">
<div class="d-flex flex-row justify-content-between"> <div class="d-flex flex-row justify-content-between">
<span id="photoInspectionPaging--${pageName}PagingInfo" <span id="photoInspectionPaging--${pageName}PagingInfo"
class="dataTables_info area-photoinspection" role="status" aria-live="polite"></span> class="dataTables_info area-photoinspection" role="status" aria-live="polite"></span>
@ -178,7 +179,7 @@
<span slot="button"> <span slot="button">
<template class="pvs"> <template class="pvs">
<slot> <slot>
<button id="btnOpenOverTime--${pageName}" <button name="btnOpenOverTime"
class="btn btn-primary area-photoinspection" class="btn btn-primary area-photoinspection"
title="2시간 초과 처리">2시간 초과 처리</button> title="2시간 초과 처리">2시간 초과 처리</button>
</slot> </slot>
@ -188,9 +189,9 @@
</div> </div>
<div class="card-datatable text-nowrap area-photoinspection"> <div class="card-datatable text-nowrap area-photoinspection">
<div id="photoInspection_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="photoInspection-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-200"> <div name="photoInspection-responsive" class="table-responsive ox-scroll oy-scroll h-px-200">
<table id="photoInspection_Table_0--${pageName}" <table name="photoInspection_Table_0"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}" <tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
@ -220,8 +221,8 @@
<th class="dummy-th"></th> <th class="dummy-th"></th>
</tr> </tr>
</thead> </thead>
<tbody id="photoInspectionTbody--${pageName}"></tbody> <tbody name="photoInspectionTbody"></tbody>
<template id="photoInspectionRow--${pageName}"> <template name="photoInspectionRow">
<tr data-key="{CRDN_ID}"> <tr data-key="{CRDN_ID}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ROW_NUM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ROW_NUM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
@ -240,7 +241,7 @@
<td class="dummy-td"></td> <td class="dummy-td"></td>
</tr> </tr>
</template> </template>
<template id="photoInspectionNotFound--${pageName}"> <template name="photoInspectionNotFound">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="14" class="dataTables_empty text-center"> <td valign="top" colspan="14" class="dataTables_empty text-center">
단속 정보를 찾지 못했습니다. 단속 정보를 찾지 못했습니다.
@ -269,11 +270,10 @@
<span class="area-samevehicleinspection"> <span class="area-samevehicleinspection">
<div class="d-flex justify-content-evenly min-w-px-1400"> <div class="d-flex justify-content-evenly min-w-px-1400">
<div class="card-datatable text-nowrap d-inline-flex"> <div class="card-datatable text-nowrap d-inline-flex">
<div id="sameVehicleInspectionMain_Table_0_wrapper--${pageName}" <div class="dataTables_wrapper dt-bootstrap5 no-footer">
class="dataTables_wrapper dt-bootstrap5 no-footer"> <div name="sameVehicleInspectionMain-responsive"
<div id="sameVehicleInspectionMain-responsive--${pageName}"
class="table-responsive ox-scroll oy-scroll h-px-400 w-px-350"> class="table-responsive ox-scroll oy-scroll h-px-400 w-px-350">
<table id="sameVehicleInspectionMain_Table_0--${pageName}" <table name="sameVehicleInspectionMain_Table_0"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}" <tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
@ -287,8 +287,8 @@
<th class="dummy-th"></th> <th class="dummy-th"></th>
</tr> </tr>
</thead> </thead>
<tbody id="sameVehicleInspectionMainTbody--${pageName}"></tbody> <tbody name="sameVehicleInspectionMainTbody"></tbody>
<template id="sameVehicleInspectionMainRow--${pageName}"> <template name="sameVehicleInspectionMainRow">
<tr data-key="{CRDN_ID_LIST}"> <tr data-key="{CRDN_ID_LIST}">
<td onclick="{onclick}" class="text-center">{VHRNO}</td> <td onclick="{onclick}" class="text-center">{VHRNO}</td>
<td onclick="{onclick}" class="text-center">{CRDN_STDG_NM}</td> <td onclick="{onclick}" class="text-center">{CRDN_STDG_NM}</td>
@ -296,7 +296,7 @@
<td class="dummy-td"></td> <td class="dummy-td"></td>
</tr> </tr>
</template> </template>
<template id="sameVehicleInspectionMainNotFound--${pageName}"> <template name="sameVehicleInspectionMainNotFound">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="4" class="dataTables_empty text-center"> <td valign="top" colspan="4" class="dataTables_empty text-center">
단속 정보를 찾지 못했습니다. 단속 정보를 찾지 못했습니다.
@ -309,10 +309,10 @@
</div> </div>
<div class="card-datatable text-nowrap d-inline-flex ms-3"> <div class="card-datatable text-nowrap d-inline-flex ms-3">
<div id="sameVehicleInspectionSub_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="sameVehicleInspectionSub-responsive--${pageName}" <div name="sameVehicleInspectionSub-responsive"
class="table-responsive ox-scroll oy-scroll h-px-400 w-px-1000"> class="table-responsive ox-scroll oy-scroll h-px-400 w-px-1000">
<table id="sameVehicleInspectionSub_Table_0--${pageName}" <table name="sameVehicleInspectionSub_Table_0"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}" <tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
@ -339,8 +339,9 @@
<th class="dummy-th"></th> <th class="dummy-th"></th>
</tr> </tr>
</thead> </thead>
<tbody id="sameVehicleInspectionSubTbody--${pageName}"></tbody> <tbody name="sameVehicleInspectionSubTbody">
<template id="sameVehicleInspectionSubRow--${pageName}"> </tbody>
<template name="sameVehicleInspectionSubRow">
<tr data-key="{CRDN_ID}"> <tr data-key="{CRDN_ID}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_INPT_SE_NM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_INPT_SE_NM}</td>
@ -359,7 +360,7 @@
<td class="dummy-td"></td> <td class="dummy-td"></td>
</tr> </tr>
</template> </template>
<template id="sameVehicleInspectionSubNotFound--${pageName}"> <template name="sameVehicleInspectionSubNotFound">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="10" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td> <td valign="top" colspan="10" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
</tr> </tr>
@ -433,7 +434,7 @@ $(document).ready(function(){
}; };
$P.ctrl.dataset.onCurrentChange = (dataItem) => { $P.ctrl.dataset.onCurrentChange = (dataItem) => {
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $("#photoInspectionTbody--${pageName}")[0]); Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("photoInspectionTbody"));
var dataKey = ""; var dataKey = "";
var curDataVhrno = ""; var curDataVhrno = "";
@ -460,11 +461,11 @@ $(document).ready(function(){
}; };
$P.alt.dataset.onCurrentChange = (dataItem) => { $P.alt.dataset.onCurrentChange = (dataItem) => {
Apply.fromDataset.currentRow($P.alt.dataset, dataItem, $("#sameVehicleInspectionMainTbody--${pageName}")[0]); Apply.fromDataset.currentRow($P.alt.dataset, dataItem, $P.find("sameVehicleInspectionMainTbody"));
if(dataItem){ if(dataItem){
$P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]); $P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]);
} else { } else {
$("#sameVehicleInspectionSubTbody--${pageName}").html(""); $P.$find("sameVehicleInspectionSubTbody").html("");
} }
} }
@ -475,14 +476,14 @@ $(document).ready(function(){
}; };
$P.shift.dataset.onCurrentChange = (dataItem) => { $P.shift.dataset.onCurrentChange = (dataItem) => {
Apply.fromDataset.currentRow($P.shift.dataset, dataItem, $("#sameVehicleInspectionSubTbody--${pageName}")[0]); Apply.fromDataset.currentRow($P.shift.dataset, dataItem, $P.find("sameVehicleInspectionSubTbody"));
}; };
/************************************************************************** /**************************************************************************
* 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("");
@ -505,18 +506,18 @@ $(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($P.find("gridbuttonArea"), clsForTask);
//버튼 이벤트 재매핑 //버튼 이벤트 재매핑
$("#btnOpenOverTime--${pageName}").off("click"); $P.$find("btnOpenOverTime").off("click");
$("#btnOpenOverTime--${pageName}").on("click", () => $P.openOverTimePop()); $P.$find("btnOpenOverTime").on("click", () => $P.openOverTimePop());
$('#btnPhotoInspection--${pageName}').trigger("click"); $P.$find('btnPhotoInspection').trigger("click");
} }
$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();
if($P.currentDisplay == "photoInspection"){ if($P.currentDisplay == "photoInspection"){
@ -651,8 +652,8 @@ $(document).ready(function(){
} }
var cellDefs = getCellDefs( var cellDefs = getCellDefs(
$("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)"), $P.$find("photoInspection_Table_0").find("thead th").not(".dummy-th").not(":eq(0)"),
$($("#photoInspectionRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)") $($P.find("photoInspectionRow").content).find("td").not(".dummy-td").not(":eq(0)")
); );
$P.ctrl.query.cellDefs = cellDefs; $P.ctrl.query.cellDefs = cellDefs;
@ -671,8 +672,8 @@ $(document).ready(function(){
if(excelTarget == "main"){ if(excelTarget == "main"){
var cellDefs = getCellDefs( var cellDefs = getCellDefs(
$("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"), $P.$find("sameVehicleInspectionMain_Table_0").find("thead th").not(".dummy-th"),
$($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td") $($P.find("sameVehicleInspectionMainRow").content).find("td").not(".dummy-td")
); );
$P.alt.query.cellDefs = cellDefs; $P.alt.query.cellDefs = cellDefs;
@ -680,8 +681,8 @@ $(document).ready(function(){
} else if(excelTarget == "sub"){ } else if(excelTarget == "sub"){
var cellDefs = getCellDefs( var cellDefs = getCellDefs(
$("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th"), $P.$find("sameVehicleInspectionSub_Table_0").find("thead th").not(".dummy-th"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td"), $($P.find("sameVehicleInspectionSubRow").content).find("td").not(".dummy-td"),
getCellDefsForPrivacyCell getCellDefsForPrivacyCell
); );
$P.shift.query.cellDefs = cellDefs; $P.shift.query.cellDefs = cellDefs;
@ -699,23 +700,23 @@ $(document).ready(function(){
switch (gridType) { switch (gridType) {
case "photoInspection": case "photoInspection":
notFound = [document.getElementById("photoInspectionNotFound--${pageName}").innerHTML] notFound = [$P.find("photoInspectionNotFound").innerHTML]
found = document.getElementById("photoInspectionRow--${pageName}").innerHTML; found = $P.find("photoInspectionRow").innerHTML;
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
break; break;
case "sameVehicleInspectionMain": case "sameVehicleInspectionMain":
notFound = [document.getElementById("sameVehicleInspectionMainNotFound--${pageName}").innerHTML]; notFound = [$P.find("sameVehicleInspectionMainNotFound").innerHTML];
found = document.getElementById("sameVehicleInspectionMainRow--${pageName}").innerHTML; found = $P.find("sameVehicleInspectionMainRow").innerHTML;
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');"); .replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
break; break;
case "sameVehicleInspectionSub": case "sameVehicleInspectionSub":
notFound = [document.getElementById("sameVehicleInspectionSubNotFound--${pageName}").innerHTML] notFound = [$P.find("sameVehicleInspectionSubNotFound").innerHTML]
found = document.getElementById("sameVehicleInspectionSubRow--${pageName}").innerHTML; found = $P.find("sameVehicleInspectionSubRow").innerHTML;
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');");
@ -741,7 +742,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#photoInspection-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("photoInspection-responsive").changeContent(trs, initScroll, noMore);
break; break;
case "sameVehicleInspectionMain": case "sameVehicleInspectionMain":
@ -750,12 +751,12 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#sameVehicleInspectionMain-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("sameVehicleInspectionMain-responsive").changeContent(trs, initScroll, noMore);
break; break;
case "sameVehicleInspectionSub": case "sameVehicleInspectionSub":
$("#sameVehicleInspectionSubTbody--${pageName}").html(trs); $P.$find("sameVehicleInspectionSubTbody").html(trs);
break; break;
default: break; default: break;
} }
@ -770,7 +771,7 @@ $(document).ready(function(){
case "photoInspection": case "photoInspection":
if(dataKey != ""){ if(dataKey != ""){
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey); $P.$find("photoInspectionTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -784,7 +785,7 @@ $(document).ready(function(){
if(dataKey == ""){ if(dataKey == ""){
return; return;
} }
$("#sameVehicleInspectionMainTbody--${pageName}").setCurrentRow(dataKey); $P.$find("sameVehicleInspectionMainTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.alt.dataset, dataKey); Apply.toDataset.current($P.alt.dataset, dataKey);
@ -795,7 +796,7 @@ $(document).ready(function(){
if(dataKey == ""){ if(dataKey == ""){
return; return;
} }
$("#sameVehicleInspectionSubTbody--${pageName}").setCurrentRow(dataKey); $P.$find("sameVehicleInspectionSubTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.shift.dataset, dataKey); Apply.toDataset.current($P.shift.dataset, dataKey);
break; break;
@ -804,7 +805,7 @@ $(document).ready(function(){
$P.dblclickInspectionDataList = (dataKey) => { $P.dblclickInspectionDataList = (dataKey) => {
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val(); var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
var dialogUrl = wctx.url("/sprt/sprt02/010/main.do"); var dialogUrl = wctx.url("/sprt/sprt02/010/main.do");
@ -894,7 +895,7 @@ $(document).ready(function(){
"callPurpose" : "create" "callPurpose" : "create"
}; };
var taskSeCd = $("#frmSearch--${pageName} [name='taskSeCd']:checked").val(); var taskSeCd = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val();
ajax.get({ ajax.get({
url : wctx.url(taskSeCd + "/excl/excl01/020/info.do"), url : wctx.url(taskSeCd + "/excl/excl01/020/info.do"),
@ -1010,54 +1011,55 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); //초기화버튼 $P.$find("btnReset").on('click', () => $P.fnReset()); //초기화버튼
$('#btnPhotoInspection--${pageName}').on('click', () => { $P.$find("btnPhotoInspection").on('click', () => {
$(".area-photoinspection").show(); $(".area-photoinspection").show();
$(".area-samevehicleinspection").hide(); $(".area-samevehicleinspection").hide();
$('#btnPhotoInspection--${pageName}').addClass("active"); $P.$find('btnPhotoInspection').addClass("active");
$('#btnSameVehicleInspection--${pageName}').removeClass("active"); $P.$find('btnSameVehicleInspection').removeClass("active");
$P.currentDisplay = "photoInspection"; $P.currentDisplay = "photoInspection";
}); });
$('#btnSameVehicleInspection--${pageName}').on('click', () => { $P.$find("btnSameVehicleInspection").on('click', () => {
$(".area-samevehicleinspection").show(); $(".area-samevehicleinspection").show();
$(".area-photoinspection").hide(); $(".area-photoinspection").hide();
$('#btnSameVehicleInspection--${pageName}').addClass("active"); $P.$find("btnSameVehicleInspection").addClass("active");
$('#btnPhotoInspection--${pageName}').removeClass("active"); $P.$find("btnPhotoInspection").removeClass("active");
$P.currentDisplay = "sameVehicleInspection"; $P.currentDisplay = "sameVehicleInspection";
}); });
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
$P.$find('btnSearch').on('click', () => $P.searchInspectionList()); //검색버튼
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").onEnterPress($P.searchInspectionList); $("#term--${pageName}").onEnterPress($P.searchInspectionList);
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown()); $P.$find("btnExcel").on('click', () => $P.fnExcelDown());
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색 $("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1")); $("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
fnMakeResizableTable($("#photoInspection-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("photoInspection-responsive"));
fnMakeResizableTable($("#sameVehicleInspectionMain-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("sameVehicleInspectionMain-responsive"));
fnMakeResizableTable($("#sameVehicleInspectionSub-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("sameVehicleInspectionSub-responsive"));
//스크롤 테이블 //스크롤 테이블
fnMakeScrollableTable($("#photoInspection-responsive--${pageName}")[0], $P.scrollInspectionDataList); fnMakeScrollableTable($P.find("photoInspection-responsive"), $P.scrollInspectionDataList);
fnMakeScrollableTable($("#sameVehicleInspectionMain-responsive--${pageName}")[0], $P.scrollInspectionDataList); fnMakeScrollableTable($P.find("sameVehicleInspectionMain-responsive"), $P.scrollInspectionDataList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
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();
$("#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);
//보안모드 //보안모드
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");
}); });
}); });

@ -6,13 +6,13 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" <button type="button" name="btnSearch" class="btn btn-search w-px-120"
title="검색">검색</button> title="검색">검색</button>
<button type="button" id="btnExcel--${pageName}" class="btn btn-excel w-px-120" <button type="button" name="btnExcel" class="btn btn-excel w-px-120"
title="엑셀 저장">엑셀</button> title="엑셀 저장">엑셀</button>
</span> </span>
</div> </div>
@ -362,11 +362,11 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $P.$find("btnSearch").on('click', () => $P.searchCrdnList());
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").onEnterPress($P.searchCrdnList); $("#term--${pageName}").onEnterPress($P.searchCrdnList);
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown()); $P.$find("btnExcel").on('click', () => $P.fnExcelDown());
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList);

@ -6,10 +6,10 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" <button type="button" name="btnReset"
class="btn btn-outline-dark w-px-120" title="초기화">초기화</button> class="btn btn-outline-dark w-px-120" title="초기화">초기화</button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" <button type="button" name="btnSearch"
class="btn btn-search w-px-120" title="검색">검색</button> class="btn btn-search w-px-120" title="검색">검색</button>
</span> </span>
</div> </div>
@ -276,8 +276,8 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$("#btnSearch--${pageName}").on("click", () => $P.searchCrdnList()); $P.$find("btnSearch").on("click", () => $P.searchCrdnList());
$("#btnInsertByFile--${pageName}").on('click', () => { $P.newInfo("file"); }); $("#btnInsertByFile--${pageName}").on('click', () => { $P.newInfo("file"); });
$("#btnInsertByHand--${pageName}").on('click', () => { $P.newInfo("hand"); }); $("#btnInsertByHand--${pageName}").on('click', () => { $P.newInfo("hand"); });

@ -6,17 +6,17 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
<button type="button" id="btnExcel--${pageName}" class="btn btn-excel w-px-120" title="엑셀 저장"> <button type="button" name="btnExcel" class="btn btn-excel w-px-120" title="엑셀 저장">
엑셀 엑셀
</button> </button>
<button type="button" id="btnExcelForApproval--${pageName}" class="btn btn-excel w-px-120" title="엑셀 저장"> <button type="button" name="btnExcelForApproval" class="btn btn-excel w-px-120" title="엑셀 저장">
엑셀(사진 포함) 엑셀(사진 포함)
</button> </button>
</span> </span>
@ -580,13 +580,15 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $P.$find("btnSearch").on('click', () => $P.searchCrdnList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown(false));
$P.$find("btnExcelForApproval").on('click', () => $P.fnExcelDown(true));
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").onEnterPress($P.searchCrdnList); $("#term--${pageName}").onEnterPress($P.searchCrdnList);
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown(false));
$('#btnExcelForApproval--${pageName}').on('click', () => $P.fnExcelDown(true));
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList);

@ -7,11 +7,11 @@
<!-- 조회조건 --> <!-- 조회조건 -->
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
</span> </span>
@ -469,8 +469,8 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$("#btnSearch--${pageName}").on("click", () => $P.searchUseTeamList()); $P.$find("btnSearch").on("click", () => $P.searchUseTeamList());
$("#btnSave--${pageName}").on('click', () => { $P.fnSave(); }); $("#btnSave--${pageName}").on('click', () => { $P.fnSave(); });
$("#btnRemove--${pageName}").on('click', () => { $P.fnRemove(); }); $("#btnRemove--${pageName}").on('click', () => { $P.fnRemove(); });

@ -5,14 +5,14 @@
<div class="container-xxl flex-grow-1 px-0"> <div class="container-xxl flex-grow-1 px-0">
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
<button type="button" id="btnExcel--${pageName}" class="btn btn-excel w-px-120" title="엑셀 저장"> <button type="button" name="btnExcel" class="btn btn-excel w-px-120" title="엑셀 저장">
엑셀 엑셀
</button> </button>
</span> </span>
@ -423,9 +423,9 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$("#btnSearch--${pageName}").on("click", () => $P.searchExmptnVhclList()); $P.$find("btnSearch").on("click", () => $P.searchExmptnVhclList());
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown()); $P.$find("btnExcel").on('click', () => $P.fnExcelDown());
$("#btnCreate--${pageName}").on('click', () => { $P.newInfo(); }); $("#btnCreate--${pageName}").on('click', () => { $P.newInfo(); });
$("#btnOpenDelRsn--${pageName}").on('click', () => { $P.fnOpenDelRsnDialog(); }); $("#btnOpenDelRsn--${pageName}").on('click', () => { $P.fnOpenDelRsnDialog(); });

@ -6,14 +6,14 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
<button type="button" id="btnExcel--${pageName}" class="btn btn-excel w-px-120" title="엑셀 저장"> <button type="button" name="btnExcel" class="btn btn-excel w-px-120" title="엑셀 저장">
엑셀 엑셀
</button> </button>
</span> </span>
@ -674,11 +674,12 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $P.$find("btnSearch").on('click', () => $P.searchCrdnList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown());
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").onEnterPress($P.searchCrdnList); $("#term--${pageName}").onEnterPress($P.searchCrdnList);
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
$("#btnHold--${pageName}").on("click", () => $P.fnHold()); $("#btnHold--${pageName}").on("click", () => $P.fnHold());
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove()); $("#btnDelete--${pageName}").on("click", () => $P.fnRemove());

@ -6,17 +6,17 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
<button type="button" id="btnExcel--${pageName}" class="btn btn-excel w-px-120" title="엑셀 저장"> <button type="button" name="btnExcel" class="btn btn-excel w-px-120" title="엑셀 저장">
엑셀 엑셀
</button> </button>
<button type="button" id="btnExcelForApproval--${pageName}" class="btn btn-excel w-px-120" title="엑셀 저장"> <button type="button" name="btnExcelForApproval" class="btn btn-excel w-px-120" title="엑셀 저장">
엑셀(사진 포함) 엑셀(사진 포함)
</button> </button>
</span> </span>
@ -670,12 +670,14 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $P.$find("btnSearch").on('click', () => $P.searchCrdnList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown(false));
$P.$find("btnExcelForApproval").on('click', () => $P.fnExcelDown(true));
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").onEnterPress($P.searchCrdnList); $("#term--${pageName}").onEnterPress($P.searchCrdnList);
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown(false));
$('#btnExcelForApproval--${pageName}').on('click', () => $P.fnExcelDown(true));
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl()); $("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
$("#btnOpenAnswerPreview--${pageName}").on("click", () => $P.fnOpenAnswerPreview()); $("#btnOpenAnswerPreview--${pageName}").on("click", () => $P.fnOpenAnswerPreview());

@ -6,14 +6,14 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
<button type="button" id="btnExcel--${pageName}" class="btn btn-excel w-px-120" title="엑셀 저장"> <button type="button" name="btnExcel" class="btn btn-excel w-px-120" title="엑셀 저장">
엑셀 엑셀
</button> </button>
</span> </span>
@ -544,11 +544,13 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $P.$find("btnSearch").on('click', () => $P.searchCrdnList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown());
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").onEnterPress($P.searchCrdnList); $("#term--${pageName}").onEnterPress($P.searchCrdnList);
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove()); $("#btnDelete--${pageName}").on("click", () => $P.fnRemove());
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl()); $("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());

@ -6,11 +6,11 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
</span> </span>
@ -436,8 +436,9 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchDmndList()); $P.$find("btnSearch").on('click', () => $P.searchDmndList());
$("#btnOpenDmndPop--${pageName}").on("click", () => $P.fnOpenDmndPop()); $("#btnOpenDmndPop--${pageName}").on("click", () => $P.fnOpenDmndPop());
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove(null)); $("#btnDelete--${pageName}").on("click", () => $P.fnRemove(null));
$("#btnDeleteAllCompleteData--${pageName}").on("click", () => $P.fnRemoveAllCompleteData()); $("#btnDeleteAllCompleteData--${pageName}").on("click", () => $P.fnRemoveAllCompleteData());

@ -26,7 +26,7 @@
</form> </form>
<div class="container-page-btn mt-3"> <div class="container-page-btn mt-3">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"></span> <span class="container-window-btn-right"></span>
@ -669,7 +669,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
//탭 버튼 //탭 버튼
$('#btnAnsBasicTab--${pageName}').on('click', (event) => { $('#btnAnsBasicTab--${pageName}').on('click', (event) => {

@ -25,7 +25,7 @@
</form> </form>
<div class="container-page-btn mt-3"> <div class="container-page-btn mt-3">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
</div> </div>
@ -296,7 +296,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
//업무처리 버튼 //업무처리 버튼
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); $("#btnSave--${pageName}").on("click", () => $P.fnSave());

Loading…
Cancel
Save