update: penggunaan periode bulan dan tahun aktif sebagai acuan data tampilan tabel dan dashboard

This commit is contained in:
2026-05-06 13:02:24 +07:00
parent 3f06971165
commit fdf81fe722
16 changed files with 232 additions and 390 deletions
+7 -9
View File
@@ -43,11 +43,11 @@ var IndexJS = {
new Request.JSON({
url: FoniaJS.WEB_PATH+'apps/php/index.php',
sendParam: ['data=periode-show','reset='+reset],
onSuccess: function(adata){
if (!adata.aktif) this.winPeriode = FoniaJS.showWindow('Periode', 'Pilih Periode Data', adata.html, 500, [{},{i:'butTutup'},{i:'butWSave',v:'Simpan',c:'success'}], function(){
$('#winPeriode').find('#butWSave').click(function(){IndexJS.periode_simpan();});
onSuccess: (adata) => {
if (!adata.aktif) this.winPeriode = FoniaJS.showWindow('Periode', 'Pilih Periode Data', adata.html, 'md', [{},{i:'butTutup'},{i:'butWSave',v:'Simpan',c:'success'}], () => {
$('#winPeriode').find('#butWSave').click(() => IndexJS.periode_simpan());
});
}.bind(this)
}
}).send();
},
@@ -55,10 +55,10 @@ var IndexJS = {
new Request.JSON({
url: FoniaJS.WEB_PATH+'apps/php/index.php',
sendParam: ['data=periode-simpan','OPTION_THN','OPTION_BLN'],
onSuccess: function(adata){
onSuccess: (adata) => {
if (adata.sukses) FoniaJS.showInfo('Sukses Ganti Periode Data');
FoniaJS.closeWindow(IndexJS.winPeriode);
setTimeout(function(){self.location = FoniaJS.WEB_PATH;}, 10);
setTimeout(() => {self.location = FoniaJS.WEB_PATH;}, 10);
}
}).send();
},
@@ -67,9 +67,7 @@ var IndexJS = {
new Request.JSON({
url: FoniaJS.WEB_PATH+'apps/php/index.php',
sendParam: ['data=periode-info'],
onSuccess: function(ajson){
$('#liPeriode').html(ajson.html);
}
onSuccess: (ajson) => $('#liPeriode').html(ajson.html)
}).send();
},
+3 -6
View File
@@ -5,7 +5,7 @@
Desc. : JS - Tampilan Data Pelaporan
Created By : Siau Pheng ([email protected]).
Created Date : October 28th, 2011.
Last Modified : May 4th, 2026.
Last Modified : May 6th, 2026.
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
@@ -49,7 +49,6 @@ var RepoBrowseJS = {
var dload = new cEXPORT(this.PHP);
dload.add_param("data", "excel");
dload.add_param("Jenis");
dload.add_param("Bulan");
dload.add_param("Tanda_Pagu");
dload.add_param("Nilai_Pagu");
dload.add_param("DPRDID");
@@ -67,7 +66,7 @@ var RepoBrowseJS = {
filter_show: function(){
new Request.JSON({
url: this.PHP,
sendParam: ['data=detail_filter','Jenis','Bulan','Tanda_Pagu','Nilai_Pagu','DPRDID','KecID','KelID','OPDID','SubID'],
sendParam: ['data=detail_filter','Jenis','Tanda_Pagu','Nilai_Pagu','DPRDID','KecID','KelID','OPDID','SubID'],
onSuccess: (ajson) => {
this.winFilter = FoniaJS.showWindow('FData', 'Filter Tampilan Data Pelaporan', ajson.html, 'xl', [{i:'butWReset',v:'Reset Semua',c:'secondary'},{},{i:'butTutup'},{i:'butWSimpan',v:'Terapkan Filter',c:'success'}], () => {
$('#winFData')
@@ -80,7 +79,6 @@ var RepoBrowseJS = {
filter_reset: function(){
$('#Jenis').val(0);
$('#Bulan').val(new Date().getMonth() + 1);
$('#Tanda_Pagu').val('A');
$('#Nilai_Pagu').val(0);
$('#DPRDID').val(0);
@@ -95,7 +93,6 @@ var RepoBrowseJS = {
filter_simpan: function(){
$('#Jenis').val($('#Fi_Jenis').val());
$('#Bulan').val($('#Fi_Bulan').val());
$('#Tanda_Pagu').val($('#Fi_Tanda_Pagu').val());
$('#Nilai_Pagu').val(FoniaJS.StrToFloat($('#Fi_Nilai_Pagu').val()));
$('#DPRDID').val($('#Fi_DPRDID').val());
@@ -112,7 +109,7 @@ var RepoBrowseJS = {
if (tipe=="tabel-keg"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=tabel-keg','Cari_Keg','Jenis','Bulan','Tanda_Pagu','Nilai_Pagu','DPRDID','KecID','KelID','OPDID','SubID']
sendParam: ['data=tabel-keg','Cari_Keg','Jenis','Tanda_Pagu','Nilai_Pagu','DPRDID','KecID','KelID','OPDID','SubID']
}).send();
}
},