first commit
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/pull/renstra_tujuan.js
|
||||
Desc. : JS - Pull Tujuan RENSTRA
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 15th, 2025.
|
||||
|
||||
(c) 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var PRENSTRATujuanJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butTujuan').click(function(){
|
||||
this.simpan_tujuan();
|
||||
}.bind(this));
|
||||
$('#butIndikator').click(function(){
|
||||
this.simpan_indikator();
|
||||
}.bind(this));
|
||||
$('#butClear').click(function(){
|
||||
$('#JSON_Tujuan').val('');
|
||||
$('#JSON_Indikator').val('');
|
||||
$('#Tujuan_Log').val('');
|
||||
$('#Indikator_Log').val('');
|
||||
});
|
||||
},
|
||||
|
||||
simpan_tujuan: function(){
|
||||
$('#Tujuan_Log').val('');
|
||||
var _json = JSON.parse($('#JSON_Tujuan').val());
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-tujuan','JSON='+JSON.stringify(_json)],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
$('#Tujuan_Log').val('Sukses simpan Tujuan !');
|
||||
} else {
|
||||
$('#Tujuan_Log').val(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
simpan_indikator: function(){
|
||||
$('#Indikator_Log').val('');
|
||||
var _json = JSON.parse($('#JSON_Indikator').val());
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-indikator','JSON='+JSON.stringify(_json)],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
$('#Indikator_Log').val('Sukses simpan Indikator !');
|
||||
} else {
|
||||
$('#Indikator_Log').val(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,64 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/pull/rpjmd_sasaran.js
|
||||
Desc. : JS - Pull Sasaran RPJMD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 15th, 2025.
|
||||
|
||||
(c) 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var PRPJMDProgramJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butProgram').click(function(){
|
||||
this.simpan_sasaran();
|
||||
}.bind(this));
|
||||
$('#butOutcome').click(function(){
|
||||
this.simpan_Outcome();
|
||||
}.bind(this));
|
||||
$('#butClear').click(function(){
|
||||
$('#JSON_Program').val(' ');
|
||||
$('#JSON_Outcome').val(' ');
|
||||
$('#Program_Log').val('');
|
||||
$('#Outcome_Log').val('');
|
||||
});
|
||||
},
|
||||
|
||||
simpan_sasaran: function(){
|
||||
$('#Program_Log').val('');
|
||||
var _json = JSON.parse($('#JSON_Program').val());
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-program','JSON='+JSON.stringify(_json)],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
$('#Program_Log').val('Sukses simpan Program !');
|
||||
} else {
|
||||
$('#Program_Log').val(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
simpan_Outcome: function(){
|
||||
$('#Outcome_Log').val('');
|
||||
var _json = JSON.parse($('#JSON_Outcome').val());
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-outcome','JSON='+JSON.stringify(_json)],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
$('#Outcome_Log').val('Sukses simpan Outcome !');
|
||||
} else {
|
||||
$('#Outcome_Log').val(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,64 @@
|
||||
/*******************************************************************
|
||||
|
||||
App. Name : SISTEM INFORMASI PERENCANAAN PEMBANGUNAN DAERAH
|
||||
Module : /apps/js/pull/rpjmd_sasaran.js
|
||||
Desc. : JS - Pull Sasaran RPJMD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 15th, 2025.
|
||||
|
||||
(c) 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
var PRPJMDSasaranJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butSasaran').click(function(){
|
||||
this.simpan_sasaran();
|
||||
}.bind(this));
|
||||
$('#butIndikator').click(function(){
|
||||
this.simpan_indikator();
|
||||
}.bind(this));
|
||||
$('#butClear').click(function(){
|
||||
$('#JSON_Sasaran').val(' ');
|
||||
$('#JSON_Indikator').val(' ');
|
||||
$('#Sasaran_Log').val('');
|
||||
$('#Indikator_Log').val('');
|
||||
});
|
||||
},
|
||||
|
||||
simpan_sasaran: function(){
|
||||
$('#Sasaran_Log').val('');
|
||||
var _json = JSON.parse($('#JSON_Sasaran').val());
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-sasaran','JSON='+JSON.stringify(_json)],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
$('#Sasaran_Log').val('Sukses simpan Sasaran !');
|
||||
} else {
|
||||
$('#Sasaran_Log').val(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
},
|
||||
|
||||
simpan_indikator: function(){
|
||||
$('#Indikator_Log').val('');
|
||||
var _json = JSON.parse($('#JSON_Indikator').val());
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=simpan-indikator','JSON='+JSON.stringify(_json)],
|
||||
onSuccess: function(ares){
|
||||
if (ares.result != 0){
|
||||
$('#Indikator_Log').val('Sukses simpan Indikator !');
|
||||
} else {
|
||||
$('#Indikator_Log').val(ares.message);
|
||||
}
|
||||
}.bind(this)
|
||||
}).send();
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user