function f_perwalian_form(id_module,ds,titlex) { var form_bp_general = new Ext.form.FormPanel({ border: false, id: 'form_bp_general', labelAlign: 'left', buttonAlign: 'left', bodyStyle: 'padding:10px 3px 3px 5px', // atas, kanan, bawah, kiri monitorValid: true, height: 500, width: 600, autoScroll:true, layout: 'form', reader: new Ext.data.JsonReader ({ root: 'data', totalProperty: 'results', id: 'id', fields: [ { name: "nmjadwalpmb", mapping: "nmjadwalpmb"}, { name: "idstmskmhs", mapping: "idstmskmhs"}, { name: "kdprodi1", mapping: "kdprodi1"}, { name: "kdprodi2", mapping: "kdprodi2"}, { name: "idklsmhs1", mapping: "idklsmhs1"}, //1 { name: "idklsmhs2", mapping: "idklsmhs2"}, { name: "nama", mapping: "nama"}, { name: "kdjk", mapping: "kdjk"}, { name: "tptlahir", mapping: "tptlahir"}, { name: "tgllahir", mapping: "tgllahir"}, { name: "alamatasal", mapping: "alamatasal"}, { name: "kelurahanasal", mapping: "kelurahanasal"}, { name: "kecamatanasal", mapping: "kecamatanasal"}, { name: "kdkotkabasal", mapping: "kdkotkabasal"}, //nmkotkabtampil nmpropinsitampil { name: "nmkotkabtampil", mapping: "nmkotkabtampil"}, { name: "nmpropinsitampil", mapping: "nmpropinsitampil"}, { name: "alamatsurat", mapping: "alamatsurat"},//2 { name: "kdpossurat", mapping: "kdpossurat"}, { name: "notelp", mapping: "notelp"}, { name: "nmslta", mapping: "nmslta"}, { name: "kdkotkabslta", mapping: "kdkotkabslta"}, //nmkotkabsltatampil nmpropinsisltatampil { name: "nmkotkabsltatampil", mapping: "nmkotkabsltatampil"}, { name: "nmpropinsisltatampil", mapping: "nmpropinsisltatampil"}, { name: "thnlulusslta", mapping: "thnlulusslta"}, { name: "nemslta", mapping: "nemslta"}, { name: "rangkingslta", mapping: "rangkingslta"}, { name: "noijazahslta", mapping: "noijazahslta"}, { name: "tglijazahslta", mapping: "tglijazahslta"}, { name: "nmortu", mapping: "nmortu"}, { name: "idpekerjaanortu", mapping: "idpekerjaanortu"},//3 { name: "alamatortu", mapping: "alamatortu"}, { name: "nmtptbekerjamhs", mapping: "nmtptbekerjamhs"}, { name: "idpekerjaanmhs", mapping: "idpekerjaanmhs"}, //ds pekerjaan ortu { name: "alamatkerjamhs", mapping: "alamatkerjamhs"}, { name: "kdptasal", mapping: "kdptasal"}, //nmptasal { name: "nmptasal", mapping: "nmptasal"}, { name: "kdkotkabptasal", mapping: "kdkotkabptasal"},//nmkotkabpttampil nmpropinsipttampil { name: "nmkotkabpttampil", mapping: "nmkotkabpttampil"}, { name: "nmpropinsipttampil", mapping: "nmpropinsipttampil"}, { name: "fakultasasal", mapping: "fakultasasal"}, { name: "kdprodiasal", mapping: "kdprodiasal"}, { name: "nmprodiasal", mapping: "nmprodiasal"}, { name: "idjenpdkpendaftar", mapping: "idjenpdkpendaftar"}, { name: "nimasal", mapping: "nimasal"},//4 { name: "idstakreditasi", mapping: "idstakreditasi"}, { name: "email", mapping: "email"}, { name: "password", mapping: "nopmb"}, { name: "setbiayapmb", mapping: "setbiayapmb"}, { name: "nobuktitransfer", mapping: "nobuktitransfer"}, { name: "tgltransfer", mapping: "tgltransfer"}, { name: "antransfer", mapping: "antransfer"}, { name: "idsbrinfo", mapping: "idsbrinfo"},//5 { name: "idrekpmb", mapping: "idrekpmb"}, { name: "nmrekomendasi", mapping: "nmrekomendasi"}, { name: "idalasanpendaftar", mapping: "idalasanpendaftar"}, { name: "ketlainnya", mapping: "ketlainnya"}//, // { name: "kdmenuweb", mapping: "kdmenuweb"}, // // { name: "kdmenuweb", mapping: "kdmenuweb"}, // { name: "kdmenuweb", mapping: "kdmenuweb"}, //53 // { name: "kdmenuweb", mapping: "kdmenuweb"}, ] }), items: [ { xtype: 'fieldset', title: 'Pendaftaran', //height: 170, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [ { xtype: 'combo', fieldLabel: 'Jadwal PMB', labelStyle: 'text-align: right;width:160px;',//labelStyle: 'width:160px', width:380, store:ds_jadwalpmb, name: 'nmjadwalpmb', id: 'nmjadwalpmb', editable: false, triggerAction: 'all', valueField: 'kdjadwalpmb', displayField: 'nmjadwalpmb', forceSelection: true, submitValue: true, hiddenName: 'h_kdjadwalpmb', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true },{ xtype: 'combo', fieldLabel: 'Status Pendaftar', labelStyle: 'text-align: right;width:160px;', width:380, store:ds_stmskmhs, name: 'idstmskmhs', id: 'idstmskmhs', triggerAction: 'all', editable: false, valueField: 'idstmskmhs', displayField: 'nmstmskmhs', forceSelection: true, submitValue: true, hiddenName: 'h_idstmskmhs', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true },{ xtype: 'textfield', fieldLabel: 'Program Studi', labelStyle: 'text-align: right;', hidden:true },{ xtype: 'compositefield', border:false, fieldLabel: 'Pilihan 1', labelStyle: 'text-align: right;width:160px;', width:390, items: [ { xtype: 'combo', store:ds_prodi, name: 'kdprodi1', id: 'kdprodi1', triggerAction: 'all', editable: false, valueField: 'kdprodi', displayField: 'nmprodi', forceSelection: true, submitValue: true, hiddenName: 'h_kdprodi1', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true }, { xtype: 'combo', store:ds_klsmhs, name: 'idklsmhs1', id: 'idklsmhs1', triggerAction: 'all', editable: false, valueField: 'kdklsmhs', displayField: 'nmklsmhs', forceSelection: true, submitValue: true, hiddenName: 'h_kdklsmhs', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true } ] },{ xtype: 'compositefield', border:false, fieldLabel: 'Pilihan 2', labelStyle: 'text-align: right;width:160px;', width:390, items: [ { xtype: 'combo', // labelStyle: 'text-align: right;width:160px;', store:ds_prodi, name: 'kdprodi2', id: 'kdprodi2', triggerAction: 'all', editable: false, valueField: 'kdprodi', displayField: 'nmprodi', forceSelection: true, submitValue: true, hiddenName: 'h_kdprodi2', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true }, { xtype: 'combo', store:ds_klsmhs, name: 'idklsmhs2', id: 'idklsmhs2', triggerAction: 'all', editable: false, //disabled :true, valueField: 'kdklsmhs', displayField: 'nmklsmhs', forceSelection: true, submitValue: true, hiddenName: 'h_kdklsmhs', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true }] }] }] },{ xtype: 'fieldset', title: 'Data Pribadi (diisi Lengkap)', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', labelStyle: 'text-align: right;width:160px;', fieldLabel: 'Nama', id: 'nama', width: 380, allowBlank: false, //disabled: true, listeners: {} },{ xtype: 'combo', store: [['L','Laki-laki'],['P','Perempuan']], fieldLabel: 'Jenis Kelamin', labelStyle: 'text-align: right;width:160px;', allowBlank: false, // width: 200, name: 'kdjk', id: 'kdjk', triggerAction: 'all', editable: false, valueField: 'kdjk', displayField: 'nmjk', forceSelection: true, submitValue: true, hiddenName: 'h_jk', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true }, { xtype: 'textfield', fieldLabel: 'Tempat Lahir', labelStyle: 'text-align: right;width:160px;', id: 'tptlahir', allowBlank: false, width: 380 }, { xtype: 'datefield', fieldLabel: 'Tanggal Lahir', labelStyle: 'text-align: right;width:160px;', id: 'tgllahir' }, { xtype: 'textfield', fieldLabel: 'Alamat Asal', labelStyle: 'text-align: right;width:160px;', id: 'alamatasal', width: 380 }, { xtype: 'textfield', fieldLabel: 'Kelurahan Asal', labelStyle: 'text-align: right;width:160px;', id: 'kelurahanasal', width: 380 }, { xtype: 'textfield', fieldLabel: 'Kecamatan Asal', labelStyle: 'text-align: right;width:160px;', id: 'kecamatanasal', width: 380 }, { xtype: 'compositefield', name: 'comp_kota', fieldLabel: 'Kota/Kabupaten', labelStyle: 'text-align: right;width:160px;', width:390, id: 'comp_kota', items: [ { xtype: 'textfield', id: 'kdkotkabasal', name: 'kdkotkabasal', hidden:true, width: 100, emptyText:'Pilih...', listeners: { } }, { xtype: 'textfield', id: 'nmkotkabtampil', name: 'nmkotkabtampil', width: 355, emptyText:'Pilih...', listeners: { } }, { xtype: 'button', text: ' ... ', id: 'btn_data_kota', width: 3, handler: function() { find_x("Data Kota/Kabupaten", 4); } } ] }, { xtype: 'textfield', fieldLabel: 'Propinsi', labelStyle: 'text-align: right;width:160px;', id: 'nmpropinsitampil', disabled:true, width: 380 }, { xtype: 'textfield', fieldLabel: 'Alamat Surat', labelStyle: 'text-align: right;width:160px;', id: 'alamatsurat', width: 380 }, { xtype: 'textfield', fieldLabel: 'Kodepos', labelStyle: 'text-align: right;width:160px;', id: 'kdpossurat', width: 100 }, { xtype: 'textfield', fieldLabel: 'No. Telepon / HP', labelStyle: 'text-align: right;width:160px;', id: 'notelp', width: 380 }] }] },{ xtype: 'fieldset', title: 'Data Kelulusan SLTA (diisi Lengkap)', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'Nama Sekolah', labelStyle: 'text-align: right;width:160px;', id: 'nmslta', width: 380, allowBlank: false, //disabled: true, listeners: {} }, { xtype: 'compositefield', name: 'comp_kota_slta', fieldLabel: 'Kota/Kabupaten', labelStyle: 'text-align: right;width:160px;', width:390, id: 'comp_kota_slta', items: [ { xtype: 'textfield', id: 'kdkotkabslta', name: 'kdkotkabslta', hidden:true, width: 100, emptyText:'Pilih...', listeners: { } }, { xtype: 'textfield', id: 'nmkotkabsltatampil', name: 'nmkotkabsltatampil', width: 355, emptyText:'Pilih...', listeners: { } }, { xtype: 'button', text: ' ... ', id: 'btn_data_kota_slta', width: 3, handler: function() { find_x("Data Kota/Kabupaten SLTA", 4); } } ] }, { xtype: 'textfield', fieldLabel: 'Propinsi', labelStyle: 'text-align: right;width:160px;', id: 'nmpropinsisltatampil', disabled:true, width: 380 },{ xtype: 'combo', store: [['1','2013'],['2','2014'], ['3','2015'],['4','2016'], ['5','2017'],['6','2018'], ['7','2019'],['8','2020'], ['9','2021'],['10','2022'], ['11','2023'],['12','2024'], ['13','2025'],['14','2026'], ['15','2027'],['16','2028'], ['17','2029'],['18','2030']], fieldLabel: 'Tahun Lulus', labelStyle: 'text-align: right;width:160px;', allowBlank: false, width: 100, name: 'thnlulusslta', id: 'thnlulusslta', triggerAction: 'all', editable: false, valueField: 'idthnlulusslta', displayField: 'nmthnlulusslta', forceSelection: true, submitValue: true, hiddenName: 'h_thnlulus', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true }, { xtype: 'textfield', fieldLabel: 'NEM', labelStyle: 'text-align: right;width:160px;', id: 'nemslta', width: 100 }, { xtype: 'textfield', fieldLabel: 'Rangking', labelStyle: 'text-align: right;width:160px;', id: 'rangkingslta', width: 100 }, { xtype: 'textfield', fieldLabel: 'Nomor Ijazah', labelStyle: 'text-align: right;width:160px;', id: 'noijazahslta', width: 380 }, { xtype: 'datefield', fieldLabel: 'Tanggal Ijazah', labelStyle: 'text-align: right;width:160px;', id: 'tglijazahslta', width: 380 }] }] },{ xtype: 'fieldset', title: 'Data Orang Tua/Wali', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [ { xtype: 'textfield', fieldLabel: 'Nama Orang Tua/Wali', labelStyle: 'text-align: right;width:160px;', id: 'nmortu', width: 380 },{ xtype: 'combo', store: ds_pekerjaanortu, fieldLabel: 'Pekerjaan', labelStyle: 'text-align: right;width:160px;', allowBlank: false, width: 100, name: 'idpekerjaanortu', id: 'idpekerjaanortu', triggerAction: 'all', editable: false, valueField: 'idpekerjaanortu', displayField: 'nmpekerjaanortu', forceSelection: true, submitValue: true, hiddenName: 'h_pekerjaanortu', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true },{ xtype: 'textfield', fieldLabel: 'Alamat', labelStyle: 'text-align: right;width:160px;', id: 'alamatortu', width: 380 }, ]} ]}, { xtype: 'fieldset', title: 'Data Pekerjaan Mahasiswa( diisi oleh Pendaftar dengan status Karyawan/Pegawai)', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [ { xtype: 'textfield', fieldLabel: 'Nama Instansi', labelStyle: 'text-align: right;width:160px;', id: 'nmtptbekerjamhs', width: 380 },{ xtype: 'combo', store: ds_pekerjaanortu, fieldLabel: 'Pekerjaan', labelStyle: 'text-align: right;width:160px;', allowBlank: false, width: 100, name: 'idpekerjaanmhs', id: 'idpekerjaanmhs', triggerAction: 'all', editable: false, valueField: 'idpekerjaanortu', displayField: 'nmpekerjaanortu', forceSelection: true, submitValue: true, hiddenName: 'h_pekerjaanortu', listeners: {}, typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true },{ xtype: 'textfield', fieldLabel: 'Alamat', labelStyle: 'text-align: right;width:160px;', id: 'alamatkerjamhs', width: 380 }, ]} ]}, { xtype: 'fieldset', title: 'Data Pendidikan Tinggi Yang Pernah Ditempuh\n\ ( diisi oleh Pendaftar dengan status Pindahan/Melanjutkan)', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [ { xtype: 'compositefield', name: 'comp_PT_asal', fieldLabel: 'Nama Perguruan Tinggi Asal', labelStyle: 'text-align: right;width:160px;', width:390, id: 'comp_PT_asal', items: [ { xtype: 'textfield', id: 'kdptasal', name: 'kdptasal', // hidden:true, width: 125, emptyText:'Pilih...', listeners: { } }, { xtype: 'textfield', id: 'nmptasal', name: 'nmptasal', width: 230, emptyText:'Pilih...', listeners: { } }, { xtype: 'button', text: ' ... ', id: 'btn_data_PT_asal', width: 3, handler: function() { find_x("Data Perguruan Tinggi", 5); } } ] }, { xtype: 'compositefield', name: 'comp_kota_pt', fieldLabel: 'Kota/Kabupaten', labelStyle: 'text-align: right;width:160px;', width:390, id: 'comp_kota_pt', items: [ { xtype: 'textfield', id: 'kdkotkabptasal', name: 'kdkotkabptasal', hidden:true, width: 100, emptyText:'Pilih...', listeners: { } }, { xtype: 'textfield', id: 'nmkotkabpttampil', name: 'nmkotkabpttampil', width: 360, emptyText:'Pilih...', listeners: { } }, { xtype: 'button', text: ' ... ', id: 'btn_data_kota_pt', width: 3, handler: function() { find_x("Data Kota/Kabupaten Perguruan Tinggi", 4); } } ] },{ xtype: 'textfield', fieldLabel: 'Propinsi', labelStyle: 'text-align: right;width:160px;', id: 'nmpropinsipttampil', disabled:true, width: 380 },{ xtype: 'textfield', fieldLabel: 'Fakultas', labelStyle: 'text-align: right;width:160px;', id: 'fakultasasal', width: 380 },{ xtype: 'compositefield', name: 'comp_prodi', fieldLabel: 'Program Studi/Jurusan', labelStyle: 'text-align: right;width:160px;', width:390, id: 'comp_prodi', items: [ { xtype: 'textfield', id: 'kdprodiasal', name: 'kdprodiasal', //hidden:true, width: 125, emptyText:'Pilih...', listeners: { } }, { xtype: 'textfield', id: 'nmprodiasal', name: 'nmprodiasal', width: 230, emptyText:'Pilih...', listeners: { } }, { xtype: 'button', text: ' ... ', id: 'btn_data_prodiasal', width: 3, handler: function() { find_x("Data Program Studi",6); } } ] }, { xtype: 'combo', fieldLabel: 'Jenjang Pendidikan', store:ds_jenpdkpendaftar, name: 'idjenpdkpendaftar', id: 'idjenpdkpendaftar', triggerAction: 'all', editable: false, //disabled :true, valueField: 'idjenpdkpendaftar', displayField: 'nmjenpdkpendaftar', forceSelection: true, submitValue: true, hiddenName: 'h_enpdkpendaftar', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true },{ xtype: 'textfield', fieldLabel: 'NPM/NIM', labelStyle: 'text-align: right;width:160px;', id: 'nimasal', width: 380 },{ xtype: 'combo', fieldLabel: 'Peringkat Akreditasi', store:ds_stakreditasi, name: 'idstakreditasi', id: 'idstakreditasi', triggerAction: 'all', editable: false, //disabled :true, valueField: 'idstakreditasi', displayField: 'nmstakreditasi', forceSelection: true, submitValue: true, hiddenName: 'h_nmstakreditasi', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true } ]} ]}, { xtype: 'fieldset', title: 'Login PMB Online', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [ { xtype: 'textfield', fieldLabel: 'E-Mail', labelStyle: 'text-align: right;width:160px;', id: 'email', width: 380 },{ xtype: 'textfield', fieldLabel: 'Password', labelStyle: 'text-align: right;width:160px;', id: 'password', width: 380 } ]} ]}, { xtype: 'fieldset', title: 'Pembayaran PMB via Transfer', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [ { xtype: 'textfield', fieldLabel: 'Biaya yang harus dibayar', labelStyle: 'text-align: right;width:160px;', id: 'setbiayapmb', width: 380 },{ xtype: 'textfield', fieldLabel: 'No. Bukti Transfer', labelStyle: 'text-align: right;width:160px;', id: 'nobuktitransfer', width: 380 },{ xtype: 'datefield', fieldLabel: 'Tanggal Transfer', labelStyle: 'text-align: right;width:160px;', id: 'tgltransfer' },{ xtype: 'textfield', fieldLabel: 'Atas Nama', labelStyle: 'text-align: right;width:160px;', id: 'antransfer', width: 380 } ]} ]},{ xtype: 'fieldset', title: 'Informasi Lainnya', //height: 400, labelAlign: 'top', width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [ { xtype: 'combo', fieldLabel: 'Informasi Unla didapat dari', store:ds_sbrinfo, name: 'idsbrinfo', id: 'idsbrinfo', triggerAction: 'all', editable: false, width: 300,//disabled :true, valueField: 'idsbrinfo', displayField: 'nmsbrinfo', forceSelection: true, submitValue: true, hiddenName: 'h_nmsbrinfo', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true }, { xtype: 'combo', fieldLabel: 'Contact Person, yang merekomendasikan anda masuk UNLA', store:ds_rekpmb, name: 'idrekpmb', id: 'idrekpmb', triggerAction: 'all', editable: false, width: 300,//disabled :true, valueField: 'idrekpmb', displayField: 'nmrekpmb', forceSelection: true, submitValue: true, hiddenName: 'h_idrekpmb', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true },{ xtype: 'textfield', fieldLabel: 'Nama', labelStyle: 'text-align: right;width:160px;', id: 'nmrekomendasi', width: 380 },{ xtype: 'combo', fieldLabel: 'Alasan memilih UNLA', store:ds_alasanpendaftar, name: 'idalasanpendaftar', id: 'idalasanpendaftar', triggerAction: 'all', editable: false, width: 300,//disabled :true, valueField: 'idalasanpendaftar', displayField: 'nmalasanpendaftar', forceSelection: true, submitValue: true, hiddenName: 'h_idalasanpendaftar', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:true },{ xtype: 'textfield', fieldLabel: 'Lain -lain', labelStyle: 'text-align: right;width:160px;', id: 'ketlainnya', width: 380 } ]} ]} ], buttons: [{ id:'btn_simpan', text: 'Simpan', handler: function() { if(id_module!=''){ ubah_grid('form_bp_general'); }else{ simpan_grid('form_bp_general'); } } }, { text: 'Kembali', handler: function() { win.close(); } } ],listeners:{ afterrender: module_afterrender } }); function module_afterrender(){ if(id_module!=""){ form_bp_general.getForm().load({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/grid', params:{ id_module:id_module }, success: function(form, action){ }, failure: function(form, action){ Ext.MessageBox.alert('Failure', 'Fail to get data'); }, waitMsg:'Loading..' }); } } var win = new Ext.Window({ title: titlex, layout: "fit", modal: true, resizable: true, maximizable:true, items: [form_bp_general] }).show(); function simpan_grid(namaForm) { var form_nya = Ext.getCmp(namaForm); form_nya.getForm().submit({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/save', method: 'POST', params:{ // matas:Ext.getCmp('menuatas').getValue(), // mbawah:Ext.getCmp('menubawah').getValue(), // mkanan:Ext.getCmp('menukanan').getValue(), // mkiri:Ext.getCmp('menukiri').getValue() }, success: function(response) { var r = Ext.decode(response.responseText); if(r.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'; } }); } Ext.MessageBox.alert("Informasi", "Simpan Data Berhasil"); if(titlex!= "Pendaftaran Mahasiswa Baru"){ ds.load(); } form_bp_general.getForm().reset(); Ext.getCmp('form_bp_general').enable(); Ext.getCmp('btn_simpan').enable(); // Ext.getCmp('btn_hapus').disable(); // Ext.getCmp('btn_ubah').disable(); }, failure: function() { Ext.MessageBox.alert("Informasi", "Simpan Data Gagal cuy"); } }); } function ubah_grid(namaForm) { // var msgplus; // if(kodex!=Ext.getCmp('kode').getValue()){ // msgplus='