first commit
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/index.js
|
||||
Desc. : JS - Halaman Utama Desktop
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : May 24th, 2010.
|
||||
Last Modified : May 14th, 2024.
|
||||
|
||||
(c) 2010 - 2024, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
$(document).ready(function(){
|
||||
jQuery("#preloader").remove();
|
||||
loadSidebar();
|
||||
IndexJS.loading();
|
||||
});
|
||||
|
||||
var IndexJS = {
|
||||
|
||||
loading: function(){
|
||||
new Request.JSON({
|
||||
url: FoniaJS.WEB_PATH+'apps/php/index.php',
|
||||
sendParam: ['data=default'],
|
||||
onSuccess: function(ares){
|
||||
$('#pageContent').html(ares.content);
|
||||
$('#pageToolbarTop').html('');
|
||||
$('#pageToolbarBot').html('');
|
||||
this.loadChart1();
|
||||
this.loadChart2();
|
||||
this.periode_info();
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
periode_show: function(reset){
|
||||
new Request.JSON({
|
||||
url: FoniaJS.WEB_PATH+'apps/php/index.php',
|
||||
sendParam: ['data=periode-show','reset='+reset],
|
||||
onSuccess: (adata) => {
|
||||
if (!adata.aktif) this.winPeriode = FoniaJS.showWindow('Periode', 'Pilih Periode Data', adata.html, 'md', [{},{i:'butTutup'},{i:'butWSave',v:'Simpan',c:'success'}], () => {
|
||||
$('#winPeriode').find('#butWSave').click(() => IndexJS.periode_simpan());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
periode_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: FoniaJS.WEB_PATH+'apps/php/index.php',
|
||||
sendParam: ['data=periode-simpan','OPTION_THN','OPTION_BLN'],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.sukses) FoniaJS.showInfo('Sukses Ganti Periode Data');
|
||||
FoniaJS.closeWindow(IndexJS.winPeriode);
|
||||
setTimeout(() => {self.location = FoniaJS.WEB_PATH;}, 10);
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
periode_info: function(){
|
||||
new Request.JSON({
|
||||
url: FoniaJS.WEB_PATH+'apps/php/index.php',
|
||||
sendParam: ['data=periode-info'],
|
||||
onSuccess: (ajson) => $('#liPeriode').html(ajson.html)
|
||||
}).send();
|
||||
},
|
||||
|
||||
loadChart1: function(){
|
||||
new Request.JSON({
|
||||
url: FoniaJS.WEB_PATH+'apps/php/index.php',
|
||||
sendParam: ['data=chart1'],
|
||||
onSuccess: function(ares){
|
||||
$('#divHome1').removeClass('text-center');
|
||||
if (ares.tipe=='chart') {
|
||||
$('#divHome1').html('<div class="c-chart-wrapper pb-2"><canvas id="canvasChart1"></canvas></div>');
|
||||
var ctx = $('#canvasChart1');
|
||||
var myChart = new Chart(ctx, {
|
||||
type: ares.chart.type,
|
||||
data: ares.chart.data,
|
||||
options: ares.chart.options
|
||||
});
|
||||
} else {
|
||||
$('#divHome1').html(ares.html);
|
||||
}
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
loadChart2: function(){
|
||||
new Request.JSON({
|
||||
url: FoniaJS.WEB_PATH+'apps/php/index.php',
|
||||
sendParam: ['data=chart2'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.tipe=='chart') {
|
||||
$('#divHome2').html('<div class="c-chart-wrapper pb-2"><canvas id="canvasChart2"></canvas></div>');
|
||||
var ctx = $('#canvasChart2');
|
||||
var myChart = new Chart(ctx, {
|
||||
type: ares.chart.type,
|
||||
data: ares.chart.data,
|
||||
options: ares.chart.options
|
||||
});
|
||||
} else {
|
||||
$('#divHome2').html(ares.html);
|
||||
}
|
||||
}
|
||||
}).send();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
function loadSidebar(){
|
||||
const mySidebar = document.getElementById('sidebarMain');
|
||||
mySidebar.addEventListener('shown.bs.modal', () => {
|
||||
document.querySelectorAll('.sidebar .nav-link').forEach((element) => {
|
||||
element.addEventListener('click', (e) => {
|
||||
let nextEl = element.nextElementSibling, parentEl = element.parentElement;
|
||||
if (nextEl){
|
||||
e.preventDefault();
|
||||
let mycollapse = new bootstrap.Collapse(nextEl);
|
||||
if (nextEl.classList.contains('show')){
|
||||
mycollapse.hide();
|
||||
} else {
|
||||
mycollapse.show();
|
||||
var opened_submenu = parentEl.parentElement.querySelector('.submenu.show');
|
||||
if (opened_submenu){ new bootstrap.Collapse(opened_submenu); }
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/login.js
|
||||
Desc. : JS - Halaman Proses Login
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : January 15th, 2008.
|
||||
Last Modified : June 28th, 2020.
|
||||
|
||||
(c) 2008 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#butLogin').click(LoginJS.Proses_Login);
|
||||
$('#Username').keydown(function(e){
|
||||
if (e.which==13) $('#Password').focus();
|
||||
});
|
||||
$('#Password').keydown(function(e){
|
||||
if (e.which==13) $('#butLogin').trigger('click');
|
||||
});
|
||||
LoginJS.Tampil_Login();
|
||||
document.oncontextmenu = new Function ('return false');
|
||||
|
||||
jQuery.backstretch([
|
||||
[
|
||||
{ width: 1280, url: FoniaJS.WEB_PATH+"assets/images/bs/kanda_1280.jpg" },
|
||||
{ width: 960, url: FoniaJS.WEB_PATH+"assets/images/bs/kanda_960.jpg" }
|
||||
],
|
||||
[
|
||||
{ width: 1280, url: FoniaJS.WEB_PATH+"assets/images/bs/istana_1280.jpg" },
|
||||
{ width: 960, url: FoniaJS.WEB_PATH+"assets/images/bs/istana_960.jpg" }
|
||||
],
|
||||
[
|
||||
{ width: 1280, url: FoniaJS.WEB_PATH+"assets/images/bs/mangrove_1280.jpg" },
|
||||
{ width: 960, url: FoniaJS.WEB_PATH+"assets/images/bs/mangrove_960.jpg" }
|
||||
]
|
||||
], {
|
||||
duration: 6000,
|
||||
transition: 'push_left|push_right|cover_up|cover_down|fade',
|
||||
transitionDuration: 600
|
||||
});
|
||||
});
|
||||
|
||||
var LoginJS = {
|
||||
|
||||
Tampil_Login: function(){
|
||||
var Username = FoniaJS.getCookie('Username');
|
||||
if (Username != '') {
|
||||
$('#Username').val(Username);
|
||||
FoniaJS.setFocus('#Password');
|
||||
} else {
|
||||
FoniaJS.setFocus('#Username');
|
||||
}
|
||||
},
|
||||
|
||||
Proses_Login: function(){
|
||||
if (!$('#Username').val()){
|
||||
$('#Username').focus();
|
||||
FoniaJS.showError('Silahkan masukkan ID Pengguna !');
|
||||
return false;
|
||||
}
|
||||
if (!$('#Password').val()){
|
||||
$('#Password').focus();
|
||||
FoniaJS.showError('Silahkan masukkan Kata Sandi !');
|
||||
return false;
|
||||
}
|
||||
new Request.JSON({
|
||||
url: FoniaJS.WEB_PATH+'apps/php/login.php',
|
||||
sendParam: ['mode=login','Username','Password','OPTION_TAHUN','OPTION_BLN'],
|
||||
onSuccess: function(respon){
|
||||
if (respon.hasil == 'SUKSES'){
|
||||
FoniaJS.setCookie('Username', $('#Username').val(), 365);
|
||||
$('#divLoginMsg').html(respon.pesan).removeClass('d-none');
|
||||
$('.input-group').addClass('d-none');
|
||||
setTimeout(function(){self.location = FoniaJS.WEB_PATH+'?auth='+(respon.token??'');}, 1600);
|
||||
}else{
|
||||
FoniaJS.showInfo(respon.pesan, 3000);
|
||||
if (respon.redir) setTimeout(function(){self.location = respon.redir;}, 600);
|
||||
}
|
||||
}
|
||||
}).send();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,642 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,300 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/dpa_real.js
|
||||
Desc. : JS - Kelola Realisasi Triwulan DPA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : April 14th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var DPARealJS = {
|
||||
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);
|
||||
$('#Nama_OPD').val('');
|
||||
$('#Hak_Real').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]);
|
||||
$('#Hak_Real').val(acell[3]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
prog_select: function(acell){
|
||||
$('#ProgID').val(acell[1]);
|
||||
$('#Nama_PROG').val(acell[2]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
prog_real: function(acell){
|
||||
$('#ProgID').val(acell[1]);
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-prog','Hak_Real','ORGID','OPDID','ProgID','DPAProgID='+acell[0]],
|
||||
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, () => {
|
||||
$('#winProg').find('#butWSimpan').click(() => this.prog_save());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
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'];
|
||||
$(':input[id^="Prog_TW_"]').each((i,e) => { _param.push(e.id); });
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: _param,
|
||||
onSuccess: () => {
|
||||
FoniaJS.closeWindow(this.winProg);
|
||||
FoniaJS.showInfo('Sukses menyimpan Capaian Program.');
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
keg_select: function(acell){
|
||||
$('#KegID').val(acell[1]);
|
||||
$('#Nama_KEG').val(acell[2]);
|
||||
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]);
|
||||
this.show_hide(5);
|
||||
},
|
||||
|
||||
sub_ubah: function(acell){
|
||||
$('#SubID').val(acell[1]);
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sub','Hak_Real','ORGID','OPDID','ProgID','KegID','SubID='+acell[1],'DPASubID='+acell[0]],
|
||||
onSuccess: function(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)
|
||||
}).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); });
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: _param,
|
||||
onSuccess: function(){
|
||||
FoniaJS.closeWindow(this.winDSub);
|
||||
FoniaJS.showInfo('Sukses menyimpan Kinerja Sub Kegiatan.');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
akun_ubah: function(acell){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-akun','Hak_Real','ORGID','OPDID','ProgID','KegID','SubID','DPAAkunID='+acell[0]],
|
||||
onSuccess: function(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(){
|
||||
$('#winDAkun')
|
||||
.find('#butWSimpan').click(function(){this.akun_save();}.bind(this)).end()
|
||||
.find('#RealK_Tot').keyup(function(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){
|
||||
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){
|
||||
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()
|
||||
if (parseInt($('#Hak_Real').val())==1) FoniaJS.setFocus('#RealK_Tot');
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
akun_save: function(){
|
||||
var treal = FoniaJS.StrToFloat($('#RealK_Tot').val());
|
||||
var tpagu = parseFloat($('#PAGURP').val());
|
||||
if (treal > tpagu) {
|
||||
FoniaJS.showError('Total Realisasi tidak boleh melebihi Total Pagu !');
|
||||
FoniaJS.setFocus('#RealK_Tot');
|
||||
return;
|
||||
}
|
||||
/*var real_lalu = FoniaJS.StrToFloat($('#RealF_Las').val());
|
||||
var real_psn = FoniaJS.StrToFloat($('#RealF_Tot').val());
|
||||
if (real_psn < real_lalu){
|
||||
FoniaJS.showError('Realisasi Fisik lebih rendah dari Bulan lalu !');
|
||||
FoniaJS.setFocus('#RealF_Tot');
|
||||
return;
|
||||
}*/
|
||||
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){
|
||||
FoniaJS.closeWindow(this.winDAkun);
|
||||
FoniaJS.showInfo('Sukses menyimpan Realisasi 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_Real','ORGID','OPDID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','Hak_Real','ORGID','OPDID','ProgID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-sub"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-sub','Hak_Real','ORGID','OPDID','ProgID','KegID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-akun"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-akun','Hak_Real','ORGID','OPDID','ProgID','KegID','SubID']
|
||||
}).send();
|
||||
}
|
||||
},
|
||||
|
||||
oc_RealK: function(){
|
||||
$('#RealK_Bln').val(FoniaJS.FloatToStr(FoniaJS.StrToFloat($('#RealK_Tot').val()) - FoniaJS.StrToFloat($('#REALRP').val())));
|
||||
},
|
||||
|
||||
oc_RealF: function(){
|
||||
var real_lalu = FoniaJS.StrToFloat($('#RealF_Las').val());
|
||||
var real_psn = FoniaJS.StrToFloat($('#RealF_Tot').val());
|
||||
$('#RealF_Bln').val(FoniaJS.FloatToStr(real_psn, 2));
|
||||
if (real_psn>100 || real_psn<real_lalu){
|
||||
$('#RealF_Bln').css({'color':'#F00','text-decoration':'blink'});
|
||||
} else {
|
||||
$('#RealF_Bln').css({'color':'#666','text-decoration':'blink'});
|
||||
}
|
||||
},
|
||||
|
||||
oc_RealN: function(){
|
||||
var real_lalu = FoniaJS.StrToFloat($('#RealN_Las').val());
|
||||
var real_psn = FoniaJS.StrToFloat($('#RealN_Tot').val());
|
||||
$('#RealN_Bln').val(FoniaJS.FloatToStr(real_psn, 2));
|
||||
if (real_psn>100 || real_psn<real_lalu){
|
||||
$('#RealN_Bln').css({'color':'#F00','text-decoration':'blink'});
|
||||
} else {
|
||||
$('#RealN_Bln').css({'color':'#666','text-decoration':'blink'});
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,88 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,88 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,88 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,88 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,84 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,84 @@
|
||||
/*******************************************************************
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,84 @@
|
||||
/*******************************************************************
|
||||
|
||||
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 (siaupheng@3fonia.com).
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,63 @@
|
||||
/*******************************************************************
|
||||
|
||||
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 (siaupheng@3fonia.com).
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,84 @@
|
||||
/*******************************************************************
|
||||
|
||||
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 (siaupheng@3fonia.com).
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,84 @@
|
||||
/*******************************************************************
|
||||
|
||||
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 (siaupheng@3fonia.com).
|
||||
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,135 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI MONITORING DAN EVALUASI
|
||||
Module : /apps/js/mon/tran_dpa.js
|
||||
Desc. : JS - Transaksi Input DPA
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,58 @@
|
||||
/*******************************************************************
|
||||
|
||||
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 (siaupheng@3fonia.com).
|
||||
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();*/
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
/*******************************************************************
|
||||
|
||||
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 (siaupheng@3fonia.com).
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
/*******************************************************************
|
||||
|
||||
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 (siaupheng@3fonia.com).
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,39 @@
|
||||
/*******************************************************************
|
||||
|
||||
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 (siaupheng@3fonia.com).
|
||||
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();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,55 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/sys/chpasswd.js
|
||||
Desc. : JS - Perubahan Password Operator
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : December 7th, 2008.
|
||||
Last Modified : April 25th, 2020.
|
||||
|
||||
(c) 2008 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var SYSChpasswdJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butSave').click(function(){this.proses_save();}.bind(this));
|
||||
FoniaJS.setFocus('#LPass');
|
||||
},
|
||||
|
||||
proses_save: function(){
|
||||
if ($("#LPass").val()=="") {
|
||||
FoniaJS.showInfo("Silakan masukkan password lama Anda!");
|
||||
FoniaJS.setFocus("#LPass");
|
||||
return false;
|
||||
} else if ($("#BPass1").val()=="") {
|
||||
FoniaJS.showInfo("Silakan masukkan password baru 1 Anda!");
|
||||
FoniaJS.setFocus("#BPass1");
|
||||
return false;
|
||||
} else if ($("#BPass2").val()=="") {
|
||||
FoniaJS.showInfo("Silakan masukkan password baru 2 Anda!");
|
||||
FoniaJS.setFocus("#BPass2");
|
||||
return false;
|
||||
} else if ($("#BPass1").val()!=$("#BPass2").val()) {
|
||||
FoniaJS.showInfo("Password baru 1 dan 2 Anda tidak sama!");
|
||||
FoniaJS.setFocus("#BPass1");
|
||||
return false;
|
||||
}
|
||||
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=chpasswd','LPass','BPass1','BPass2'],
|
||||
onSuccess: function(ajson){
|
||||
if (ajson.status == true) {
|
||||
FoniaJS.showInfo(ajson.msg);
|
||||
FoniaJS.closeWindow('#win'+this.KODE);
|
||||
} else {
|
||||
FoniaJS.showError(ajson.msg);
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user