|
|
|
|
@ -147,6 +147,7 @@
|
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
|
<span is="paging-info" name="crdnPagingInfo" class="dataTables_info" ></span>
|
|
|
|
|
<ul name="crdnPaging" class="pagination pagination-primary"></ul>
|
|
|
|
|
<span is="paging-info" name="crdnSummary" class="dataTables_info" style="margin-left: 1.5rem;"></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
@ -299,9 +300,18 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
$P.pagingSupport.setPagingInfo(obj);
|
|
|
|
|
|
|
|
|
|
let disableVehicleBtns = ctrl.dataset.getDataset()
|
|
|
|
|
.filter(info => "01" == info.CRDN_STTS_CD).length < 1;
|
|
|
|
|
$('button[name^="btnVehicle"]').prop("disabled", disableVehicleBtns);
|
|
|
|
|
let crdns = ctrl.dataset.getDataset();
|
|
|
|
|
byStatus = crdns.reduce((acc, crdn) => {
|
|
|
|
|
let status = crdn.CRDN_STTS_CD;
|
|
|
|
|
if (["01", "81"].includes(status))
|
|
|
|
|
acc[status] = (acc[status] || 0) + 1;
|
|
|
|
|
return acc;
|
|
|
|
|
}, {}),
|
|
|
|
|
initial = byStatus["01"] || 0,
|
|
|
|
|
excluded = byStatus["81"] || 0;
|
|
|
|
|
|
|
|
|
|
$('button[name^="btnVehicle"]').prop("disabled", initial < 1);
|
|
|
|
|
$('span[name="crdnSummary"]').html(crdns.length > 0 ? "초기상태: " + initial + ", 부과제외: " + excluded : "");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ctrl.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
|