first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : Inventory Advanced Systems
|
||||
Module : /apps/js/repo/beli.js
|
||||
Desc. : JS - Laporan Pembelian
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : April 12th, 2011.
|
||||
Last Modified : July 4th, 2023.
|
||||
|
||||
(c) 2011 - 2023, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RepoBeliJS = {
|
||||
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('SupID');
|
||||
cetak.add_param('Tgl_From');
|
||||
cetak.add_param('Tgl_To');
|
||||
if (prt=='print') { cetak.doPrint(); } else cetak.doPreview();
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user