first commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : Inventory Advanced Systems
|
||||
Module : /apps/js/repo/produk.js
|
||||
Desc. : JS - Laporan Daftar Produk
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : May 26th, 2010.
|
||||
Last Modified : March 21st, 2023.
|
||||
|
||||
(c) 2010 - 2023, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RepoProdukJS = {
|
||||
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('Grup_InvID');
|
||||
cetak.add_param('Tgl_Cetak');
|
||||
if (prt=='print') { cetak.doPrint(); } else cetak.doPreview();
|
||||
},
|
||||
|
||||
proses_dload: function(){
|
||||
var dload = new cEXPORT(this.PHP);
|
||||
dload.add_param('data', 'export');
|
||||
dload.add_param('Grup_InvID');
|
||||
dload.add_param('Tgl_Cetak');
|
||||
dload.download();
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user