Files
cmasa/app/Scripts/report/member/point.js
T
2026-10-29 13:34:31 +07:00

54 lines
1.6 KiB
JavaScript

/*******************************************************************
PHP Class : /Controller/Report/Member/PointController
Description : Laporan Point Member
Created By : Siau Pheng ([email protected]).
Created Date : May 9th, 2017.
Last Modified : October 17th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var RepoMemberPointJS = {
PHP: '',
KODE: '',
index: function(){
$('#butCetak').click(() => this.proses_print(true));
$('#butPreview').click(() => this.proses_print());
$('#butExcel').click(() => this.proses_dload());
},
proses_print: function(prt){
if ($('#Point_TipeID').val() == 0){
FoniaJS.showInfo("Silakan pilih Tipe Point !");
return;
}
var cetak = new Printer(this.PHP + '/print');
cetak.add_param("CabID");
cetak.add_param("Point_TipeID");
cetak.add_param("Grup_MemberID");
cetak.add_param("Urut");
cetak.add_param("Tgl_From");
cetak.add_param("Tgl_To");
if (prt) cetak.doPrint(); else cetak.doPreview();
},
proses_dload: function(){
if ($('#Point_TipeID').val() == 0){
FoniaJS.showInfo("Silakan pilih Tipe Point !");
return;
}
var dload = new Download(this.PHP + '/excel');
dload.add_param("CabID");
dload.add_param("Point_TipeID");
dload.add_param("Grup_MemberID");
dload.add_param("Urut");
dload.add_param("Tgl_From");
dload.add_param("Tgl_To");
dload.download();
}
};