Files
cmasa/app/Scripts/report/gel/bulan_saldo.js
T

40 lines
1.1 KiB
JavaScript

/*******************************************************************
PHP Class : /Controller/Report/Gel/BulansaldoController
Description : Laporan Neraca Saldo Bulanan
Created By : Siau Pheng ([email protected]).
Created Date : July 12th, 2008.
Last Modified : October 24th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var RepoGelBSaldoJS = {
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("Tipe");
cetak.add_param("Bulan");
cetak.add_param("Tahun");
if (prt) cetak.doPrint(); else cetak.doPreview();
},
proses_dload() {
var dload = new Download(this.PHP + '/excel');
dload.addParam("Tipe");
dload.addParam("Bulan");
dload.addParam("Tahun");
dload.download();
}
};