first commit

This commit is contained in:
2026-05-03 13:08:18 +07:00
commit 3d1b44628f
50 changed files with 4028 additions and 0 deletions
+148
View File
@@ -0,0 +1,148 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/induk/asmas.js
Desc. : JS - Kegiatan Aspirasi Masyarakat
Created By : Siau Pheng ([email protected]).
Created Date : October 28th, 2011.
Last Modified : November 24th, 2025.
(c) 2011 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var IndukAsmasJS = {
PHP: '',
KODE: '',
loading: function(){
$('#butKEC').click(function(){
if ($('#KecID').val()>0) this.show_hide(1);
}.bind(this));
$('#butKEL').click(function(){
if ($('#KelID').val()>0) this.show_hide(2);
}.bind(this));
this.show_hide(1);
},
show_hide: function(no){
$('#divKEC').css('display', 'none'); $('#butKEC').removeClass('btn-secondary').addClass('btn-info');
$('#divKEL').css('display', 'none'); $('#butKEL').removeClass('btn-secondary').addClass('btn-info');
$('#divKEG').css('display', 'none');
if (no == 1) {
$('#KecID').val(0);
$('#Nama_KEC').val('');
}
if (no <= 1) {
$('#KelID').val(0);
$('#Nama_KEL').val('');
$('#butKEC').removeClass('btn-info').addClass('btn-secondary');
}
if (no <= 2) {
$('#butKEL').removeClass('btn-info').addClass('btn-secondary');
}
if (no == 1) { $('#divKEC').css('display', ''); this.data_query('tabel-kec'); }
if (no == 2) { $('#divKEL').css('display', ''); this.data_query('tabel-kel'); }
if (no == 3) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
},
kec_select: function(acell){
$('#KecID').val(acell[0]);
$('#Nama_KEC').val(acell[2]);
this.show_hide(2);
},
kel_select: function(acell){
$('#KelID').val(acell[0]);
$('#Nama_KEL').val(acell[2]);
this.show_hide(3);
},
keg_detail: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=detail-keg','mode_detail='+mode,'KecID','KelID','SapiID='+ID],
onSuccess: function(txt){
this.winDKeg = FoniaJS.showWindow('DKeg', 'Detail Kegiatan Aspirasi Masyarakat', txt, 'xl', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
$('#winDKeg').find('#butWSimpan').click(function(){this.keg_simpan();}.bind(this));
$('#formUsulAsmas').validate({
rules: {
required: true,
OPDID: {required:true, min:1},
ProgID: {required:true, min:1},
KegID: {required:true, min:1},
SubID: {required:true, min:1},
Lokasi: {required:true},
Masalah: {required:true},
Volume: {required:true, double_id:true},
Satuan: {required:true},
Rupiah: {required:true, double_id:true}
}
});
this.oc_OPD();
}.bind(this));
}.bind(this)
}).send();
},
keg_ubah: function(acell){
this.keg_detail('update', acell[0]);
},
keg_simpan: function(){
$('#formUsulAsmas').submit();
if (true !== $('#formUsulAsmas').validate().checkForm()) return false;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-keg','mode_detail','KecID','KelID','SapiID','OPDID','ProgID','KegID','SubID','Lokasi','Masalah','Volume','Satuan','Rupiah'],
onSuccess: function(adata){
FoniaJS.closeWindow(this.winDKeg);
FoniaJS.showInfo('Sukses menyimpan Kegiatan Aspirasi Masyarakat.');
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="tabel-kec"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-kec']
}).send();
} else if (tipe=="tabel-kel"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-kel','KecID']
}).send();
} else if (tipe=="tabel-keg"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-keg','KecID','KelID']
}).send();
}
},
oc_OPD: function(){
if (parseInt($('#OPDID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-prog','OPDID','ProgID']
}).send();
},
oc_Prog: function(){
if (parseInt($('#ProgID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-keg','OPDID','ProgID','KegID']
}).send();
},
oc_Keg: function(){
if (parseInt($('#KegID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-sub','OPDID','ProgID','KegID','SubID']
}).send();
}
};
+141
View File
@@ -0,0 +1,141 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/induk/pokir.js
Desc. : JS - Kegiatan Pokir Dewan
Created By : Siau Pheng ([email protected]).
Created Date : October 28th, 2011.
Last Modified : November 24th, 2025.
(c) 2011 - 2025, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var IndukPokirJS = {
PHP: '',
KODE: '',
loading: function(){
$('#butDPRD').click(function(){
if ($('#DPRDID').val()>0) this.show_hide(1);
}.bind(this));
$('#Nama_DPRD').keydown(function(e){
if (13==e.which && false==$(e.target).prop('readonly')) this.data_query('tabel-dprd');
}.bind(this));
this.show_hide(1);
},
show_hide: function(no){
$('#divDPRD').css('display', 'none'); $('#butDPRD').removeClass('btn-secondary').addClass('btn-info');
$('#divKEG').css('display', 'none');
if (no == 1) {
$('#DPRDID').val(0);
$('#Nama_DPRD').val('').prop('readonly', false);
$('#DapilID').val(0);
$('#butDPRD').removeClass('btn-info').addClass('btn-secondary');
}
if (no == 1) { $('#divDPRD').css('display', ''); this.data_query('tabel-dprd'); }
if (no == 2) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
},
dprd_select: function(acell){
$('#DPRDID').val(acell[0]);
$('#Nama_DPRD').val(acell[2]).prop('readonly', true);
$('#DapilID').val(acell[1]);
this.show_hide(2);
},
keg_detail: function(mode, ID){
new Request({
url: this.PHP,
sendParam: ['data=detail-keg','mode_detail='+mode,'DPRDID','DapilID','SapiID='+ID],
onSuccess: function(txt){
this.winDKeg = FoniaJS.showWindow('DKeg', 'Detail Kegiatan Pokir', txt, 'xl', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
$('#winDKeg').find('#butWSimpan').click(function(){this.keg_simpan();}.bind(this));
$('#formUsulDewan').validate({
rules: {
required: true,
OPDID: {required:true, min:1},
ProgID: {required:true, min:1},
KegID: {required:true, min:1},
SubID: {required:true, min:1},
KecID: {required:true, min:1},
KelID: {required:false},
Lokasi: {required:true},
Masalah: {required:true},
Volume: {required:true, double_id:true},
Satuan: {required:true},
Rupiah: {required:true, double_id:true}
}
});
this.oc_OPD();
this.oc_Kec();
}.bind(this));
}.bind(this)
}).send();
},
keg_ubah: function(acell){
this.keg_detail('update', acell[0]);
},
keg_simpan: function(){
$('#formUsulDewan').submit();
if (true !== $('#formUsulDewan').validate().checkForm()) return false;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-keg','mode_detail','DPRDID','SapiID','OPDID','ProgID','KegID','SubID','KecID','KelID','Lokasi','Masalah','Volume','Satuan','Rupiah'],
onSuccess: function(adata){
FoniaJS.closeWindow(this.winDKeg);
FoniaJS.showInfo('Sukses menyimpan Kegiatan Pokir.');
}.bind(this)
}).send();
},
data_query: function(tipe, mode){
if (tipe=="tabel-dprd"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-dprd','Nama_DPRD']
}).send();
} else if (tipe=="tabel-keg"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-keg','DPRDID']
}).send();
}
},
oc_OPD: function(){
if (parseInt($('#OPDID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-prog','OPDID','ProgID']
}).send();
},
oc_Prog: function(){
if (parseInt($('#ProgID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-keg','OPDID','ProgID','KegID']
}).send();
},
oc_Keg: function(){
if (parseInt($('#KegID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-sub','OPDID','ProgID','KegID','SubID']
}).send();
},
oc_Kec: function(){
if (parseInt($('#KecID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-kel','KecID','KelID']
}).send();
}
};
+143
View File
@@ -0,0 +1,143 @@
/*******************************************************************
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
Module : /apps/js/induk/renja.js
Desc. : JS - Kegiatan Renja
Created By : Siau Pheng ([email protected]).
Created Date : October 28th, 2011.
Last Modified : May 3rd, 2026.
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var IndukRenjaJS = {
PHP: '',
KODE: '',
loading: function(){
$('#butOPD').click(() => {
if ($('#OPDID').val()>0) this.show_hide(1);
});
$('#Nama_OPD').keydown((e) => {
if (13==e.which && false==$(e.target).prop('readonly')) this.data_query('tabel-opd');
});
this.show_hide(1);
},
show_hide: function(no){
$('#divOPD').addClass('d-none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
$('#divKEG').addClass('d-none');
if (no == 1) {
$('#OPDID').val(0);
$('#AK_Bidu').val('');
$('#Nama_OPD').val('').prop('readonly', false);
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
}
if (no == 1) { $('#divOPD').removeClass('d-none'); this.data_query('tabel-opd'); }
if (no == 2) { $('#divKEG').removeClass('d-none'); this.data_query('tabel-keg'); }
},
opd_select: function(acell){
$('#OPDID').val(acell[0]);
$('#AK_Bidu').val(acell[1]);
$('#Nama_OPD').val(acell[2]).prop('readonly', true);
this.show_hide(2);
},
keg_detail: function(mode, ID){
new Request.JSON({
url: this.PHP,
sendParam: ['data=detail-keg','mode_detail='+mode,'OPDID','AK_Bidu','SapiID='+ID],
onSuccess: (ajson) => {
this.winDKeg = FoniaJS.showWindow('DKeg', 'Detail Kegiatan Pokir', ajson.html, 'xl', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
$('#winDKeg').find('#butWSimpan').click(() => this.keg_simpan());
$('#formRenja').validate({
rules: {
required: true,
ProgID: {required:true, min:1},
KegID: {required:true, min:1},
SubID: {required:true, min:1},
KecID: {required:true, min:1},
KelID: {required:false},
Lokasi: {required:true},
Masalah: {required:true},
Rupiah: {required:true, double_id:true},
Hidden: {required:true},
}
});
});
}
}).send();
},
keg_tambah: function(){
this.keg_detail('insert', 0);
},
keg_ubah: function(acell){
this.keg_detail('update', acell[0]);
},
keg_simpan: function(){
$('#formRenja').submit();
if (true !== $('#formRenja').validate().checkForm()) return false;
const _param = ['data=tabel-keg','mode_detail','SapiID','OPDID','ProgID','KegID','SubID','KecID','KelID','Lokasi','Masalah','Hidden','Rupiah'];
$(':input[id^="Rupiah_"]').each((i,e) => { _param.push(e.id); });
$(':input[id^="Pending_"]').each((i,e) => { _param.push(e.id); });
new Request.JSONF({
url: this.PHP,
sendParam: _param,
onSuccess: (adata) => {
FoniaJS.closeWindow(this.winDKeg);
FoniaJS.showInfo('Sukses menyimpan Kegiatan Renja.');
}
}).send();
},
data_query: function(tipe, mode){
if (tipe=="tabel-opd"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-opd','Nama_OPD']
}).send();
} else if (tipe=="tabel-keg"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-keg','OPDID']
}).send();
}
},
oc_Prog: function(){
if (parseInt($('#ProgID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-keg','OPDID','ProgID','KegID']
}).send();
},
oc_Keg: function(){
if (parseInt($('#KegID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-sub','OPDID','ProgID','KegID','SubID']
}).send();
},
oc_Kec: function(){
if (parseInt($('#KecID').val())==0) return;
new Request.JSONF({
url: this.PHP,
sendParam: ['data=option-kel','KecID','KelID']
}).send();
},
copy_Pagu: function(){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan salin Pagu Awal / Default<br>ke Semua Pagu Bulanan ?', () => {
const _pagu = $('#Rupiah').val();
$(':input[id^="Rupiah_"]').each((i,e) => $(e).val(_pagu));
}, 'warning');
}
};