/******************************************************************* App. Name : Inventory Advanced Systems Module : /apps/js/csv/faktur_pajak_biaya.js Desc. : JS - Export Data Faktur Pajak Biaya Created By : Siau Pheng (siaupheng@3fonia.com). Created Date : February 11th, 2017. Last Modified : November 18th, 2023. (c) 2011 - 2023, 3FONIA Software; WWW.3FONIA.COM. *******************************************************************/ var CSVBiayaJS = { PHP: '', KODE: '', loading: function(){ this.data_query('detail'); $('#Cari_FP').keydown(function(e){ var key = e.keyCode || e.which || 0; if (key==13 && e.target.value!='') this.data_query('detail'); }.bind(this)); $('#butSearch').click(function(e){ this.data_query('detail'); }.bind(this)); $('#csvNormal').click(function(){ this.proses_dload(0); }.bind(this)); $('#csvPengganti').click(function(){ this.proses_dload(1); }.bind(this)); FoniaJS.setFocus('#Cari_FP'); }, proses_dload: function(jenis){ var dload = new cEXPORT(this.PHP); dload.add_param('data', 'download'); dload.add_param('Tgl_From'); dload.add_param('Tgl_To'); dload.add_param('Jenis_FP', jenis); dload.download(); this.data_query('detail'); }, data_query: function(tipe, mode){ if (tipe=="detail"){ new Request.JSONF({ url: this.PHP, sendParam: ['data=detail','Tgl_From','Tgl_To','Cari_FP'] }).send(); } } };