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
+60
View File
@@ -0,0 +1,60 @@
/*******************************************************************
PHP Class : /Controller/Table/Gel/GajiController
Description : Master Standar Gaji
Created By : Siau Pheng ([email protected]).
Created Date : September 17th, 2014.
Last Modified : September 4th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var GajiJS = {
PHP: '',
KODE: '',
index: function(){
$('#butUbah').click(() => this.proses_edit());
$('#butSimpan').click(() => this.proses_save());
this.data_query('view');
},
proses_edit: function(){
this.data_query('update');
},
proses_save: function(){
new Request({
url: this.PHP + '/form_gaji',
sendParam: ['mode_detail=save','REG_ID','LEMBUR','BONUS1','BONUS2'],
onSuccess: (ajson) => {
$('#divMaster').html(ajson.html);
this.update_event();
FoniaJS.showInfo('Data Standar Gaji Karyawan sukses disimpan!');
}
}).send()
},
data_query: function(mode){
new Request({
url: this.PHP + '/form_gaji',
sendParam: ['mode_detail='+mode,'REG_ID'],
onSuccess: (ajson) => {
$('#divMaster').html(ajson.html);
this.update_event();
}
}).send()
},
update_event: function(){
if ($.inArray($('#mode_detail').val(), ['update']) >= 0) {
$("#butUbah").prop('disabled', true);
$("#butSimpan").prop('disabled', false);
} else {
$("#butUbah").prop('disabled', false);
$("#butSimpan").prop('disabled', true);
}
}
};
+83
View File
@@ -0,0 +1,83 @@
/*******************************************************************
PHP Class : /Controller/Table/Gel/GrupController
Description : Master Grup Rekening
Created By : Siau Pheng ([email protected]).
Created Date : May 19th, 2010.
Last Modified : September 4th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var RekGrupJS = {
PHP: '',
KODE: '',
index: function(){
this.data_query('detail');
$('#Cari_Rek').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click((e) => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_Rek').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Rek');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP + '/form_grup',
sendParam: ['mode_detail='+mode,'Grup_RekID='+ID],
onSuccess: (ajson) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Grup Rekening', ajson.html, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','Grup_RekID='+acell[0],'Cari_Rek'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','Grup_RekID','Nama_Grup','Aktif','Cari_Rek'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Rek']
}).send();
}
}
};
+79
View File
@@ -0,0 +1,79 @@
/*******************************************************************
PHP Class : /Controller/Table/Gel/KaryawanController
Description : Master Karyawan
Created By : Siau Pheng ([email protected]).
Created Date : July 7th, 2015.
Last Modified : September 4th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var KaryawanJS = {
PHP: '',
KODE: '',
index: function(){
this.data_query('detail');
$('#Cari_Karya').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_Karya').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Karya');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP + '/form_karya',
sendParam: ['mode_detail='+mode,'KaryaID='+ID],
onSuccess: (ajson) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Data Karyawan', ajson.html, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => $('#winDetail').find('#butWSimpan').click(() => this.detail_save()));
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','KaryaID='+acell[0],'Cari_Karya'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','KaryaID','Nama_Karya','Gaji_Harian','Tgl_Masuk','Tgl_Keluar','Aktif','Cari_Karya'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Karya']
}).send();
}
}
};
+102
View File
@@ -0,0 +1,102 @@
/*******************************************************************
PHP Class : /Controller/Table/Gel/RekController
Description : Master Rekening
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : September 4th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var RekJS = {
PHP: '',
KODE: '',
index: function(){
this.data_query('detail');
$('#butPrint').click(() => this.print_show());
$('#Cari_Rek').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_Rek').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Rek');
},
print_show: function(){
new Request({
url: this.PHP + '/detail_print',
onSuccess: (ajson) => {
this.winDPrint = FoniaJS.showWindow('DPrint', 'Cetak Daftar Rekening', ajson.html, 'lg', [{},{"i":"butWCetak","v":"Cetak","c":"info"},{"i":"butWPreview","v":"Pratinjau","c":"secondary"}], () => {
$('#winDPrint')
.find('#butWCetak').click(() => this.print_rek(true)).end()
.find('#butWPreview').click(() => this.print_rek());
});
}
}).send();
},
print_rek: function(prt){
var cetak = new Printer(this.PHP + '/print_rek');
cetak.add_param("Grup_RekID");
cetak.add_param("Level");
cetak.add_param("Tgl_Cetak");
if (prt) cetak.doPrint(); else cetak.doPreview();
FoniaJS.closeWindow(this.winDPrint);
},
detail_show: function(mode, ID){
new Request({
url: this.PHP + '/form_rek',
sendParam: ['mode_detail='+mode,'Kode_Rek='+ID],
onSuccess: (ajson) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Rekening', ajson.html, 'xl', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => $('#winDetail').find('#butWSimpan').click(() => this.detail_save()));
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','Kode_Rek='+acell[0],'Cari_Rek'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','Kode_Rek','Kode_Induk','Nama_Rek','Grup_RekID','Level','Mode','Kas_Rek','Aktif','Cari_Rek'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Rek']
}).send();
}
}
};