// DATA SOURCE (for COMBO)
//Status Aktif-Tidak Aktif
function store_status() {
var ds_status = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/gridM_status',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idstatus',
mapping: 'idstatus'
},{
name: 'kdstatus',
mapping: 'kdstatus'
},
{
name: 'nmstatus',
mapping: 'nmstatus'
}]
});
return ds_status;
}
function store_gender() {
var ds_gender = new Ext.data.JsonStore({ //static data
autoDestroy: true,
fields: [ 'kode', 'nama' ],
data: [
{ "kode":"L","nama":"Laki - Laki"},
{ "kode":"P","nama":"Perempuan"}
]
});
return ds_gender;
}
// Hierarki Head-Detail
function store_hierarki() {
var ds_hierarki = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/gridM_hierarki',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjnshirarki',
mapping: 'idjnshirarki'
},
{
name: 'nmjnshirarki',
mapping: 'nmjnshirarki'
}]
});
return ds_hierarki;
}
function store_dashboard() {
var ds_dashboard = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/gridM_dash',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjnsdashboard',
mapping: 'idjnsdashboard'
},
{
name: 'nmjnsdashboard',
mapping: 'nmjnsdashboard'
}]
});
return ds_dashboard;
}
function store_jadwalpmb_hslusm() {
var ds_jadwalpmb_hslusm = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jadwalpmb_hslusm',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjadwalpmb',
mapping: 'idjadwalpmb'
},
{
name: 'kdjadwalpmb',
mapping: 'kdjadwalpmb'
},
{
name: 'nmjadwalpmb',
mapping: 'nmjadwalpmb'
}]
});
return ds_jadwalpmb_hslusm;
}
function store_otoritas() {
var ds_otoritas= new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_utility/g_JKP',
method: 'POST',
success: function(response) {
var x = Ext.decode(response.responseText);
if(x.status == false){
Ext.Ajax.request({
url: BASE_URL + 'user/ext_logout',
method: 'POST',
success: function(xhr) {
localStorage.removeItem('access_token');
window.location = BASE_URL + 'user/login';
}
});
}
}
}),
params: {
start: 0,
limit: 5
},
root: 'data',
totalProperty: 'results',
autoLoad: true,
fields: [{
name: "idklppengguna",
mapping: "idklppengguna"
},
{
name: "kdklppengguna",
mapping: "kdklppengguna"
},
{
name: "nmklppengguna",
mapping: "nmklppengguna"
}]
});
return ds_otoritas;
}
function store_stsemester() {
var ds_stsemester = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_stsemester',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdstsemester',
mapping: 'kdstsemester'
}
]
});
return ds_stsemester;
}
function store_jadwalpmb() {
var ds_jadwalpmb = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jadwalpmb',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjadwalpmb',
mapping: 'idjadwalpmb'
},
{
name: 'kdjadwalpmb',
mapping: 'kdjadwalpmb'
},
{
name: 'nmjadwalpmb',
mapping: 'nmjadwalpmb'
}]
});
return ds_jadwalpmb;
}
function store_jadwalpmb_persemester() {
var ds_jadwalpmb = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jadwalpmb_persemester',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: false,
fields: [{
name: 'idjadwalpmb',
mapping: 'idjadwalpmb'
},
{
name: 'kdstsemester',
mapping: 'kdstsemester'
},
{
name: 'nmjadwalpmb',
mapping: 'nmjadwalpmb'
}]
});
return ds_jadwalpmb;
}
function store_carabyr() {
var ds_carabyr = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_carabyr',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idcarabyr',
mapping: 'idcarabyr'
},
{
name: 'nmcarabyr',
mapping: 'nmcarabyr'
}]
});
return ds_carabyr;
}
function store_pekerjaanortu() {
var ds_pekerjaanortu = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_pekerjaanortu',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idpekerjaanortu',
mapping: 'idpekerjaanortu'
},
{
name: 'nmpekerjaanortu',
mapping: 'nmpekerjaanortu'
}]
});
return ds_pekerjaanortu;
}
function store_pekerjaanmhs() {
var ds_pekerjaanmhs = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_pekerjaanmhs',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idpekerjaanmhs',
mapping: 'idpekerjaanmhs'
},
{
name: 'nmpekerjaanmhs',
mapping: 'nmpekerjaanmhs'
}]
});
return ds_pekerjaanmhs;
}
function store_stmskmhs() {
var ds_stmskmhs = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_stmskmhs',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idstmskmhs',
mapping: 'idstmskmhs'
},
{
name: 'nmstmskmhs',
mapping: 'nmstmskmhs'
}]
});
return ds_stmskmhs;
}
function store_jusm() {
var ds_jusm = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jusm',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjnsusm',
mapping: 'idjnsusm'
},
{
name: 'nmjnsusm',
mapping: 'nmjnsusm'
}]
});
return ds_jusm;
}
function store_stmskmhs_pmb() {
var ds_stmskmhs_pmb = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_stmskmhs_pmb',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idstmskmhs',
mapping: 'idstmskmhs'
},
{
name: 'nmstmskmhs',
mapping: 'nmstmskmhs'
}]
});
return ds_stmskmhs_pmb;
}
function store_prodi() {
var ds_prodi = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_prodi',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdprodi',
mapping: 'kdprodi'
},
{
name: 'nmprodi',
mapping: 'nmprodi'
}]
});//grid_klsmhs
return ds_prodi;
}
function store_prodiall() {
var ds_prodiall = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_prodiall',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdprodi',
mapping: 'kdprodi'
},
{
name: 'nmprodi',
mapping: 'nmprodi'
}]
});
return ds_prodiall;
}
function store_klsmhs() {
var ds_klsmhs = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_klsmhs',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idklsmhs',
mapping: 'idklsmhs'
},
{
name: 'nmklsmhs',
mapping: 'nmklsmhs'
}]
});
return ds_klsmhs;
}
function store_jenpdkpendaftar() {
var ds_jenpdkpendaftar = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jenpdkpendaftar',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjenpdkpendaftar',
mapping: 'idjenpdkpendaftar'
},
{
name: 'nmjenpdkpendaftar',
mapping: 'nmjenpdkpendaftar'
}]
});
return ds_jenpdkpendaftar;
}
function store_stakreditasi() {
var ds_stakreditasi = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_stakreditasi',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idstakreditasi',
mapping: 'idstakreditasi'
},
{
name: 'nmstakreditasi',
mapping: 'nmstakreditasi'
}]
});
return ds_stakreditasi;
}
function store_sbrinfo() {
var ds_sbrinfo = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_sbrinfo',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idsbrinfo',
mapping: 'idsbrinfo'
},
{
name: 'nmsbrinfo',
mapping: 'nmsbrinfo'
}]
});//
return ds_sbrinfo;
}
function store_rekpmb() {
var ds_rekpmb = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_rekpmb',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idrekpmb',
mapping: 'idrekpmb'
},
{
name: 'nmrekpmb',
mapping: 'nmrekpmb'
}]
});//
return ds_rekpmb;
}
function store_alasanpendaftar() {
var ds_alasanpendaftar = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_alasanpendaftar',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idalasanpendaftar',
mapping: 'idalasanpendaftar'
},
{
name: 'nmalasanpendaftar',
mapping: 'nmalasanpendaftar'
}]
});
return ds_alasanpendaftar;
}
function store_jgaleri() {
var ds_jgaleri = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jgaleri',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjnsgaleri',
mapping: 'idjnsgaleri'
},
{
name: 'kdjnsgaleri',
mapping: 'kdjnsgaleri'
},
{
name: 'nmjnsgaleriind',
mapping: 'nmjnsgaleriind'
}]
});
return ds_jgaleri;
}
function store_klpgaleri() {
var ds_klpgaleri = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_klpgaleri',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idklpgaleri',
mapping: 'idklpgaleri'
},
{
name: 'kdklpgaleri',
mapping: 'kdklpgaleri'
},
{
name: 'nmklpgaleriind',
mapping: 'nmklpgaleriind'
}]
});
return ds_klpgaleri;
}
function store_stpublish() {
var ds_stpublish = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_stpublish',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idstpublish',
mapping: 'idstpublish'
},
{
name: 'kdstpublish',
mapping: 'kdstpublish'
},
{
name: 'nmstpublish',
mapping: 'nmstpublish'
}]
});
return ds_stpublish;
}
function store_kategori_halaman() {
var ds_kategori_halaman = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_kategorihalaman',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idktghalaman',
mapping: 'idktghalaman'
},
{
name: 'kdktghalaman',
mapping: 'kdktghalaman'
},
{
name: 'nmktghalamanind',
mapping: 'nmktghalamanind'
}]
});
return ds_kategori_halaman;
}
function store_klptautan() {
var ds_klptautan = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_klptautan',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idklptautan',
mapping: 'idklptautan'
},
{
name: 'kdtautan',
mapping: 'kdtautan'
},
{
name: 'nmklptautanind',
mapping: 'nmklptautanind'
}]
});
return ds_klptautan;
}
function store_jpengguna() {
var ds_jpengguna = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jpengguna',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjnspengguna',
mapping: 'idjnspengguna'
},
{
name: 'nmjnspengguna',
mapping: 'nmjnspengguna'
}]
});
return ds_jpengguna;
}
function store_vsemester() {
var ds_vsemester = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_vstsemester2',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdstsemester',
mapping: 'kdstsemester'
}]
});
return ds_vsemester;
}
function store_vsemester3() {
var ds_vsemester3 = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_vstsemester3',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdstsemester',
mapping: 'kdstsemester'
}]
});
return ds_vsemester3;
}
function store_stusm() {
var ds_stusm = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/gridM_stusm',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idstusm',
mapping: 'idstusm'
},
{
name: 'nmstusm',
mapping: 'nmstusm'
}]
});
return ds_stusm;
}
function store_thnakademik() {
var ds_thnakademik = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_thnakademik',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idthnakademik',
mapping: 'idthnakademik'
},
{
name: 'kdthnakademik',
mapping: 'kdthnakademik'
}]
});
return ds_thnakademik;
}
function store_stsemester_private() {
var ds_stsemester_private = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_vstsemester3',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjnssemester',
mapping: 'idjnssemester'
},
{
name: 'nmjnssemester',
mapping: 'nmjnssemester'
}]
});
return ds_stsemester_private;
}
function store_setbiayapmb() {
var ds_setbiayapmb = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_setbiayapmb',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idsetbiayapmb',
mapping: 'idsetbiayapmb'
},
{
name: 'nmsetbiayapmb',
mapping: 'nmsetbiayapmb'
}]
});
return ds_setbiayapmb;
}
function store_perusahaan() {
var ds_perusahaan = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_perusahaan',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idperusahaan',
mapping: 'idperusahaan'
},
{
name: 'kdperusahaan',
mapping: 'kdperusahaan'
},
{
name: 'nmperusahaan',
mapping: 'nmperusahaan'
}]
});
return ds_perusahaan;
}
function store_posisi() {
var ds_posisi = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_posisi',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idposisi',
mapping: 'idposisi'
},
{
name: 'kdposisi',
mapping: 'kdposisi'
},
{
name: 'nmposisi',
mapping: 'nmposisi'
}]
});
return ds_posisi;
}
function store_sesi() {
var ds_sesi = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_sesi',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idsesi',
mapping: 'idsesi'
},
{
name: 'kdsesi',
mapping: 'kdsesi'
},
{
name: 'nmsesi',
mapping: 'nmsesi'
}]
});
return ds_sesi;
}
function store_thnakademik2() {
var ds_thnakademik2 = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_thnakademik2',
method: 'POST',
success: function(response) {
var x = Ext.decode(response.responseText);
if(x.status == false){
Ext.Ajax.request({
url: BASE_URL + 'user/ext_logout',
method: 'POST',
success: function(xhr) {
localStorage.removeItem('access_token');
window.location = BASE_URL + 'user/login';
}
});
}
}
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdstsemester',
mapping: 'kdstsemester'
},{
name: 'kdthnakademik',
mapping: 'kdthnakademik'
},{
name: 'nmthnakademik',
mapping: 'nmthnakademik'
}]
});
return ds_thnakademik2;
}
function store_tbpro() {
var ds_tbpro = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_tbpro',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdkotkabasal',
mapping: 'kdkotkabasal'
},
{
name: 'nmkabtbpro',
mapping: 'nmkabtbpro'
}]
});
return ds_tbpro;
}
function store_jmlbiaya() {
var ds_jmlbiaya = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jmlbiaya',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'nominalrender',
mapping: 'nominalrender'
},{
name: 'nominal',
mapping: 'nominal'
},{
name: 'idsetbiaya',
mapping: 'idsetbiaya'
}]
});
return ds_jmlbiaya;
}
function store_tahun() {
var ds_tahun = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_data_store/get_tahun',
method: 'POST'
}),
autoLoad: true,
root: 'data',
fields: [
{ name: "tahun", mapping: "tahun" }
]
});
return ds_tahun;
}
function store_penguji() {
var ds_penguji = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/griddosen',
method: 'POST',
success: function(response) {
var x = Ext.decode(response.responseText);
if(x.status == false){
Ext.Ajax.request({
url: BASE_URL + 'user/ext_logout',
method: 'POST',
success: function(xhr) {
localStorage.removeItem('access_token');
window.location = BASE_URL + 'user/login';
}
});
}
}
}),
autoLoad: true,
root: 'data',
fields: [
{ name: "nidu", mapping: "nidu" },
{ name: "nmdosdgngelar", mapping: "nmdosdgngelar" }
]
});
return ds_penguji;
}
function store_klppengguna_mhs_dosen() {
var ds_klppengguna_mhs_dosen = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_pengguna_mhs_dos',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idklppengguna',
mapping: 'idklppengguna'
},
{
name: 'nmklppengguna',
mapping: 'nmklppengguna'
}]
});
return ds_klppengguna_mhs_dosen;
}
function store_stkrs() {
var ds_stkrs = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/gridstkrs',
method: 'POST',
success: function(response) {
var x = Ext.decode(response.responseText);
if(x.status == false){
Ext.Ajax.request({
url: BASE_URL + 'user/ext_logout',
method: 'POST',
success: function(xhr) {
localStorage.removeItem('access_token');
window.location = BASE_URL + 'user/login';
}
});
}
}
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idstkrs',
mapping: 'idstkrs'
},
{
name: 'kdstkrs',
mapping: 'kdstkrs'
},
{
name: 'nmstkrs',
mapping: 'nmstkrs'
}]
});
return ds_stkrs;
}
function store_jnsjurnal() {
var ds_jnsjurnal = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_jnsjurnal',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'idjnsjurnal',
mapping: 'idjnsjurnal'
},
{
name: 'nmjnsjurnal',
mapping: 'nmjnsjurnal'
}]
});
return ds_jnsjurnal;
}
function store_fakultas() {
var ds_fakultas = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_fakultas',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdfakultas',
mapping: 'kdfakultas'
},
{
name: 'nmfakultas',
mapping: 'nmfakultas'
}],
listeners : {
load : function() {
var rec = new this.recordType({kdfakultas:99, nmfakultas:'SEMUA FAKULTAS'});
rec.commit();
this.add(rec);
}
}
});
return ds_fakultas;
}
function store_prodi_jurnal() {
var ds_prodi_jurnal = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'c_mastah/grid_prodi_jurnal',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kdprodi',
mapping: 'kdprodi'
},
{
name: 'nmprodi',
mapping: 'nmprodi'
}]
});
return ds_prodi_jurnal;
}
function store_jujian() {
var ds_jujian = new Ext.data.JsonStore({ //from database
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'data_controller/get_jujian ',
method: 'POST',
success: function(response) {
var x = Ext.decode(response.responseText);
if(x.status == false){
Ext.Ajax.request({
url: BASE_URL + 'user/ext_logout',
method: 'POST',
success: function(xhr) {
localStorage.removeItem('access_token');
window.location = BASE_URL + 'user/login';
}
});
}
}
}),
autoLoad: true,
root: 'data',
fields: [
{ name: "idjnsujian", mapping: "idjnsujian" }
, { name: "kdjnsujian", mapping: "kdjnsujian" }
, { name: "nmjnsujian", mapping: "nmjnsujian" }
, { name: "deskripsi", mapping: "deskripsi" }
]
});
return ds_jujian;
};
//STORE OPERATOR
function store_operator() {
var ds_operator = new Ext.data.JsonStore({ //static data
autoDestroy: true,
fields: [ 'kodeopt', 'namaopt' ],
data: [
{ "kodeopt":"=","namaopt":"Sama Dengan"},
{ "kodeopt":"<>","namaopt":"Tidak Sama Dengan"},
{ "kodeopt":">","namaopt":"Lebih Dari"},
{ "kodeopt":">=","namaopt":"Lebih Dari Sama Dengan"},
{ "kodeopt":"<","namaopt":"Kurang Dari"},
{ "kodeopt":"<=","namaopt":"Kurang Dari Sama Dengan"}
]
});
return ds_operator;
}
//STORE ST AKTIVITAS MHS
function store_staktivplusall() {
var ds_fakultas = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
url: BASE_URL + 'data_controller/get_staktiv',
method: 'POST'
}),
totalProperty: 'results',
root: 'data',
autoLoad: true,
fields: [{
name: 'kode',
mapping: 'kode'
},
{
name: 'nama',
mapping: 'nama'
}],
listeners : {
load : function() {
var rec = new this.recordType({kode:99, nama:'SEMUA STATUS AKTIVITAS'});
rec.commit();
this.add(rec);
}
}
});
return ds_fakultas;
}
//=============================================================================
var data, x;
var p;
var tpl;
function user_foto_thumbs(x){
// alert(x);
tpl = new Ext.Template(
""
);
tpl.overwrite(p.body, data);
p.body.highlight('#c3daf9', {block:true});
// return tpl;
}
function user_foto_ori(x){
// alert(x);
tpl = new Ext.Template(
""
);
tpl.overwrite(p.body, data);
p.body.highlight('#c3daf9', {block:true});
// return tpl;
}
function pmb_foto_thumbs(x){
// alert(x);
tpl = new Ext.Template(
""
);
tpl.overwrite(p.body, data);
p.body.highlight('#c3daf9', {block:true});
// return tpl;
}
function pmb_foto_ori(x){
// alert(x);
tpl = new Ext.Template(
""
);
tpl.overwrite(p.body, data);
p.body.highlight('#c3daf9', {block:true});
// return tpl;
}
function mhs_foto_thumbs(x){
// alert(x);
tpl = new Ext.Template(
""
);
tpl.overwrite(p.body, data);
p.body.highlight('#c3daf9', {block:true});
// return tpl;
}
function mhs_foto_ori(x){
// alert(x);
tpl = new Ext.Template(
""
);
tpl.overwrite(p.body, data);
p.body.highlight('#c3daf9', {block:true});
// return tpl;
}
function dosen_foto_thumbs(x){
// alert(x);
tpl = new Ext.Template(
""
);
tpl.overwrite(p.body, data);
p.body.highlight('#c3daf9', {block:true});
// return tpl;
}
function dosen_foto_ori(x){
// alert(x);
tpl = new Ext.Template(
""
);
tpl.overwrite(p.body, data);
p.body.highlight('#c3daf9', {block:true});
// return tpl;
}
//========================================================
function isi_foto_ori_private(x){
// alert(x);
var addslash = '';
for (i=0;i
PHOTO
" ); tpl.overwrite(p.body, data); p.body.highlight('#c3daf9', {block:true}); // return tpl; } function toMoney(v) { return formatmoney(v); } function jumlah(a, b, c) { var tmpsatu1, tmpsatu2, tmpdua1, tmpdua2; tmpsatu1 = Ext.getCmp(a).getValue(); tmpdua1 = Ext.getCmp(b).getValue(); for (var r = 1; r < 10; r++) { tmpsatu1 = tmpsatu1.replace('.', ''); tmpdua1 = tmpdua1.replace('.', ''); } tmpsatu2 = tmpsatu1; tmpdua2 = tmpdua1; var hasil = Ext.getCmp(c); var tiga; tiga = parseInt(tmpsatu2) + parseInt(tmpdua2); hasil.setValue(tiga.toString()); } function kurang(a, b, c) { var tmpsatu1, tmpsatu2, tmpdua1, tmpdua2; tmpsatu1 = Ext.getCmp(a).getValue(); tmpdua1 = Ext.getCmp(b).getValue(); for (var r = 1; r < 10; r++) { tmpsatu1 = tmpsatu1.replace('.', ''); tmpdua1 = tmpdua1.replace('.', ''); } tmpsatu2 = tmpsatu1; tmpdua2 = tmpdua1; var hasil = Ext.getCmp(c); var tiga; tiga = parseInt(tmpsatu2) - parseInt(tmpdua2); hasil.setValue(tiga.toString()); } function cek_input_number(component_id) { var id = Ext.getCmp(component_id); if (isNaN(id.getValue()) && id.getValue() != '') { Ext.Msg.alert('Validasi Input', 'Input Harus Bilangan atau Numeric'); id.setValue(''); } else { id.setValue(formatmoney(id.getValue())); } } function formatmoney(v){ // v = v.replace('.',''); v = (Math.round((v-0)*100))/100; v = (v == Math.floor(v)) ? v + "" : ((v*10 == Math.floor(v*10)) ? v + "0" : v); v = String(v); var ps = v.split('.'); var whole = ps[0]; var sub = ps[1] ? '.'+ ps[1] : ''; var r = /(\d+)(\d{3})/; while (r.test(whole)) { whole = whole.replace(r, '$1' + '.' + '$2'); } v = whole + sub; if(v.charAt(0) == '-'){ return '-'+v.substr(1); } return v ; } function formatmoney_grid(v){ v = (Math.round((v-0)*100))/100; v = (v == Math.floor(v)) ? v + "" : ((v*10 == Math.floor(v*10)) ? v + "0" : v); v = String(v); var ps = v.split('.'); var whole = ps[0]; var sub = ps[1] ? '.'+ ps[1] : ''; var r = /(\d+)(\d{3})/; while (r.test(whole)) { whole = whole.replace(r, '$1' + '.' + '$2'); } v = whole + sub; if(v.charAt(0) == '-'){ return '-'+v.substr(1); } return '