/******************************************************************* App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI Module : /apps/js/hasil/renja.js Desc. : JS - Evaluasi Hasil Renja Created By : Siau Pheng (siaupheng@3fonia.com). Created Date : December 7th, 2011. Last Modified : March 13th, 2025. (c) 2011 - 2025, 3FONIA Software; WWW.3FONIA.COM. *******************************************************************/ var HasilRenjaJS = { PHP: '', KODE: '', loading: function(){ $('#butPrint').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(80); cetak.add_param("data", "print"); cetak.add_param("Tahun"); cetak.add_param("TW"); cetak.add_param("OPDID"); 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("Tahun"); dload.add_param("TW"); dload.add_param("OPDID"); dload.download(); } };