commit pertama

This commit is contained in:
2026-01-30 13:07:53 +07:00
commit 48199537d4
303 changed files with 136097 additions and 0 deletions
+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();
}
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
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 : October 18th, 2025.
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TDapilJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Dapil').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_Dapil').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Dapil');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=dapil-detail','mode_detail='+mode,'DapilID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Kelompok Dapil', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','DapilID='+acell[0],'Cari_Dapil'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail','DapilID','N_Dapil','Aktif','Cari_Dapil'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Dapil']
}).send();
}
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
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 : October 18th, 2025.
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TDesaJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Desa').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_Desa').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Desa');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=desa-detail','mode_detail='+mode,'LokasiID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Kelurahan / Desa', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','LokasiID='+acell[0],'Cari_Desa'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail','LokasiID','K_Lokasi','N_Lokasi','IndukID','Aktif','Cari_Desa'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Desa']
}).send();
}
}
};
+100
View File
@@ -0,0 +1,100 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
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 : October 18th, 2025.
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TDPRDJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_DPRD').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_DPRD').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_DPRD');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=dprd-detail','mode_detail='+mode,'DPRDID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Anggota DPRD', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_check());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','DPRDID='+acell[0],'Cari_DPRD'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_check: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=user-check','DPRDID','Username'],
onSuccess: (adata) => {
if (adata.ada==true) {
FoniaJS.showInfo("Username telah ada dalam sistem !");
} else {
this.detail_save();
}
}
}).send();
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail','DPRDID','K_DPRD','N_DPRD','F_DPRD','Komisi_DPRD','DapilID','Username','Password','Aktif','Cari_DPRD'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_DPRD']
}).send();
}
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
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 : October 18th, 2025.
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TForumJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Forum').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_Forum').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Forum');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=forum-detail','mode_detail='+mode,'ForumID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Kelompok Forum OPD', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','ForumID='+acell[0],'Cari_Forum'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail','ForumID','N_Forum','Aktif','Cari_Forum'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
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();
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
Module : /apps/js/tab/kec.js
Desc. : JS - Tabel Master Kecamatan
Created By : Siau Pheng (siaupheng@3fonia.com).
Created Date : December 7th, 2010.
Last Modified : October 18th, 2025.
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TKecJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Kec').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_Kec').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Kec');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=kec-detail','mode_detail='+mode,'LokasiID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Kecamatan', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','LokasiID='+acell[0],'Cari_Kec'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail','LokasiID','K_Lokasi','N_Lokasi','DapilID','Aktif','Cari_Kec'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_Kec']
}).send();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/kegiatan.js
Desc. : JS - Tabel Master Kegiatan
Created By : Siau Pheng (siaupheng@3fonia.com).
Created Date : December 7th, 2010.
Last Modified : July 19th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TKegiatanJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Keg').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_Keg').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Keg');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=kegiatan-detail','mode='+mode,'KegID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail 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','KegID='+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','KegID','ProgID','K_Keg','N_Keg','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_Keg']
}).send();
}
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
Module : /apps/js/tab/opd.js
Desc. : JS - Tabel Master OPD
Created By : Siau Pheng (siaupheng@3fonia.com).
Created Date : December 7th, 2010.
Last Modified : October 18th, 2025.
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TOPDJS = {
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((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_OPD').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_OPD');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=opd-detail','mode_detail='+mode,'OPDID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail OPD', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','OPDID='+acell[0],'Cari_OPD'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail','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','Aktif','Cari_OPD'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Cari_OPD']
}).send();
}
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
Module : /apps/js/tab/opd_pagu.js
Desc. : JS - Tabel Master Pagu OPD
Created By : Siau Pheng (siaupheng@3fonia.com).
Created Date : December 7th, 2010.
Last Modified : October 18th, 2025.
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TOPDPaguJS = {
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((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_OPD').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_OPD');
},
detail_show: function(OPID, OPDID){
new Request({
url: this.PHP,
sendParam: ['data=opd-detail','Tahun','OPDPAGUID='+OPID,'OPDID='+OPDID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Pagu OPD', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).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> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','OPDPAGUID='+acell[0],'Cari_OPD'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=update','Tahun','OPDPAGUID','OPDID','Pagu','Cari_OPD'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','Tahun','Cari_OPD']
}).send();
}
},
oc_Tahun: function(){
this.data_query('detail');
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
Module : /apps/js/tab/periode.js
Desc. : JS - Pengaturan Periode Data
Created By : Siau Pheng (siaupheng@3fonia.com).
Created Date : May 19th, 2010.
Last Modified : October 18th, 2025.
(c) 2010 - 2025, 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((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_Tahun').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Tahun');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=periode-detail','mode_detail='+mode,'THNID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Periode Data', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','THNID='+acell[0],'Cari_Tahun'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail','THNID','Tahun','Ket','Cari_Tahun'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
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 (siaupheng@3fonia.com).
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 (siaupheng@3fonia.com).
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();
}
}
};
+96
View File
@@ -0,0 +1,96 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/tab/program.js
Desc. : JS - Tabel Master Program
Created By : Siau Pheng (siaupheng@3fonia.com).
Created Date : December 7th, 2010.
Last Modified : July 19th, 2020.
(c) 2012 - 2020, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var TProgramJS = {
PHP: '',
KODE: '',
loading: function(){
this.data_query('detail');
$('#Cari_Prog').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_Prog').val('');
this.data_query('detail');
}.bind(this));
FoniaJS.setFocus('#Cari_Prog');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=program-detail','mode='+mode,'ProgID='+ID],
onSuccess: function(txt){
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Program', 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','ProgID='+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','ProgID','K_Bidu','K_Prog','N_Prog','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_Prog']
}).send();
}
}
};
+86
View File
@@ -0,0 +1,86 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
Module : /apps/js/tab/rpjmd.js
Desc. : JS - Konfigurasi Periode RPJMD
Created By : Siau Pheng (siaupheng@3fonia.com).
Created Date : May 19th, 2010.
Last Modified : October 18th, 2025.
(c) 2010 - 2025, 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((e) => {
this.data_query('detail');
});
$('#butAll').click(() => {
$('#Cari_RPJMD').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_RPJMD');
},
detail_show: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=rpjmd-detail','mode_detail='+mode,'RPJMDID='+ID],
onSuccess: (txt) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Periode RPJMD', txt, 600, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
});
}
}).send();
},
detail_tambah: function(){
this.detail_show('insert', 0);
},
detail_ubah: function(acell){
this.detail_show('update', acell[0]);
},
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail=delete','RPJMDID='+acell[0],'Cari_RPJMD'],
onSuccess: () => {
FoniaJS.showInfo('Proses hapus data sukses!');
}
}).send();
}, 'danger');
},
detail_save: function(){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail','mode_detail','RPJMDID','Ket','Tahun1','Tahun2','Tahun3','Tahun4','Tahun5','Tahun6','Cari_RPJMD'],
onSuccess: () => {
FoniaJS.showInfo('Proses simpan data sukses!');
FoniaJS.closeWindow(this.winDetail);
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
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 (siaupheng@3fonia.com).
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 (siaupheng@3fonia.com).
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 (siaupheng@3fonia.com).
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();
}
}
};