"use strict";var KTDatatableRemoteAjaxDemo1=function(){var demo1=function(){var datatable=$('#kt_datatable_1').KTDatatable({data:{type:'remote',source:{read:{url:`/${Login.Urls.baseUrl}/Transaction/LoadData`,params:{query:{},},method:'GET'},},pageSize:20,serverPaging:false,serverFiltering:false,serverSorting:false,},layout:{scroll:true,footer:false,},sortable:true,pagination:true,search:{input:$('#kt_datatable_1_search_query'),key:'generalSearch'},rows:[{autoHide:false}],columns:[{field:'username',title:'Tài khoản',width:100,sortable:'asc',template:function(row){return row.username+'*****';},},{field:'description',title:'Chi tiết giao dịch',width:550,},{field:'amount',title:'Số lượng mua',width:120,},{field:'transactionDate',title:'Ngày mua',template:function(row){return moment.utc(row.transactionDate).local().format('DD-MM-YYYY HH:mm:ss');},},{field:'totalPrice',title:'Tổng tiền',}],});$('#kt_datatable_1_search_status').on('change',function(){datatable.search($(this).val().toLowerCase(),'Status');});$('#kt_datatable_1_search_type').on('change',function(){datatable.search($(this).val().toLowerCase(),'Type');});$('#kt_datatable_1_search_status, #kt_datatable_1_search_type').selectpicker();};return{init:function(){demo1();},};}();jQuery(document).ready(function(){KTDatatableRemoteAjaxDemo1.init();});