first commit
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/sys/about.js
|
||||
Desc. : JS - Informasi Aplikasi
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : November 23th, 2011.
|
||||
Last Modified : February 28th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var AboutJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#win'+this.KODE).find('#divBuildInfo').html('<p>Aplikasi dibuat dengan komponen :<br>- jQuery Version '+$().jquery+' <br>- Bootstrap Version '+$.fn.tooltip.Constructor.VERSION+' <br>- FoniaJS Version '+FoniaJS.version+' <br>- FoniaPHP Version '+FoniaJS.phpversion+'</p>');
|
||||
},
|
||||
|
||||
proses_checkdb: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=check_db'],
|
||||
onSuccess: (ajson) => {
|
||||
this.winCheck = FoniaJS.showWindow('CekDB', 'Cek, Perbaiki dan Optimalisasi Database', ajson.html, 500, [{},{i:'butTutup'},{i:'butWProses',v:'Proses DB !',c:'success'}], () => $('#winCekDB').find('#butWProses').click(() => this.checkdb_run()));
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
proses_update: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=check_update'],
|
||||
onSuccess: (ajson) => {
|
||||
var tomb = [{},{i:'butTutup'},{i:'butWUpdate',v:'Proses Update !',c:'success'}];
|
||||
if (ajson.is_update) tomb.pop();
|
||||
this.winUpdate = FoniaJS.showWindow('CekApp', 'Cek dan Update Aplikasi', ajson.html, 500, tomb, () => {
|
||||
$('#winCekApp').find('#butWUpdate').click(() => this.update_run());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
checkdb_run: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=proses_db','DB_Cek','DB_Repair','DB_Opti'],
|
||||
onSuccess: (ajson) => {
|
||||
if ($('#DB_Hasil')) $('#DB_Hasil').removeClass('d-none').html(txt);
|
||||
FoniaJS.showInfo('Proses Database selesai', 2000);
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
update_run: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=proses_update'],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.success==true) {
|
||||
$('#spanStatus').html(adata.message);
|
||||
FoniaJS.showInfo('Aplikasi telah di Update.<br>Silakan refresh browser Anda!');
|
||||
} else {
|
||||
FoniaJS.showInfo('Aplikasi gagal di Update.');
|
||||
}
|
||||
}
|
||||
}).send();
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,90 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sys/akses_mon.js
|
||||
Desc. : JS - Konfigurasi Hak Akses Data e-Monev
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : February 17th, 2020.
|
||||
Last Modified : July 15th, 2026.
|
||||
|
||||
(c) 2020 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var TAksesMonJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
this.data_query('detail');
|
||||
$('#Cari_OPD').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail');
|
||||
});
|
||||
$('#butSearch').click(() => this.data_query('detail'));
|
||||
$('#butAll').click(() => {
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail');
|
||||
});
|
||||
$('#butUpAll').click(() => this.update_all());
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
update_all: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-semua','Tahun'],
|
||||
onSuccess: (ajson) => {
|
||||
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', ajson.html, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
update_proc: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save-all','Tahun','Hak_Renja','Hak_Kin_B01','Hak_Kin_B02','Hak_Kin_B03','Hak_Kin_B04','Hak_Kin_B05','Hak_Kin_B06','Hak_Kin_B07','Hak_Kin_B08','Hak_Kin_B09','Hak_Kin_B10','Hak_Kin_B11','Hak_Kin_B12'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_show: function(mode, OPDID, AksesID){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-detail','mode='+mode,'Tahun','OPDID='+OPDID,'AksesID='+AksesID],
|
||||
onSuccess: (ajson) => {
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', ajson.html, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_ubah: function(acell){
|
||||
this.detail_show('edit', acell[0], acell[1]);
|
||||
},
|
||||
|
||||
detail_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save','Tahun','AksesID','OPDID','Hak_Renja','Hak_Kin_B01','Hak_Kin_B02','Hak_Kin_B03','Hak_Kin_B04','Hak_Kin_B05','Hak_Kin_B06','Hak_Kin_B07','Hak_Kin_B08','Hak_Kin_B09','Hak_Kin_B10','Hak_Kin_B11','Hak_Kin_B12'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','Tahun','Cari_OPD']
|
||||
}).send()
|
||||
}
|
||||
},
|
||||
|
||||
oc_Tahun: function(){
|
||||
this.data_query('detail');
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,90 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sys/akses_mus.js
|
||||
Desc. : JS - Konfigurasi Hak Akses Data e-Musrenbang
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : February 17th, 2020.
|
||||
Last Modified : July 19th, 2020.
|
||||
|
||||
(c) 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var TAksesMJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#Cari_OPD').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail');
|
||||
});
|
||||
$('#butSearch').click(() => this.data_query('detail'));
|
||||
$('#butAll').click(() => {
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail');
|
||||
});
|
||||
$('#butUpAll').click(() => this.update_all());
|
||||
this.data_query('detail');
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
update_all: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-semua','Tahun'],
|
||||
onSuccess: (txt) => {
|
||||
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
update_proc: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save-all','Tahun','Hak_Usulan','Hak_Prioritas'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_show: function(mode, KecID, AksesID){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-detail','mode='+mode,'Tahun','KecID='+KecID,'AksesID='+AksesID],
|
||||
onSuccess: (txt) => {
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_ubah: function(acell){
|
||||
this.detail_show('edit', acell[0], acell[1]);
|
||||
},
|
||||
|
||||
detail_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save','Tahun','AksesID','KecID','Hak_Usulan','Hak_Prioritas'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','Tahun','Cari_OPD']
|
||||
}).send()
|
||||
}
|
||||
},
|
||||
|
||||
oc_Tahun: function(){
|
||||
this.data_query('detail');
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,90 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sys/akses_pok.js
|
||||
Desc. : JS - Konfigurasi Hak Akses Data e-Pokir
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : February 17th, 2020.
|
||||
Last Modified : July 19th, 2020.
|
||||
|
||||
(c) 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var TAksesPJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
this.data_query('detail');
|
||||
$('#Cari_OPD').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail');
|
||||
});
|
||||
$('#butSearch').click(() => this.data_query('detail'));
|
||||
$('#butAll').click(() => {
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail');
|
||||
});
|
||||
$('#butUpAll').click(() => this.update_all());
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
update_all: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-semua','Tahun'],
|
||||
onSuccess: (txt) => {
|
||||
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
update_proc: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save-all','Tahun','Hak_Usulan','Hak_Ubah','Hak_Prioritas'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_show: function(mode, DPRDID, AksesID){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-detail','mode='+mode,'Tahun','DPRDID='+DPRDID,'AksesID='+AksesID],
|
||||
onSuccess: (txt) => {
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_ubah: function(acell){
|
||||
this.detail_show('edit', acell[0], acell[1]);
|
||||
},
|
||||
|
||||
detail_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save','Tahun','AksesID','DPRDID','Hak_Usulan','Hak_Ubah','Hak_Prioritas'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','Tahun','Cari_OPD']
|
||||
}).send()
|
||||
}
|
||||
},
|
||||
|
||||
oc_Tahun: function(){
|
||||
this.data_query('detail');
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,90 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sys/akses_sip.js
|
||||
Desc. : JS - Konfigurasi Hak Akses Data e-Planning
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : February 17th, 2020.
|
||||
Last Modified : February, 2022.
|
||||
|
||||
(c) 2020 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var TAksesRJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
this.data_query('detail');
|
||||
$('#Cari_OPD').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail');
|
||||
});
|
||||
$('#butSearch').click(() => this.data_query('detail'));
|
||||
$('#butAll').click(() => {
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail');
|
||||
});
|
||||
$('#butUpAll').click(() => this.update_all());
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
update_all: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-semua','RPJMDID'],
|
||||
onSuccess: (txt) => {
|
||||
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
update_proc: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save-all','RPJMDID','Hak_Renstra','Hak_RPJMD'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_show: function(mode, OPDID, AksesID){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-detail','mode='+mode,'RPJMDID','OPDID='+OPDID,'AksesID='+AksesID],
|
||||
onSuccess: (txt) => {
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_ubah: function(acell){
|
||||
this.detail_show('edit', acell[0], acell[1]);
|
||||
},
|
||||
|
||||
detail_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save','RPJMDID','AksesID','OPDID','Hak_Renstra','Hak_RPJMD'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','RPJMDID','Cari_OPD']
|
||||
}).send()
|
||||
}
|
||||
},
|
||||
|
||||
oc_RPJMD: function(){
|
||||
this.data_query('detail');
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,90 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sys/akses_sip.js
|
||||
Desc. : JS - Konfigurasi Hak Akses Data e-Planning
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : February 17th, 2020.
|
||||
Last Modified : February, 2022.
|
||||
|
||||
(c) 2020 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var TAksesSJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
this.data_query('detail');
|
||||
$('#Cari_OPD').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail');
|
||||
});
|
||||
$('#butSearch').click(() => this.data_query('detail'));
|
||||
$('#butAll').click(() => {
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail');
|
||||
});
|
||||
$('#butUpAll').click(() => this.update_all());
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
update_all: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-semua','Tahun'],
|
||||
onSuccess: (txt) => {
|
||||
this.winSemua = FoniaJS.showWindow('Semua', 'Ubah Semua Hak Akses Sekaligus', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winSemua').find('#butWSimpan').click(() => this.update_proc());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
update_proc: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save-all','Tahun','Hak_Renja1','Hak_Renja2'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winSemua)
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_show: function(mode, OPDID, AksesID){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=akses-detail','mode='+mode,'Tahun','OPDID='+OPDID,'AksesID='+AksesID],
|
||||
onSuccess: (txt) => {
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Konfigurasi Hak Akses', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winDetail').find('#butWSimpan').click(() => this.detail_save());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_ubah: function(acell){
|
||||
this.detail_show('edit', acell[0], acell[1]);
|
||||
},
|
||||
|
||||
detail_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','mode=save','Tahun','AksesID','OPDID','Hak_Renja1','Hak_Renja2'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','Tahun','Cari_OPD']
|
||||
}).send()
|
||||
}
|
||||
},
|
||||
|
||||
oc_Tahun: function(){
|
||||
this.data_query('detail');
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,55 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/sys/chpasswd.js
|
||||
Desc. : JS - Perubahan Password Operator
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2008.
|
||||
Last Modified : April 25th, 2020.
|
||||
|
||||
(c) 2008 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var SYSChpasswdJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butSave').click(function(){this.proses_save();}.bind(this));
|
||||
FoniaJS.setFocus('#LPass');
|
||||
},
|
||||
|
||||
proses_save: function(){
|
||||
if ($("#LPass").val()=="") {
|
||||
FoniaJS.showInfo("Silakan masukkan password lama Anda!");
|
||||
FoniaJS.setFocus("#LPass");
|
||||
return false;
|
||||
} else if ($("#BPass1").val()=="") {
|
||||
FoniaJS.showInfo("Silakan masukkan password baru 1 Anda!");
|
||||
FoniaJS.setFocus("#BPass1");
|
||||
return false;
|
||||
} else if ($("#BPass2").val()=="") {
|
||||
FoniaJS.showInfo("Silakan masukkan password baru 2 Anda!");
|
||||
FoniaJS.setFocus("#BPass2");
|
||||
return false;
|
||||
} else if ($("#BPass1").val()!=$("#BPass2").val()) {
|
||||
FoniaJS.showInfo("Password baru 1 dan 2 Anda tidak sama!");
|
||||
FoniaJS.setFocus("#BPass1");
|
||||
return false;
|
||||
}
|
||||
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=chpasswd','LPass','BPass1','BPass2'],
|
||||
onSuccess: function(ajson){
|
||||
if (ajson.status == true) {
|
||||
FoniaJS.showInfo(ajson.msg);
|
||||
FoniaJS.closeWindow('#win'+this.KODE);
|
||||
} else {
|
||||
FoniaJS.showError(ajson.msg);
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,59 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/sys/config.js
|
||||
Desc. : JS - Konfigurasi Aplikasi
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : May 25th, 2010.
|
||||
Last Modified : September 30th, 2025.
|
||||
|
||||
(c) 2010 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var ConfigJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butUbah').click(() => this.proses_edit());
|
||||
$('#butSimpan').click(() => this.proses_save());
|
||||
this.data_query('view');
|
||||
},
|
||||
|
||||
proses_edit: function(){
|
||||
this.data_query('edit');
|
||||
},
|
||||
|
||||
proses_save: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=master','mode=save','REG_ID','REG_ADDRESS','REG_CITY','REG_POSTCODE','REG_PHONE','REG_FAX','REG_WEBSITE','REG_EMAIL'],
|
||||
onSuccess: (txt) => {
|
||||
$('#divMaster').html(txt);
|
||||
this.update_event();
|
||||
}
|
||||
}).send()
|
||||
},
|
||||
|
||||
data_query: function(mode){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=master','mode='+mode,'REG_ID'],
|
||||
onSuccess: (txt) => {
|
||||
$('#divMaster').html(txt);
|
||||
this.update_event();
|
||||
}
|
||||
}).send()
|
||||
},
|
||||
|
||||
update_event: function(){
|
||||
if ($.inArray($('#mode').val(), ['edit']) >= 0) {
|
||||
$("#butUbah").prop('disabled', true);
|
||||
$("#butSimpan").prop('disabled', false);
|
||||
} else {
|
||||
$("#butUbah").prop('disabled', false);
|
||||
$("#butSimpan").prop('disabled', true);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,146 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/sys/menu_grup.js
|
||||
Desc. : JS - Manajemen Data Grup Login Menu
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : August 8th, 2013.
|
||||
Last Modified : January 1st, 2026.
|
||||
|
||||
(c) 2013 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var MenuGrupJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
this.data_query('detail');
|
||||
$('#Cari_Grup').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('detail');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_Grup').val('');
|
||||
this.data_query('detail');
|
||||
}.bind(this));
|
||||
FoniaJS.setFocus('#Cari_Grup');
|
||||
},
|
||||
|
||||
detail_show: function(mode, ID){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=grup-detail','mode='+mode,'Grup_MenuID='+ID],
|
||||
onSuccess: function(txt){
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Informasi Grup Menu', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
$('#winDetail').find('#butWSimpan').click(function(){this.detail_save();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_tambah: function(){
|
||||
this.detail_show('add', 0);
|
||||
},
|
||||
|
||||
detail_ubah: function(acell){
|
||||
this.detail_show('edit', acell[0]);
|
||||
},
|
||||
|
||||
detail_hapus: function(acell){
|
||||
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus "+acell[1]+"?", function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','mode=del','Grup_MenuID='+acell[0]],
|
||||
onSuccess: function(adata){
|
||||
if (adata.status==true){
|
||||
this.data_query('detail');
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
detail_save: function(){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','mode','Grup_MenuID','Nama_Grup','Ket','Aktif'],
|
||||
onSuccess: function(adata){
|
||||
if (adata.status==true){
|
||||
this.data_query('detail');
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
|
||||
}
|
||||
FoniaJS.closeWindow(this.winDetail);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
menu_show: function(acell){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=menu','Grup_MenuID='+acell[0]],
|
||||
onSuccess: function(txt){
|
||||
this.winMenu = FoniaJS.showWindow('Menu', 'Hak Akses Modul', txt, 'lg', [{i:'butWSelAll',v:'Pilih Semua',c:'info'},{i:'butWClrAll',v:'Hapus Semua',c:'info'},{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
$('#winMenu')
|
||||
.find('#butWSelAll').click(function(){this.menu_ceksemua();}.bind(this)).end()
|
||||
.find('#butWClrAll').click(function(){this.menu_hapussemua();}.bind(this)).end()
|
||||
.find('#butWSimpan').click(function(){this.menu_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
menu_cek: function(el){
|
||||
var t_modul = el.value, b_check = el.checked;
|
||||
$('#tabMenuList tbody input[type="checkbox"]').map(function(i, b){
|
||||
var t_menu = $(b);
|
||||
if (t_menu.hasClass(t_modul)) t_menu.prop('checked', b_check);
|
||||
});
|
||||
el.prop('checked', !b_check);
|
||||
},
|
||||
|
||||
menu_ceksemua: function(){
|
||||
$('#tabMenuList tbody input[type="checkbox"]').prop('checked', true);
|
||||
},
|
||||
|
||||
menu_hapussemua: function(){
|
||||
$('#tabMenuList tbody input[type="checkbox"]').prop('checked', false);
|
||||
},
|
||||
|
||||
menu_simpan: function(){
|
||||
var alist = $('#R_MENU').val().split(',');
|
||||
$('#tabMenuList tbody input[type="checkbox"]:checked').map(function(i, b){
|
||||
alist.push($(b).val());
|
||||
});
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save-menu','Grup_MenuID','Menu='+alist.join()],
|
||||
onSuccess: function(adata){
|
||||
if (adata.status==true){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
|
||||
}
|
||||
FoniaJS.closeWindow(this.winMenu);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','Cari_Grup']
|
||||
}).send()
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,281 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/sys/operator.js
|
||||
Desc. : JS - Manajemen Data Pengguna
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 12th, 2008.
|
||||
Last Modified : January 1st, 2026.
|
||||
|
||||
(c) 2008 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var OperatorJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
this.data_query('detail');
|
||||
$('#Cari_User').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail');
|
||||
});
|
||||
$('#butSearch').click(() => this.data_query('detail'));
|
||||
$('#butAll').click(() => {
|
||||
$('#Cari_User').val('');
|
||||
this.data_query('detail');
|
||||
});
|
||||
$('#butFilter').click(() => this.filter_show());
|
||||
FoniaJS.setFocus('#Cari_User');
|
||||
},
|
||||
|
||||
filter_show: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail_filter','Filter_Level'],
|
||||
onSuccess: (txt) => {
|
||||
this.winFilter = FoniaJS.showWindow('FLevel', 'Filter Data Pengguna / Level', txt, 400, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winFLevel')
|
||||
.find('#butWSimpan').click(() => this.filter_simpan()).end()
|
||||
.find('#Fi_Level').focus();
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
filter_simpan: function(){
|
||||
$('#Filter_Level').val($('#Fi_Level').val());
|
||||
FoniaJS.closeWindow(this.winFilter);
|
||||
this.data_query('detail');
|
||||
},
|
||||
|
||||
detail_show: function(mode, UserID){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=user-detail','mode='+mode,'UserID='+UserID],
|
||||
onSuccess: (txt) => {
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Informasi Pengguna', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winDetail').find('#butWSimpan').click(() => this.detail_check());
|
||||
this.oc_Level();
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_tambah: function(){
|
||||
this.detail_show('add', 0);
|
||||
},
|
||||
|
||||
detail_ubah: function(acell){
|
||||
this.detail_show('edit', acell[0]);
|
||||
},
|
||||
|
||||
detail_hapus: function(acell){
|
||||
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus ["+acell[1]+"] "+acell[2]+"?", () => {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','mode=del','UserID='+acell[0]],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
this.data_query('detail');
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
|
||||
}
|
||||
}
|
||||
}).send();
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
detail_check: function(){
|
||||
if ($('#Username').val().toUpperCase()==$('#UserLama').val().toUpperCase()) {
|
||||
this.detail_save();
|
||||
return;
|
||||
}
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=user-check','Username'],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.ada==true) {
|
||||
FoniaJS.showInfo("Username telah ada dalam sistem !");
|
||||
} else {
|
||||
this.detail_save();
|
||||
}
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
detail_save: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','mode','UserID','Username','Nama','Posisi','Level','Password','Grup_MenuID','Aktif'],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
this.data_query('detail');
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
|
||||
}
|
||||
FoniaJS.closeWindow(this.winDetail);
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
menu_show: function(acell){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=menu','UserID='+acell[0]],
|
||||
onSuccess: (txt) => {
|
||||
this.winMenu = FoniaJS.showWindow('Menu', 'Hak Akses Modul', txt, 'lg', [{i:'butWSelAll',v:'Pilih Semua',c:'info'},{i:'butWClrAll',v:'Hapus Semua',c:'info'},{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winMenu')
|
||||
.find('#butWSelAll').click(() => this.menu_ceksemua()).end()
|
||||
.find('#butWClrAll').click(() => this.menu_hapussemua()).end()
|
||||
.find('#butWSimpan').click(() => this.menu_simpan()).end()
|
||||
.find('#tabMenuList thead input[type="checkbox"]:disabled').prop('indeterminate', true);
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
menu_cek: function(el){
|
||||
var t_modul = el.value, b_check = el.checked;
|
||||
$('#tabMenuList tbody input[type="checkbox"]').map(function(i, b){
|
||||
var t_menu = $(b);
|
||||
if (t_menu.hasClass(t_modul)) t_menu.prop('checked', b_check);
|
||||
});
|
||||
el.prop('checked', !b_check);
|
||||
},
|
||||
|
||||
menu_ceksemua: function(){
|
||||
$('#tabMenuList tbody input[type="checkbox"]:not(:disabled)').prop('checked', true);
|
||||
},
|
||||
|
||||
menu_hapussemua: function(){
|
||||
$('#tabMenuList tbody input[type="checkbox"]:not(:disabled)').prop('checked', false);
|
||||
},
|
||||
|
||||
menu_simpan: function(){
|
||||
var alist = $('#R_MENU').val().split(',');
|
||||
$('#tabMenuList tbody input[type="checkbox"]:not(:disabled):checked').map(function(i, b){
|
||||
alist.push($(b).val());
|
||||
});
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save-menu','UserID','Menu='+alist.join()],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
|
||||
}
|
||||
FoniaJS.closeWindow(this.winMenu);
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
opd_show: function(acell){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=opd','UserID='+acell[0]],
|
||||
onSuccess: (txt) => {
|
||||
this.winOPD = FoniaJS.showWindow('OPD', 'Akses Data OPD', txt, 'lg', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winOPD').find('#butWSimpan').click(() => this.opd_simpan());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
opd_simpan: function(){
|
||||
var alist = [];
|
||||
$('#tabOPDList tbody input[type="checkbox"]:not(:disabled):checked').map(function(i, b){
|
||||
alist.push($(b).val());
|
||||
});
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save-opd','UserID','AK_OPD='+alist.join()],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
|
||||
}
|
||||
FoniaJS.closeWindow(this.winOPD);
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
kec_show: function(acell){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=kec','UserID='+acell[0]],
|
||||
onSuccess: (txt) => {
|
||||
this.winKec = FoniaJS.showWindow('Kec', 'Akses Data Kecamatan', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#AK_KEC').select2({tags: false, dropdownParent: $('#winKec')});
|
||||
$('#winKec').find('#butWSimpan').click(() => this.kec_simpan());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
kec_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save-kec','UserID','AK_KEC'],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
|
||||
}
|
||||
FoniaJS.closeWindow(this.winKec);
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
kel_show: function(acell){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=kel','UserID='+acell[0]],
|
||||
onSuccess: (txt) => {
|
||||
this.winKel = FoniaJS.showWindow('Kel', 'Akses Data Kelurahan / Desa', txt, 'md', [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#AK_KEL').select2({tags: false, dropdownParent: $('#winKel')});
|
||||
$('#winKel').find('#butWSimpan').click(() => this.kel_simpan());
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
kel_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save-kel','UserID','AK_KEL'],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
|
||||
}
|
||||
FoniaJS.closeWindow(this.winKel);
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail','Filter_Level','Cari_User']
|
||||
}).send()
|
||||
}
|
||||
},
|
||||
|
||||
oc_Level: function(){
|
||||
if ($('#Level').val()>1 && $('#Level').val()!=3) {
|
||||
$('#Grup_MenuID').prop('disabled', true).val(0).trigger('change');
|
||||
} else $('#Grup_MenuID').prop('disabled', false);
|
||||
if ($('#Level').val()==3) {
|
||||
$('#Grup_Help').removeClass('d-none');
|
||||
} else $('#Grup_Help').addClass('d-none');
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,56 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/js/sys/config.js
|
||||
Desc. : JS - Konfigurasi Aplikasi
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : May 25th, 2010.
|
||||
Last Modified : February 6th, 2023.
|
||||
|
||||
(c) 2010 - 2023, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var SIPPDJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butUbah').click(() => this.proses_edit());
|
||||
$('#butSimpan').click(() => this.proses_save());
|
||||
this.data_query('view');
|
||||
},
|
||||
|
||||
proses_edit: function(){
|
||||
this.data_query('edit');
|
||||
},
|
||||
|
||||
proses_save: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','REG_ID','INFO_RUN','RENC_RPJMDID','RENC_THN','RENC_VISIID','REAL_RPJMDID','REAL_THN','REAL_BLN','REAL_TGL'],
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true) {
|
||||
FoniaJS.showInfo('Simpan konfigurasi aplikasi sukses !');
|
||||
}
|
||||
this.data_query('view');
|
||||
}
|
||||
}).send()
|
||||
},
|
||||
|
||||
data_query: function(mode){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=master','mode='+mode,'REG_ID'],
|
||||
onSuccess: (txt) => {
|
||||
$('#divMaster').html(txt);
|
||||
if ($.inArray($('#mode').val(), ['edit']) >= 0) {
|
||||
$("#butUbah").prop('disabled', true);
|
||||
$("#butSimpan").prop('disabled', false);
|
||||
} else {
|
||||
$("#butUbah").prop('disabled', false);
|
||||
$("#butSimpan").prop('disabled', true);
|
||||
}
|
||||
}
|
||||
}).send()
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user