function getDosPersonal(){ /** DATA STORE [from DataMaster]*/ var ds_prodireg = store_prodireg(); var ds_status_dos = store_status_dos(); var ds_jabak = store_jabak(); var ds_pdktop = store_pdktop(); var ds_stikj = store_stikj(); var ds_staktivdos = store_staktivdos(); var ds_stsmt = store_stsmt(); var ds_gender = store_gender(); var ds_bloodtype = store_goldarah(); var ds_wn = store_wn(); /** FORM */ var fDosPersonal = { //new Ext.form.FormPanel({ xtype: 'panel', id: 'content.personal-dos', layout: 'form', margin: '0 0 10', defaults: { labelWidth: 180, labelAlign: 'right' }, items: [{ xtype: 'fieldset', //height: 250, flex: 1, title: 'Personal', defaultType: 'textfield', //layout: 'form', defaults: { labelWidth: 120, labelAlign: 'right' }, items: [{ id: 'tf.id-dos', fieldLabel: 'ID Dosen', submitValue: true, hidden:true//allowBlank: false },{ xtype: 'combo', id: 'cb.prodi-dos', fieldLabel: 'Program Studi', width: 450, editable: false, allowBlank: false, store: ds_prodireg, triggerAction: 'all', valueField: 'kdprodi', displayField: 'lnmprodi', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, }, { xtype: 'combo', id: 'cb.status-dos', fieldLabel: 'Status Dosen', width: 250, editable: false, allowBlank: false, store: ds_status_dos, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, }, { id: 'tf.nidu-dos', fieldLabel: 'NIDU', maxLength : 6, minLength : 6, submitValue: true, width: 250, //allowBlank: false }, { id: 'tf.nidn-dos', fieldLabel: 'NIDN', submitValue: true, width: 250, //allowBlank: true }, { id: 'tf.nup-dos', fieldLabel: 'NUP', submitValue: true, width: 250, //allowBlank: true }, { id: 'tf.nama-dos', fieldLabel: 'Nama Dosen Tanpa Gelar', submitValue: true, width: 450, allowBlank: false, listeners: { 'render': function(c) { c.getEl().on('keyup', function() { setNameWTitle(); }, c); } } }, { id: 'tf.namawgelar-dos', fieldLabel: 'Nama Dosen dengan Gelar', submitValue: true, width: 450, //allowBlank: true }, { id: 'tf.glrdpn-dos', fieldLabel: 'Gelar Depan', submitValue: true, width: 250, //allowBlank: true listeners: { 'render': function(c) { c.getEl().on('keyup', function() { setNameWTitle(); }, c); } } }, { id: 'tf.glrblk-dos', fieldLabel: 'Gelar Belakang', submitValue: true, width: 250, //allowBlank: true listeners: { 'render': function(c) { c.getEl().on('keyup', function() { setNameWTitle(); }, c); } } }, { id: 'tf.glrtop-dos', fieldLabel: 'Gelar Tertinggi', submitValue: true, width: 250, allowBlank: false }, { id: 'tf.tplahir-dos', fieldLabel: 'Tempat Lahir', width: 450, },{ xtype: 'datefield', id: 'df.tglahir-dos', fieldLabel: 'Tanggal Lahir', value: new Date(), width: 100 },{ xtype: 'datefield', id: 'df.tglhri-dos', value: new Date(), hidden: true }, { xtype: 'combo', id: 'cb.gender-dos', 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: 'combo', id: 'cb.jabak-dos', fieldLabel: 'Jabatan Akademik', store: ds_jabak, 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, }, { id: 'tf.noktp-dos', fieldLabel: 'No. KTP', width: 250, }, { xtype: 'combo', id: 'cb.pdktop-dos', fieldLabel: 'Pendidikan Tertinggi', store: ds_pdktop, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local',//'remote', emptyText:'Pilih...', selectOnFocus:false, width: 250, editable: false, //allowBlank: false, }, { xtype: 'combo', id: 'cb.stikj-dos', fieldLabel: 'Status Ikatan Kerja di PT/PTS', store: ds_stikj, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local',//'remote', emptyText:'Pilih...', selectOnFocus:false, width: 250, editable: false, //allowBlank: false, }, { xtype: 'combo', id: 'cb.staktiv-dos', fieldLabel: 'Status Aktivitas Dosen', store: ds_staktivdos, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local',//'remote', emptyText:'Pilih...', selectOnFocus:false, width: 250, editable: false, //allowBlank: false, }, { xtype: 'combo', id: 'cb.smt-dos', fieldLabel: 'Awal Semester Dosen', store: ds_stsmt, triggerAction: 'all', valueField: 'kdstsemester', displayField: 'nmsmt', forceSelection: true, submitValue: true, mode: 'local',//'remote', emptyText:'Pilih...', selectOnFocus:false, width: 250, editable: false, //allowBlank: false, }, { id: 'tf.nip-dos', fieldLabel: 'NIP PNS', width: 250, }, { xtype: 'container', fieldLabel: 'PT/PTS Home Base Dosen', layout: 'hbox', defaultType: 'textfield', defaults: { hideLabel: 'true' }, items: [ { id: 'tf.kdhome-dos', width: 100, readOnly: true }, { id: 'tf.nmhome-dos', margins: '0 0 0 6', width: 320, readOnly: true }, { xtype: 'button', id: 'bt.home-dos', iconCls: 'silk-find', margins: '0 0 0 6', width: 25, handler: function() { wLookup(lu_univ, 'Perguruan Tinggi','tf.kdhome-dos','tf.nmhome-dos');} }] }, { xtype: 'combo', id: 'cb.goldarah-dos', fieldLabel: 'Golongan Darah', store: ds_bloodtype, 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-dos', 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, }] }] };//); return fDosPersonal; }