/******************************************************************* PHP Class : /Controller/Report/Gel/HariandetailController Description : Laporan Jurnal Detail Created By : Siau Pheng (siaupheng@3fonia.com). Created Date : June 5th, 2009. Last Modified : October 24th, 2026. (c) 3FONIA Software; WWW.3FONIA.COM. *******************************************************************/ var RepoGelHDetailJS = { PHP: '', KODE: '', index: function(){ $('#butCetak').click(() => this.proses_print(true)); $('#butPreview').click(() => this.proses_print()); $('#butBrowJurnal').click(() => this.jurnal_brow()); $('#Kode_Jurnal').keyup((e) => { if ((e.which || e.keyCode) == 13) { if (($("#Kode_Jurnal")) && ($("#Kode_Jurnal").val() !== '')) this.proses_print(); } }); FoniaJS.setFocus('#Kode_Jurnal'); }, proses_print: function(prt){ var cetak = new Printer(this.PHP + '/print'); cetak.add_param("Kode_Jurnal"); if (prt) cetak.doPrint(); else cetak.doPreview(); }, jurnal_brow: function(){ var _isi = new String('
 
'); this.winBTX = FoniaJS.showWindow('BTX', 'Daftar Transaksi', _isi, 'xl', '', () => { $('#winBTX') .find('#Cari_Jurnal').keydown((e) => { var key = e.keyCode || e.which || 0; if (key==13 && e.target.value!='') this.data_query('brow-jurnal'); }).end() .find('#butSearch').click(() => this.data_query('brow-jurnal')).end() .find('#butAll').click(() => { $('#winBTX').find('#Cari_Jurnal').val(''); this.data_query('brow-jurnal'); }); this.data_query('brow-jurnal'); }); }, jurnal_select: function(acell){ FoniaJS.closeWindow(this.winBTX); $('#Kode_Jurnal').val(acell[0]); }, data_query: function(tipe, mode){ if (tipe=="brow-jurnal"){ new Request_JSF({ url: this.PHP + '/brow_jurnal', sendParam: ['Cari_Jurnal'], onSuccess: () => FoniaJS.setFocus('#Cari_Jurnal') }).send(); } } };