43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
/*******************************************************************
|
|
|
|
App. Name : INVENTORY AND SALES SYSTEMS
|
|
Module : /apps/js/repo/rekap_modal.js
|
|
Desc. : JS - Laporan Rekap Modal
|
|
Created By : Siau Pheng ([email protected]).
|
|
Created Date : January 19th, 2013.
|
|
Last Modified : December 13th, 2025.
|
|
|
|
(c) 2013 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
|
|
|
*******************************************************************/
|
|
|
|
var RepoRekapModalJS = {
|
|
PHP: '',
|
|
KODE: '',
|
|
|
|
loading: function(){
|
|
$('#butCetak').click(function(){this.proses_print(true);}.bind(this));
|
|
$('#butPreview').click(function(){this.proses_print();}.bind(this));
|
|
$('#butExcel').click(function(){this.proses_dload();}.bind(this));
|
|
},
|
|
|
|
proses_print: function(prt){
|
|
var cetak = new cPRINTER(this.PHP);
|
|
cetak.add_param("data", "print");
|
|
cetak.add_param("CabID");
|
|
cetak.add_param("Tgl_From");
|
|
cetak.add_param("Tgl_To");
|
|
if (prt) cetak.doPrint(); else cetak.doPreview();
|
|
},
|
|
|
|
proses_dload: function(){
|
|
var dload = new cEXPORT(this.PHP);
|
|
dload.add_param("data", "export");
|
|
dload.add_param("CabID");
|
|
dload.add_param("Tgl_From");
|
|
dload.add_param("Tgl_To");
|
|
dload.download();
|
|
}
|
|
|
|
};
|