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
+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(){
}
};