function getMhsOrtu(){ /** DATA STORES */ var ds_parentjob = store_parentjob(); var ds_parentedu = store_parentedu(); /** FORM ORTU */ var fOrtu = { //new Ext.form.FormPanel({ xtype: 'panel', //'form', id: 'content.ortu', layout: 'form', margin: '0 0 10', defaults: { labelWidth: 150, labelAlign: 'right' }, items: [{ xtype: 'fieldset', flex: 1, title: 'Ibu', /* //kalau xtype container defaults: { labelWidth: 120, labelAlign: 'right' },*/ items: [{ xtype: 'textfield', id: 'tf.namaortu', fieldLabel: 'Nama Ibu', width: 550, //allowBlank: false }, { xtype: 'combo', id: 'cb.jobortu', fieldLabel: 'Pekerjaan', store: ds_parentjob, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, width: 300, //editable: false //,allowBlank: false }, { xtype: 'combo', id: 'cb.eduortu', fieldLabel: 'Pendidikan', store: ds_parentedu, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, width: 300, //editable: false, //allowBlank: false, },{ xtype: 'textfield', id: 'tf.tlportu', fieldLabel: 'No. Telepon/HP', width: 550, allowBlank: true },{ xtype: 'textfield', id: 'tf.alamatortu', fieldLabel: 'Alamat', width: 550, //allowBlank: false },{ xtype: 'textfield', id: 'tf.kelortu', fieldLabel: 'Kelurahan', allowBlank: true }, { xtype: 'textfield', id: 'tf.kecortu', fieldLabel: 'Kecamatan', allowBlank: true }, RH.Lookup2Field({ label: 'Kota/Kabupaten', codeId:'lu.kdkotkabortu', nameId:'lu.nmkotkabortu', widths: [80,300], codeVisible: false, fnLookup: function(){wLookup(lu_kota, 'Kota/Kabupaten','lu.kdkotkabortu','lu.nmkotkabortu',500,350) } }), { xtype: 'textfield', id: 'tf.kdposortu', fieldLabel: 'Kode Pos', allowBlank: true, width: 250 }] }, { xtype: 'fieldset', flex: 1, title: 'Ayah', defaults: { xtype: 'textfield', labelAlign: 'right', labelWidth: 120, width: 300 }, items: [{ xtype: 'textfield', id: 'tf.namaortuayah', fieldLabel: 'Nama Ayah', width: 550, //allowBlank: false }, { xtype: 'combo', id: 'cb.jobortuayah', fieldLabel: 'Pekerjaan', store: ds_parentjob, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, width: 300, //editable: false //,allowBlank: false }, { xtype: 'combo', id: 'cb.eduortuayah', fieldLabel: 'Pendidikan', store: ds_parentedu, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, width: 300, //editable: false, //allowBlank: false, },{ xtype: 'textfield', id: 'tf.tlportuayah', fieldLabel: 'No. Telepon/HP', width: 550, allowBlank: true },{ xtype: 'textfield', id: 'tf.alamatortuayah', fieldLabel: 'Alamat', width: 550, //allowBlank: false },{ xtype: 'textfield', id: 'tf.kelortuayah', fieldLabel: 'Kelurahan', allowBlank: true }, { xtype: 'textfield', id: 'tf.kecortuayah', fieldLabel: 'Kecamatan', allowBlank: true }, RH.Lookup2Field({ label: 'Kota/Kabupaten', codeId:'lu.kdkotkabortuayah', nameId:'lu.nmkotkabortuayah', widths: [80,300], codeVisible: false, fnLookup: function(){wLookup(lu_kota, 'Kota/Kabupaten','lu.kdkotkabortuayah','lu.nmkotkabortuayah',500,350) } }), { xtype: 'textfield', id: 'tf.kdposortuayah', fieldLabel: 'Kode Pos', allowBlank: true, width: 250 }] }] }; //); return fOrtu; }