function getMhsPersonal(){ /** DATA STORES */ var ds_gender = store_gender(); var ds_religion = store_religion(); var ds_goldarah = store_goldarah(); var ds_wn = store_wn(); /** FORM PERSONAL */ var fPersonal = { //new Ext.form.FormPanel({ xtype: 'panel', //'form', id: 'content.personal', layout: 'form', margin: '0 0 10', defaults: { labelWidth: 120, labelAlign: 'right' }, items: [{ xtype: 'fieldset', //height: 250, flex: 1, title: 'Personal', //defaultType: 'textfield', layout: 'form', defaults: { labelWidth: 120, labelAlign: 'right' }, items: [{ xtype: 'textfield', id: 'tf.id-mhs', fieldLabel: 'Id Mahasiswa', submitValue: true, hidden:true },{ xtype: 'textfield', id: 'tf.npm-mhs', maxLength : 14, minLength : 14, fieldLabel: 'NPM', //automatis terisi saat isi pendaftaran (prodi, thmasuk, stawal) submitValue: true, //isDirty: function() { return true;}, width: 250, //allowBlank: false },/*{xtype: 'textfield', id: 'tf.noktp-mhs', fieldLabel: 'No. KTP', mark: '*', width: 250 */RH.FTextField({ id: 'tf.noktp-mhs', label: 'No. KTP', mark: '*', width:250, }), /*{ xtype: 'textfield', id: 'tf.nama-mhs', fieldLabel: 'Nama Mahasiswa', submitValue: true, width: 550, allowBlank: false },*/ RH.FTextField({ id: 'tf.nama-mhs', label: 'Nama Mahasiswa', mark: '*', width:550, }), { xtype: 'compositefield', fieldLabel: '', items: [{ xtype: 'combo', id: 'cb.gender-mhs', fieldLabel: 'Jenis Kelamin', store: ds_gender, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:false, //false spy ga fokus setelah dipilih width: 250, allowBlank: true, editable: false, }, { xtype: 'label', text: '*', style:'text-align: right;color: red;' } ] },{ xtype: 'textfield', id: 'tf.tplahir-mhs', fieldLabel: 'Tempat Lahir', width: 550, //allowBlank: false },{ xtype: 'compositefield', fieldLabel: '', items: [{ xtype: 'datefield', id: 'df.tglahir-mhs', fieldLabel: 'Tanggal Lahir', value: new Date(), width: 250 }, { xtype: 'label', text: '*', style:'text-align: right;color: red;' } ] }, { xtype: 'combo', id: 'cb.agama-mhs', fieldLabel: 'Agama', store: ds_religion, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local',//'remote', emptyText:'Pilih...', selectOnFocus:false, //false spy ga fokus setelah dipilih width: 250, editable: false, //allowBlank: false, }, { xtype: 'combo', id: 'cb.goldarah-mhs', fieldLabel: 'Golongan Darah', store: ds_goldarah, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local',//'remote', emptyText:'Pilih...', selectOnFocus:false, width: 100, editable: false, //allowBlank: false, }, { xtype: 'combo', id: 'cb.wn-mhs', fieldLabel: 'Kewarganegaraan', store: ds_wn, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local',//'remote', emptyText:'Pilih...', selectOnFocus:false, width: 250, editable: false, //allowBlank: false, }, { xtype: 'textfield', id: 'tf.telp-mhs', fieldLabel: 'No. Telp. Rumah', width: 300, allowBlank: true }, { xtype: 'textfield', id: 'tf.hp-mhs', fieldLabel: 'No. Handphone', width: 300, allowBlank: true }] }, { xtype: 'fieldset', //height: 250, collapsible: true, flex: 1, title: 'Alamat Asal', defaultType: 'textfield', //defaultWidth: 300, defaults: { labelWidth: 120, width: 300, labelAlign: 'right' }, items: [{ id: 'tf.alamat_asal-mhs', fieldLabel: 'Alamat', width: 550, //allowBlank: false }, { id: 'tf.kel_asal-mhs', fieldLabel: 'Kelurahan', allowBlank: true }, { id: 'tf.kec_asal-mhs', fieldLabel: 'Kecamatan', allowBlank: true }, RH.Lookup2Field({ label: 'Kota/Kabupaten', codeId:'lu.kdkotkabasal', nameId:'lu.nmkotkabasal', codeVisible: false, widths: [80,300], fnLookup: function(){wLookup(lu_kota, 'Kota/Kabupaten','lu.kdkotkabasal','lu.nmkotkabasal',500,350) } }), { id: 'tf.kdpos_asal-mhs', fieldLabel: 'Kode Pos', allowBlank: true, width: 250 }] }, { xtype: 'fieldset', flex: 1, title: 'Alamat Surat Menyurat', collapsible: true, //collapsed: true, defaults: { xtype: 'textfield', labelWidth: 120, width: 300, labelAlign: 'right' }, items: [{ id: 'tf.alamat_surat-mhs', fieldLabel: 'Alamat', width: 550, //allowBlank: false }, { id: 'tf.kel_surat-mhs', fieldLabel: 'Kelurahan', allowBlank: true }, { id: 'tf.kec_surat-mhs', fieldLabel: 'Kecamatan', //allowBlank: true }, RH.Lookup2Field({ label: 'Kota/Kabupaten', codeId:'lu.kdkotkabsurat', nameId:'lu.nmkotkabsurat', widths: [80,300], codeVisible: false, fnLookup: function(){wLookup(lu_kota, 'Kota/Kabupaten','lu.kdkotkabsurat','lu.nmkotkabsurat',500,350) } }), { id: 'tf.kdpos_surat-mhs', fieldLabel: 'Kode Pos', allowBlank: true, width: 250 }] }] };//); return fPersonal; }