|
|
@@ -22,6 +22,7 @@
|
|
|
</div>
|
|
|
<div class="panelContent">
|
|
|
<form id="custSearchForm" name="custSearchForm" action="#" th:action="@{'/customer/active/list'}" >
|
|
|
+ <input type="hidden" name="searchDateGb" value="joinDt"/>
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
<col width="10%">
|
|
|
@@ -46,6 +47,7 @@
|
|
|
<th>회원구분</th>
|
|
|
<td>
|
|
|
<select name="custGb" id="custGb">
|
|
|
+ <option value="">전체</option>
|
|
|
<option th:if="${usableCustGbList}" th:each="oneData , status : ${usableCustGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
@@ -168,13 +170,25 @@
|
|
|
}
|
|
|
];
|
|
|
|
|
|
- var pubCustGridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
|
+ let pubCustGridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
|
|
|
|
// 고객 조회
|
|
|
function fnSearchPubCustList(){
|
|
|
- gagaAgGrid.fetch($("#custSearchForm").prop('action') , pubCustGridOptions , '#custSearchForm');
|
|
|
+ //gagaAgGrid.fetch($("#custSearchForm").prop('action') , pubCustGridOptions , '#custSearchForm');
|
|
|
+ gagaPaging.init('custSearchForm', fnSearchCallBack, 'custSearchForm', $('#custSearchForm select[name=pageSize]').val());
|
|
|
+ gagaPaging.load($('#custSearchForm input[name=pageNo]').val());
|
|
|
}
|
|
|
|
|
|
+ var fnSearchCallBack = function (result) {
|
|
|
+ //$('#gridRowTotalCount').html(result.pageing.pageable.totalCount.addComma());
|
|
|
+ //$('#custActiveForm input[name=pageNo]').val(result.pageing.pageable.pageNo.addComma());
|
|
|
+ //$('#pgNo').html(result.pageing.pageable.pageNo.addComma());
|
|
|
+ //$('#endPgNo').html(result.pageing.pageable.totalPage.addComma());
|
|
|
+
|
|
|
+ pubCustGridOptions.api.setRowData(result.custList);
|
|
|
+ //gagaPaging.createPagination(result.pageing.pageable);
|
|
|
+ };
|
|
|
+
|
|
|
function fnCpnPubCustomer(){
|
|
|
setReqValue();
|
|
|
checkValidation();
|