function getMhsDaftar(){ /** DATA STORES */ var ds_stsmt = store_stsmt(); var ds_prodireg = store_prodireg(); var ds_shift = store_shift(); var ds_class = store_class(); var ds_years = store_tahun(); var ds_stawal = store_stawal(); var ds_staktiv = store_staktiv(); var ds_cutidet = store_cutidet(); /** FORM DAFTAR */ var fDaftar = { //new Ext.form.FormPanel({ //{ xtype: 'panel', //'container', id: 'content.daftar', layout: 'form', margin: '0 0 10', defaults: { labelWidth: 220, labelAlign: 'right' }, items: [{ xtype: 'fieldset', //flex: 1, title: '', defaults: { labelWidth: 220, labelAlign: 'right', width: 200 }, items: [{ xtype: 'container', fieldLabel: 'No. PMB', layout: 'hbox', width: 450, defaults: { hideLabel: 'true'}, items: [ { xtype: 'textfield', id: 'tf.nopmb', width: 200, }, { xtype: 'button', id: 'btn.nopmb', iconCls: 'silk-find', hidden:true, margins: '0 0 0 6', width: 30 } ] }, { xtype: 'combo', id: 'cb.stsmt', fieldLabel: 'Smt. Awal Terdaftar sebagai Mahasiswa', editable: false,//allowBlank: false, store: ds_stsmt, triggerAction: 'all', valueField: 'kdstsemester', displayField: 'nmsmt', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', }, { xtype: 'combo', id: 'cb.prodireg', fieldLabel: 'Program Studi', width: 450, allowBlank: false, editable: false, store: ds_prodireg, triggerAction: 'all', valueField: 'kdprodi', displayField: 'lnmprodi', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Harus diisi', },{ xtype: 'combo', id: 'cb.shift', fieldLabel: 'Shift Mahasiswa', editable: false, //allowBlank: false, store: ds_shift, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', },{ xtype: 'combo', id: 'cb.class', fieldLabel: 'Kelas Mahasiswa', editable: false, //allowBlank: false, store: ds_class, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', },{ xtype: 'combo', id: 'cb.thmasuk', fieldLabel: 'Tahun Masuk', editable: true, allowBlank: false, //editable: false, store: ds_years, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Harus diisi', },{ xtype: 'container', fieldLabel: 'Tanggal Masuk', id: 'cmpst-tglmsk-mhs', layout: 'hbox', width: 500, //lebar > default yg diset di parent (300) defaultType: 'textfield', defaults: { hideLabel: false }, items: [{ xtype: 'datefield', id: 'df.tgmasuk', fieldLabel: 'Tanggal Masuk', value: new Date() }, { xtype: 'label', margins: '0 0 0 5', text: '(Format: mm/dd/yyyy)' }] },{ xtype: 'combo', id: 'cb.stawal', fieldLabel: 'Status Awal Mahasiswa', editable: false, allowBlank: false, store: ds_stawal, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Harus diisi', },{ xtype: 'combo', id: 'cb.staktiv', fieldLabel: 'Status Aktivasi Mahasiswa', editable: false, store: ds_staktiv, triggerAction: 'all', valueField: 'kode', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', listeners:{ select: function() { /* var stmhs = Ext.getCmp('cb.staktiv').getRawValue(); if (stmhs == "NON-AKTIF"){ Ext.getCmp('idtextcatnonaktif').enable(); }else{ Ext.getCmp('idtextcatnonaktif').disable(); Ext.getCmp('idtextcatnonaktif').setValue(''); } */ } } },{ xtype: 'combo', id: 'idtextcatnonaktif', fieldLabel: 'Catatan Status Aktivasi Mahasiswa', store: ds_cutidet, triggerAction: 'all', valueField: 'idcutidet', displayField: 'nmcutidet', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', width: 150, allowBlank: true }, /* { xtype: 'textarea', id: 'idtextcatnonaktif', fieldLabel: 'Catatan Non-Aktif', width: 250, }, */ { xtype: 'container', fieldLabel: 'Propinsi Asal Pendidikan Terakhir', layout: 'hbox', defaultType: 'textfield',width: 350, defaults: { hideLabel: 'true'}, items: [ { id: 'tf.kdprovslta', width: 80, readOnly: true, hidden: true } , { id: 'tf.provslta', width: 300, readOnly: true } , { xtype: 'button', id: 'btn.provslta', iconCls: 'silk-find',hidden:true, margins: '0 0 0 6', width: 30, //handler: function() { wLookup(lu_prov, 'Propinsi','tf.kdprovslta','tf.provslta');} }] },{ xtype: 'combo', id: 'cb.batasstudi', fieldLabel: 'Batas Studi', editable: false, store: ds_stsmt, triggerAction: 'all', valueField: 'kdstsemester', displayField: 'nmsmt', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', }] }] }; //); return fDaftar; }