기타 수정.

main
jjh 3 months ago
parent f7f913d232
commit 9e56edbde4

@ -67,7 +67,7 @@
<!-- DataTables(그리드) --> <!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer"> <div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="table-responsive ox-scroll oy-scroll h-px-500" name="table-responsive"> <div class="table-responsive ox-scroll oy-scroll h-px-500" name="tableRspns">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info"> <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr name="theadTr" data-search-target="[data-doctx='${pageName}']"> <tr name="theadTr" data-search-target="[data-doctx='${pageName}']">
@ -92,7 +92,7 @@
</thead> </thead>
<tbody name="tbodyList"> <tbody name="tbodyList">
</tbody> </tbody>
<template is="curly-brackets" name="dataRows"> <template is="curly-brackets" name="tmpltRows">
<tr data-key="MPNG_ID"> <tr data-key="MPNG_ID">
<td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td> <td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td>
<td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="MPNG_ID" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></td> <td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="MPNG_ID" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></td>
@ -113,7 +113,7 @@
<td class="cmn dummy-td"></td> <td class="cmn dummy-td"></td>
</tr> </tr>
</template> </template>
<template name="dataNotFound"> <template name="notFound">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="17" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td> <td valign="top" colspan="17" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr> </tr>
@ -257,8 +257,9 @@
let dataList = $P.ctrl.dataset; let dataList = $P.ctrl.dataset;
let empty = dataList.empty; let empty = dataList.empty;
let trs = empty ? [$P.find("dataNotFound").innerHTML] : let trs = empty ? [$P.find("notFound").innerHTML] :
dataList.inStrings($P.find("dataRows").innerHTML, (str, dataItem) => str dataList.inStrings($P.find("tmpltRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("MPNG_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("MPNG_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("MPNG_ID") + "');") .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("MPNG_ID") + "');")
); );
@ -270,7 +271,7 @@
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs.join(), initScroll, noMore); $P.find("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제 // checkbox 체크 해제
$P.$find("gridAllCheckbox").prop("checked", false); $P.$find("gridAllCheckbox").prop("checked", false);
@ -360,7 +361,7 @@
// DataTables(그리드) // DataTables(그리드)
$P.ctrl.query.cellDefs = $P.ctrl.query.cellDefs =
getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)") getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("dataRows").content).find("td").not(".dummy-td").not(":eq(0)")); , $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.download(); $P.ctrl.download();
} }
@ -417,10 +418,10 @@
$P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제 $P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
// DataTables width 변경 조정 // DataTables width 변경 조정
fnMakeResizableTable($P.find("table-responsive")); fnMakeResizableTable($P.find("tableRspns"));
// DataTables 스크롤 이벤트 생성 // DataTables 스크롤 이벤트 생성
fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDataList); fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList);
} }
/************************************************************************** /**************************************************************************

@ -75,8 +75,8 @@
<!-- DataTables(그리드) --> <!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer"> <div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="table-responsive ox-scroll oy-scroll h-px-300" name="table-responsive"> <div class="table-responsive ox-scroll oy-scroll h-px-300" name="tableRspns">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" name="DataTables_Table_0" aria-describedby="DataTables_Table_0_info"> <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr name="theadTr" data-search-target="[data-doctx='${pageName}']"> <tr name="theadTr" data-search-target="[data-doctx='${pageName}']">
<th class="cmn" style="width: 72px;">No.</th> <th class="cmn" style="width: 72px;">No.</th>
@ -94,7 +94,7 @@
</thead> </thead>
<tbody name="tbodyList"> <tbody name="tbodyList">
</tbody> </tbody>
<template is="curly-brackets" name="dataRow"> <template is="curly-brackets" name="tmpltRows">
<tr data-key="ENT_ID"> <tr data-key="ENT_ID">
<td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td> <td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td>
<td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="ENT_ID" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></td> <td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="ENT_ID" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></td>
@ -109,7 +109,7 @@
<td class="cmn dummy-td"></td> <td class="cmn dummy-td"></td>
</tr> </tr>
</template> </template>
<template name="dataNotFound"> <template name="notFound">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="11" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td> <td valign="top" colspan="11" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr> </tr>
@ -277,8 +277,9 @@
let dataList = $P.ctrl.dataset; let dataList = $P.ctrl.dataset;
let empty = dataList.empty; let empty = dataList.empty;
let trs = empty ? [$P.find("dataNotFound").innerHTML] : let trs = empty ? [$P.find("notFound").innerHTML] :
dataList.inStrings($P.find("dataRow").innerHTML, (str, dataItem) => str dataList.inStrings($P.find("tmpltRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("ENT_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("ENT_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("ENT_ID") + "');") .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("ENT_ID") + "');")
); );
@ -290,7 +291,7 @@
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs.join(), initScroll, noMore); $P.find("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제 // checkbox 체크 해제
$P.$find("gridAllCheckbox").prop("checked", false); $P.$find("gridAllCheckbox").prop("checked", false);
@ -382,7 +383,7 @@
// DataTable(그리드) // DataTable(그리드)
$P.ctrl.query.cellDefs = $P.ctrl.query.cellDefs =
getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)") getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("dataRow").content).find("td").not(".dummy-td").not(":eq(0)")); , $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.download(); $P.ctrl.download();
} }
@ -471,10 +472,10 @@
$P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제 $P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
// DataTable width 변경 조정 // DataTable width 변경 조정
fnMakeResizableTable($P.find("table-responsive")); fnMakeResizableTable($P.find("tableRspns"));
// DataTable 스크롤 이벤트 생성 // DataTable 스크롤 이벤트 생성
fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDataList); fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList);
} }
/************************************************************************** /**************************************************************************

@ -64,7 +64,7 @@
</thead> </thead>
<tbody name="tbodySndngDtlList"> <tbody name="tbodySndngDtlList">
</tbody> </tbody>
<template is="curly-brackets" name="tableRowsSndngDtl"> <template is="curly-brackets" name="tmpltSndngDtlRows">
<tr data-key="SNDNG_DTL_ID"> <tr data-key="SNDNG_DTL_ID">
<td class="text-center" onclick>{SNDNG_DTL_STTS_NM}</td> <td class="text-center" onclick>{SNDNG_DTL_STTS_NM}</td>
<td class="text-center" onclick>{SNDNG_RCVMT_NM}</td> <td class="text-center" onclick>{SNDNG_RCVMT_NM}</td>
@ -167,7 +167,7 @@
</thead> </thead>
<tbody name="tbodySvbtcList"> <tbody name="tbodySvbtcList">
</tbody> </tbody>
<template is="curly-brackets" name="tableRowsSvbtc"> <template is="curly-brackets" name="tmpltSvbtcRows">
<tr data-key="SNDNG_DTL_ID"> <tr data-key="SNDNG_DTL_ID">
<td class="text-center" onclick>{SNDNG_SE_NM}</td> <td class="text-center" onclick>{SNDNG_SE_NM}</td>
<td class="text-center" onclick>{SNDNG_YMD}</td> <td class="text-center" onclick>{SNDNG_YMD}</td>
@ -365,7 +365,7 @@
let empty = sndngDtlList.empty; let empty = sndngDtlList.empty;
let trs = empty ? [$P.find("notFoundSndngDtl").innerHTML] : let trs = empty ? [$P.find("notFoundSndngDtl").innerHTML] :
sndngDtlList.inStrings($P.find("tableRowsSndngDtl").innerHTML sndngDtlList.inStrings($P.find("tmpltSndngDtlRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlSndngDtl.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlSndngDtl.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
); );
@ -379,7 +379,7 @@
let empty = svbtcList.empty; let empty = svbtcList.empty;
let trs = empty ? [$P.find("notFoundSvbtc").innerHTML] : let trs = empty ? [$P.find("notFoundSvbtc").innerHTML] :
svbtcList.inStrings($P.find("tableRowsSvbtc").innerHTML svbtcList.inStrings($P.find("tmpltSvbtcRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlSvbtc.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlSvbtc.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
); );

@ -168,7 +168,7 @@
</thead> </thead>
<tbody name="tbodyCrdnSttsHstryList"> <tbody name="tbodyCrdnSttsHstryList">
</tbody> </tbody>
<template is="curly-brackets" name="tableRowsCrdnSttsHstry"> <template is="curly-brackets" name="tmpltCrdnSttsHstryRows">
<tr data-key="STTS_HSTRY_ID"> <tr data-key="STTS_HSTRY_ID">
<td class="cmn text-center" onclick="{onclick}">{REG_DT}</td> <td class="cmn text-center" onclick="{onclick}">{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}">{RGTR_NM}</td> <td class="cmn text-center" onclick="{onclick}">{RGTR_NM}</td>
@ -216,7 +216,7 @@
</thead> </thead>
<tbody name="tbodyPayerHstryList"> <tbody name="tbodyPayerHstryList">
</tbody> </tbody>
<template is="curly-brackets" name="tableRowsPayerHstry"> <template is="curly-brackets" name="tmpltPayerHstryRows">
<tr data-key="HSTRY_SN"> <tr data-key="HSTRY_SN">
<td class="cmn text-center" onclick="{onclick}">{REG_DT}</td> <td class="cmn text-center" onclick="{onclick}">{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}">{RGTR_NM}</td> <td class="cmn text-center" onclick="{onclick}">{RGTR_NM}</td>
@ -505,7 +505,7 @@
let empty = crdnSttsHstryList.empty; let empty = crdnSttsHstryList.empty;
let trs = empty ? [$P.find("notFoundCrdnSttsHstry").innerHTML] : let trs = empty ? [$P.find("notFoundCrdnSttsHstry").innerHTML] :
crdnSttsHstryList.inStrings($P.find("tableRowsCrdnSttsHstry").innerHTML crdnSttsHstryList.inStrings($P.find("tmpltCrdnSttsHstryRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCrdnSttsHstry.setCurrent('" + dataItem.getValue("STTS_HSTRY_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCrdnSttsHstry.setCurrent('" + dataItem.getValue("STTS_HSTRY_ID") + "');")
); );
@ -519,7 +519,7 @@
let empty = payerHstryList.empty; let empty = payerHstryList.empty;
let trs = empty ? [$P.find("notFoundPayerHstry").innerHTML] : let trs = empty ? [$P.find("notFoundPayerHstry").innerHTML] :
payerHstryList.inStrings($P.find("tableRowsPayerHstry").innerHTML payerHstryList.inStrings($P.find("tmpltPayerHstryRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlPayerHstry.setCurrent('" + dataItem.getValue("STTS_HSTRY_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlPayerHstry.setCurrent('" + dataItem.getValue("STTS_HSTRY_ID") + "');")
); );

@ -63,7 +63,7 @@
</thead> </thead>
<tbody name="tbodyRcvmtList"> <tbody name="tbodyRcvmtList">
</tbody> </tbody>
<template is="curly-brackets" name="tableRowsRcvmt"> <template is="curly-brackets" name="tmpltRcvmtRows">
<tr data-key="RCVMT_ID"> <tr data-key="RCVMT_ID">
<td class="text-center text-red" onclick">{RCVMT_RTRCN_NM}</td> <td class="text-center text-red" onclick">{RCVMT_RTRCN_NM}</td>
<td class="text-center" onclick>{RCVMT_INPT_SE_NM}</td> <td class="text-center" onclick>{RCVMT_INPT_SE_NM}</td>
@ -370,7 +370,7 @@
let empty = rcvmtList.empty; let empty = rcvmtList.empty;
let trs = empty ? [$P.find("notFoundRcvmt").innerHTML] : let trs = empty ? [$P.find("notFoundRcvmt").innerHTML] :
rcvmtList.inStrings($P.find("tableRowsRcvmt").innerHTML rcvmtList.inStrings($P.find("tmpltRcvmtRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.setCurrent('" + dataItem.getValue("RCVMT_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.setCurrent('" + dataItem.getValue("RCVMT_ID") + "');")
); );

@ -52,7 +52,7 @@
</thead> </thead>
<tbody name="tbodyCvlcptDscsnList"> <tbody name="tbodyCvlcptDscsnList">
</tbody> </tbody>
<template is="curly-brackets" name="tableRowsCvlcptDscsn"> <template is="curly-brackets" name="tmpltCvlcptDscsnRows">
<tr data-key="CVLCPT_DSCSN_ID"> <tr data-key="CVLCPT_DSCSN_ID">
<td class="text-center" onclick>{REG_DT}</td> <td class="text-center" onclick>{REG_DT}</td>
<td class="text-center" onclick>{WEEK_NM}</td> <td class="text-center" onclick>{WEEK_NM}</td>
@ -204,7 +204,7 @@
let empty = cvlcptDscsnList.empty; let empty = cvlcptDscsnList.empty;
let trs = empty ? [$P.find("notFoundCvlcptDscsn").innerHTML] : let trs = empty ? [$P.find("notFoundCvlcptDscsn").innerHTML] :
cvlcptDscsnList.inStrings($P.find("tableRowsCvlcptDscsn").innerHTML cvlcptDscsnList.inStrings($P.find("tmpltCvlcptDscsnRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCvlcptDscsn.setCurrent('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCvlcptDscsn.setCurrent('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');")
); );

Loading…
Cancel
Save