feat: 업체 및 제품 검색 데이타 NO 추가

main
Jonguk. Lim 3 weeks ago
parent f03fa678a6
commit 8b078e28c7

@ -40,6 +40,7 @@
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info"> <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr> <tr>
<th class="cmn" style="width: 70px;">No.</th>
<th class="sorting" style="width: 140.156px;">취급자번호</th> <th class="sorting" style="width: 140.156px;">취급자번호</th>
<th class="sorting" style="width: 250.141px;">취급업체명</th> <th class="sorting" style="width: 250.141px;">취급업체명</th>
<th class="sorting" style="width: 160.141px;">업종명</th> <th class="sorting" style="width: 160.141px;">업종명</th>
@ -51,6 +52,7 @@
</tbody> </tbody>
<template id="${infoPrefix}Row--${pageName}"> <template id="${infoPrefix}Row--${pageName}">
<tr data-key="{bsshCd}"> <tr data-key="{bsshCd}">
<td class="row-num text-end" onclick="{onclick}" ondblclick="{ondblclick}"></td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{bsshCd}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{bsshCd}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{bsshNm}</td> <td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{bsshNm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{indutyNm}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{indutyNm}</td>
@ -229,6 +231,11 @@
$("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); $("#btnSearch--${pageName}").on("click", () => $P.fnSearchList());
$("#frmSearch--${pageName} input").onEnterPress($P.fnSearchList); $("#frmSearch--${pageName} input").onEnterPress($P.fnSearchList);
Componentization.fnMakeRowNumberingTable(document.getElementById('tbody--${pageName}')
, (tr)=>{ return $(tr).find("td.row-num")[0]; }
, (marker, value)=>{ if(marker != null){ marker.innerHTML = value; } }
);
} }
// DataTables width 변경 조정 (업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고) // DataTables width 변경 조정 (업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고)

@ -28,6 +28,7 @@
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info"> <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr> <tr>
<th class="cmn" style="width: 70px;">No.</th>
<th class="sorting" style="width: 146.156px;">제품코드</th> <th class="sorting" style="width: 146.156px;">제품코드</th>
<th class="sorting" style="width: 350.141px;">제품명</th> <th class="sorting" style="width: 350.141px;">제품명</th>
<th class="sorting" style="width: 120.469px;">유통단위</th> <th class="sorting" style="width: 120.469px;">유통단위</th>
@ -41,6 +42,7 @@
</tbody> </tbody>
<template id="${infoPrefix}Row--${pageName}"> <template id="${infoPrefix}Row--${pageName}">
<tr data-key="{keyCnt}"> <tr data-key="{keyCnt}">
<td class="row-num text-end" onclick="{onclick}" ondblclick="{ondblclick}"></td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductCd}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductCd}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{prductNm}</td> <td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{prductNm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdMinDistbQy} {stdPackngStleNm}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdMinDistbQy} {stdPackngStleNm}</td>
@ -103,6 +105,7 @@
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_1--${pageName}" aria-describedby="DataTables_Table_1_info"> <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_1--${pageName}" aria-describedby="DataTables_Table_1_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr> <tr>
<th class="cmn" style="width: 70px;">No.</th>
<th class="sorting" style="width: 146px;">제품코드</th> <th class="sorting" style="width: 146px;">제품코드</th>
<th class="sorting" style="width: 110px;">유효기간</th> <th class="sorting" style="width: 110px;">유효기간</th>
<th class="sorting" style="width: 155px;">제조번호</th> <th class="sorting" style="width: 155px;">제조번호</th>
@ -113,6 +116,7 @@
</tbody> </tbody>
<template id="${infoPrefix}Row--${pageName}Detail"> <template id="${infoPrefix}Row--${pageName}Detail">
<tr data-key="{keyCnt}"> <tr data-key="{keyCnt}">
<td class="row-num text-end" onclick="{onclick}" ondblclick="{ondblclick}"></td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductCd}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductCd}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdValidDe}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdValidDe}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{mnfNo}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{mnfNo}</td>
@ -343,12 +347,12 @@
return false; return false;
} }
if($P.formFields.get().schProductNm.length !== 0 && $P.formFields.get().schProductNm.length < 2){ // if($P.formFields.get().schProductNm.length !== 0 && $P.formFields.get().schProductNm.length < 2){
dialog.alert({ // dialog.alert({
content: "상품명은 2자 이상으로 조회해 주세요." // content: "상품명은 2자 이상으로 조회해 주세요."
}); // });
return false; // return false;
} // }
// FIXME:: NIMS API 개발 완료후 적용 // FIXME:: NIMS API 개발 완료후 적용
let bsshCd = '${bsshCd}'; let bsshCd = '${bsshCd}';
@ -440,6 +444,15 @@
$("#frmSearch--${pageName} input").onEnterPress($P.fnSearchList); $("#frmSearch--${pageName} input").onEnterPress($P.fnSearchList);
$("#frmSearch--${pageName}Detail input").onEnterPress($P.fnDetailSearchList); $("#frmSearch--${pageName}Detail input").onEnterPress($P.fnDetailSearchList);
Componentization.fnMakeRowNumberingTable(document.getElementById('tbody--${pageName}')
, (tr)=>{ return $(tr).find("td.row-num")[0]; }
, (marker, value)=>{ if(marker != null){ marker.innerHTML = value; } }
);
Componentization.fnMakeRowNumberingTable(document.getElementById('tbody--${pageName}Detail')
, (tr)=>{ return $(tr).find("td.row-num")[0]; }
, (marker, value)=>{ if(marker != null){ marker.innerHTML = value; } }
);
} }
Componentization.fnMakeScrollableTable($("#table-responsive-0--${pageName}")[0], $P.scrollList); Componentization.fnMakeScrollableTable($("#table-responsive-0--${pageName}")[0], $P.scrollList);

Loading…
Cancel
Save