function getMhsAsalPT(){ /** STORES */ var ds_jpt = store_jpt(); var ds_stakrpt = store_stakrpt(); var ds_kuakrpt = store_kuakrpt(); /** FORM ASAL PT */ var fAsalpt = { //new Ext.form.FormPanel({ //{ xtype: 'panel', //'container', id: 'content.asalpt', layout: 'form', margin: '0 0 10', defaults: { labelWidth: 150, labelAlign: 'right' }, items: [{ xtype: 'fieldset', flex: 1, defaults: { labelWidth: 120, labelAlign: 'right' }, items: [{ xtype: 'container',//'fieldcontainer', fieldLabel: 'Perguruan Tinggi', layout: 'hbox', //combineErrors: true, defaultType: 'textfield', defaults: { hideLabel: true }, items: [ { id: 'tf.kdpt-asal', width: 80, readOnly: true } , { id: 'tf.nmpt-asal', margins: '0 0 0 6', width: 320, readOnly: true } , { xtype: 'button', id: 'btnpt', iconCls: 'silk-find', hidden:false, margins: '0 0 0 6', width: 30, handler: function() { lookup_pt_mhs(); } }] }, { xtype: 'combo', id: 'cb.jnpt-asal', fieldLabel: 'Jenis PT', width: 250, editable: false, //allowBlank: false, store: ds_jpt, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', }, { xtype: 'combo', id: 'cb.stakr-asal', fieldLabel: 'Status Akreditasi', width: 200, editable: false, //allowBlank: false, store: ds_stakrpt, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', }, { xtype: 'combo', id: 'cb.kuakr-asal', fieldLabel: 'Kualifikasi Akreditasi', width: 200, editable: false, //allowBlank: false, store: ds_kuakrpt, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', }, { xtype: 'textfield', id: 'tf.jjgstudi-asal', fieldLabel: 'Jenjang Studi', width: 570, }, { xtype: 'textfield', id: 'tf.fakultas-asal', fieldLabel: 'Fakultas', width: 350, }, { xtype: 'container',//'fieldcontainer', fieldLabel: 'Program Studi', layout: 'hbox', defaultType: 'textfield', defaults: { hideLabel: 'true' }, items: [ { id: 'tf.kdprodi-asal', width: 80, readOnly: true } , { id: 'tf.nmprodi-asal', margins: '0 0 0 6', width: 320, readOnly: true } , { xtype: 'button', id: 'btnprodi', iconCls: 'silk-find', hidden:false, margins: '0 0 0 6', width: 30, handler: function() { lookup_prodi_mhs(); } }] },{ xtype: 'textfield', id: 'tf.npm-asal', fieldLabel: 'NIM/NPM Asal', width: 350, },{ xtype: 'textfield', id: 'tf.noijzpt-asal', fieldLabel: 'No. Ijazah', width: 350, },{ xtype: 'container', fieldLabel: 'Tanggal Ijazah', id: 'cmpst-tglijazahpt-mhs', layout: 'hbox', width: 500, //lebar > default yg diset di parent (300) defaultType: 'textfield', defaults: { hideLabel: false }, items: [{ xtype: 'datefield', id: 'df.tgijzpt-asal', fieldLabel: 'Tanggal Ijazah', value: new Date() }, { xtype: 'label', margins: '0 0 0 5', text: '(Format: mm/dd/yyyy)' }] }, { xtype: 'numberfield', //'combo', id: 'nf.smtpindah-asal', fieldLabel: 'Semester Pindah', width: 150, value: 0, minValue: 0, maxValue: 8, },{ xtype: 'numberfield', //'textfield', id: 'nf.jumsks-asal', fieldLabel: 'Jumlah SKS Diakui', //allowBlank: false, value: 0, minValue: 0, width: 150, },{ xtype: 'textarea', id: 'ta.alasanpindah', fieldLabel: 'Alasan Pindah', autoScroll: true, width: 570, }] }] }; //); return fAsalpt; }