35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
/*******************************************************************
|
|
|
|
App. Name : Inventory Advanced Systems
|
|
Module : /apps/js/repo/terima.js
|
|
Desc. : JS - Laporan Penerimaan
|
|
Created By : Siau Pheng ([email protected]).
|
|
Created Date : July 17th, 2011.
|
|
Last Modified : July 4th, 2023.
|
|
|
|
(c) 2011 - 2023, 3FONIA Software; WWW.3FONIA.COM.
|
|
|
|
*******************************************************************/
|
|
|
|
var RepoTerimaJS = {
|
|
PHP: '',
|
|
KODE: '',
|
|
|
|
loading: function(){
|
|
$('#butCetak').click(function(){this.proses_print('print');}.bind(this));
|
|
$('#butPreview').click(function(){this.proses_print('preview');}.bind(this));
|
|
//$('#butExcel').click(function(){this.proses_dload();}.bind(this));
|
|
},
|
|
|
|
proses_print: function(prt){
|
|
var cetak = new cPRINTER(this.PHP);
|
|
cetak.set_zoom(90);
|
|
cetak.add_param("data", "print");
|
|
cetak.add_param("Tipe");
|
|
cetak.add_param("Tgl_From");
|
|
cetak.add_param("Tgl_To");
|
|
if (prt=='print') { cetak.doPrint(); } else cetak.doPreview();
|
|
}
|
|
|
|
};
|