40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
/*******************************************************************
|
|
|
|
PHP Class : /Controller/Report/Rekap/MarginController
|
|
Description : Laporan Rekap Margin Harian
|
|
Created By : Siau Pheng ([email protected]).
|
|
Created Date : January 19th, 2013.
|
|
Last Modified : October 10th, 2026.
|
|
|
|
(c) 3FONIA Software; WWW.3FONIA.COM.
|
|
|
|
*******************************************************************/
|
|
|
|
var RepoRekapMarginJS = {
|
|
PHP: '',
|
|
KODE: '',
|
|
|
|
index() {
|
|
$('#butCetak').click(() => this.proses_print(true));
|
|
$('#butPreview').click(() => this.proses_print());
|
|
$('#butExcel').click(() => this.proses_dload());
|
|
},
|
|
|
|
proses_print(prt) {
|
|
var cetak = new Printer(this.PHP + '/print');
|
|
cetak.add_param("CabID");
|
|
cetak.add_param("Tgl_From");
|
|
cetak.add_param("Tgl_To");
|
|
if (prt) cetak.doPrint(); else cetak.doPreview();
|
|
},
|
|
|
|
proses_dload() {
|
|
var dload = new Download(this.PHP + '/excel');
|
|
dload.addParam("CabID");
|
|
dload.addParam("Tgl_From");
|
|
dload.addParam("Tgl_To");
|
|
dload.download();
|
|
}
|
|
|
|
};
|