function f_verifikasipmb_form(id_module, ds, titlex) { var ds_prodiall = store_prodiall(); var ds_klsmhs = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/get_klsmhs_bayar', method: 'POST' }), totalProperty: 'results', root: 'data', autoLoad: false, fields: [{ name: 'idklsmhs', mapping: 'idklsmhs' },{ name: 'nmklsmhs', mapping: 'nmklsmhs' }] }); var ds_pekerjaanortu = store_pekerjaanortu(); var ds_pekerjaanmhs = store_pekerjaanmhs(); var ds_jenpdkpendaftar = store_jenpdkpendaftar(); var ds_stakreditasi = store_stakreditasi(); var ds_sbrinfo = store_sbrinfo(); var ds_rekpmb = store_rekpmb(); var ds_alasanpendaftar = store_alasanpendaftar(); var ds_stmskmhs_pmb = store_stmskmhs_pmb(); var ds_tahun = store_tahun(); var form_bp_general = new Ext.form.FormPanel({ //title: "Pendaftaran Mahasiswa Baru", border: false, id: 'form_bp_general', //renderTo: 'div_pmbform', //frame:true, labelAlign: 'left', buttonAlign: 'left', bodyStyle: 'padding:10px 3px 3px 5px', // atas, kanan, bawah, kiri //monitorValid: true, //height: 1850, autoHeight:true, width: 600, autoScroll: true, layout: 'form', reader: new Ext.data.JsonReader({ root: 'data', totalProperty: 'results', id: 'id', fields: [{ name: "nopmb", mapping: "nopmb" }, { name: "nokuitansipmb", mapping: "nokuitansipmb" }, { name: "namapendaftar", mapping: "namapendaftar" }, { name: "idjadwalpmb", mapping: "idjadwalpmb" }, { name: "kdprodi1", mapping: "kdprodi1" }, { name: "idstmskmhs", mapping: "idstmskmhs" }, { name: "nmstmskmhs", mapping: "nmstmskmhs" }, { name: "idklsmhs1", mapping: "idklsmhs1" }, { name: "kdprodi2", mapping: "kdprodi2" }, { name: "idklsmhs2", mapping: "idklsmhs2" }, { name: "idpilihprodi", mapping: "idpilihprodi" }, //============== { name: "noktp", mapping: "noktp" }, { 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" }, { name: "nmkotkabtampil", mapping: "nmkotkabtampil" }, { name: "nmpropinsitampil", mapping: "nmpropinsitampil" }, { name: "alamatsurat", mapping: "alamatsurat" }, { name: "kdpossurat", mapping: "kdpossurat" }, { name: "notelp", mapping: "notelp" }, //============== { name: "nmslta", mapping: "nmslta" }, { name: "kdkotkabslta", mapping: "kdkotkabslta" }, { 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" }, { name: "alamatortu", mapping: "alamatortu" }, { name: "nmortuayah", mapping: "nmortuayah" }, { name: "idpekerjaanortuayah", mapping: "idpekerjaanortuayah" }, { name: "alamatortuayah", mapping: "alamatortuayah" }, //============== { name: "nmtptbekerjamhs", mapping: "nmtptbekerjamhs" }, { name: "idpekerjaanmhs", mapping: "idpekerjaanmhs" }, { name: "alamatkerjamhs", mapping: "alamatkerjamhs" }, //============== { name: "kdptasal", mapping: "kdptasal" }, { name: "nmptasal", mapping: "nmptasal" }, { name: "kdkotkabptasal", mapping: "kdkotkabptasal" }, { 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" }, { name: "idstakreditasi", mapping: "idstakreditasi" }, //============== { name: "idsbrinfo", mapping: "idsbrinfo" }, { name: "idrekpmb", mapping: "idrekpmb" }, { name: "nmrekomendasi", mapping: "nmrekomendasi" }, { name: "idalasanpendaftar", mapping: "idalasanpendaftar" }, { name: "ketlainnya", mapping: "ketlainnya" }, { name: "sumbangansukarela", mapping: "sumbangansukarela" }, { name: "idjnskls", mapping: "idjnskls" } ] }), items: [{ xtype: 'fieldset', title: 'Pendaftaran', //height: 170, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [ { xtype: 'textfield', fieldLabel: 'No Kuitansi PMB', labelStyle: 'text-align: right;width:160px;', id: 'nokuitansipmb', readOnly: true, width: 380 }, { xtype: 'textfield', fieldLabel: 'No PMB', labelStyle: 'text-align: right;width:160px;', id: 'nopmb', readOnly: true, width: 380 }, { xtype: 'textfield', fieldLabel: 'Nama Pendaftar', labelStyle: 'text-align: right;width:160px;', id: 'namapendaftar', readOnly: true, width: 380 }, { xtype: 'textfield', fieldLabel: 'Jadwal PMB', labelStyle: 'text-align: right;width:160px;', id: 'idjadwalpmb', readOnly: true, width: 380 }, { xtype: 'textfield', fieldLabel: '', labelStyle: 'text-align: right;width:160px;', id: 'idstmskmhs', hidden: true, width: 380, validator:function(value){ if(value != '2'){ Ext.getCmp('nmslta').allowBlank = false; Ext.getCmp('kdkotkabslta').allowBlank = false; Ext.getCmp('nmkotkabsltatampil').allowBlank = false; Ext.getCmp('thnlulusslta').allowBlank = false; Ext.getCmp('nemslta').allowBlank = false; //Ext.getCmp('rangkingslta').allowBlank = false; temporary //Ext.getCmp('noijazahslta').allowBlank = false; temporary Ext.getCmp('tglijazahslta').allowBlank = false; Ext.getCmp('fs_pendidikan_slta').show(); Ext.getCmp('fs_pendidikan_pt').hide(); } else { Ext.getCmp('nmslta').allowBlank = true; Ext.getCmp('kdkotkabslta').allowBlank = true; Ext.getCmp('nmkotkabsltatampil').allowBlank = true; Ext.getCmp('thnlulusslta').allowBlank = true; Ext.getCmp('nemslta').allowBlank = true; //Ext.getCmp('rangkingslta').allowBlank = true; temporary //Ext.getCmp('noijazahslta').allowBlank = true; temporary Ext.getCmp('tglijazahslta').allowBlank = true; Ext.getCmp('fs_pendidikan_slta').hide(); Ext.getCmp('fs_pendidikan_pt').show(); } } }, /* { xtype: 'textfield', fieldLabel: 'Status Pendaftar', labelStyle: 'text-align: right;width:160px;', id: 'nmstmskmhs', readOnly: true, width: 380 } */ { xtype: 'combo', fieldLabel: 'Status Pendaftar', store: ds_stmskmhs_pmb, triggerAction: 'all', editable: false, valueField: 'idstmskmhs', displayField: 'nmstmskmhs', forceSelection: true, submitValue: true, hiddenName: 'h_idstmskmhs', allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, id: 'idstmskmhs', name: 'idstmskmhs', labelStyle: 'text-align: right;width:160px;', anchor: '50%', listeners: { select: function() { setbarupindah(); } } }, ] }] }, { xtype: 'fieldset', title: 'Program Studi (diisi Lengkap)', //height: 400, width: 575, items: [{ xtype: 'compositefield', border: false, id: 'cmp1', name: 'cmp1', fieldLabel: 'Pilihan 1**', labelStyle: 'text-align: right;width:160px;', width: 390, items: [{ xtype: 'combo', store: ds_prodiall, name: 'kdprodi1', id: 'kdprodi1', triggerAction: 'all', editable: false, valueField: 'kdprodi', displayField: 'nmprodi', forceSelection: true, submitValue: true, hiddenName: 'h_kdprodi1', allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, listeners: { select: function() { Ext.Ajax.request({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/getklsprodi', method: 'POST', params: { prodi: Ext.getCmp("kdprodi1").getValue() }, success: function(response) { //Ext.getCmp("idklsmhs1").setValue(response.responseText); } }); } } }, { xtype: 'combo', store: ds_klsmhs, name: 'idklsmhs1', id: 'idklsmhs1', triggerAction: 'all', editable: false, valueField: 'idklsmhs', displayField: 'nmklsmhs', forceSelection: true, submitValue: true, hiddenName: 'h_kdklsmhs1', allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, listeners: { } }] }, { xtype: 'compositefield', border: false, id: 'cmp2', name: 'cmp2', fieldLabel: 'Pilihan 2', labelStyle: 'text-align: right;width:160px;', width: 390, items: [{ xtype: 'combo', // labelStyle: 'text-align: right;width:160px;', store: ds_prodiall, name: 'kdprodi2', id: 'kdprodi2', triggerAction: 'all', editable: false, valueField: 'kdprodi', displayField: 'nmprodi', forceSelection: true, submitValue: true, hiddenName: 'h_kdprodi2', allowBlank: true, listeners: { select: function() { Ext.Ajax.request({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/getklsprodi', method: 'POST', params: { prodi: Ext.getCmp("kdprodi2").getValue() }, success: function(response) { //Ext.getCmp("idklsmhs2").setValue(response.responseText); } }); } }, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'combo', store: ds_klsmhs, name: 'idklsmhs2', id: 'idklsmhs2', triggerAction: 'all', editable: false, valueField: 'idklsmhs', displayField: 'nmklsmhs', forceSelection: true, submitValue: true, hiddenName: 'h_kdklsmhs2', allowBlank: true, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, listeners: { } }] }, { xtype: 'textfield', fieldLabel: '', labelStyle: 'text-align: right;width:160px;', id: 'idpilihprodi', hidden: true, readOnly: true, width: 380, validator:function(value){ if (value.trim() == "1") { Ext.getCmp('cmp2').hide(); } else if (value.trim() == "2") { Ext.getCmp('cmp2').show(); } else if (value.trim() == "3") { Ext.getCmp('cmp2').hide(); /* Ext.getCmp('cmp1').show(); Ext.getCmp('cmp2').show(); Ext.getCmp('kdprodi1').allowBlank = false; Ext.getCmp('idklsmhs1').allowBlank = false; Ext.getCmp('kdprodi2').allowBlank = false; Ext.getCmp('idklsmhs2').allowBlank = false; */ } } }] }, { xtype: 'fieldset', title: 'Data Pribadi (diisi Lengkap)', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'No KTP/Paspor', labelStyle: 'text-align: right;width:160px;', id: 'noktp', allowBlank: false, width: 380 }, { 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: 'kdjk', 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: 'container', labelStyle: 'text-align: right;width:160px;', fieldLabel: 'Tanggal Lahir', layout: 'hbox', items: [{ xtype: 'datefield', fieldLabel: 'Tanggal Lahir', labelStyle: 'text-align: right;width:160px;', allowBlank: false, id: 'tgllahir' },{ xtype: 'label', margins: '0 0 0 5', text: '(Format: mm/dd/yyyy)' }] }, { xtype: 'textfield', fieldLabel: 'Alamat Asal', labelStyle: 'text-align: right;width:160px;', id: 'alamatasal', allowBlank: false, width: 380 }, { xtype: 'textfield', fieldLabel: 'Kelurahan Asal', labelStyle: 'text-align: right;width:160px;', id: 'kelurahanasal', allowBlank: false, width: 380 }, { xtype: 'textfield', fieldLabel: 'Kecamatan Asal', labelStyle: 'text-align: right;width:160px;', id: 'kecamatanasal', allowBlank: false, 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', allowBlank: false, hidden: true, width: 100, emptyText: 'Pilih...', listeners: {} }, { xtype: 'textfield', id: 'nmkotkabtampil', name: 'nmkotkabtampil', allowBlank: false, readOnly: true, width: 355, emptyText: 'Pilih...', listeners: {} }, { xtype: 'button', //text: ' ... ', iconCls: 'silk-find', 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', allowBlank: false, disabled: true, width: 380 }, { xtype: 'textfield', fieldLabel: 'Alamat Surat', labelStyle: 'text-align: right;width:160px;', allowBlank: false, id: 'alamatsurat', width: 380 }, { xtype: 'textfield', fieldLabel: 'Kodepos', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, temporary id: 'kdpossurat', width: 100 }, { xtype: 'textfield', fieldLabel: 'No. Telepon / HP', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, temporary id: 'notelp', width: 380 }] }] }, { xtype: 'fieldset', title: 'Data Kelulusan SLTA (diisi Lengkap)', id: 'fs_pendidikan_slta', name: 'fs_pendidikan_slta', 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, 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: ' ... ', iconCls: 'silk-find', 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: ds_tahun, fieldLabel: 'Tahun Lulus', labelStyle: 'text-align: right;width:160px;', width: 100, name: 'thnlulusslta', id: 'thnlulusslta', triggerAction: 'all', editable: false, valueField: 'tahun', displayField: 'tahun', 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, hidden: false, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'Nama Ibu', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'nmortu', width: 380 }, { xtype: 'combo', store: ds_pekerjaanortu, fieldLabel: 'Pekerjaan Ibu', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, width: 250, 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 Ibu', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'alamatortu', width: 380 },{ xtype:'panel', height:10 },{ xtype: 'textfield', fieldLabel: 'Nama Ayah', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'nmortuayah', width: 380 }, { xtype: 'combo', store: ds_pekerjaanortu, fieldLabel: 'Pekerjaan Ayah', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, width: 250, name: 'idpekerjaanortuayah', id: 'idpekerjaanortuayah', triggerAction: 'all', editable: false, valueField: 'idpekerjaanortu', displayField: 'nmpekerjaanortu', forceSelection: true, submitValue: true, hiddenName: 'h_pekerjaanortuayah', listeners: {}, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Alamat Ayah', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'alamatortuayah', width: 380 } ] }] }, { xtype: 'fieldset', title: 'Data Pekerjaan Mahasiswa( diisi oleh Pendaftar dengan status Karyawan/Pegawai)', height: 125, hidden: false, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'Nama Instansi', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'nmtptbekerjamhs', width: 380 }, { xtype: 'combo', store: ds_pekerjaanmhs, fieldLabel: 'Pekerjaan', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, width: 250, name: 'idpekerjaanmhs', id: 'idpekerjaanmhs', triggerAction: 'all', editable: false, valueField: 'idpekerjaanmhs', displayField: 'nmpekerjaanmhs', forceSelection: true, submitValue: true, hiddenName: 'h_pekerjaanmhs', listeners: {}, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Alamat', //allowBlank: false, labelStyle: 'text-align: right;width:160px;', id: 'alamatkerjamhs', width: 380 }, ] }] }, { xtype: 'fieldset', title: 'Data Pendidikan Tinggi Yang Pernah Ditempuh ( diisi oleh Pendaftar dengan status Pindahan/Melanjutkan)', id: 'fs_pendidikan_pt', name: 'fs_pendidikan_pt', 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, //allowBlank: true, readOnly:true, width: 125, emptyText: 'Pilih...', listeners: {} }, { xtype: 'textfield', id: 'nmptasal', name: 'nmptasal', //allowBlank: true, //allowblankx, width: 230, emptyText: 'Pilih...', listeners: { change: function(){ // validator: function(value){ Ext.getCmp('kdptasal').setValue('999999'); // } } } }, { xtype: 'button', //text: ' ... ', iconCls: 'silk-find', 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: ' ... ', iconCls: 'silk-find', 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', //allowBlank: true, //allowblankx, disabled: true, width: 380 }, { xtype: 'textfield', fieldLabel: 'Fakultas', //allowBlank: true, //allowblankx, 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, allowBlank: true, //allowblankx, readOnly: true, width: 125, emptyText: 'Pilih...', listeners: {} }, { xtype: 'textfield', id: 'nmprodiasal', name: 'nmprodiasal', //readOnly: true, allowBlank: true, // allowblankx, width: 230, emptyText: 'Pilih...', listeners: { change: function(){ // validator: function(value){ Ext.getCmp('kdprodiasal').setValue('999999'); // } } } }, { xtype: 'button', //text: ' ... ', iconCls: 'silk-find', id: 'btn_data_prodiasal', width: 3, handler: function() { find_x("Data Program Studi Asal", 6); } }] }, { xtype: 'combo', fieldLabel: 'Jenjang Pendidikan', store: ds_jenpdkpendaftar, name: 'idjenpdkpendaftar', id: 'idjenpdkpendaftar', triggerAction: 'all', editable: false, hidden :true, valueField: 'idjenpdkpendaftar', displayField: 'nmjenpdkpendaftar', forceSelection: true, submitValue: true, hiddenName: 'h_jenpdkpendaftar', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, allowBlank: true, //allowblankx, mode: 'local', emptyText: '', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Jenjang Pendidikan', labelStyle: 'text-align: right;width:160px;', disabled: true, id: 'jenjangstudiprodiasal', width: 125 }, { xtype: 'textfield', fieldLabel: 'NPM/NIM', labelStyle: 'text-align: right;width:160px;', allowBlank: true, // allowblankx, 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...', allowBlank: true, //allowblankx, selectOnFocus: true }] }] }, { xtype: 'fieldset', title: 'Informasi Lainnya', //height: 400, labelAlign: 'top', width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'combo', fieldLabel: 'Informasi 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;', //allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'combo', fieldLabel: 'Contact Person, yang merekomendasikan anda masuk Universitas Langlangbuana', 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', //allowBlank: false, emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Nama', // allowBlank: false, labelStyle: 'text-align: right;width:160px;', id: 'nmrekomendasi', width: 380 }, { xtype: 'combo', fieldLabel: 'Alasan memilih Universitas Langlangbuana', 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: {}, //allowBlank: false, 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;', // allowBlank: false, id: 'ketlainnya', width: 380 }] }] }, { xtype: 'fieldset', title: 'Sumbangan Sukarela (Untuk Pendaftar Yang Diterima)', labelAlign: 'right', width: 575, items: [{ xtype: 'numericfield', style: 'text-align: right;', fieldLabel: 'Nominal ', id: 'sumbangansukarela', name: 'sumbangansukarela', maskRe: /[0-9.]/, width: 150, decimalSeparator: ',', decimalPrecision: 0, alwaysDisplayDecimals: true, useThousandSeparator: true, thousandSeparator: '.', allowBlank: true }] }, { xtype: 'fieldset', hidden:true, items:[ { xtype: 'textfield', id: 'kdprodi11', name: 'kdprodi11', hidden: true }, { xtype: 'textfield', id: 'kdprodi22', name: 'kdprodi22', hidden: true }, { xtype: 'textfield', id: 'idjnskls', name: 'idjnskls', hidden: true }] }], 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) { setbarupindah(); ds_klsmhs.setBaseParam('idjnskls', Ext.getCmp('idjnskls').getValue()); ds_klsmhs.load(); }, failure: function(form, action) { setbarupindah(); ds_klsmhs.load(); Ext.MessageBox.alert('Failure', 'Fail to get data'); }, waitMsg: 'Loading..' }); } } function setbarupindah() { var value = Ext.getCmp("idstmskmhs").getValue(); if(value!='2'){ Ext.getCmp('nmslta').allowBlank = false; Ext.getCmp('kdkotkabslta').allowBlank = false; Ext.getCmp('nmkotkabsltatampil').allowBlank = false; Ext.getCmp('thnlulusslta').allowBlank = false; Ext.getCmp('nemslta').allowBlank = false; //Ext.getCmp('rangkingslta').allowBlank = false; temporary //Ext.getCmp('noijazahslta').allowBlank = false; temporary Ext.getCmp('tglijazahslta').allowBlank = false; Ext.getCmp('fs_pendidikan_slta').show(); Ext.getCmp('fs_pendidikan_pt').hide(); Ext.getCmp('fs_pendidikan_slta').enable(); Ext.getCmp('fs_pendidikan_pt').enable(); } else if(value=='2'){ Ext.getCmp('nmslta').allowBlank = true; Ext.getCmp('kdkotkabslta').allowBlank = true; Ext.getCmp('nmkotkabsltatampil').allowBlank = true; Ext.getCmp('thnlulusslta').allowBlank = true; Ext.getCmp('nemslta').allowBlank = true; //Ext.getCmp('rangkingslta').allowBlank = true; temporary //Ext.getCmp('noijazahslta').allowBlank = true; temporary Ext.getCmp('tglijazahslta').allowBlank = true; Ext.getCmp('fs_pendidikan_slta').hide(); Ext.getCmp('fs_pendidikan_pt').show(); Ext.getCmp('fs_pendidikan_slta').enable(); Ext.getCmp('fs_pendidikan_pt').enable(); } else { Ext.getCmp('fs_pendidikan_slta').disable(); Ext.getCmp('fs_pendidikan_pt').disable(); } } function simpan_grid(namaForm) { var form_nya = Ext.getCmp(namaForm); form_nya.getForm().submit({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/update', method: 'POST', params:{ psumbangansukarela:Ext.getCmp('sumbangansukarela').getValue() }, success: function() { Ext.MessageBox.alert("Informasi", "Simpan Data Berhasil"); }, failure: function() { Ext.MessageBox.alert("Informasi", "Simpan Data Gagal"); }, waitMsg: 'Menyimpan Data...' }); } var fPanel = new Ext.Panel({ id: "pmbFormContainer", title: "Pendaftaran Mahasiswa Baru", renderTo: "div_pmbform", autoCreateViewPort: false, //height: 1900, width: 700, frame:'true', buttonAlign: 'left', /*layout: { type: "hbox", align: "stretch" },*/ listeners: { beforerender: function () { //Ext.getCmp("pmbFormContainer").setHeight(Ext.getElementById("div_pmbform").getHeight()); Ext.getCmp("pmbFormContainer").setHeight(document.getElementById("div_pmbform").clientHeight); Ext.getCmp("pmbFormContainer").doLayout(); Ext.EventManager.onWindowResize(function () { //Ext.getCmp("pmbFormContainer").setHeight(Ext.getElementById("div_pmbform").getHeight()); Ext.getCmp("pmbFormContainer").setHeight(document.getElementById("div_pmbform").clientHeight); Ext.getCmp("pmbFormContainer").doLayout(); }); } }, items: [form_bp_general], tbar:[{ id: 'btn_simpan1', text: 'Simpan', align:'left', iconCls: 'silk-save', handler: function() { if (id_module != '') { simpan_grid('form_bp_general'); } } }], buttons: [{ id: 'btn_simpan2', text: 'Simpan', align:'left', iconCls: 'silk-save', handler: function() { if (id_module != '') { simpan_grid('form_bp_general'); } } }], }); //fPanel.render(document.getElementById("div_pmbform")); }