49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
/*******************************************************************
|
|
|
|
App. Name : INVENTORY AND SALES SYSTEMS
|
|
Module : /apps/js/repo/beli_analisa.js
|
|
Desc. : JS - Laporan Analisa Pembelian
|
|
Created By : Siau Pheng ([email protected]).
|
|
Created Date : August 4th, 2013.
|
|
Last Modified : December 12th, 2025.
|
|
|
|
(c) 2013 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
|
|
|
*******************************************************************/
|
|
|
|
var RepoBeliAnalisaJS = {
|
|
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("Tipe");
|
|
cetak.add_param("CabID");
|
|
cetak.add_param("SupID");
|
|
cetak.add_param("Grup_InvID");
|
|
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("Tipe");
|
|
dload.add_param("CabID");
|
|
dload.add_param("SupID");
|
|
dload.add_param("Grup_InvID");
|
|
dload.add_param("Tgl_From");
|
|
dload.add_param("Tgl_To");
|
|
dload.download();
|
|
}
|
|
|
|
};
|