function wform_riwayatdos(isEdit, nidu, grid, record){ var winTitle = 'Detail Riwayat Pendidikan Dosen ' + ((isEdit)?'(Edit)':'(Tambah)'); var ds_jstudi = sore_jstudi(); var fpRiwayat = new Ext.form.FormPanel({ //xtype: 'form', id: 'fpRiwayat', layout: 'form', width: 650, autoHeight:true,// //Height: 480, labelWidth: 130, labelAlign: 'right', frame: false, bodyStyle: 'padding:15px 15px 15px 15px', // atas, kanan, bawah, kiri items: [ RH.LookupComp({ id: 'lu.pt', label: 'Perguruan Tinggi', widths: [100,320], codeVisible: true, fnLookup: function(){wLookup(lu_univ, 'Perguruan Tinggi','lu.pt-code','lu.pt-name') } }) /*{ xtype: 'container', //'fieldcontainer', fieldLabel: 'Perguruan Tinggi', layout: 'hbox', //combineErrors: true, defaultType: 'textfield', defaults: { hideLabel: 'true' }, items: [ { id: 'tf.kdpt-dos', width: 100, readOnly: true }, { id: 'tf.nmpt-dos', margins: '0 0 0 6', width: 320, readOnly: true }, { xtype: 'button', id: 'bt.pt-dos', iconCls: 'silk-find', margins: '0 0 0 6', width: 25, handler: function() { wLookup(lu_univ, 'Perguruan Tinggi','tf.kdpt-dos','tf.nmpt-dos');} }] }*/ ,{ xtype: 'container', fieldLabel: 'Program Studi', layout: 'hbox', defaultType: 'textfield', defaults: { hideLabel: 'true'}, items: [ { id: 'tf.kdprodi-dos', width: 100, readOnly: true }, { id: 'tf.nmprodi-dos', margins: '0 0 0 6', width: 320, readOnly: true }, { xtype: 'button', id: 'bt.prodi-dos', iconCls: 'silk-find', /*text: '...',*/ margins: '0 0 0 6', width: 25, handler: function() { wLookup(lu_prodi, 'Program Studi','tf.kdprodi-dos','tf.nmprodi-dos');} }] }, { xtype: 'textfield', id: 'tf.kota_studi-dos', fieldLabel: 'Kota', submitValue: true, width: 250, allowBlank: false }, { xtype: 'container', fieldLabel: 'Negara', layout: 'hbox', defaultType: 'textfield', items: [ { id: 'tf.kdnegara_studi-dos', hidden: true }, { id: 'tf.nmnegara_studi-dos', margins: '0 0 0 6', readOnly: true, width: 300 }, { xtype: 'button', id: 'bt.negara_studi-dos', iconCls: 'silk-find', /*text: '...',*/ margins: '0 0 0 6', width: 25, handler: function() { wLookup(lu_states, 'Daftar Negara','tf.kdnegara_studi-dos','tf.nmnegara_studi-dos'); } }] }, { xtype: 'combo', id: 'cb.jenjang_studi-dos', fieldLabel: 'Jenjang Studi', width: 150, editable: false, allowBlank: false, store: ds_jstudi, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, }, { xtype: 'textfield', id: 'tf.glrakademik-dos', fieldLabel: 'Gelar Akademik', submitValue: true, width: 250, //allowBlank: false }, { xtype: 'container', fieldLabel: 'Kelompok Bidang Ilmu', layout: 'hbox', defaultType: 'textfield', items: [ { id: 'tf.kddisiplin-dos', hidden: true }, { id: 'tf.nmdisiplin-dos', margins: '0 0 0 6', readOnly: true, width: 300 }, { xtype: 'button', id: 'btn.kopro2', iconCls: 'silk-find', /*text: '...',*/ margins: '0 0 0 6', width: 25, handler: function() { wLookup(lu_disciplines, 'Kelompok Bidang Ilmu','tf.kddisiplin-dos','tf.nmdisiplin-dos'); } }] }, { xtype: 'datefield', id: 'df.tgijz_studi-dos', fieldLabel: 'Tanggal Ijazah', value: new Date(), width: 100 }] }); //); var winRiwayat = new Ext.Window({ title: 'Form Riwayat Pendidikan Dosen', modal: true, //layout: 'fit', width: 660, Height: 500, resizable: false, closable: false, items: [fpRiwayat], bbar: [ { xtype: 'button', text: 'Simpan', iconCls: 'silk-save', handler: function(){} } , { xtype: 'button', text: 'Kembali', iconCls: 'silk-arrow-undo', handler: function(){winRiwayat.close();} } ], }).show(); }