first commit

This commit is contained in:
2026-10-29 13:34:31 +07:00
commit 45e4595c57
255 changed files with 35457 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
/*******************************************************************
PHP Class : /Controller/Report/Gel/HariandetailController
Description : Laporan Jurnal Detail
Created By : Siau Pheng ([email protected]).
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('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Jurnal" placeholder="Kunci Pencarian" type="text"><button class="btn btn-info shadow-none" type="button" id="butSearch">Cari</button><button class="btn btn-secondary shadow-none" type="button" id="butAll">Semua</button></div></div></div><div id="divBrowJurnal">&nbsp;</div>');
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.JSONF({
url: this.PHP + '/brow_jurnal',
sendParam: ['Cari_Jurnal'],
onSuccess: () => FoniaJS.setFocus('#Cari_Jurnal')
}).send();
}
}
};