first commit
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/bangda_mus.js
|
||||
Desc. : JS - Simulasi Push Musrenbang ke Bangda Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : April 6th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var BangdaMusJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butKEC').click(function(){
|
||||
if ($('#KecID').val()>0) this.show_hide(1);
|
||||
}.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');
|
||||
if (no == 1) {
|
||||
$('#KecID').val(0);
|
||||
$('#Nama_KEC').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butKEC').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'); }
|
||||
},
|
||||
|
||||
kec_select: function(acell){
|
||||
$('#KecID').val(acell[0]);
|
||||
$('#Nama_KEC').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
kode_preview: function(cmd){
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("KecID");
|
||||
dprint.add_param("KelID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_mus: function(acell){
|
||||
$('#KelID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-mus');
|
||||
},
|
||||
kode_ubah_mus: function(acell){
|
||||
$('#KelID').val(acell[0]);
|
||||
this.kode_preview('kode-ubah-mus');
|
||||
},
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/bangda_pok.js
|
||||
Desc. : JS - Simulasi Push Pokir ke Bangda Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : April 6th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var BangdaPokJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
this.data_query('tabel-dprd');
|
||||
},
|
||||
|
||||
kode_preview: function(cmd){
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("DPRDID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_pok: function(acell){
|
||||
$('#DPRDID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-pok');
|
||||
},
|
||||
kode_ubah_pok: function(acell){
|
||||
$('#DPRDID').val(acell[0]);
|
||||
this.kode_preview('kode-ubah-pok');
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-dprd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-dprd']
|
||||
}).send();
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
@@ -0,0 +1,167 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/bangda_renstra.js
|
||||
Desc. : JS - Simulasi Program Renstra ke Bangda Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : March 30th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var BangdaRenstraJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butPROG').click(function(){
|
||||
if ($('#ProgID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
$('#butKEG').click(function(){
|
||||
if ($('#KegID').val()>0) this.show_hide(3);
|
||||
}.bind(this));
|
||||
$('#opsiProg').click(function(){
|
||||
if (this.cek_opsi()) this.kode_preview('kode-tambah-prog');
|
||||
}.bind(this));
|
||||
$('#opsiProgIndi').click(function(){
|
||||
if (this.cek_opsi()) this.kode_preview('kode-tambah-prog-indi');
|
||||
}.bind(this));
|
||||
$('#opsiKeg').click(function(){
|
||||
if (this.cek_opsi()) this.kode_preview('kode-tambah-keg');
|
||||
}.bind(this));
|
||||
$('#opsiKegIndi').click(function(){
|
||||
if (this.cek_opsi()) this.kode_preview('kode-tambah-keg-indi');
|
||||
}.bind(this));
|
||||
$('#opsiSub').click(function(){
|
||||
if (this.cek_opsi()) this.kode_preview('kode-tambah-sub');
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
cek_opsi: function(){
|
||||
if ($('#OPDID').val()==0) {
|
||||
FoniaJS.showError('Harus Pilih Perangkat Daerah !');
|
||||
return false;
|
||||
}
|
||||
$('#ProgID').val(0);
|
||||
$('#KegID').val(0);
|
||||
return true;
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').css('display', 'none'); $('#butPROG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divKEG').css('display', 'none'); $('#butKEG').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divSUB').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#ProgID').val(0);
|
||||
$('#Nama_PROG').val('');
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no <= 2) {
|
||||
$('#butPROG').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divPROG').css('display', ''); this.data_query('tabel-prog'); }
|
||||
if (no == 3) { $('#divKEG').css('display', ''); this.data_query('tabel-keg'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[2]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
prog_select: function(acell){
|
||||
$('#ProgID').val(acell[0]);
|
||||
$('#Nama_PROG').val(acell[1]);
|
||||
this.show_hide(3);
|
||||
},
|
||||
|
||||
kode_preview: function(cmd){
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("OPDID");
|
||||
dprint.add_param("ProgID");
|
||||
dprint.add_param("KegID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_prog: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-prog');
|
||||
},
|
||||
kode_tambah_prog_indi: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-prog-indi');
|
||||
},
|
||||
kode_tambah_keg: function(acell){
|
||||
$('#ProgID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-keg');
|
||||
},
|
||||
kode_tambah_keg_indi: function(acell){
|
||||
$('#ProgID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-keg-indi');
|
||||
},
|
||||
kode_tambah_sub: function(acell){
|
||||
$('#KegID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-sub');
|
||||
},
|
||||
kode_tambah_sub_indi: function(acell){
|
||||
$('#KegID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-sub-indi');
|
||||
},
|
||||
|
||||
html_show: function(acell){
|
||||
$('#KegID').val(acell[0]);
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_HTML" name="Kode_HTML" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winHTML = FoniaJS.showWindow('HTML', 'Upload data HTML', txt, 600, '_,WK,WS', function(){
|
||||
$('#winHTML').find('#butWSave').click(function(){this.html_simpan();}.bind(this));
|
||||
$('#Kode_HTML').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
html_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-html','OPDID','KegID','Kode_HTML'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
FoniaJS.showInfo('Sukses upload HTML!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winHTML);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog','OPDID']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-keg"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','OPDID','ProgID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,138 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/musrenbang.js
|
||||
Desc. : JS - Simulasi Push Musrenbang ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : April 6th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var MUSJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butKEC').click(function(){
|
||||
if ($('#KecID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.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');
|
||||
if (no == 1) {
|
||||
$('#KecID').val(0);
|
||||
$('#Nama_KEC').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butKEC').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'); }
|
||||
},
|
||||
|
||||
kec_select: function(acell){
|
||||
$('#KecID').val(acell[0]);
|
||||
$('#Nama_KEC').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
kode_preview: function(cmd){
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("KecID");
|
||||
dprint.add_param("KelID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_mus_k: function(acell){
|
||||
$('#KecID').val(acell[0]);
|
||||
$('#KelID').val(0);
|
||||
this.kode_preview('kode-tambah-mus');
|
||||
},
|
||||
kode_ubah_mus_k: function(acell){
|
||||
$('#KecID').val(acell[0]);
|
||||
$('#KelID').val(0);
|
||||
this.kode_preview('kode-ubah-mus');
|
||||
},
|
||||
kode_tambah_mus: function(acell){
|
||||
$('#KelID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-mus');
|
||||
},
|
||||
kode_ubah_mus: function(acell){
|
||||
$('#KelID').val(acell[0]);
|
||||
this.kode_preview('kode-ubah-mus');
|
||||
},
|
||||
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.show_hide(2);
|
||||
this.show_hide(1);
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.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();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,99 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/pokir.js
|
||||
Desc. : JS - Simulasi Push Pokir ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : April 6th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var POKJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
this.data_query('tabel-dprd');
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
kode_preview: function(cmd){
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("DPRDID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_pok: function(acell){
|
||||
$('#DPRDID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-pok');
|
||||
},
|
||||
kode_ubah_pok: function(acell){
|
||||
$('#DPRDID').val(acell[0]);
|
||||
this.kode_preview('kode-ubah-pok');
|
||||
},
|
||||
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.show_hide(2);
|
||||
this.show_hide(1);
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-dprd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-dprd']
|
||||
}).send();
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
@@ -0,0 +1,155 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/renstra_kegiatan.js
|
||||
Desc. : JS - Simulasi Kegiatan Renstra ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : March 30th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RenstraKegiatanJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#Cari_OPD').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
$('#opsiTambahKeg').click(function(){
|
||||
this.kode_tambah_keg();
|
||||
}.bind(this));
|
||||
$('#opsiUbahKeg').click(function(){
|
||||
this.kode_ubah_keg();
|
||||
}.bind(this));
|
||||
$('#opsiTambahIndi').click(function(){
|
||||
this.kode_tambah_indi();
|
||||
}.bind(this));
|
||||
$('#opsiUbahIndi').click(function(){
|
||||
this.kode_ubah_indi();
|
||||
}.bind(this));
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
kode_preview: function(acell, cmd){
|
||||
if (acell) $('#OPDID').val(acell[0]);
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("OPDID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_keg: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-keg');
|
||||
},
|
||||
kode_ubah_keg: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-keg');
|
||||
},
|
||||
kode_tambah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-indi');
|
||||
},
|
||||
kode_ubah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-indi');
|
||||
},
|
||||
|
||||
/*show_upload: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="col-12 px-0"><div class="input-group"><label class="input-group-btn "><span class="btn btn-primary shadow-none">Browse…<input type="file" name="FileDoku" id="FileDoku" accept="application/json" style="display:none;"></span></label><input type="text" id="FileLabel" class="form-control" readonly></div></div></div></div>';
|
||||
this.winDoku = FoniaJS.showWindow('Doku', 'Upload data JSON', txt, 600, '_,WK', function(){
|
||||
$('#FileDoku').change(function(){
|
||||
var label = $('#FileDoku').val().replace(/\\/g, '/').replace(/.*\//, ''),
|
||||
fd = new FormData(),
|
||||
files = $('#FileDoku')[0].files[0];
|
||||
$('#FileLabel').val(label);
|
||||
fd.append('file', files);
|
||||
$.ajax({
|
||||
url: this.PHP+'?data=upload-json',
|
||||
type: 'post',
|
||||
data: fd,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
$('#FileLabel').val('');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
});
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
},*/
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-opd','Cari_OPD']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,155 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/renstra_program.js
|
||||
Desc. : JS - Simulasi Program Renstra ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : March 30th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RenstraProgramJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#Cari_OPD').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
$('#opsiTambahProg').click(function(){
|
||||
this.kode_tambah_prog();
|
||||
}.bind(this));
|
||||
$('#opsiUbahProg').click(function(){
|
||||
this.kode_ubah_prog();
|
||||
}.bind(this));
|
||||
$('#opsiTambahIndi').click(function(){
|
||||
this.kode_tambah_indi();
|
||||
}.bind(this));
|
||||
$('#opsiUbahIndi').click(function(){
|
||||
this.kode_ubah_indi();
|
||||
}.bind(this));
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
kode_preview: function(acell, cmd){
|
||||
if (acell) $('#OPDID').val(acell[0]);
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("OPDID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_prog: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-prog');
|
||||
},
|
||||
kode_ubah_prog: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-prog');
|
||||
},
|
||||
kode_tambah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-indi');
|
||||
},
|
||||
kode_ubah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-indi');
|
||||
},
|
||||
|
||||
/*show_upload: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="col-12 px-0"><div class="input-group"><label class="input-group-btn"><span class="btn btn-primary shadow-none">Browse…<input type="file" name="FileDoku" id="FileDoku" accept="application/json" style="display:none;"></span></label><input type="text" id="FileLabel" class="form-control" readonly></div></div></div></div>';
|
||||
this.winDoku = FoniaJS.showWindow('Doku', 'Upload data JSON', txt, 600, '_,WK', function(){
|
||||
$('#FileDoku').change(function(){
|
||||
var label = $('#FileDoku').val().replace(/\\/g, '/').replace(/.*\//, ''),
|
||||
fd = new FormData(),
|
||||
files = $('#FileDoku')[0].files[0];
|
||||
$('#FileLabel').val(label);
|
||||
fd.append('file', files);
|
||||
$.ajax({
|
||||
url: this.PHP+'?data=upload-json',
|
||||
type: 'post',
|
||||
data: fd,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
$('#FileLabel').val('');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
});
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
},*/
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-opd','Cari_OPD']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,155 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/renstra_sasaran.js
|
||||
Desc. : JS - Simulasi Sasaran Renstra ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : March 30th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RenstraSasaranJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#Cari_OPD').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
$('#opsiTambahSasar').click(function(){
|
||||
this.kode_tambah_sasar();
|
||||
}.bind(this));
|
||||
$('#opsiUbahSasar').click(function(){
|
||||
this.kode_ubah_sasar();
|
||||
}.bind(this));
|
||||
$('#opsiTambahIndi').click(function(){
|
||||
this.kode_tambah_indi();
|
||||
}.bind(this));
|
||||
$('#opsiUbahIndi').click(function(){
|
||||
this.kode_ubah_indi();
|
||||
}.bind(this));
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
kode_preview: function(acell, cmd){
|
||||
if (acell) $('#OPDID').val(acell[0]);
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("OPDID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_sasar: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-sasar');
|
||||
},
|
||||
kode_ubah_sasar: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-sasar');
|
||||
},
|
||||
kode_tambah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-indi');
|
||||
},
|
||||
kode_ubah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-indi');
|
||||
},
|
||||
|
||||
/*show_upload: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="col-12 px-0"><div class="input-group"><label class="input-group-btn"><span class="btn btn-primary shadow-none">Browse…<input type="file" name="FileDoku" id="FileDoku" accept="application/json" style="display:none;"></span></label><input type="text" id="FileLabel" class="form-control" readonly></div></div></div></div>';
|
||||
this.winDoku = FoniaJS.showWindow('Doku', 'Upload data JSON', txt, 600, '_,WK', function(){
|
||||
$('#FileDoku').change(function(){
|
||||
var label = $('#FileDoku').val().replace(/\\/g, '/').replace(/.*\//, ''),
|
||||
fd = new FormData(),
|
||||
files = $('#FileDoku')[0].files[0];
|
||||
$('#FileLabel').val(label);
|
||||
fd.append('file', files);
|
||||
$.ajax({
|
||||
url: this.PHP+'?data=upload-json',
|
||||
type: 'post',
|
||||
data: fd,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
$('#FileLabel').val('');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
});
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
},*/
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-opd','Cari_OPD']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,155 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/renstra_tujuan.js
|
||||
Desc. : JS - Simulasi Tujuan Renstra ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : March 30th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RenstraTujuanJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#Cari_OPD').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
$('#opsiTambahTuj').click(function(){
|
||||
this.kode_tambah_tuj();
|
||||
}.bind(this));
|
||||
$('#opsiUbahTuj').click(function(){
|
||||
this.kode_ubah_tuj();
|
||||
}.bind(this));
|
||||
$('#opsiTambahIndi').click(function(){
|
||||
this.kode_tambah_indi();
|
||||
}.bind(this));
|
||||
$('#opsiUbahIndi').click(function(){
|
||||
this.kode_ubah_indi();
|
||||
}.bind(this));
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
kode_preview: function(acell, cmd){
|
||||
if (acell) $('#OPDID').val(acell[0]);
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("OPDID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_tuj: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-tuj');
|
||||
},
|
||||
kode_ubah_tuj: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-tuj');
|
||||
},
|
||||
kode_tambah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-indi');
|
||||
},
|
||||
kode_ubah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-indi');
|
||||
},
|
||||
|
||||
/*show_upload: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="col-12 px-0"><div class="input-group"><label class="input-group-btn"><span class="btn btn-primary shadow-none">Browse…<input type="file" name="FileDoku" id="FileDoku" accept="application/json" style="display:none;"></span></label><input type="text" id="FileLabel" class="form-control" readonly></div></div></div></div>';
|
||||
this.winDoku = FoniaJS.showWindow('Doku', 'Upload data JSON', txt, 600, '_,WK', function(){
|
||||
$('#FileDoku').change(function(){
|
||||
var label = $('#FileDoku').val().replace(/\\/g, '/').replace(/.*\//, ''),
|
||||
fd = new FormData(),
|
||||
files = $('#FileDoku')[0].files[0];
|
||||
$('#FileLabel').val(label);
|
||||
fd.append('file', files);
|
||||
$.ajax({
|
||||
url: this.PHP+'?data=upload-json',
|
||||
type: 'post',
|
||||
data: fd,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
$('#FileLabel').val('');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
});
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
},*/
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-opd','Cari_OPD']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,148 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/rkpd_awal.js
|
||||
Desc. : JS - Simulasi Push RKPD Awal ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : April 1st, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RKPDAwalJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').css('display', 'none');
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#ProgID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('tabel-opd'); }
|
||||
if (no == 2) { $('#divPROG').css('display', ''); this.data_query('tabel-prog'); }
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[1]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
kode_preview: function(cmd){
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("OPDID");
|
||||
dprint.add_param("ProgID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_sub_o: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#ProgID').val(0);
|
||||
this.kode_preview('kode-tambah-sub');
|
||||
},
|
||||
kode_ubah_sub_o: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#ProgID').val(0);
|
||||
this.kode_preview('kode-ubah-sub');
|
||||
},
|
||||
kode_ubah_keg_o: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#ProgID').val(0);
|
||||
this.kode_preview('kode-ubah-keg');
|
||||
},
|
||||
kode_tambah_sub: function(acell){
|
||||
$('#ProgID').val(acell[0]);
|
||||
this.kode_preview('kode-tambah-sub');
|
||||
},
|
||||
kode_ubah_sub: function(acell){
|
||||
$('#ProgID').val(acell[0]);
|
||||
this.kode_preview('kode-ubah-sub');
|
||||
},
|
||||
kode_ubah_keg: function(acell){
|
||||
$('#ProgID').val(acell[0]);
|
||||
this.kode_preview('kode-ubah-keg');
|
||||
},
|
||||
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.show_hide(2);
|
||||
this.show_hide(1);
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-opd']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-prog','OPDID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,127 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/rpjmd_program.js
|
||||
Desc. : JS - Simulasi Program RPJMD ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : March 30th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RPJMDProgramJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#Cari_OPD').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_OPD').val('');
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
$('#opsiTambahProg').click(function(){
|
||||
this.kode_tambah_prog();
|
||||
}.bind(this));
|
||||
$('#opsiUbahProg').click(function(){
|
||||
this.kode_ubah_prog();
|
||||
}.bind(this));
|
||||
$('#opsiTambahIndi').click(function(){
|
||||
this.kode_tambah_indi();
|
||||
}.bind(this));
|
||||
$('#opsiUbahIndi').click(function(){
|
||||
this.kode_ubah_indi();
|
||||
}.bind(this));
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.setFocus('#Cari_OPD');
|
||||
},
|
||||
|
||||
kode_preview: function(acell, cmd){
|
||||
if (acell) $('#OPDID').val(acell[0]);
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("OPDID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_prog: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-prog');
|
||||
},
|
||||
kode_ubah_prog: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-prog');
|
||||
},
|
||||
kode_tambah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-indi');
|
||||
},
|
||||
kode_ubah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-indi');
|
||||
},
|
||||
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-opd','Cari_OPD']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,127 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/rpjmd_sasaran.js
|
||||
Desc. : JS - Simulasi Sasaran RPJMD ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : April 8th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RPJMDSasaranJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#Cari_Sasar').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail-sasar');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('detail-sasar');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_Sasar').val('');
|
||||
this.data_query('detail-sasar');
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
$('#opsiTambahSasar').click(function(){
|
||||
this.kode_tambah_sasar();
|
||||
}.bind(this));
|
||||
$('#opsiUbahSasar').click(function(){
|
||||
this.kode_ubah_sasar();
|
||||
}.bind(this));
|
||||
$('#opsiTambahIndi').click(function(){
|
||||
this.kode_tambah_indi();
|
||||
}.bind(this));
|
||||
$('#opsiUbahIndi').click(function(){
|
||||
this.kode_ubah_indi();
|
||||
}.bind(this));
|
||||
this.data_query('detail-sasar');
|
||||
FoniaJS.setFocus('#Cari_Sasar');
|
||||
},
|
||||
|
||||
kode_preview: function(acell, cmd){
|
||||
if (acell) $('#RD_SASARID').val(acell[0]);
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("RD_SASARID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_sasar: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-sasar');
|
||||
},
|
||||
kode_ubah_sasar: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-sasar');
|
||||
},
|
||||
kode_tambah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-indi');
|
||||
},
|
||||
kode_ubah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-indi');
|
||||
},
|
||||
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-sasar"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sasar','Cari_Sasar']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,127 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/sim/rpjmd_tujuan.js
|
||||
Desc. : JS - Simulasi Tujuan RPJMD ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : April 8th, 2022.
|
||||
|
||||
(c) 2011 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var RPJMDTujuanJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#Cari_Tujuan').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('detail-tujuan');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('detail-tujuan');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_Tujuan').val('');
|
||||
this.data_query('detail-tujuan');
|
||||
}.bind(this));
|
||||
$('#butSIPD').click(function(){
|
||||
this.sipd_detail();
|
||||
}.bind(this));
|
||||
$('#opsiUpload').click(function(){
|
||||
this.json_show();
|
||||
}.bind(this));
|
||||
$('#opsiTambahTujuan').click(function(){
|
||||
this.kode_tambah_tujuan();
|
||||
}.bind(this));
|
||||
$('#opsiUbahTujuan').click(function(){
|
||||
this.kode_ubah_tujuan();
|
||||
}.bind(this));
|
||||
$('#opsiTambahIndi').click(function(){
|
||||
this.kode_tambah_indi();
|
||||
}.bind(this));
|
||||
$('#opsiUbahIndi').click(function(){
|
||||
this.kode_ubah_indi();
|
||||
}.bind(this));
|
||||
this.data_query('detail-tujuan');
|
||||
FoniaJS.setFocus('#Cari_Tujuan');
|
||||
},
|
||||
|
||||
kode_preview: function(acell, cmd){
|
||||
if (acell) $('#RD_TUJID').val(acell[0]);
|
||||
var dprint = new cSIMULATOR(this.PHP);
|
||||
dprint.add_param("data", cmd);
|
||||
dprint.add_param("RD_TUJID");
|
||||
dprint.doPreview();
|
||||
},
|
||||
|
||||
kode_tambah_tujuan: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-tujuan');
|
||||
},
|
||||
kode_ubah_tujuan: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-tujuan');
|
||||
},
|
||||
kode_tambah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-tambah-indi');
|
||||
},
|
||||
kode_ubah_indi: function(acell){
|
||||
this.kode_preview(acell, 'kode-ubah-indi');
|
||||
},
|
||||
|
||||
json_show: function(){
|
||||
var txt = '<div class="card mt-2 mb-1"><div class="card-body"><div class="row mb-1"><div class="col"><textarea class="form-control" id="Kode_JSON" name="Kode_JSON" rows="10" required="true"></textarea></div></div></div></div>';
|
||||
this.winJSON = FoniaJS.showWindow('JSON', 'Upload data JSON', txt, 600, '_,WK,WS', function(){
|
||||
$('#winJSON').find('#butWSave').click(function(){this.json_simpan();}.bind(this));
|
||||
$('#Kode_JSON').focus();
|
||||
}.bind(this));
|
||||
},
|
||||
json_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-json','Kode_JSON'],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
this.data_query('detail-opd');
|
||||
FoniaJS.showInfo('Sukses upload JSON!');
|
||||
} else {
|
||||
FoniaJS.showError(ares.message);
|
||||
}
|
||||
FoniaJS.closeWindow(this.winJSON);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
sipd_detail: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-sipd'],
|
||||
onSuccess: function(txt){
|
||||
this.winSIPD = FoniaJS.showWindow('SIPD', 'Konfigurasi SIPD', txt, 400, '_,WK,WS', function(){
|
||||
$('#winSIPD').find('#butWSave').click(function(){this.sipd_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
sipd_simpan: function(){
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sipd','Kode_Token','Kode_Acak'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
FoniaJS.closeWindow(this.winSIPD);
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-tujuan"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-tujuan','Cari_Tujuan']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user