first commit

This commit is contained in:
2026-01-22 15:30:17 +07:00
commit a971b97d88
181 changed files with 22279 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
/*******************************************************************
App. Name : Inventory Advanced Systems
Module : /apps/js/csv/faktur_pajak.js
Desc. : JS - Export Data Faktur Pajak
Created By : Siau Pheng ([email protected]).
Created Date : April 2rd, 2011.
Last Modified : November 18th, 2023.
(c) 2011 - 2023, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var CSVFPJS = {
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();
}
}
};