var f2Fields = new Object([ { name: "kode", mapping: "kode" } , { name: "nama", mapping: "nama" } ]); var f3Fields = new Object([ { name: "id", mapping: "id" } , { name: "kode", mapping: "kode" } , { name: "nama", mapping: "nama" } ]); var f4Fields = new Object([ { name: "id", mapping: "id" } , { name: "kode", mapping: "kode" } , { name: "nama", mapping: "nama" } , { name: "deskripsi", mapping: "deskripsi" } ]); // DATA SOURCE (for COMBO) var ds_persen = new Ext.data.JsonStore({ //static data //autoDestroy: true, fields: f2Fields, data: [ { "kode":"0","nama":"semua"}, { "kode":"25","nama":"25 %"}, { "kode":"50","nama":"50 %"}, { "kode":"80","nama":"80 %"}, { "kode":"100","nama":"100 %"} ] }); // GENDER var ds_gender = new Ext.data.JsonStore({ //static data autoDestroy: true, fields: f2Fields, data: [ { "kode":"L","nama":"Laki-laki"}, { "kode":"P","nama":"Perempuan"} ] }); var ds_gender2 = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_gender', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); //RELIGION var ds_religion = new Ext.data.JsonStore({ //static data autoDestroy: true, fields: f3Fields, data: [ {"idx":'1',"kode":"I","nama":"Islam"}, {"idx":'2',"kode":"K","nama":"Katolik"}, {"idx":'3',"kode":"P","nama":"Protestan"}, {"idx":'4',"kode":"B","nama":"Budha"}, {"idx":'5',"kode":"H","nama":"Hindu"}, {"idx":'9',"kode":"L","nama":"Lainnya"} ]}); var ds_religion2 = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_religion ', method: 'POST' }), autoLoad: true, root: 'data', fields: f3Fields, }); // BLOOD TYPE var ds_bloodtype = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_bloodtype ', method: 'POST' }), autoLoad: true, root: 'data', fields: f3Fields, }); //NATIONALITY var ds_wn = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_nationality ', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); // PARENT_JOB var ds_parentjob = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_parentjob ', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); // PARENT EDUCATION var ds_parentedu = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_parentedu ', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); // STATUS SMESTER var ds_stsmt = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_stsmt ', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "kdstsemester", mapping: "kdstsemester" } , { name: "nmthnakademik", mapping: "nmthnakademik" } , { name: "nmjnssemester", mapping: "nmjnssemester" } , { name: "nmsmt", mapping: "nmsmt" } ] }); // PRODI INTERNAL var ds_prodireg = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_prodireg ', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "kdprodi", mapping: "kdprodi" } , { name: "nourutprodi", mapping: "nourutprodi" } , { name: "nmprodi", mapping: "nmprodi" } , { name: "lnmprodi", mapping: "lnmprodi" } , { name: "kdfakultas", mapping: "kdfakultas" } , { name: "nmfakultas", mapping: "nmfakultas" } ] }); // SHIFT MAHASISWA var ds_shift = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_shift', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); // KELAS MAHASISWA var ds_class = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_class', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); /** * JKLS: JENIS KELAS */ var ds_jkls = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_jkls', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "idjnskls", mapping: "idjnskls" }, { name: "nmjnskls", mapping: "nmjnskls" } ] }); //TAHUN var ds_years = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_years', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); // STATUS AWAL MHS var ds_stfirst = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_stfirst', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); // STATUS AKTIVASI var ds_staktiv = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_staktiv', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); //JENIS SLTA var ds_jslta = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_jslta', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); // STATUS AKREDITASI SLTA var ds_stakrslta = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_stakrslta', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); //JENIS PT var ds_jpt = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_jpt', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); // STATUS AKREDITASI PT var ds_stakrpt = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_stakrpt', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); // KUALIFIKASI AKREDITASI PT var ds_kuakrpt = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_kuakrpt', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); // PEKERJAAN MAHASISWA var ds_mhsjob = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_mhsjob ', method: 'POST' }), autoLoad: true, root: 'data', fields: f4Fields, }); // KATEGORI BIAYA STUDI var ds_biaya = new Ext.data.JsonStore({ //from database proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_biaya ', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); //DOSEN var ds_status_dos = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_status_dos', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); var ds_jabak = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_jabak', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); var ds_pdktop = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_pdktop', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); var ds_jstudi = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_jenjangstudi', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); var ds_stikj = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_stikj', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); var ds_staktivdos = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_staktivdos', method: 'POST' }), autoLoad: true, root: 'data', fields: f2Fields, }); //KEUANGAN var ds_carabyr = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_carabyr', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "idcarabyr", mapping: "idcarabyr" } , { name: "kdcarabyr", mapping: "kdcarabyr" } , { name: "nmcarabyr", mapping: "nmcarabyr" } //, { name: "deskripsi", mapping: "deskripsi" } ] }); var ds_jbiaya = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'data_controller/get_jbiaya', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "idjnsbiaya", mapping: "idjnsbiaya" } , { name: "kdjnsbiaya", mapping: "kdjnsbiaya" } , { name: "nmjnsbiaya", mapping: "nmjnsbiaya" } //, { name: "deskripsi", mapping: "deskripsi" } ] }); /*=========== added by NAFHUL =====================*/ /** * GET DATA JENIS BIAYA */ var ds_jnsbiaya = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'c_data_store/get_jnsbiaya', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "idjnsbiaya", mapping: "idjnsbiaya" } , { name: "kdjnsbiaya", mapping: "kdjnsbiaya" } ] }); /* ======================== KEUANGAN ========================== */ /** * GET DATA TAHUN MASUK */ 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" } ] }); /** * GET DATA PRODI */ var ds_prodi = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'c_data_store/get_prodi', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "kdprodi", mapping: "kdprodi" }, { name: "nmprodi", mapping: "nmprodi" } ] }); /** * GET STATUS BIAYA */ var ds_status = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'c_data_store/get_status', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "idstatus", mapping: "idstatus" }, { name: "nmstatus", mapping: "nmstatus" } ] }); /** * GET STATUS SEMESTER */ var ds_statussmt = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'c_data_store/get_statussmt', method: 'POST' }), autoLoad: true, root: 'data', fields: [ { name: "kdstsemester", mapping: "kdstsemester" }, { name: "statussmt", mapping: "statussmt" } ] });