/******************************************************************* App. Name : Inventory Advanced Systems Module : /apps/js/xml/fp_jual.js Desc. : JS - Export XML Faktur Pajak Penjualan Created By : Siau Pheng (siaupheng@3fonia.com). Created Date : April 2rd, 2011. Last Modified : January 6th, 2025. (c) 2011 - 2025, 3FONIA Software; WWW.3FONIA.COM. *******************************************************************/ var XMLFPJJS = { 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)); $('#butXML').click(function(){ this.proses_dload(); }.bind(this)); FoniaJS.setFocus('#Cari_FP'); }, proses_dload: function(){ var dload = new cEXPORT(this.PHP); dload.add_param('data', 'download'); dload.add_param('Tgl_From'); dload.add_param('Tgl_To'); 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(); } } };