first commit
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/push/rkpd_akhir.js
|
||||
Desc. : JS - Push API RKPD Akhir ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : August 20th, 2020.
|
||||
|
||||
(c) 2011 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var PRKPDAkhirJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butSend').click(function(){this.proses_kirim();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
proses_kirim: function(){
|
||||
var prog = 0;
|
||||
$('#divPROG :input').each(function(e){
|
||||
if (this.type=='checkbox' && this.id.indexOf('ProgID_cbox')!==-1) {
|
||||
if ($(this).prop('checked')) prog++;
|
||||
}
|
||||
});
|
||||
if (prog==0) {
|
||||
FoniaJS.showError('Silakan Pilih Nama Program.');
|
||||
return false;
|
||||
}
|
||||
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Kirim Data RKPD Akhir ke SIPD Kemendagri ?', function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=kirim','OPDID'],
|
||||
onSuccess: function(adata){
|
||||
var txt = '<table width="100%"><tr><td class="c"><p>'+adata['msg']+'</p></td></tr><tr><td height="250" valign="top">'+adata['pre']+'</td></tr></table>';
|
||||
this.winInfo = FoniaJS.showWindow('Info', 'Informasi Pengiriman Data', txt, 900, '_,WK');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').css('display', 'none');
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('detail-opd'); }
|
||||
if (no == 2) { $('#divPROG').css('display', ''); this.data_query('detail-prog'); }
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
$('#butPrint').prop('disabled', true);
|
||||
$('#butSend').prop('disabled', true);
|
||||
if (no == 2) {
|
||||
$('#butPrint').prop('disabled', false);
|
||||
$('#butSend').prop('disabled', false);
|
||||
}
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[8]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
opd_kirim: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Kirim Data '+acell[8]+' ke SIPD Kemendagri ?', function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=kirim','OPDID'],
|
||||
onSuccess: function(adata){
|
||||
var txt = '<table width="100%"><tr><td class="c"><p>'+adata['msg']+'</p></td></tr><tr><td height="250" valign="top">'+adata['pre']+'</td></tr></table>';
|
||||
this.winInfo = FoniaJS.showWindow('Info', 'Informasi Pengiriman Data', txt, 900, '_,WK');
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-opd']
|
||||
}).send();
|
||||
} else if (tipe=="detail-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-prog','OPDID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,106 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/push/rkpd_awal.js
|
||||
Desc. : JS - Push API RKPD Awal ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : August 20th, 2020.
|
||||
|
||||
(c) 2011 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var PRKPDAwalJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butSend').click(function(){this.proses_kirim();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
proses_kirim: function(){
|
||||
var prog = 0;
|
||||
$('#divPROG :input').each(function(e){
|
||||
if (this.type=='checkbox' && this.id.indexOf('ProgID_cbox')!==-1) {
|
||||
if ($(this).prop('checked')) prog++;
|
||||
}
|
||||
});
|
||||
if (prog==0) {
|
||||
FoniaJS.showError('Silakan Pilih Nama Program.');
|
||||
return false;
|
||||
}
|
||||
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Kirim Data RKPD Awal ke SIPD Kemendagri ?', function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=kirim','OPDID'],
|
||||
onSuccess: function(adata){
|
||||
var txt = '<table width="100%"><tr><td class="c"><p>'+adata['msg']+'</p></td></tr><tr><td height="250" valign="top">'+adata['pre']+'</td></tr></table>';
|
||||
this.winInfo = FoniaJS.showWindow('Info', 'Informasi Pengiriman Data', txt, 900, '_,WK');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').css('display', 'none');
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('detail-opd'); }
|
||||
if (no == 2) { $('#divPROG').css('display', ''); this.data_query('detail-prog'); }
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
$('#butPrint').prop('disabled', true);
|
||||
$('#butSend').prop('disabled', true);
|
||||
if (no == 2) {
|
||||
$('#butPrint').prop('disabled', false);
|
||||
$('#butSend').prop('disabled', false);
|
||||
}
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[8]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
opd_kirim: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Kirim Data '+acell[8]+' ke SIPD Kemendagri ?', function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=kirim','OPDID'],
|
||||
onSuccess: function(adata){
|
||||
var txt = '<table width="100%"><tr><td class="c"><p>'+adata['msg']+'</p></td></tr><tr><td height="250" valign="top">'+adata['pre']+'</td></tr></table>';
|
||||
this.winInfo = FoniaJS.showWindow('Info', 'Informasi Pengiriman Data', txt, 900, '_,WK');
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-opd']
|
||||
}).send();
|
||||
} else if (tipe=="detail-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-prog','OPDID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,106 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/push/rkpd_ranc.js
|
||||
Desc. : JS - Push API Rancangan RKPD ke SIPD Kemendagri
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : October 28th, 2011.
|
||||
Last Modified : August 20th, 2020.
|
||||
|
||||
(c) 2011 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var PRKPDRancJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butSend').click(function(){this.proses_kirim();}.bind(this));
|
||||
$('#butOPD').click(function(){
|
||||
if ($('#OPDID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
proses_kirim: function(){
|
||||
var prog = 0;
|
||||
$('#divPROG :input').each(function(e){
|
||||
if (this.type=='checkbox' && this.id.indexOf('ProgID_cbox')!==-1) {
|
||||
if ($(this).prop('checked')) prog++;
|
||||
}
|
||||
});
|
||||
if (prog==0) {
|
||||
FoniaJS.showError('Silakan Pilih Nama Program.');
|
||||
return false;
|
||||
}
|
||||
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Kirim Data Rancangan RKPD ke SIPD Kemendagri ?', function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=kirim','OPDID'],
|
||||
onSuccess: function(adata){
|
||||
var txt = '<table width="100%"><tr><td class="c"><p>'+adata['msg']+'</p></td></tr><tr><td height="250" valign="top">'+adata['pre']+'</td></tr></table>';
|
||||
this.winInfo = FoniaJS.showWindow('Info', 'Informasi Pengiriman Data', txt, 900, '_,WK');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
show_hide: function(no){
|
||||
$('#divOPD').css('display', 'none'); $('#butOPD').removeClass('btn-secondary').addClass('btn-info');
|
||||
$('#divPROG').css('display', 'none');
|
||||
if (no == 1) { $('#divOPD').css('display', ''); this.data_query('detail-opd'); }
|
||||
if (no == 2) { $('#divPROG').css('display', ''); this.data_query('detail-prog'); }
|
||||
if (no == 1) {
|
||||
$('#OPDID').val(0);
|
||||
$('#Nama_OPD').val('');
|
||||
}
|
||||
if (no <= 1) {
|
||||
$('#butOPD').removeClass('btn-info').addClass('btn-secondary');
|
||||
}
|
||||
$('#butPrint').prop('disabled', true);
|
||||
$('#butSend').prop('disabled', true);
|
||||
if (no == 2) {
|
||||
$('#butPrint').prop('disabled', false);
|
||||
$('#butSend').prop('disabled', false);
|
||||
}
|
||||
},
|
||||
|
||||
opd_select: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
$('#Nama_OPD').val(acell[8]);
|
||||
this.show_hide(2);
|
||||
},
|
||||
|
||||
opd_kirim: function(acell){
|
||||
$('#OPDID').val(acell[0]);
|
||||
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Kirim Data '+acell[8]+' ke SIPD Kemendagri ?', function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=kirim','OPDID'],
|
||||
onSuccess: function(adata){
|
||||
var txt = '<table width="100%"><tr><td class="c"><p>'+adata['msg']+'</p></td></tr><tr><td height="250" valign="top">'+adata['pre']+'</td></tr></table>';
|
||||
this.winInfo = FoniaJS.showWindow('Info', 'Informasi Pengiriman Data', txt, 900, '_,WK');
|
||||
this.data_query('detail-opd');
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="detail-opd"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-opd']
|
||||
}).send();
|
||||
} else if (tipe=="detail-prog"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-prog','OPDID']
|
||||
}).send();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user