first commit

This commit is contained in:
2026-07-16 14:07:54 +07:00
commit d3f1794df7
100 changed files with 8647 additions and 0 deletions
+93
View File
@@ -0,0 +1,93 @@
/*******************************************************************
Module : /apps/js/index.js
Desc. : JS - Halaman Utama Desktop
Created By : Siau Pheng ([email protected]).
Created Date : May 24th, 2010.
Last Modified : August 15th, 2019.
(c) 2010 - 2020, 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: (ares) => {
$('#pageContent').html(ares.content);
$('#pageToolbarTop').html('');
$('#pageToolbarBot').html('');
//this.loadPagu();
//this.loadChart();
}
}).send();
},
loadPagu: function(){
new Request.JSON({
url: FoniaJS.WEB_PATH+'apps/php/index.php',
sendParam: ['data=pagu-info'],
onSuccess: function(ares){
$('#divHome1').html(ares.html);
}
}).send();
},
loadChart: function(){
new Request.JSON({
url: FoniaJS.WEB_PATH+'apps/php/index.php',
sendParam: ['data=pagu-chart'],
onSuccess: function(data){
var ctx = $('#pieChart');
var pieOptions = {
legend: { display: true, position: 'bottom', labels:{pointStyle:'circle', usePointStyle:true} },
aspectRatio: 1.3,
cutoutPercentage: 35,
responsiveAnimationDuration: 10,
responsive: true,
maintainAspectRatio: true,
onResize: function(mcha, size) {
var leg = (size.width <= 330) ? false : true;
mcha.options.legend.display = leg;
}
};
var myChart = new Chart(ctx, {
type: 'doughnut',
data: data,
options: pieOptions
});
}
}).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); }
}
}
});
})
});
}
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
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');
if (jQuery.backstretch){
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'],
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();
}
};
+61
View File
@@ -0,0 +1,61 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/mon/repo_eval_tujuan.js
Desc. : JS - Cetak Tabel Master Jalan
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 RepoMJalanJS = {
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){
if ($('#KecID').val() == 0) {
FoniaJS.showInfo('Silahkan Pilih Nama Kecamatan !');
return false;
}
var cetak = new cPRINTER(this.PHP);
cetak.set_zoom(80);
cetak.add_param("data", "cetak-html");
cetak.add_param("KecID");
cetak.add_param("KelID");
cetak.add_param("JU");
if (prt=='print') { cetak.doPrint(); } else cetak.doPreview();
},
proses_dload: function(){
if ($('#KecID').val() == 0) {
FoniaJS.showInfo('Silahkan Pilih Nama Kecamatan !');
return false;
}
var dload = new cEXPORT(this.PHP);
dload.add_param("data", "export");
dload.add_param("KecID");
dload.add_param("KelID");
dload.add_param("JU");
dload.download();
},
oc_KecID : function(){
new Request({
url: this.PHP,
sendParam: ['data=default','KecID','KelID','JU'],
onSuccess: function(txt){
$('#win'+this.KODE+' .modal-body').html(txt);
}.bind(this)
}).send();
}
};
+70
View File
@@ -0,0 +1,70 @@
/*******************************************************************
Module : /apps/js/sys/about.js
Desc. : JS - Informasi Aplikasi
Created By : Siau Pheng ([email protected]).
Created Date : November 23th, 2011.
Last Modified : February 28th, 2026.
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var AboutJS = {
PHP: '',
KODE: '',
loading: function(){
$('#win'+this.KODE).find('#divBuildInfo').html('<p>Aplikasi dibuat dengan komponen :<br>- jQuery Version '+$().jquery+' <br>- Bootstrap Version '+$.fn.tooltip.Constructor.VERSION+' <br>- FoniaJS Version '+FoniaJS.version+' <br>- FoniaPHP Version '+FoniaJS.phpversion+'</p>');
},
proses_checkdb: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=check_db'],
onSuccess: (ajson) => {
this.winCheck = FoniaJS.showWindow('CekDB', 'Cek, Perbaiki dan Optimalisasi Database', ajson.html, 500, [{},{i:'butTutup'},{i:'butWProses',v:'Proses DB !',c:'success'}], () => $('#winCekDB').find('#butWProses').click(() => this.checkdb_run()));
}
}).send();
},
proses_update: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=check_update'],
onSuccess: (ajson) => {
var tomb = [{},{i:'butTutup'},{i:'butWUpdate',v:'Proses Update !',c:'success'}];
if (ajson.is_update) tomb.pop();
this.winUpdate = FoniaJS.showWindow('CekApp', 'Cek dan Update Aplikasi', ajson.html, 500, tomb, () => {
$('#winCekApp').find('#butWUpdate').click(() => this.update_run());
});
}
}).send();
},
checkdb_run: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=proses_db','DB_Cek','DB_Repair','DB_Opti'],
onSuccess: (ajson) => {
if ($('#DB_Hasil')) $('#DB_Hasil').removeClass('d-none').html(txt);
FoniaJS.showInfo('Proses Database selesai', 2000);
}
}).send();
},
update_run: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=proses_update'],
onSuccess: (adata) => {
if (adata.success==true) {
$('#spanStatus').html(adata.message);
FoniaJS.showInfo('Aplikasi telah di Update.<br>Silakan refresh browser Anda!');
} else {
FoniaJS.showInfo('Aplikasi gagal di Update.');
}
}
}).send();
}
};
+90
View File
@@ -0,0 +1,90 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/sys/akses_mon.js
Desc. : JS - Konfigurasi Hak Akses Data e-Monev
Created By : Siau Pheng ([email protected]).
Created Date : February 17th, 2020.
Last Modified : July 15th, 2026.
(c) 2020 - 2026, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TAksesMonJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_OPD').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_OPD').val('');
this.data_query('detail');
});
$('#butUpAll').click(() => this.update_all());
FoniaJS.setFocus('#Cari_OPD');
},
update_all: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=akses-semua','Tahun'],
onSuccess: (ajson) => {
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', ajson.html, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
});
}
}).send();
},
update_proc: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save-all','Tahun','Hak_Renja','Hak_Kin_B01','Hak_Kin_B02','Hak_Kin_B03','Hak_Kin_B04','Hak_Kin_B05','Hak_Kin_B06','Hak_Kin_B07','Hak_Kin_B08','Hak_Kin_B09','Hak_Kin_B10','Hak_Kin_B11','Hak_Kin_B12'],
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
}).send();
},
detail_show: function(mode, OPDID, AksesID){
new Request.JSON({
url: this.PHP,
sendParam: ['data=akses-detail','mode='+mode,'Tahun','OPDID='+OPDID,'AksesID='+AksesID],
onSuccess: (ajson) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', ajson.html, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0], acell[1]);
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save','Tahun','AksesID','OPDID','Hak_Renja','Hak_Kin_B01','Hak_Kin_B02','Hak_Kin_B03','Hak_Kin_B04','Hak_Kin_B05','Hak_Kin_B06','Hak_Kin_B07','Hak_Kin_B08','Hak_Kin_B09','Hak_Kin_B10','Hak_Kin_B11','Hak_Kin_B12'],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Tahun','Cari_OPD']
}).send()
}
},
oc_Tahun: function(){
this.data_query('detail');
}
};
+90
View File
@@ -0,0 +1,90 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/sys/akses_mus.js
Desc. : JS - Konfigurasi Hak Akses Data e-Musrenbang
Created By : Siau Pheng ([email protected]).
Created Date : February 17th, 2020.
Last Modified : July 19th, 2020.
(c) 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TAksesMJS = {
PHP: '',
KODE: '',
loading: function(){
$('#Cari_OPD').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_OPD').val('');
this.data_query('detail');
});
$('#butUpAll').click(() => this.update_all());
this.data_query('detail');
FoniaJS.setFocus('#Cari_OPD');
},
update_all: function(){
new Request({
url: this.PHP,
sendParam: ['data=akses-semua','Tahun'],
onSuccess: (txt) => {
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
});
}
}).send();
},
update_proc: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save-all','Tahun','Hak_Usulan','Hak_Prioritas'],
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
}).send();
},
detail_show: function(mode, KecID, AksesID){
new Request({
url: this.PHP,
sendParam: ['data=akses-detail','mode='+mode,'Tahun','KecID='+KecID,'AksesID='+AksesID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0], acell[1]);
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save','Tahun','AksesID','KecID','Hak_Usulan','Hak_Prioritas'],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Tahun','Cari_OPD']
}).send()
}
},
oc_Tahun: function(){
this.data_query('detail');
}
};
+90
View File
@@ -0,0 +1,90 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/sys/akses_pok.js
Desc. : JS - Konfigurasi Hak Akses Data e-Pokir
Created By : Siau Pheng ([email protected]).
Created Date : February 17th, 2020.
Last Modified : July 19th, 2020.
(c) 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TAksesPJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_OPD').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_OPD').val('');
this.data_query('detail');
});
$('#butUpAll').click(() => this.update_all());
FoniaJS.setFocus('#Cari_OPD');
},
update_all: function(){
new Request({
url: this.PHP,
sendParam: ['data=akses-semua','Tahun'],
onSuccess: (txt) => {
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
});
}
}).send();
},
update_proc: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save-all','Tahun','Hak_Usulan','Hak_Ubah','Hak_Prioritas'],
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
}).send();
},
detail_show: function(mode, DPRDID, AksesID){
new Request({
url: this.PHP,
sendParam: ['data=akses-detail','mode='+mode,'Tahun','DPRDID='+DPRDID,'AksesID='+AksesID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0], acell[1]);
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save','Tahun','AksesID','DPRDID','Hak_Usulan','Hak_Ubah','Hak_Prioritas'],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Tahun','Cari_OPD']
}).send()
}
},
oc_Tahun: function(){
this.data_query('detail');
}
};
+90
View File
@@ -0,0 +1,90 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/sys/akses_sip.js
Desc. : JS - Konfigurasi Hak Akses Data e-Planning
Created By : Siau Pheng ([email protected]).
Created Date : February 17th, 2020.
Last Modified : February, 2022.
(c) 2020 - 2022, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TAksesRJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_OPD').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_OPD').val('');
this.data_query('detail');
});
$('#butUpAll').click(() => this.update_all());
FoniaJS.setFocus('#Cari_OPD');
},
update_all: function(){
new Request({
url: this.PHP,
sendParam: ['data=akses-semua','RPJMDID'],
onSuccess: (txt) => {
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
});
}
}).send();
},
update_proc: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save-all','RPJMDID','Hak_Renstra','Hak_RPJMD'],
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
}).send();
},
detail_show: function(mode, OPDID, AksesID){
new Request({
url: this.PHP,
sendParam: ['data=akses-detail','mode='+mode,'RPJMDID','OPDID='+OPDID,'AksesID='+AksesID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0], acell[1]);
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save','RPJMDID','AksesID','OPDID','Hak_Renstra','Hak_RPJMD'],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','RPJMDID','Cari_OPD']
}).send()
}
},
oc_RPJMD: function(){
this.data_query('detail');
}
};
+90
View File
@@ -0,0 +1,90 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/sys/akses_sip.js
Desc. : JS - Konfigurasi Hak Akses Data e-Planning
Created By : Siau Pheng ([email protected]).
Created Date : February 17th, 2020.
Last Modified : February, 2022.
(c) 2020 - 2022, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TAksesSJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_OPD').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_OPD').val('');
this.data_query('detail');
});
$('#butUpAll').click(() => this.update_all());
FoniaJS.setFocus('#Cari_OPD');
},
update_all: function(){
new Request({
url: this.PHP,
sendParam: ['data=akses-semua','Tahun'],
onSuccess: (txt) => {
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
});
}
}).send();
},
update_proc: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save-all','Tahun','Hak_Renja1','Hak_Renja2'],
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
}).send();
},
detail_show: function(mode, OPDID, AksesID){
new Request({
url: this.PHP,
sendParam: ['data=akses-detail','mode='+mode,'Tahun','OPDID='+OPDID,'AksesID='+AksesID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0], acell[1]);
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save','Tahun','AksesID','OPDID','Hak_Renja1','Hak_Renja2'],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Tahun','Cari_OPD']
}).send()
}
},
oc_Tahun: function(){
this.data_query('detail');
}
};
+55
View File
@@ -0,0 +1,55 @@
/*******************************************************************
Module : /apps/js/sys/chpasswd.js
Desc. : JS - Perubahan Password Operator
Created By : Siau Pheng ([email protected]).
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();
}
};
+59
View File
@@ -0,0 +1,59 @@
/*******************************************************************
Module : /apps/js/sys/config.js
Desc. : JS - Konfigurasi Aplikasi
Created By : Siau Pheng ([email protected]).
Created Date : May 25th, 2010.
Last Modified : September 30th, 2025.
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var ConfigJS = {
PHP: '',
KODE: '',
loading: function(){
$('#butUbah').click(() => this.proses_edit());
$('#butSimpan').click(() => this.proses_save());
this.data_query('view');
},
proses_edit: function(){
this.data_query('edit');
},
proses_save: function(){
new Request({
url: this.PHP,
sendParam: ['data=master','mode=save','REG_ID','REG_ADDRESS','REG_CITY','REG_POSTCODE','REG_PHONE','REG_FAX','REG_WEBSITE','REG_EMAIL'],
onSuccess: (txt) => {
$('#divMaster').html(txt);
this.update_event();
}
}).send()
},
data_query: function(mode){
new Request({
url: this.PHP,
sendParam: ['data=master','mode='+mode,'REG_ID'],
onSuccess: (txt) => {
$('#divMaster').html(txt);
this.update_event();
}
}).send()
},
update_event: function(){
if ($.inArray($('#mode').val(), ['edit']) >= 0) {
$("#butUbah").prop('disabled', true);
$("#butSimpan").prop('disabled', false);
} else {
$("#butUbah").prop('disabled', false);
$("#butSimpan").prop('disabled', true);
}
}
};
+146
View File
@@ -0,0 +1,146 @@
/*******************************************************************
Module : /apps/js/sys/menu_grup.js
Desc. : JS - Manajemen Data Grup Login Menu
Created By : Siau Pheng ([email protected]).
Created Date : August 8th, 2013.
Last Modified : January 1st, 2026.
(c) 2013 - 2026, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var MenuGrupJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Grup').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Grup').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Grup');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=grup-detail','mode='+mode,'Grup_MenuID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Informasi Grup Menu', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
$('#winDetail').find('#butWSimpan').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus "+acell[1]+"?", function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','Grup_MenuID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','Grup_MenuID','Nama_Grup','Ket','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
menu_show: function(acell){
new Request({
url: this.PHP,
sendParam: ['data=menu','Grup_MenuID='+acell[0]],
onSuccess: function(txt){
this.winMenu = FoniaJS.showWindow('Menu', 'Hak Akses Modul', txt, 'lg', [{i:'butWSelAll',v:'Pilih Semua',c:'info'},{i:'butWClrAll',v:'Hapus Semua',c:'info'},{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
$('#winMenu')
.find('#butWSelAll').click(function(){this.menu_ceksemua();}.bind(this)).end()
.find('#butWClrAll').click(function(){this.menu_hapussemua();}.bind(this)).end()
.find('#butWSimpan').click(function(){this.menu_simpan();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
menu_cek: function(el){
var t_modul = el.value, b_check = el.checked;
$('#tabMenuList tbody input[type="checkbox"]').map(function(i, b){
var t_menu = $(b);
if (t_menu.hasClass(t_modul)) t_menu.prop('checked', b_check);
});
el.prop('checked', !b_check);
},
menu_ceksemua: function(){
$('#tabMenuList tbody input[type="checkbox"]').prop('checked', true);
},
menu_hapussemua: function(){
$('#tabMenuList tbody input[type="checkbox"]').prop('checked', false);
},
menu_simpan: function(){
var alist = $('#R_MENU').val().split(',');
$('#tabMenuList tbody input[type="checkbox"]:checked').map(function(i, b){
alist.push($(b).val());
});
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save-menu','Grup_MenuID','Menu='+alist.join()],
onSuccess: function(adata){
if (adata.status==true){
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winMenu);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Grup']
}).send()
}
}
};
+281
View File
@@ -0,0 +1,281 @@
/*******************************************************************
Module : /apps/js/sys/operator.js
Desc. : JS - Manajemen Data Pengguna
Created By : Siau Pheng ([email protected]).
Created Date : March 12th, 2008.
Last Modified : January 1st, 2026.
(c) 2008 - 2026, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var OperatorJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_User').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_User').val('');
this.data_query('detail');
});
$('#butFilter').click(() => this.filter_show());
FoniaJS.setFocus('#Cari_User');
},
filter_show: function(){
new Request({
url: this.PHP,
sendParam: ['data=detail_filter','Filter_Level'],
onSuccess: (txt) => {
this.winFilter = FoniaJS.showWindow('FLevel', 'Filter Data Pengguna / Level', txt, 400, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winFLevel')
.find('#butWSimpan').click(() => this.filter_simpan()).end()
.find('#Fi_Level').focus();
});
}
}).send();
},
filter_simpan: function(){
$('#Filter_Level').val($('#Fi_Level').val());
FoniaJS.closeWindow(this.winFilter);
this.data_query('detail');
},
detail_show: function(mode, UserID){
new Request({
url: this.PHP,
sendParam: ['data=user-detail','mode='+mode,'UserID='+UserID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Informasi Pengguna', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_check());
this.oc_Level();
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus ["+acell[1]+"] "+acell[2]+"?", () => {
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','UserID='+acell[0]],
onSuccess: (adata) => {
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}
}).send();
}, 'danger');
},
detail_check: function(){
if ($('#Username').val().toUpperCase()==$('#UserLama').val().toUpperCase()) {
this.detail_save();
return;
}
new Request.JSON({
url: this.PHP,
sendParam: ['data=user-check','Username'],
onSuccess: (adata) => {
if (adata.ada==true) {
FoniaJS.showInfo("Username telah ada dalam sistem !");
} else {
this.detail_save();
}
}
}).send();
},
detail_save: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode','UserID','Username','Nama','Posisi','Level','Password','Grup_MenuID','Aktif'],
onSuccess: (adata) => {
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
menu_show: function(acell){
new Request({
url: this.PHP,
sendParam: ['data=menu','UserID='+acell[0]],
onSuccess: (txt) => {
this.winMenu = FoniaJS.showWindow('Menu', 'Hak Akses Modul', txt, 'lg', [{i:'butWSelAll',v:'Pilih Semua',c:'info'},{i:'butWClrAll',v:'Hapus Semua',c:'info'},{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winMenu')
.find('#butWSelAll').click(() => this.menu_ceksemua()).end()
.find('#butWClrAll').click(() => this.menu_hapussemua()).end()
.find('#butWSimpan').click(() => this.menu_simpan()).end()
.find('#tabMenuList thead input[type="checkbox"]:disabled').prop('indeterminate', true);
});
}
}).send();
},
menu_cek: function(el){
var t_modul = el.value, b_check = el.checked;
$('#tabMenuList tbody input[type="checkbox"]').map(function(i, b){
var t_menu = $(b);
if (t_menu.hasClass(t_modul)) t_menu.prop('checked', b_check);
});
el.prop('checked', !b_check);
},
menu_ceksemua: function(){
$('#tabMenuList tbody input[type="checkbox"]:not(:disabled)').prop('checked', true);
},
menu_hapussemua: function(){
$('#tabMenuList tbody input[type="checkbox"]:not(:disabled)').prop('checked', false);
},
menu_simpan: function(){
var alist = $('#R_MENU').val().split(',');
$('#tabMenuList tbody input[type="checkbox"]:not(:disabled):checked').map(function(i, b){
alist.push($(b).val());
});
new Request.JSON({
url: this.PHP,
sendParam: ['data=save-menu','UserID','Menu='+alist.join()],
onSuccess: (adata) => {
if (adata.status==true){
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winMenu);
}
}).send();
},
opd_show: function(acell){
new Request({
url: this.PHP,
sendParam: ['data=opd','UserID='+acell[0]],
onSuccess: (txt) => {
this.winOPD = FoniaJS.showWindow('OPD', 'Akses Data OPD', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winOPD').find('#butWSimpan').click(() => this.opd_simpan());
});
}
}).send();
},
opd_simpan: function(){
var alist = [];
$('#tabOPDList tbody input[type="checkbox"]:not(:disabled):checked').map(function(i, b){
alist.push($(b).val());
});
new Request.JSON({
url: this.PHP,
sendParam: ['data=save-opd','UserID','AK_OPD='+alist.join()],
onSuccess: (adata) => {
if (adata.status==true){
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winOPD);
}
}).send();
},
kec_show: function(acell){
new Request({
url: this.PHP,
sendParam: ['data=kec','UserID='+acell[0]],
onSuccess: (txt) => {
this.winKec = FoniaJS.showWindow('Kec', 'Akses Data Kecamatan', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#AK_KEC').select2({tags: false, dropdownParent: $('#winKec')});
$('#winKec').find('#butWSimpan').click(() => this.kec_simpan());
});
}
}).send();
},
kec_simpan: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save-kec','UserID','AK_KEC'],
onSuccess: (adata) => {
if (adata.status==true){
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winKec);
}
}).send();
},
kel_show: function(acell){
new Request({
url: this.PHP,
sendParam: ['data=kel','UserID='+acell[0]],
onSuccess: (txt) => {
this.winKel = FoniaJS.showWindow('Kel', 'Akses Data Kelurahan / Desa', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#AK_KEL').select2({tags: false, dropdownParent: $('#winKel')});
$('#winKel').find('#butWSimpan').click(() => this.kel_simpan());
});
}
}).send();
},
kel_simpan: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save-kel','UserID','AK_KEL'],
onSuccess: (adata) => {
if (adata.status==true){
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winKel);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Filter_Level','Cari_User']
}).send()
}
},
oc_Level: function(){
if ($('#Level').val()>1 && $('#Level').val()!=3) {
$('#Grup_MenuID').prop('disabled', true).val(0).trigger('change');
} else $('#Grup_MenuID').prop('disabled', false);
if ($('#Level').val()==3) {
$('#Grup_Help').removeClass('d-none');
} else $('#Grup_Help').addClass('d-none');
}
};
+56
View File
@@ -0,0 +1,56 @@
/*******************************************************************
Module : /apps/js/sys/config.js
Desc. : JS - Konfigurasi Aplikasi
Created By : Siau Pheng ([email protected]).
Created Date : May 25th, 2010.
Last Modified : February 6th, 2023.
(c) 2010 - 2023, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var SIPPDJS = {
PHP: '',
KODE: '',
loading: function(){
$('#butUbah').click(() => this.proses_edit());
$('#butSimpan').click(() => this.proses_save());
this.data_query('view');
},
proses_edit: function(){
this.data_query('edit');
},
proses_save: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','REG_ID','INFO_RUN','RENC_RPJMDID','RENC_THN','RENC_VISIID','REAL_RPJMDID','REAL_THN','REAL_BLN','REAL_TGL'],
onSuccess: (adata) => {
if (adata.status==true) {
FoniaJS.showInfo('Simpan konfigurasi aplikasi sukses !');
}
this.data_query('view');
}
}).send()
},
data_query: function(mode){
new Request({
url: this.PHP,
sendParam: ['data=master','mode='+mode,'REG_ID'],
onSuccess: (txt) => {
$('#divMaster').html(txt);
if ($.inArray($('#mode').val(), ['edit']) >= 0) {
$("#butUbah").prop('disabled', true);
$("#butSimpan").prop('disabled', false);
} else {
$("#butUbah").prop('disabled', false);
$("#butSimpan").prop('disabled', true);
}
}
}).send()
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/akun.js
Desc. : JS - Tabel Master Akun Keuangan
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : August 24th, 2021.
(c) 2012 - 2021, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TAkunJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Akun').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Akun').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Akun');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=akun-detail','mode='+mode,'AkunID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Akun Keuangan', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','AkunID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','AkunID','K_Akun','N_Akun','Set_Input'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Akun']
}).send();
}
}
};
+158
View File
@@ -0,0 +1,158 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/asb.js
Desc. : JS - Tabel Master Standar ASB
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 30th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TASBJS = {
PHP: '',
KODE: '',
loading: function(){
$('#butASB').click(function(){
if ($('#ASBID').val()>0) this.show_hide(1);
}.bind(this));
this.show_hide(1);
$('#Cari_ASB').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.show_hide(1);
}.bind(this));
$('#butSearch').click(function(e){
this.show_hide(1);
}.bind(this));
$('#butAll').click(function(){
$('#Cari_ASB').val('');
this.show_hide(1);
}.bind(this));
FoniaJS.setFocus('#Cari_ASB');
},
show_hide: function(no){
$('#divASB').css('display', 'none'); $('#butASB').removeClass('btn-secondary').addClass('btn-info');
$('#divHSPK').css('display', 'none');
if (no == 1) {
$('#ASBID').val(0);
$('#Nama_ASB').val('');
}
if (no <= 1) {
$('#butASB').removeClass('btn-info').addClass('btn-secondary');
}
if (no == 1) { $('#divASB').css('display', ''); this.data_query('tabel-asb'); }
if (no == 2) { $('#divHSPK').css('display', ''); this.data_query('tabel-hspk'); }
},
asb_select: function(acell){
$('#ASBID').val(acell[0]);
$('#Nama_ASB').val(acell[2]);
this.show_hide(2);
},
asb_detail: function(mode, ID){
$('#ASBID').val(ID);
new Request({
url: this.PHP,
sendParam: ['data=detail-asb','mode_detail='+mode,'ASBID'],
onSuccess: function(txt){
this.winASB = FoniaJS.showWindow('ASB', 'Detail Standar ASB', txt, 600, '_,WK,WS', function(){
$('#winASB').find('#butWSave').click(function(){this.asb_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
asb_tambah: function(){
this.asb_detail('insert', 0);
},
asb_ubah: function(acell){
this.asb_detail('update', acell[0]);
},
asb_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=tabel-asb','mode_detail=delete','ASBID='+acell[0]],
onSuccess: function(){
FoniaJS.showInfo('Proses hapus data sukses!');
}.bind(this)
}).send();
}.bind(this), 'danger');
},
asb_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-asb','mode_detail','ASBID='+$('#ASBID2').val(),'OPDID','K_ASB','N_ASB','D_ASB','Aktif'],
onSuccess: function(){
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winASB);
}.bind(this)
}).send();
},
hspk_detail: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=detail-hspk','mode_detail='+mode,'ASBID','ID='+ID],
onSuccess: function(txt){
this.winHSPK = FoniaJS.showWindow('HSPK', 'Detail Komponen HSPK', txt, 600, '_,WK,WS', function(){
$('#winHSPK').find('#butWSave').click(function(){this.hspk_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
hspk_tambah: function(){
this.hspk_detail('insert', 0);
},
hspk_ubah: function(acell){
this.hspk_detail('update', acell[0]);
},
hspk_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=tabel-hspk','mode_detail=delete','ASBID','ID='+acell[0]],
onSuccess: function(){
FoniaJS.showInfo('Proses hapus data sukses!');
}.bind(this)
}).send();
}.bind(this), 'danger');
},
hspk_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-hspk','mode_detail','ASBID','ID','HSPKID','KOE'],
onSuccess: function(){
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winHSPK);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="tabel-asb"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-asb','Cari_ASB']
}).send();
} else if (tipe=="tabel-hspk"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-hspk','ASBID']
}).send();
}
},
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/bidu.js
Desc. : JS - Tabel Master Bidang Urusan
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 19th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TBiduJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Bidu').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Bidu').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Bidu');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=bidu-detail','mode='+mode,'BUID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Bidang Urusan', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[3]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','BUID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','BUID','K_Urusan','K_Bidu','N_Bidu','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Bidu']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/dapil.js
Desc. : JS - Tabel Master Daerah Pemilihan
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 31st, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TDapilJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Dapil').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Dapil').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Dapil');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=dapil-detail','mode='+mode,'DapilID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Kelompok Dapil', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','DapilID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','DapilID','N_Dapil','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Dapil']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/desa.js
Desc. : JS - Tabel Master Kelurahan / Desa
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 31st, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TDesaJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Desa').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Desa').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Desa');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=desa-detail','mode='+mode,'LokasiID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Kelurahan / Desa', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','LokasiID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','LokasiID','K_Lokasi','N_Lokasi','IndukID','Aktif'],//N_Urut
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Desa']
}).send();
}
}
};
+110
View File
@@ -0,0 +1,110 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/dprd.js
Desc. : JS - Tabel Master Anggota DPRD
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 31st, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TDPRDJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_DPRD').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_DPRD').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_DPRD');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=dprd-detail','mode='+mode,'DPRDID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Anggota DPRD', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_check();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','DPRDID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_check: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=user-check','DPRDID','Username'],
onSuccess: function(adata){
if (adata.ada==true) {
FoniaJS.showInfo("Username telah ada dalam sistem !");
} else {
this.detail_save();
}
}.bind(this)
}).send();
},
detail_save: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode','DPRDID','K_DPRD','N_DPRD','F_DPRD','Komisi_DPRD','DapilID','Username','Password','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_DPRD']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/forum.js
Desc. : JS - Tabel Master Kelompok Forum OPD
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 31st, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TForumJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Forum').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Forum').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Forum');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=forum-detail','mode='+mode,'ForumID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Kelompok Forum OPD', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','ForumID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','ForumID','N_Forum','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Forum']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/hspk.js
Desc. : JS - Tabel Master Standar HSPK
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : January 22nd, 2021.
(c) 2012 - 2021, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var THSPKJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_HSPK').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_HSPK').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_HSPK');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=hspk-detail','mode='+mode,'HSPKID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Standar HSPK', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','HSPKID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','HSPKID','K_HSPK','N_HSPK','Satuan','Nilai_W1','Nilai_W2','Nilai_W3','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_HSPK']
}).send();
}
}
};
+103
View File
@@ -0,0 +1,103 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/jalan.js
Desc. : JS - Tabel Master Jalan / Gang
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : January 22nd, 2021.
(c) 2012 - 2021, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TJalanJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Jalan').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Jalan').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Jalan');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=jalan-detail','mode='+mode,'JalanID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Jalan / Gang', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','JalanID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','JalanID','KecID','KelID','K_Jalan','N_Jalan','Lokasi','Panjang','Mantap','Rusak_Ringan','Rusak_Berat','JU','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Jalan']
}).send();
}
},
oc_Kec: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-kel','KecID']
}).send();
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/kec.js
Desc. : JS - Tabel Master Kecamatan
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 31st, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TKecJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Kec').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Kec').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Kec');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=kec-detail','mode='+mode,'LokasiID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Kecamatan', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','LokasiID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','LokasiID','K_Lokasi','N_Lokasi','DapilID','Aktif'],//N_Urut
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Kec']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/opd.js
Desc. : JS - Tabel Master OPD
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : February 21st, 2023.
(c) 2012 - 2023, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TOPDJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_OPD').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_OPD').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_OPD');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=opd-detail','mode='+mode,'OPDID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail OPD', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','OPDID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','OPDID','K_Bidu1','K_Bidu2','K_Bidu3','U_Bidu','N_OPD','S_OPD','N_Lokasi','SidangID','ForumID','IV','IK','P_NIP','P_Nama','P_Jabatan','P_Pangkat','B_NIP','B_Nama','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_OPD']
}).send();
}
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/opd_pagu.js
Desc. : JS - Tabel Master Pagu OPD
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 31st, 2020.
(c) 2010 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TOPDPaguJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_OPD').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_OPD').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_OPD');
},
detail_show: function(OPID, OPDID){
new Request({
url: this.PHP,
sendParam: ['data=opdpagu-detail','Tahun','OPDPAGUID='+OPID,'OPDID='+OPDID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Pagu OPD', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_ubah: function(acell){
this.detail_show(acell[0], acell[1]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[3]+'"</b> ?', function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=del','OPDPAGUID='+acell[0]],
onSuccess: function(){
FoniaJS.showInfo('Proses hapus data sukses!');
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode=save','Tahun','OPDPAGUID','OPDID','Pagu'],
onSuccess: function(){
FoniaJS.closeWindow(this.winDetail);
FoniaJS.showInfo('Proses simpan data sukses!');
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Tahun','Cari_OPD']
}).send()
}
},
oc_Tahun: function(){
this.data_query('detail');
}
};
+93
View File
@@ -0,0 +1,93 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/periode.js
Desc. : JS - Pengaturan Periode Data
Created By : Siau Pheng ([email protected]).
Created Date : May 16th, 2012.
Last Modified : July 18th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TPeriodeJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Tahun').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_Tahun').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Tahun');
},
detail_show: function(mode, ThnID){
new Request({
url: this.PHP,
sendParam: ['data=periode-detail','mode='+mode,'THNID='+ThnID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Periode Data', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','THNID='+acell[0]],
onSuccess: (adata) => {
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','THNID','Tahun','Ket'],
onSuccess: (adata) => {
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Tahun']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/prio_dae.js
Desc. : JS - Tabel Master Prioritas Daerah
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 31st, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TPrioDJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_PrioD').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_PrioD').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_PrioD');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=priodae-detail','mode='+mode,'PrioDID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Prioritas Daerah', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','PrioDID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','PrioDID','K_PrioD','N_PrioD','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_PrioD']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/prio_nas.js
Desc. : JS - Tabel Master Prioritas Nasional
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 31st, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TPrioNJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_PrioN').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_PrioN').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_PrioN');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=prionas-detail','mode='+mode,'PrioNID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Prioritas Nasional', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','PrioNID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','PrioNID','K_PrioN','N_PrioN','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_PrioN']
}).send();
}
}
};
+93
View File
@@ -0,0 +1,93 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/rpjmd.js
Desc. : JS - Konfigurasi Periode RPJMD
Created By : Siau Pheng ([email protected]).
Created Date : May 16th, 2012.
Last Modified : July 18th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TRPJMDJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_RPJMD').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click(() => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_RPJMD').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_RPJMD');
},
detail_show: function(mode, RPJMDID){
new Request({
url: this.PHP,
sendParam: ['data=rpjmd-detail','mode='+mode,'RPJMDID='+RPJMDID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail RPJMD', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','RPJMDID='+acell[0]],
onSuccess: (adata) => {
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','RPJMDID','Ket','Tahun1','Tahun2','Tahun3','Tahun4','Tahun5','Tahun6'],
onSuccess: (adata) => {
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_RPJMD']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/satuan.js
Desc. : JS - Tabel Master Satuan Kegiatan
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 30th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TSatuanJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Satuan').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Satuan').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Satuan');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=satuan-detail','mode='+mode,'SatuanID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Satuan Kegiatan', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','SatuanID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','SatuanID','K_Satuan','N_Satuan','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Satuan']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/subkeg.js
Desc. : JS - Tabel Master Sub Kegiatan
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 19th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TSubKegJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Sub').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Sub').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Sub');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=subkeg-detail','mode='+mode,'SubID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Sub Kegiatan', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[3]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','SubID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','SubID','ProgID','KegID','K_Sub','N_Sub','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Sub']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/urusan.js
Desc. : JS - Tabel Master Urusan
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2010.
Last Modified : July 19th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TUrusanJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Urusan').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Urusan').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Urusan');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=urusan-detail','mode='+mode,'UrusanID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Urusan', txt, 600, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_save();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','UrusanID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','UrusanID','K_Urusan','N_Urusan','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Urusan']
}).send();
}
}
};
+149
View File
@@ -0,0 +1,149 @@
/*******************************************************************
Module : /apps/js/sys/operator.js
Desc. : JS - Manajemen Data Pengguna
Created By : Siau Pheng ([email protected]).
Created Date : March 12th, 2008.
Last Modified : July 14th, 2020.
(c) 2008 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TFraksiJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Fraksi').keydown(function(e){
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
}.bind(this));
$('#butSearch').click(function(e){
this.data_query('detail');
}.bind(this));
$('#butAll').click(function(){
$('#Cari_Fraksi').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Fraksi');
},
detail_show: function(mode, UserID){
new Request({
url: this.PHP,
sendParam: ['data=user-detail','mode='+mode,'UserID='+UserID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Informasi Pengguna Fraksi', txt, 500, '_,WK,WS', function(){
$('#winDetail').find('#butWSave').click(function(){this.detail_check();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
detail_tambah: function(){
this.detail_show('add', 0);
},
detail_ubah: function(acell){
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus ["+acell[1]+"] "+acell[2]+"?", function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=save','mode=del','UserID='+acell[0]],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses hapus data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
}
}.bind(this)
}).send();
}.bind(this), 'danger');
},
detail_check: function(){
if ($('#Username').val().toUpperCase()==$('#UserLama').val().toUpperCase()) {
this.detail_save();
return;
}
new Request.JSON({
url: this.PHP,
sendParam: ['data=user-check','Username'],
onSuccess: function(adata){
if (adata.ada==true) {
FoniaJS.showInfo("ID Pengguna telah ada dalam sistem !");
} else {
this.detail_save();
}
}.bind(this)
}).send();
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save','mode','UserID','Username','Nama','Posisi','Password','Aktif'],
onSuccess: function(adata){
if (adata.status==true){
this.data_query('detail');
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDetail);
}.bind(this)
}).send();
},
dewan_show: function(acell){
new Request({
url: this.PHP,
sendParam: ['data=dewan','UserID='+acell[0]],
onSuccess: function(txt){
this.winDPRD = FoniaJS.showWindow('DPRD', 'Daftar Anggota Dewan', txt, 600, '_,WK,WS', function(){
$('#winDPRD').find('#butWSave').click(function(){this.dewan_simpan();}.bind(this));
}.bind(this));
}.bind(this)
}).send();
},
dewan_simpan: function(){
var hasil = '';
$('#tabDPRDList :input').each(function(e){
if (this.type=='checkbox' && this.id.indexOf('xDPRD')!==-1 && this.checked) {
hasil += $(this).val() + ',';
}
});
new Request.JSONF({
url: this.PHP,
sendParam: ['data=save-dewan','UserID','AK_DPRD='+hasil],
onSuccess: function(adata){
if (adata.status==true){
FoniaJS.showInfo('Proses simpan data sukses!');
}else{
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
}
FoniaJS.closeWindow(this.winDPRD);
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Fraksi']
}).send()
}
},
oc_Level: function(){
}
};