upgrade mengikuti dalev
This commit is contained in:
@@ -1,642 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/dpa.js
|
||||
Desc. : JS - Kelola Data DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : March 14th, 2025.
|
||||
|
||||
(c) 2011 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var DPAJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butPROG').click(function(){
|
||||
if ($('#ProgID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
$('#butKEG').click(function(){
|
||||
if ($('#KegID').val()>0) this.show_hide(3);
|
||||
}.bind(this));
|
||||
$('#butSUB').click(function(){
|
||||
if ($('#SubID').val()>0) this.show_hide(4);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').css('display', 'none'); $('#butPROG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').css('display', 'none'); $('#butKEG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divSUB').css('display', 'none'); $('#butSUB').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divAKUN').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#ORGID').val(0);
|
||||
$('#AK_Bidu').val('');
|
||||
$('#K_Bidu1').val('');
|
||||
$('#Nama_OPD').val('');
|
||||
$('#Hak_DPA').val(1);
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#ProgID').val(0);
|
||||
$('#Nama_PROG').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#KegID').val(0);
|
||||
$('#Nama_KEG').val('');
|
||||
$('#butPROG').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 3) {
|
||||
$('#SubID').val(0);
|
||||
$('#Nama_SUB').val('');
|
||||
$('#butKEG').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 4) {
|
||||
$('#butSUB').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divPROG').css('display', ''); this.data_query('tabel-prog'); }
|
||||
if (no == 3) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
|
||||
if (no == 4) { $('#divSUB').css('display', ''); this.data_query('tabel-sub'); }
|
||||
if (no == 5) { $('#divAKUN').css('display', ''); this.data_query('tabel-akun'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#ORGID').val(acell[1]);
|
||||
$('#Nama_OPD').val(acell[2]);
|
||||
$('#AK_Bidu').val(acell[3]);
|
||||
$('#K_Bidu1').val(acell[4]);
|
||||
$('#Hak_DPA').val(acell[5]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
prog_select: function(acell){
|
||||
$('#ProgID').val(acell[1]);
|
||||
$('#Nama_PROG').val(acell[2]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
prog_brow: function() {
|
||||
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Prog" 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="divBrowProg"> </div>');
|
||||
this.winBProg = FoniaJS.showWindow('BProg', 'Daftar Program', _isi, 900, '', function(){
|
||||
$('#winBProg').find('#Cari_Prog').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('brow-prog');
|
||||
}.bind(this));
|
||||
$('#winBProg').find('#butSearch').click(function(e){
|
||||
this.data_query('brow-prog');
|
||||
}.bind(this));
|
||||
$('#winBProg').find('#butAll').click(function(){
|
||||
$('#winBProg').find('#Cari_Prog').val('');
|
||||
this.data_query('brow-prog');
|
||||
}.bind(this));
|
||||
this.data_query('brow-prog');
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
prog_brow_select: function(acell) {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog','mode_detail=insert','Hak_DPA','ORGID','OPDID','K_Bidu1','ProgID='+acell[0],'K_Bidu='+acell[1],'K_Prog='+acell[2]],
|
||||
onSuccess: function(){
|
||||
FoniaJS.closeWindow(this.winBProg);
|
||||
FoniaJS.showInfo("Program baru telah ditambahkan.");
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
prog_edit: function(acell){
|
||||
$('#ProgID').val(acell[1]);
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-prog','Hak_DPA','ORGID','OPDID','ProgID','DPAProgID='+acell[0]],
|
||||
onSuccess: function(txt){
|
||||
this.winProg = FoniaJS.showWindow('Prog', 'Detail Program', txt, 1000, [{},{i:'butTutup'}], function(){
|
||||
this.data_query('tabel-prog-indi');
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
prog_indi_add: function(){
|
||||
var dt = $('#divProgIndiTabel').DataTable(), l_row;
|
||||
dt.order([1,'asc']);
|
||||
l_row = dt.row(':last');
|
||||
if (!dt.data().count() || l_row.data()[0]!=='0'){
|
||||
dt.row.add(['0','','','<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-pencil"></i></a>']).draw(true);
|
||||
l_row = dt.row(':last');
|
||||
}
|
||||
if (!l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
},
|
||||
|
||||
prog_indi_form: function(acell, div){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-prog-indi','Hak_DPA','ORGID','OPDID','ProgID','DPAProgIndiID='+acell[0]],
|
||||
onSuccess: (adata) => {
|
||||
$(div).html(adata.html);
|
||||
$(div).find('#butSimpanIndi').click(() => this.prog_indi_save());
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
prog_indi_del: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog-indi','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','DPAProgIndiID='+acell[0]],
|
||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||
|
||||
}).send();
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
prog_indi_save: function(){
|
||||
if ($('#Text_Indi').val()==''){
|
||||
FoniaJS.showInfo('Mohon lengkapi data Indikator Program !');
|
||||
return false;
|
||||
}
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog-indi','mode_detail','Hak_DPA','ORGID','OPDID','ProgID','DPAProgIndiID','Text_Indi','TipeDataID','Target_Indi','Satuan_Indi'],
|
||||
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan Indikator Program.')
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_select: function(acell){
|
||||
$('#KegID').val(acell[1]);
|
||||
$('#Nama_KEG').val(acell[2]);
|
||||
this.show_hide(4);
|
||||
},
|
||||
|
||||
keg_brow: function() {
|
||||
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Keg" 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="divBrowKeg"> </div>');
|
||||
this.winBKeg = FoniaJS.showWindow('BKeg', 'Daftar Kegiatan', _isi, 900, '', function(){
|
||||
$('#winBKeg').find('#Cari_Keg').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('brow-keg');
|
||||
}.bind(this));
|
||||
$('#winBKeg').find('#butSearch').click(function(e){
|
||||
this.data_query('brow-keg');
|
||||
}.bind(this));
|
||||
$('#winBKeg').find('#butAll').click(function(){
|
||||
$('#winBKeg').find('#Cari_Keg').val('');
|
||||
this.data_query('brow-keg');
|
||||
}.bind(this));
|
||||
this.data_query('brow-keg');
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
keg_brow_select: function(acell) {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','mode_detail=insert','Hak_DPA','ORGID','OPDID','ProgID','KegID='+acell[0],'K_Keg='+acell[1]],
|
||||
onSuccess: function(){
|
||||
FoniaJS.closeWindow(this.winBKeg);
|
||||
FoniaJS.showInfo("Kegiatan baru telah ditambahkan.");
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_edit: function(acell){
|
||||
$('#KegID').val(acell[1]);
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg','Hak_DPA','ORGID','OPDID','ProgID','KegID','DPAKegID='+acell[0]],
|
||||
onSuccess: function(txt){
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_DPA').val()==0) tombol.pop();
|
||||
this.winKeg = FoniaJS.showWindow('Keg', 'Detail Kegiatan', txt, 1000, tombol, function(){
|
||||
$('#winKeg').find('#butWSimpan').click(function(){this.keg_save();}.bind(this));
|
||||
this.data_query('tabel-keg-keluar')
|
||||
this.data_query('tabel-keg-hasil')
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_keluar_add: function(){
|
||||
var dt = $('#divKegKeluarTabel').DataTable(), l_row;
|
||||
dt.order([1,'asc']);
|
||||
l_row = dt.row(':last');
|
||||
if (!dt.data().count() || l_row.data()[0]!=='0'){
|
||||
dt.row.add(['0','','','<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-pencil"></i></a>']).draw(true);
|
||||
l_row = dt.row(':last');
|
||||
}
|
||||
if (!l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
},
|
||||
|
||||
keg_keluar_form: function(acell, div){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg-keluar','Hak_DPA','ORGID','OPDID','ProgID','KegID','DPAKegKeluarID='+acell[0]],
|
||||
onSuccess: function(adata){
|
||||
$(div).html(adata.html);
|
||||
$(div).find('#butSimpanKeluar').click(function(e){
|
||||
this.keg_keluar_save();
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_keluar_del: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg-keluar','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','KegID','DPAKegKeluarID='+acell[0]],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
keg_keluar_save: function(){
|
||||
if ($('#Text_Keluar').val()==''){
|
||||
FoniaJS.showInfo('Mohon lengkapi data Keluaran Kegiatan !');
|
||||
return false;
|
||||
}
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg-keluar','mode_detail','Hak_DPA','ORGID','OPDID','ProgID','KegID','DPAKegKeluarID','Text_Keluar','Target_Keluar','Satuan_Keluar'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Sukses menyimpan Keluaran Kegiatan.');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_hasil_add: function(){
|
||||
var dt = $('#divKegHasilTabel').DataTable(), l_row;
|
||||
dt.order([1,'asc']);
|
||||
l_row = dt.row(':last');
|
||||
if (!dt.data().count() || l_row.data()[0]!=='0'){
|
||||
dt.row.add(['0','','','<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-pencil"></i></a>']).draw(true);
|
||||
l_row = dt.row(':last');
|
||||
}
|
||||
if (!l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
},
|
||||
|
||||
keg_hasil_form: function(acell, div){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg-hasil','Hak_DPA','ORGID','OPDID','ProgID','KegID','DPAKegHasilID='+acell[0]],
|
||||
onSuccess: function(adata){
|
||||
$(div).html(adata.html);
|
||||
$(div).find('#butSimpanHasil').click(function(e){
|
||||
this.keg_hasil_save();
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_hasil_del: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg-hasil','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','KegID','DPAKegHasilID='+acell[0]],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
keg_hasil_save: function(){
|
||||
if ($('#Text_Hasil').val()==''){
|
||||
FoniaJS.showInfo('Mohon lengkapi data Hasil Kegiatan !');
|
||||
return false;
|
||||
}
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg-hasil','mode_detail','Hak_DPA','ORGID','OPDID','ProgID','KegID','DPAKegHasilID','Text_Hasil','Target_Hasil','Satuan_Hasil'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Sukses menyimpan Hasil Kegiatan.');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','mode_detail=update','Hak_DPA','ORGID','OPDID','ProgID','KegID','DPAKegID','Sasaran'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.closeWindow(this.winKeg);
|
||||
FoniaJS.showInfo('Sukses menyimpan Kegiatan.');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_select: function(acell){
|
||||
$('#SubID').val(acell[1]);
|
||||
$('#Nama_SUB').val(acell[2]);
|
||||
this.show_hide(5);
|
||||
},
|
||||
|
||||
sub_brow: function() {
|
||||
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Sub" 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="divBrowSub"> </div>');
|
||||
this.winBSub = FoniaJS.showWindow('BSub', 'Daftar Sub Kegiatan', _isi, 900, '', function(){
|
||||
$('#winBSub').find('#Cari_Sub').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('brow-sub');
|
||||
}.bind(this));
|
||||
$('#winBSub').find('#butSearch').click(function(e){
|
||||
this.data_query('brow-sub');
|
||||
}.bind(this));
|
||||
$('#winBSub').find('#butAll').click(function(){
|
||||
$('#winBSub').find('#Cari_Sub').val('');
|
||||
this.data_query('brow-sub');
|
||||
}.bind(this));
|
||||
this.data_query('brow-sub');
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
sub_brow_select: function(acell) {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub','mode_detail=insert','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID='+acell[0],'K_Sub='+acell[1]],
|
||||
onSuccess: function(){
|
||||
FoniaJS.closeWindow(this.winBSub);
|
||||
FoniaJS.showInfo("Sub Kegiatan baru telah ditambahkan.");
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_edit: function(acell){
|
||||
$('#SubID').val(acell[1]);
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sub','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID='+acell[1],'DPASubID='+acell[0]],
|
||||
onSuccess: function(txt){
|
||||
var tombol = [{i:'butWBagi',v:'Bagi Rata Belanja ke Rencana Triwulan',c:'info'},{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_DPA').val()==0) tombol = [{},{i:'butTutup'}];
|
||||
this.winSub = FoniaJS.showWindow('Sub', 'Detail Sub Kegiatan', txt, 1000, tombol, function(){
|
||||
$('#winSub')
|
||||
.find('#butWBagi').click(function(){this.sub_bagi_triw();}.bind(this)).end()
|
||||
.find('#butWSimpan').click(function(){this.sub_save();}.bind(this));
|
||||
$('#formSub').validate({
|
||||
rules: {
|
||||
required: true,
|
||||
Waktu1: {required:true, min:1},
|
||||
Waktu2: {required:true, min:1},
|
||||
}
|
||||
});
|
||||
this.data_query('tabel-sub-output')
|
||||
this.Calc_Belanja();
|
||||
this.Calc_RencK();
|
||||
this.Calc_RencF();
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_output_add: function(){
|
||||
var dt = $('#divSubOutputTabel').DataTable(), l_row;
|
||||
dt.order([1,'asc']);
|
||||
l_row = dt.row(':last');
|
||||
if (!dt.data().count() || l_row.data()[0]!=='0'){
|
||||
dt.row.add(['0','','','<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-pencil"></i></a>']).draw(true);
|
||||
l_row = dt.row(':last');
|
||||
}
|
||||
if (!l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
},
|
||||
|
||||
sub_output_form: function(acell, div){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sub-output','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubOutputID='+acell[0]],
|
||||
onSuccess: function(adata){
|
||||
$(div).html(adata.html);
|
||||
$(div).find('#butSimpanOutput').click(function(e){
|
||||
this.sub_output_save();
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_output_del: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub-output','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubOutputID='+acell[0]],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
sub_output_save: function(){
|
||||
if ($('#Text_Output').val()==''){
|
||||
FoniaJS.showInfo('Mohon lengkapi data Output Sub Kegiatan !');
|
||||
return false;
|
||||
}
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub-output','mode_detail','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubOutputID','Text_Output','Target_Output','Satuan_Output'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Sukses menyimpan Output Sub Kegiatan.');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_hapus: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubID='+acell[0]],
|
||||
onSuccess: function(adata){
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
sub_save: function(){
|
||||
$('#formSub').submit();
|
||||
if (true !== $('#formSub').validate().checkForm()) return false;
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub','mode_detail=update','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubID','Lokasi','Waktu1','Waktu2','Pagu_Dpn','B_Operasi','B_Modal','B_Terduga','B_Transfer','RencK_TW1','RencK_TW2','RencK_TW3','RencK_TW4','RencF_TW1','RencF_TW2','RencF_TW3','RencF_TW4'],
|
||||
onSuccess: function(adata){
|
||||
FoniaJS.closeWindow(this.winSub);
|
||||
FoniaJS.showInfo('Sukses menyimpan detail Sub Kegiatan.');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
akun_detail: function(mode, ID){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-akun','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPAAkunID='+ID],
|
||||
onSuccess: function(txt){
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_DPA').val()==0) tombol.pop();
|
||||
this.winDAkun = FoniaJS.showWindow('DAkun', 'Detail Akun', txt, 900, tombol, function(){
|
||||
$('#winDAkun').find('#butWSimpan').click(function(){this.akun_save();}.bind(this));
|
||||
this.Hitung_Akun();
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
akun_tambah: function(){
|
||||
this.akun_detail('insert', 0);
|
||||
},
|
||||
|
||||
akun_ubah: function(acell){
|
||||
this.akun_detail('update', acell[0]);
|
||||
},
|
||||
|
||||
akun_hapus: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[3]+'"</b> ?', function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-akun','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPAAkunID='+acell[0]],
|
||||
onSuccess: function(adata){
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
akun_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-akun','mode_detail','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','AkunID','K_Akun','Volume','SatuanID','Harga_Satuan','Renc_Keu','Renc_Fisik','DPAAkunID'],
|
||||
onSuccess: function(adata){
|
||||
FoniaJS.closeWindow(this.winDAkun);
|
||||
FoniaJS.showInfo('Sukses menyimpan detail Akun.');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog','Hak_DPA','ORGID','OPDID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-prog-indi"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog-indi','Hak_DPA','ORGID','OPDID','ProgID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg" || tipe=="tabel-prog-indi"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data='+tipe,'Hak_DPA','ORGID','OPDID','ProgID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-sub" || tipe=="tabel-keg-keluar" || tipe=="tabel-keg-hasil"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data='+tipe,'Hak_DPA','ORGID','OPDID','ProgID','KegID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-akun" || tipe=="tabel-sub-output"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data='+tipe,'Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID']
|
||||
}).send();
|
||||
} else if (tipe=="brow-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=brow-prog','ORGID','OPDID','AK_Bidu','Cari_Prog'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.setFocus('#Cari_Prog');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
} else if (tipe=="brow-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=brow-keg','ORGID','OPDID','ProgID','Cari_Keg'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.setFocus('#Cari_Keg');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
} else if (tipe=="brow-sub"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=brow-sub','ORGID','OPDID','ProgID','KegID','Cari_Sub'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.setFocus('#Cari_Sub');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
},
|
||||
|
||||
sub_bagi_triw: function(){
|
||||
var dnilai = FoniaJS.StrToFloat($('#Jumlah_Bel').val());
|
||||
if (dnilai > 0) dnilai = FoniaJS.FloatToStr(dnilai / 4, 2);
|
||||
var tnilai = FoniaJS.FloatToStr(dnilai, 2);
|
||||
$('#RencK_TW1').val(tnilai);
|
||||
$('#RencK_TW2').val(tnilai);
|
||||
$('#RencK_TW3').val(tnilai);
|
||||
$('#RencK_TW4').val(tnilai);
|
||||
$('#RencF_TW1').val(25.00);
|
||||
$('#RencF_TW2').val(50.00);
|
||||
$('#RencF_TW3').val(75.00);
|
||||
$('#RencF_TW4').val(100.00);
|
||||
this.Calc_RencK();
|
||||
this.Calc_RencF();
|
||||
},
|
||||
|
||||
Calc_Belanja: function(){
|
||||
$('#Jumlah_Bel').val(FoniaJS.FloatToStr(FoniaJS.StrToFloat($('#B_Operasi').val()) + FoniaJS.StrToFloat($('#B_Modal').val()) + FoniaJS.StrToFloat($('#B_Terduga').val()) + FoniaJS.StrToFloat($('#B_Transfer').val()), 2));
|
||||
this.Check_Rencana();
|
||||
},
|
||||
|
||||
Calc_RencK: function(){
|
||||
$('#Jumlah_RencK').val(FoniaJS.FloatToStr(FoniaJS.StrToFloat($('#RencK_TW1').val()) + FoniaJS.StrToFloat($('#RencK_TW2').val()) + FoniaJS.StrToFloat($('#RencK_TW3').val()) + FoniaJS.StrToFloat($('#RencK_TW4').val()), 2));
|
||||
this.Check_Rencana();
|
||||
},
|
||||
|
||||
Calc_RencF: function(){
|
||||
$('#Jumlah_RencF').val(FoniaJS.FloatToStr(Math.max(FoniaJS.StrToFloat($('#RencF_TW1').val()), FoniaJS.StrToFloat($('#RencF_TW2').val()), FoniaJS.StrToFloat($('#RencF_TW3').val()), FoniaJS.StrToFloat($('#RencF_TW4').val())), 2));
|
||||
this.Check_Rencana();
|
||||
},
|
||||
|
||||
Check_Rencana: function(){
|
||||
var brenc = (FoniaJS.StrToFloat($('#Jumlah_Bel').val())==FoniaJS.StrToFloat($('#Jumlah_RencK').val())) ? true : false;
|
||||
var nsave = 0;
|
||||
if (FoniaJS.StrToFloat($('#Jumlah_Bel').val())==FoniaJS.StrToFloat($('#Jumlah_RencK').val())) {
|
||||
if (FoniaJS.StrToFloat($('#Jumlah_RencF').val())==100) nsave = 1;
|
||||
}
|
||||
$('#Status_Save').val(nsave);
|
||||
if (brenc){
|
||||
$('#Jumlah_RencK').removeClass('is-invalid').addClass('is-valid').prop('aria-invalid', false);
|
||||
} else {
|
||||
$('#Jumlah_RencK').removeClass('is-valid').addClass('is-invalid').prop('aria-invalid', true);
|
||||
}
|
||||
},
|
||||
|
||||
Hitung_Akun: function(){
|
||||
var harga = FoniaJS.StrToFloat($('#Harga_Satuan').val());
|
||||
var volume = FoniaJS.StrToFloat($('#Volume').val());
|
||||
$('#Pagu_Ini').val(FoniaJS.FloatToStr(harga * volume, 2));
|
||||
$('#Renc_Keu').val(FoniaJS.FloatToStr(harga * volume, 2));
|
||||
},
|
||||
|
||||
oc_ProgTipe: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=change-tipedata','Hak_DPA','TipeDataID','Target_Indi'],
|
||||
onSuccess: (ajson) => $('#inputTarget').html(ajson.html)
|
||||
}).send();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,88 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/ebijak_renja.js
|
||||
Desc. : JS - Evaluasi Kebijakan Renja
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : February 19th, 2024.
|
||||
|
||||
(c) 2011 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EBijakRenjaJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
keg_detail: function(id_k, nm_k){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg','OPDID','KendaliID='+id_k],
|
||||
onSuccess: function(txt){
|
||||
this.winKeg = FoniaJS.showWindow('Keg', 'Detail Pengendalian', txt, 900, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
$('#winKeg').find('#butWSimpan').click(function(){this.keg_save();}.bind(this));
|
||||
$('#N_Kendali').val(nm_k);
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_ubah: function(acell){
|
||||
this.keg_detail(acell[0], acell[2]);
|
||||
},
|
||||
|
||||
keg_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID','KendaliID','Sesuai','Sebab','Tindak','mode_detail=save'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winKeg);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,88 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/ebijak_renja.js
|
||||
Desc. : JS - Evaluasi Kebijakan Renja
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : February 19th, 2024.
|
||||
|
||||
(c) 2011 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EBijakRenstraJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
keg_detail: function(id_k, nm_k){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg','OPDID','KendaliID='+id_k],
|
||||
onSuccess: function(txt){
|
||||
this.winKeg = FoniaJS.showWindow('Keg', 'Detail Pengendalian', txt, 900, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
$('#winKeg').find('#butWSimpan').click(function(){this.keg_save();}.bind(this));
|
||||
$('#N_Kendali').val(nm_k);
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_ubah: function(acell){
|
||||
this.keg_detail(acell[0], acell[2]);
|
||||
},
|
||||
|
||||
keg_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID','KendaliID','Sesuai','Sebab','Tindak','mode_detail=save'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winKeg);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,88 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/ebijak_renja.js
|
||||
Desc. : JS - Evaluasi Kebijakan Renja
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : February 19th, 2024.
|
||||
|
||||
(c) 2011 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EBijakRKPDJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
keg_detail: function(id_k, nm_k){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg','OPDID','KendaliID='+id_k],
|
||||
onSuccess: function(txt){
|
||||
this.winKeg = FoniaJS.showWindow('Keg', 'Detail Pengendalian', txt, 900, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
$('#winKeg').find('#butWSimpan').click(function(){this.keg_save();}.bind(this));
|
||||
$('#N_Kendali').val(nm_k);
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_ubah: function(acell){
|
||||
this.keg_detail(acell[0], acell[2]);
|
||||
},
|
||||
|
||||
keg_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID','KendaliID','Sesuai','Sebab','Tindak','mode_detail=save'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winKeg);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,88 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/ebijak_renja.js
|
||||
Desc. : JS - Evaluasi Kebijakan Renja
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : February 19th, 2024.
|
||||
|
||||
(c) 2011 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EBijakRPJMDJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
keg_detail: function(id_k, nm_k){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg','OPDID','KendaliID='+id_k],
|
||||
onSuccess: function(txt){
|
||||
this.winKeg = FoniaJS.showWindow('Keg', 'Detail Pengendalian', txt, 900, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
$('#winKeg').find('#butWSimpan').click(function(){this.keg_save();}.bind(this));
|
||||
$('#N_Kendali').val(nm_k);
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_ubah: function(acell){
|
||||
this.keg_detail(acell[0], acell[2]);
|
||||
},
|
||||
|
||||
keg_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID','KendaliID','Sesuai','Sebab','Tindak','mode_detail=save'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winKeg);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,43 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/ehasil_kinerja.js
|
||||
Desc. : JS - Laporan Evaluasi Kinerja Triwulan Per OPD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 20th, 2012.
|
||||
Last Modified : November 12th, 2024.
|
||||
|
||||
(c) 2012 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EHasilKinerjaJS = {
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,43 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/ehasil_real.js
|
||||
Desc. : JS - Laporan Realisasi Bulanan Per OPD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 20th, 2012.
|
||||
Last Modified : February 15th, 2023.
|
||||
|
||||
(c) 2012 - 2023, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EHasilRealJS = {
|
||||
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("Bulan");
|
||||
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("Bulan");
|
||||
dload.add_param("OPDID");
|
||||
dload.download();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,43 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa_real.js
|
||||
Desc. : JS - Transaksi Realisasi Triwulan DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : March 13th, 2025.
|
||||
|
||||
(c) 2011 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EHasilRenjaJS = {
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,84 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa_real.js
|
||||
Desc. : JS - Transaksi Realisasi Triwulan DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : July 4th, 2020.
|
||||
|
||||
(c) 2011 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EHasilRenstraJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butUPT').click(function(){
|
||||
if ($('#UPTID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divUPT').css('display', 'none'); $('#butUPT').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divOUTPUT').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#UPTID').val(0);
|
||||
$('#Nama_UPT').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#butUPT').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divUPT').css('display', ''); this.data_query('tabel-upt'); }
|
||||
if (no == 3) { $('#divOUTPUT').css('display', ''); this.data_query('tabel-output'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
upt_select: function(acell){
|
||||
$('#UPTID').val(acell[0]);
|
||||
$('#Nama_UPT').val(acell[1]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-upt"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-upt','OPDID'],
|
||||
}).send();
|
||||
} else if (tipe=="tabel-output"){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-output','OPDID','UPTID'],
|
||||
onSuccess: function(txt){
|
||||
$('#divOUTPUT').html(txt);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,84 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa_real.js
|
||||
Desc. : JS - Transaksi Realisasi Triwulan DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : July 4th, 2020.
|
||||
|
||||
(c) 2011 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EHasilRKPDJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butUPT').click(function(){
|
||||
if ($('#UPTID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divUPT').css('display', 'none'); $('#butUPT').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divOUTPUT').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#UPTID').val(0);
|
||||
$('#Nama_UPT').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#butUPT').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divUPT').css('display', ''); this.data_query('tabel-upt'); }
|
||||
if (no == 3) { $('#divOUTPUT').css('display', ''); this.data_query('tabel-output'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
upt_select: function(acell){
|
||||
$('#UPTID').val(acell[0]);
|
||||
$('#Nama_UPT').val(acell[1]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-upt"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-upt','OPDID'],
|
||||
}).send();
|
||||
} else if (tipe=="tabel-output"){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-output','OPDID','UPTID'],
|
||||
onSuccess: function(txt){
|
||||
$('#divOUTPUT').html(txt);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,84 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa_real.js
|
||||
Desc. : JS - Transaksi Realisasi Triwulan DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : July 4th, 2020.
|
||||
|
||||
(c) 2011 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var EHasilRPJMDJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butUPT').click(function(){
|
||||
if ($('#UPTID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divUPT').css('display', 'none'); $('#butUPT').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divOUTPUT').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#UPTID').val(0);
|
||||
$('#Nama_UPT').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#butUPT').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divUPT').css('display', ''); this.data_query('tabel-upt'); }
|
||||
if (no == 3) { $('#divOUTPUT').css('display', ''); this.data_query('tabel-output'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
upt_select: function(acell){
|
||||
$('#UPTID').val(acell[0]);
|
||||
$('#Nama_UPT').val(acell[1]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-upt"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-upt','OPDID'],
|
||||
}).send();
|
||||
} else if (tipe=="tabel-output"){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-output','OPDID','UPTID'],
|
||||
onSuccess: function(txt){
|
||||
$('#divOUTPUT').html(txt);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,63 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa_real.js
|
||||
Desc. : JS - Transaksi Realisasi Triwulan DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : April 12th, 2017.
|
||||
|
||||
(c) 2011 - 2017, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var ELaksaRenjaJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divOUTPUT').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divOUTPUT').css('display', ''); this.data_query('tabel-output'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-output"){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-output','OPDID'],
|
||||
onSuccess: function(txt){
|
||||
$('#divOUTPUT').html(txt);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,84 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa_real.js
|
||||
Desc. : JS - Transaksi Realisasi Triwulan DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : April 12th, 2017.
|
||||
|
||||
(c) 2011 - 2017, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var ELaksaRKPDJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butUPT').click(function(){
|
||||
if ($('#UPTID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divUPT').css('display', 'none'); $('#butUPT').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divOUTPUT').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#UPTID').val(0);
|
||||
$('#Nama_UPT').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#butUPT').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divUPT').css('display', ''); this.data_query('tabel-upt'); }
|
||||
if (no == 3) { $('#divOUTPUT').css('display', ''); this.data_query('tabel-output'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
upt_select: function(acell){
|
||||
$('#UPTID').val(acell[0]);
|
||||
$('#Nama_UPT').val(acell[1]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-upt"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-upt','OPDID'],
|
||||
}).send();
|
||||
} else if (tipe=="tabel-output"){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-output','OPDID','UPTID'],
|
||||
onSuccess: function(txt){
|
||||
$('#divOUTPUT').html(txt);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,84 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa_real.js
|
||||
Desc. : JS - Transaksi Realisasi Triwulan DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : April 12th, 2017.
|
||||
|
||||
(c) 2011 - 2017, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var ELaksaRPJMDJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
//$('butPrint').addEvent('click', function(){this.proses_print();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butUPT').click(function(){
|
||||
if ($('#UPTID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divUPT').css('display', 'none'); $('#butUPT').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divOUTPUT').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#UPTID').val(0);
|
||||
$('#Nama_UPT').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#butUPT').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divUPT').css('display', ''); this.data_query('tabel-upt'); }
|
||||
if (no == 3) { $('#divOUTPUT').css('display', ''); this.data_query('tabel-output'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
upt_select: function(acell){
|
||||
$('#UPTID').val(acell[0]);
|
||||
$('#Nama_UPT').val(acell[1]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-upt"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-upt','OPDID'],
|
||||
}).send();
|
||||
} else if (tipe=="tabel-output"){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-output','OPDID','UPTID'],
|
||||
onSuccess: function(txt){
|
||||
$('#divOUTPUT').html(txt);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,86 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/faktor_opd.js
|
||||
Desc. : JS - Kelola Faktor Pendukung OPD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : May 24th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var FaktorOPDJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butOPD').click(() => {
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
});
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').addClass('d-none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divFAKTOR').addClass('d-none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#ORGID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
$('#Hak_Real').val(1);
|
||||
$('#K_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').removeClass('d-none'); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divFAKTOR').removeClass('d-none'); this.data_query('detail-faktor'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#ORGID').val(acell[1]);
|
||||
$('#Nama_OPD').val(acell[2]);
|
||||
$('#Hak_Real').val(acell[3]);
|
||||
$('#K_OPD').val(acell[4]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
faktor_save: function(){
|
||||
var _param = ['data=simpan-faktor','ORGID','OPDID','K_OPD','DalevRenjaID'];
|
||||
$(':input[id^="Pendorong_"]').each((i,e) => { _param.push(e.id); });
|
||||
$(':input[id^="Penghambat_"]').each((i,e) => { _param.push(e.id); });
|
||||
$(':input[id^="Lanjut_"]').each((i,e) => { _param.push(e.id); });
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: _param,
|
||||
onSuccess: () => {
|
||||
FoniaJS.showInfo('Sukses menyimpan Faktor Pendukung OPD.');
|
||||
this.data_query('detail-faktor');
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="detail-faktor"){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-faktor','Hak_Real','ORGID','OPDID'],
|
||||
onSuccess: (adata) => {
|
||||
$('#divFAKTOR').html(adata.html);
|
||||
$('#divFAKTOR')
|
||||
.find('#butBatalFaktor').click((e) => this.show_hide(1)).end()
|
||||
.find('#butSimpanFaktor').click((e) => this.faktor_save());
|
||||
}
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,135 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa.js
|
||||
Desc. : JS - Transaksi Input DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : February 19th, 2024.
|
||||
|
||||
(c) 2011 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var ILaksaJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butPROG').click(function(){
|
||||
if ($('#ProgID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').css('display', 'none'); $('#butPROG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#ProgID').val(0);
|
||||
$('#Nama_PROG').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#butPROG').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divPROG').css('display', ''); this.data_query('tabel-prog'); }
|
||||
if (no == 3) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
prog_select: function(acell){
|
||||
$('#ProgID').val(acell[0]);
|
||||
$('#Nama_PROG').val(acell[1]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
keg_detail: function(mode, k_rka){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg','mode_detail='+mode,'OPDID','UPTID','ProgID','K_RKA='+k_rka],
|
||||
onSuccess: function(txt){
|
||||
this.winKeg = FoniaJS.showWindow('Keg', 'Detail Kegiatan', txt, 900, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
$('#winKeg')
|
||||
.find('#butWSimpan').click(function(){this.keg_save();}.bind(this)).end()
|
||||
.find('#butXCopyMasuk').click(function(e){
|
||||
$('#T_Masuk').val($('#Jumlah_Bel').val()); this.Check_Belanja(); this.Check_Rencana();
|
||||
}.bind(this)).end()
|
||||
.find('#butXCopyTriw').click(function(e){
|
||||
this.keg_bagi_triw();
|
||||
}.bind(this)).end()
|
||||
.find('#T_Masuk').keyup(function(e){
|
||||
this.Check_Belanja();
|
||||
this.Check_Rencana();
|
||||
}.bind(this));
|
||||
this.Calc_Belanja();
|
||||
this.Calc_RencK();
|
||||
this.Calc_RencF();
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_ubah: function(acell){
|
||||
this.keg_detail('update', acell[0]);
|
||||
},
|
||||
|
||||
keg_save: function(){
|
||||
/*if ($('#K_Keg').val()==''){
|
||||
FoniaJS.showError("Silakan input nomor Kegiatan !");
|
||||
FoniaJS.setFocus('#K_Keg');
|
||||
return false;
|
||||
}
|
||||
if (parseInt($('#Status_Save').val())==0){
|
||||
FoniaJS.showError("Tolong periksa kembali Data Anda !");
|
||||
return false;
|
||||
}
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','mode_detail','OPDID','UPTID','ProgID','RKegID','MKegID','K_RKA','K_Keg','B_Pegawai','B_Barang','B_Modal','U_Capai','T_Capai','U_Masuk','T_Masuk','U_Keluar','T_Keluar','U_Hasil','T_Hasil','RencK_TW1','RencK_TW2','RencK_TW3','RencK_TW4','RencF_TW1','RencF_TW2','RencF_TW3','RencF_TW4','Lokasi','Catatan','N_Keg'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winKeg);
|
||||
}.bind(this)
|
||||
}).send();*/
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-upt"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-upt','OPDID'],
|
||||
}).send();
|
||||
} else if (tipe=="tabel-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog','OPDID','UPTID'],
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID','UPTID','ProgID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,42 +1,42 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/dpa_real.js
|
||||
Desc. : JS - Kelola Realisasi Triwulan DPA
|
||||
Module : /apps/js/mon/kinerja.js
|
||||
Desc. : JS - Kelola Realisasi Kinerja OPD
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : April 14th, 2026.
|
||||
Last Modified : May 24th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var DPARealJS = {
|
||||
var KinerjaJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butOPD').click(function(){
|
||||
$('#butOPD').click(() => {
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butPROG').click(function(){
|
||||
});
|
||||
$('#butPROG').click(() => {
|
||||
if ($('#ProgID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
$('#butKEG').click(function(){
|
||||
});
|
||||
$('#butKEG').click(() => {
|
||||
if ($('#KegID').val()>0) this.show_hide(3);
|
||||
}.bind(this));
|
||||
$('#butSUB').click(function(){
|
||||
});
|
||||
$('#butSUB').click(() => {
|
||||
if ($('#SubID').val()>0) this.show_hide(4);
|
||||
}.bind(this));
|
||||
});
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').css('display', 'none'); $('#butPROG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').css('display', 'none'); $('#butKEG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divSUB').css('display', 'none'); $('#butSUB').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divAKUN').css('display', 'none');
|
||||
$('#divOPD').addClass('d-none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').addClass('d-none'); $('#butPROG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').addClass('d-none'); $('#butKEG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divSUB').addClass('d-none'); $('#butSUB').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divAKUN').addClass('d-none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#ORGID').val(0);
|
||||
@@ -61,11 +61,11 @@ var DPARealJS = {
|
||||
if (no <= 4) {
|
||||
$('#butSUB').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divPROG').css('display', ''); this.data_query('tabel-prog'); }
|
||||
if (no == 3) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
|
||||
if (no == 4) { $('#divSUB').css('display', ''); this.data_query('tabel-sub'); }
|
||||
if (no == 5) { $('#divAKUN').css('display', ''); this.data_query('tabel-akun'); }
|
||||
if (no == 1) { $('#divOPD').removeClass('d-none'); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divPROG').removeClass('d-none'); this.data_query('tabel-prog'); }
|
||||
if (no == 3) { $('#divKEG').removeClass('d-none'); this.data_query('tabel-keg'); }
|
||||
if (no == 4) { $('#divSUB').removeClass('d-none'); this.data_query('tabel-sub'); }
|
||||
if (no == 5) { $('#divAKUN').removeClass('d-none'); this.data_query('tabel-akun'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
@@ -90,7 +90,7 @@ var DPARealJS = {
|
||||
onSuccess: (txt) => {
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_Real').val()==0) tombol.pop();
|
||||
this.winProg = FoniaJS.showWindow('Prog', 'Detail Capaian Program', txt, 1000, tombol, () => {
|
||||
this.winProg = FoniaJS.showWindow('Prog', 'Detail Capaian Program', txt, 'xl', tombol, () => {
|
||||
$('#winProg').find('#butWSimpan').click(() => this.prog_save());
|
||||
});
|
||||
}
|
||||
@@ -98,17 +98,7 @@ var DPARealJS = {
|
||||
},
|
||||
|
||||
prog_save: function(){
|
||||
var bnsave = false;
|
||||
if ($('select[id^="Prog_TW_"]').length){
|
||||
$('select[id^="Prog_TW_"]').each((i,e) => {
|
||||
if (e.value == '') bnsave = true;
|
||||
});
|
||||
}
|
||||
if (bnsave){
|
||||
FoniaJS.showError('Mohon Pilih Capaian Indikator TW Ini.');
|
||||
return false;
|
||||
}
|
||||
var _param = ['data=tabel-prog','mode_detail=update','Hak_Real','ORGID','OPDID','ProgID','DPAProgID','Real_Kendala','Real_Tindak','Real_Bantu'];
|
||||
var _param = ['data=tabel-prog','mode_detail=update','Hak_Real','ORGID','OPDID','ProgID','DPAProgID'];
|
||||
$(':input[id^="Prog_TW_"]').each((i,e) => { _param.push(e.id); });
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
@@ -126,35 +116,6 @@ var DPARealJS = {
|
||||
this.show_hide(4);
|
||||
},
|
||||
|
||||
keg_real: function(acell){
|
||||
$('#KegID').val(acell[1]);
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg','Hak_Real','ORGID','OPDID','ProgID','KegID','DPAKegID='+acell[0]],
|
||||
onSuccess: function(txt){
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_Real').val()==0) tombol.pop();
|
||||
this.winKeg = FoniaJS.showWindow('Keg', 'Detail Kinerja Kegiatan', txt, 1000, tombol, function(){
|
||||
$('#winKeg').find('#butWSimpan').click(function(){this.keg_save();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_save: function(){
|
||||
var _param = ['data=tabel-keg','mode_detail=update','Hak_Real','ORGID','OPDID','ProgID','KegID','DPAKegID','Real_Kendala','Real_Tindak','Real_Bantu'];
|
||||
$('input[id^="Keluar_TW_"]').each((i,e) => { _param.push(e.id); });
|
||||
$('input[id^="Hasil_TW_"]').each((i,e) => { _param.push(e.id); });
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: _param,
|
||||
onSuccess: function(){
|
||||
FoniaJS.closeWindow(this.winKeg);
|
||||
FoniaJS.showInfo('Sukses menyimpan Kinerja Kegiatan.');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_select: function(acell){
|
||||
$('#SubID').val(acell[1]);
|
||||
$('#Nama_SUB').val(acell[2]);
|
||||
@@ -166,26 +127,26 @@ var DPARealJS = {
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sub','Hak_Real','ORGID','OPDID','ProgID','KegID','SubID='+acell[1],'DPASubID='+acell[0]],
|
||||
onSuccess: function(txt){
|
||||
onSuccess: (txt) => {
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_Real').val()==0) tombol.pop();
|
||||
this.winDSub = FoniaJS.showWindow('DSub', 'Kinerja dan Informasi Sub Kegiatan', txt, 900, tombol, function(){
|
||||
$('#winDSub').find('#butWSimpan').click(function(){this.sub_save();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
this.winDSub = FoniaJS.showWindow('DSub', 'Kinerja dan Informasi Sub Kegiatan', txt, 'xl', tombol, () => {
|
||||
$('#winDSub').find('#butWSimpan').click(() => this.sub_save());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_save: function(){
|
||||
var _param = ['data=tabel-sub','Hak_Real','ORGID','OPDID','ProgID','KegID','SubID','DPASubID','Real_Kendala','Real_Tindak','Real_Bantu','Real_No_Kontrak','Real_Pelaksana','mode_detail=update'];
|
||||
$('input[id^="Output_TW_"]').each((i,e) => { _param.push(e.id); });
|
||||
var _param = ['data=tabel-sub','Hak_Real','ORGID','OPDID','ProgID','KegID','SubID','DPASubID','Real_Catatan','Real_No_Kontrak','Real_Pelaksana','mode_detail=update'];
|
||||
$(':input[id^="Output_TW_"]').each((i,e) => { _param.push(e.id); });
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: _param,
|
||||
onSuccess: function(){
|
||||
onSuccess: () => {
|
||||
FoniaJS.closeWindow(this.winDSub);
|
||||
FoniaJS.showInfo('Sukses menyimpan Kinerja Sub Kegiatan.');
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -193,27 +154,27 @@ var DPARealJS = {
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-akun','Hak_Real','ORGID','OPDID','ProgID','KegID','SubID','DPAAkunID='+acell[0]],
|
||||
onSuccess: function(txt){
|
||||
onSuccess: (txt) => {
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_Real').val()==0) tombol.pop();
|
||||
this.winDAkun = FoniaJS.showWindow('DAkun', 'Detail Akun', txt, 900, tombol, function(){
|
||||
this.winDAkun = FoniaJS.showWindow('DAkun', 'Detail Akun', txt, 'xl', tombol, () => {
|
||||
$('#winDAkun')
|
||||
.find('#butWSimpan').click(function(){this.akun_save();}.bind(this)).end()
|
||||
.find('#RealK_Tot').keyup(function(e){
|
||||
.find('#butWSimpan').click(() => this.akun_save()).end()
|
||||
.find('#RealK_Tot').keyup((e) => {
|
||||
this.oc_RealK();
|
||||
if ((e.keyCode || e.which || 0)==13) FoniaJS.setFocus('#RealF_Tot');
|
||||
}.bind(this)).attr('title', 'Total Realisasi Keuangan S/D Bulan ini !').end()
|
||||
.find('#RealF_Tot').keyup(function(e){
|
||||
}).attr('title', 'Total Realisasi Keuangan S/D Bulan ini !').end()
|
||||
.find('#RealF_Tot').keyup((e) => {
|
||||
this.oc_RealF();
|
||||
if ((e.keyCode || e.which || 0)==13) FoniaJS.setFocus('#RealN_Tot');
|
||||
}.bind(this)).attr('title', 'Total Realisasi Fisik S/D Bulan ini !').end()
|
||||
.find('#RealN_Tot').keyup(function(e){
|
||||
}).attr('title', 'Total Realisasi Fisik S/D Bulan ini !').end()
|
||||
.find('#RealN_Tot').keyup((e) => {
|
||||
this.oc_RealN();
|
||||
if ((e.keyCode || e.which || 0)==13) $('#winDAkun').find('#butWSimpan').focus();
|
||||
}.bind(this)).attr('title', 'Total Realisasi Non-Fisik S/D Bulan ini !').end()
|
||||
}).attr('title', 'Total Realisasi Non-Fisik S/D Bulan ini !').end()
|
||||
if (parseInt($('#Hak_Real').val())==1) FoniaJS.setFocus('#RealK_Tot');
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -235,10 +196,10 @@ var DPARealJS = {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-akun','mode_detail=update','Hak_Real','ORGID','OPDID','ProgID','KegID','SubID','DPAAkunID','AkunID','RealK_Bln','RealF_Bln','RealN_Bln'],
|
||||
onSuccess: function(adata){
|
||||
onSuccess: (adata) => {
|
||||
FoniaJS.closeWindow(this.winDAkun);
|
||||
FoniaJS.showInfo('Sukses menyimpan Realisasi Akun.');
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -0,0 +1,473 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/renja.js
|
||||
Desc. : JS - Kelola Data Renja OPD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : May 24th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RenjaJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butOPD').click(() => {
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
});
|
||||
$('#butPROG').click(() => {
|
||||
if ($('#ProgID').val()>0) this.show_hide(2);
|
||||
});
|
||||
$('#butKEG').click(() => {
|
||||
if ($('#KegID').val()>0) this.show_hide(3);
|
||||
});
|
||||
$('#butSUB').click(() => {
|
||||
if ($('#SubID').val()>0) this.show_hide(4);
|
||||
});
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').addClass('d-none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').addClass('d-none'); $('#butPROG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').addClass('d-none'); $('#butKEG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divSUB').addClass('d-none'); $('#butSUB').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divAKUN').addClass('d-none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#ORGID').val(0);
|
||||
$('#AK_Bidu').val('');
|
||||
$('#K_Bidu1').val('');
|
||||
$('#Nama_OPD').val('');
|
||||
$('#Hak_DPA').val(1);
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#ProgID').val(0);
|
||||
$('#Nama_PROG').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#KegID').val(0);
|
||||
$('#Nama_KEG').val('');
|
||||
$('#butPROG').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 3) {
|
||||
$('#SubID').val(0);
|
||||
$('#Nama_SUB').val('');
|
||||
$('#butKEG').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 4) {
|
||||
$('#butSUB').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').removeClass('d-none'); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divPROG').removeClass('d-none'); this.data_query('tabel-prog'); }
|
||||
if (no == 3) { $('#divKEG').removeClass('d-none'); this.data_query('tabel-keg'); }
|
||||
if (no == 4) { $('#divSUB').removeClass('d-none'); this.data_query('tabel-sub'); }
|
||||
if (no == 5) { $('#divAKUN').removeClass('d-none'); this.data_query('tabel-akun'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#ORGID').val(acell[1]);
|
||||
$('#Nama_OPD').val(acell[2]);
|
||||
$('#AK_Bidu').val(acell[3]);
|
||||
$('#K_Bidu1').val(acell[4]);
|
||||
$('#Hak_DPA').val(acell[5]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
prog_select: function(acell){
|
||||
$('#ProgID').val(acell[1]);
|
||||
$('#Nama_PROG').val(acell[2]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
prog_brow: function() {
|
||||
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Prog" 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="divBrowProg"> </div>');
|
||||
this.winBProg = FoniaJS.showWindow('BProg', 'Daftar Program', _isi, 900, '', () => {
|
||||
$('#winBProg')
|
||||
.find('#Cari_Prog').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('brow-prog');
|
||||
}).end()
|
||||
.find('#butSearch').click((e) => {
|
||||
this.data_query('brow-prog');
|
||||
}).end()
|
||||
.find('#butAll').click(() => {
|
||||
$('#winBProg').find('#Cari_Prog').val('');
|
||||
this.data_query('brow-prog');
|
||||
});
|
||||
this.data_query('brow-prog');
|
||||
});
|
||||
},
|
||||
|
||||
prog_brow_select: function(acell) {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog','mode_detail=insert','Hak_DPA','ORGID','OPDID','K_Bidu1','ProgID='+acell[0],'K_Bidu='+acell[1],'K_Prog='+acell[2]],
|
||||
onSuccess: () => {
|
||||
FoniaJS.closeWindow(this.winBProg);
|
||||
FoniaJS.showInfo("Program baru telah ditambahkan.");
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
prog_edit: function(acell){
|
||||
$('#ProgID').val(acell[1]);
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-prog','Hak_DPA','ORGID','OPDID','ProgID','DPAProgID='+acell[0]],
|
||||
onSuccess: (txt) => {
|
||||
this.winProg = FoniaJS.showWindow('Prog', 'Detail Program', txt, 'xl', [{},{i:'butTutup'}], () => {
|
||||
this.data_query('tabel-prog-indi');
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
prog_indi_batal: function(){
|
||||
var dt = $('#divProgIndiTabel').DataTable(), tr, l_row;
|
||||
tr = $('#butBatalIndi').closest('tr');
|
||||
l_row = dt.row(tr.prev('tr'));
|
||||
if (l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
if (l_row.data()[0]=='0') l_row.remove().draw(true);
|
||||
},
|
||||
|
||||
prog_indi_add: function(){
|
||||
var dt = $('#divProgIndiTabel').DataTable(), l_row;
|
||||
dt.order([1,'asc']);
|
||||
l_row = dt.row(':last');
|
||||
if (!dt.data().count() || l_row.data()[0]!=='0'){
|
||||
dt.row.add(['0','','','','<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-plus-circle-dotted"></i></a>']).draw(true);
|
||||
l_row = dt.row(':last');
|
||||
}
|
||||
if (!l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
},
|
||||
|
||||
prog_indi_form: function(acell, div){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-prog-indi','Hak_DPA','ORGID','OPDID','ProgID','DPAProgIndiID='+acell[0]],
|
||||
onSuccess: (adata) => {
|
||||
$(div).html(adata.html);
|
||||
$(div)
|
||||
.find('#butSimpanIndi').click(() => this.prog_indi_save()).end()
|
||||
.find('#butBatalIndi').click(() => this.prog_indi_batal());
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
prog_indi_del: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog-indi','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','DPAProgIndiID='+acell[0]],
|
||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||
}).send();
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
prog_indi_save: function(){
|
||||
if ($('#Text_Indi').val()==''){
|
||||
FoniaJS.showInfo('Mohon lengkapi data Indikator Program !');
|
||||
return false;
|
||||
}
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog-indi','mode_detail','Hak_DPA','ORGID','OPDID','ProgID','DPAProgIndiID','TipeDataID','Status_Indi','Text_Indi','Target_Indi','Satuan_Indi'],
|
||||
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan Indikator Program.')
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_select: function(acell){
|
||||
$('#KegID').val(acell[1]);
|
||||
$('#Nama_KEG').val(acell[2]);
|
||||
this.show_hide(4);
|
||||
},
|
||||
|
||||
keg_brow: function() {
|
||||
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Keg" 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="divBrowKeg"> </div>');
|
||||
this.winBKeg = FoniaJS.showWindow('BKeg', 'Daftar Kegiatan', _isi, 'xl', '', () => {
|
||||
$('#winBKeg')
|
||||
.find('#Cari_Keg').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('brow-keg');
|
||||
}).end()
|
||||
.find('#butSearch').click((e) => {
|
||||
this.data_query('brow-keg');
|
||||
}).end()
|
||||
.find('#butAll').click(() => {
|
||||
$('#winBKeg').find('#Cari_Keg').val('');
|
||||
this.data_query('brow-keg');
|
||||
});
|
||||
this.data_query('brow-keg');
|
||||
});
|
||||
},
|
||||
|
||||
keg_brow_select: function(acell) {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','mode_detail=insert','Hak_DPA','ORGID','OPDID','ProgID','KegID='+acell[0],'K_Keg='+acell[1]],
|
||||
onSuccess: () => {
|
||||
FoniaJS.closeWindow(this.winBKeg);
|
||||
FoniaJS.showInfo("Kegiatan baru telah ditambahkan.");
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_select: function(acell){
|
||||
$('#SubID').val(acell[1]);
|
||||
$('#Nama_SUB').val(acell[2]);
|
||||
this.show_hide(5);
|
||||
},
|
||||
|
||||
sub_brow: function() {
|
||||
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Sub" 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="divBrowSub"> </div>');
|
||||
this.winBSub = FoniaJS.showWindow('BSub', 'Daftar Sub Kegiatan', _isi, 'xl', '', () => {
|
||||
$('#winBSub')
|
||||
.find('#Cari_Sub').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('brow-sub');
|
||||
}).end()
|
||||
.find('#butSearch').click((e) => {
|
||||
this.data_query('brow-sub');
|
||||
}).end()
|
||||
.find('#butAll').click(() => {
|
||||
$('#winBSub').find('#Cari_Sub').val('');
|
||||
this.data_query('brow-sub');
|
||||
});
|
||||
this.data_query('brow-sub');
|
||||
});
|
||||
},
|
||||
|
||||
sub_brow_select: function(acell) {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub','mode_detail=insert','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID='+acell[0],'K_Sub='+acell[1]],
|
||||
onSuccess: () => {
|
||||
FoniaJS.closeWindow(this.winBSub);
|
||||
FoniaJS.showInfo("Sub Kegiatan baru telah ditambahkan.");
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_edit: function(acell){
|
||||
$('#SubID').val(acell[1]);
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sub','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID='+acell[1],'DPASubID='+acell[0]],
|
||||
onSuccess: (txt) => {
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_DPA').val()==0) tombol = tombol.pop();
|
||||
this.winSub = FoniaJS.showWindow('Sub', 'Detail Sub Kegiatan', txt, 'xl', tombol, () => {
|
||||
$('#winSub').find('#butWSimpan').click(() => this.sub_save());
|
||||
$('#formSub').validate({
|
||||
rules: {
|
||||
required: true,
|
||||
Waktu1: {required:true, min:1},
|
||||
Waktu2: {required:true, min:1},
|
||||
}
|
||||
});
|
||||
this.data_query('tabel-sub-output')
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_output_batal: function(){
|
||||
var dt = $('#divSubOutputTabel').DataTable(), tr, l_row;
|
||||
tr = $('#butBatalOutput').closest('tr');
|
||||
l_row = dt.row(tr.prev('tr'));
|
||||
if (l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
if (l_row.data()[0]=='0') l_row.remove().draw(true);
|
||||
},
|
||||
|
||||
sub_output_add: function(){
|
||||
var dt = $('#divSubOutputTabel').DataTable(), l_row;
|
||||
dt.order([1,'asc']);
|
||||
l_row = dt.row(':last');
|
||||
if (!dt.data().count() || l_row.data()[0]!=='0'){
|
||||
dt.row.add(['0','','','<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-plus-circle-dotted"></i></a>']).draw(true);
|
||||
l_row = dt.row(':last');
|
||||
}
|
||||
if (!l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
},
|
||||
|
||||
sub_output_form: function(acell, div){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sub-output','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubOutputID='+acell[0]],
|
||||
onSuccess: (adata) => {
|
||||
$(div).html(adata.html);
|
||||
$(div)
|
||||
.find('#butBatalOutput').click((e) => this.sub_output_batal()).end()
|
||||
.find('#butSimpanOutput').click((e) => this.sub_output_save());
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_output_del: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub-output','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubOutputID='+acell[0]],
|
||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||
}).send();
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
sub_output_save: function(){
|
||||
if ($('#Text_Output').val()==''){
|
||||
FoniaJS.showInfo('Mohon lengkapi data Output Sub Kegiatan !');
|
||||
return false;
|
||||
}
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub-output','mode_detail','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubOutputID','Text_Output','Target_Output','Satuan_Output','Status_Output'],
|
||||
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan Output Sub Kegiatan.')
|
||||
}).send();
|
||||
},
|
||||
|
||||
sub_hapus: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubID='+acell[0]],
|
||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||
}).send();
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
sub_save: function(){
|
||||
$('#formSub').submit();
|
||||
if (true !== $('#formSub').validate().checkForm()) return false;
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub','mode_detail=update','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPASubID','Lokasi','Waktu1','Waktu2','Pagu_Dpn'],//Pagu_Ini
|
||||
onSuccess: () => {
|
||||
FoniaJS.closeWindow(this.winSub);
|
||||
FoniaJS.showInfo('Sukses menyimpan detail Sub Kegiatan.');
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
akun_detail: function(mode, ID){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-akun','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPAAkunID='+ID],
|
||||
onSuccess: (txt) => {
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_DPA').val()==0) tombol.pop();
|
||||
this.winDAkun = FoniaJS.showWindow('DAkun', 'Detail Akun', txt, 900, tombol, () => {
|
||||
$('#winDAkun').find('#butWSimpan').click(() => this.akun_save());
|
||||
this.Hitung_Akun();
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
akun_tambah: function(){
|
||||
this.akun_detail('insert', 0);
|
||||
},
|
||||
|
||||
akun_ubah: function(acell){
|
||||
this.akun_detail('update', acell[0]);
|
||||
},
|
||||
|
||||
akun_hapus: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[3]+'"</b> ?', () => {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-akun','mode_detail=delete','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','DPAAkunID='+acell[0]],
|
||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||
}).send();
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
akun_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-akun','mode_detail','Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID','AkunID','K_Akun','Volume','SatuanID','Harga_Satuan','Renc_Keu','Renc_Fisik','DPAAkunID'],
|
||||
onSuccess: () => {
|
||||
FoniaJS.closeWindow(this.winDAkun);
|
||||
FoniaJS.showInfo('Sukses menyimpan detail Akun.');
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog','Hak_DPA','ORGID','OPDID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-prog-indi"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog-indi','Hak_DPA','ORGID','OPDID','ProgID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg" || tipe=="tabel-prog-indi"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data='+tipe,'Hak_DPA','ORGID','OPDID','ProgID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-sub"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data='+tipe,'Hak_DPA','ORGID','OPDID','ProgID','KegID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-akun" || tipe=="tabel-sub-output"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data='+tipe,'Hak_DPA','ORGID','OPDID','ProgID','KegID','SubID']
|
||||
}).send();
|
||||
} else if (tipe=="brow-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=brow-prog','ORGID','OPDID','AK_Bidu','Cari_Prog'],
|
||||
onSuccess: () => FoniaJS.setFocus('#Cari_Prog')
|
||||
}).send();
|
||||
} else if (tipe=="brow-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=brow-keg','ORGID','OPDID','ProgID','Cari_Keg'],
|
||||
onSuccess: () => FoniaJS.setFocus('#Cari_Keg')
|
||||
}).send();
|
||||
} else if (tipe=="brow-sub"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=brow-sub','ORGID','OPDID','ProgID','KegID','Cari_Sub'],
|
||||
onSuccess: () => FoniaJS.setFocus('#Cari_Sub')
|
||||
}).send();
|
||||
}
|
||||
},
|
||||
|
||||
Hitung_Akun: function(){
|
||||
var harga = FoniaJS.StrToFloat($('#Harga_Satuan').val());
|
||||
var volume = FoniaJS.StrToFloat($('#Volume').val());
|
||||
$('#Pagu_Ini').val(FoniaJS.FloatToStr(harga * volume, 2));
|
||||
$('#Renc_Keu').val(FoniaJS.FloatToStr(harga * volume, 2));
|
||||
},
|
||||
|
||||
oc_ProgTipe: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=change-tipedata','Hak_DPA','TipeDataID','Status_Indi','Target_Indi'],
|
||||
onSuccess: (ajson) => {
|
||||
$('#inputStatus').html(ajson.status);
|
||||
$('#inputTarget').html(ajson.target);
|
||||
}
|
||||
}).send();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,58 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/repo_eval_tujuan.js
|
||||
Desc. : JS - Laporan Realisasi Triwulan / UPT
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 20th, 2012.
|
||||
Last Modified : April 12th, 2017.
|
||||
|
||||
(c) 2012 - 2017, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RepoEvalTujuanJS = {
|
||||
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");
|
||||
cetak.add_param("UPTID");
|
||||
cetak.add_param("RD_TUJUANINDIID");
|
||||
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.add_param("UPTID");
|
||||
dload.add_param("RD_TUJUANINDIID");
|
||||
dload.download();
|
||||
},
|
||||
|
||||
oc_Tipe : function(){
|
||||
/*new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=default','Tahun','TW','OPDID','UPTID','RD_TUJUANINDIID'],
|
||||
onSuccess: function(txt){
|
||||
div_isi = this.KODE+'_content';
|
||||
$(div_isi).set('html', txt);
|
||||
}.bind(this)
|
||||
}).send();*/
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,43 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/repo_tw_upt.js
|
||||
Desc. : JS - Laporan Realisasi Triwulan / UPT
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 20th, 2012.
|
||||
Last Modified : June 24th, 2024.
|
||||
|
||||
(c) 2012 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RepoRHOPDJS = {
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,43 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/repo_tw_upt.js
|
||||
Desc. : JS - Laporan Realisasi Triwulan / UPT
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 20th, 2012.
|
||||
Last Modified : June 24th, 2024.
|
||||
|
||||
(c) 2012 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RepoRHProgJS = {
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,39 +0,0 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/repo_tw_upt.js
|
||||
Desc. : JS - Laporan Realisasi Triwulan / UPT
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 20th, 2012.
|
||||
Last Modified : June 24th, 2024.
|
||||
|
||||
(c) 2012 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RepoRPKJS = {
|
||||
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");
|
||||
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.download();
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user