function l_pterverifikasi() { var ds_jadwalpmb = store_jadwalpmb(); var ds_prodi = store_prodi(); var ds_grid = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'laporan/c_lpterverifikasi/grid', method: 'POST' }), params: { start: 0, limit: 5 }, root: 'data', totalProperty: 'results', autoLoad: true, fields: [ { name: "nopmb", mapping: "nopmb" }, { name: "nousm", mapping: "nousm" }, { name: "tglpmb", mapping: "tglpmb" }, { name: "nama", mapping: "nama" }, { name: "kdjk", mapping: "kdjk" }, { name: "idstmskmhs", mapping: "idstmskmhs" }, { name: "kdprodi1", mapping: "kdprodi1" }, { name: "nmklsmhs", mapping: "nmklsmhs" }, { name: "nmstmskmhs", mapping: "nmstmskmhs" }] }); var cm = new Ext.grid.ColumnModel({ // specify any defaults for each column defaults: { sortable: true // columns are not sortable by default }, columns: [new Ext.grid.RowNumberer(), { header: 'No. PMB', width: 100, dataIndex: 'nopmb', sortable: true },{ header: 'No. USM', width: 100, dataIndex: 'nousm', sortable: true },{ header: 'Peserta', width: 150, dataIndex: 'nama', sortable: true },{ header: '(L/P)', width: 40, dataIndex: 'kdjk', sortable: true }, { header: 'Program Studi', width: 180, dataIndex: 'kdprodi1', sortable: true // , // editor: { // xtype: 'combo', // allowBlank: false, // store: ds_prodi, // name: 'cmbkdprodi', // id: 'cmbkdprodi', // valueField: 'kdprodi', // displayField: 'nmprodi', // forceSelection: true, // submitValue: true, // hiddenName: 'h_cmbkdprodi', // listeners: { // select: function() { // edit() // } // }, // typeAhead: true, // mode: 'local', // emptyText: 'Pilih...', // selectOnFocus: true // } },{ header: 'Kelas', width: 110, dataIndex: 'nmklsmhs', sortable: true }, { header: 'Status Pendaftar', width: 110, dataIndex: 'nmstmskmhs', sortable: true }] }); var vw = new Ext.grid.GridView({ emptyText: '< No Data To Display >' }); var sm_nya = new Ext.grid.CheckboxSelectionModel({ listeners: { // rowselect: select_action, // rowdeselect: deselect_action } }); var cari_data = [new Ext.ux.grid.Search({ iconCls: 'btn_search', minChars: 1, autoFocus: true, autoHeight: true, position: 'top', mode: 'remote', width: 200 })]; var paging = new Ext.PagingToolbar({ pageSize: 50, store: ds_grid, displayInfo: true, displayMsg: 'Data Pendaftar Dari {0} - {1} of {2}', emptyMsg: 'Data Pendaftar Belum Dipilih.' }); var grid_nya = new Ext.grid.EditorGridPanel({ store: ds_grid, frame: true, //width: 1140, height: 530, //plugins: cari_data, id: 'grid_det', // autoWidth:true, // autoSizeColumns:true, // enableColumnResize: true, // enableColumnHide: false, // enableColumnMove: false, // enableHdMenu: false, // columnLines: true, // loadMask: true, buttonAlign: 'left', defaults: { anchor: '-10' }, forceFit: true, tbar: [{ xtype: 'buttongroup', title: 'Pencarian', columns: 5, width: 800, defaults: { scale: 'small' }, items: [{ text: 'Jadwal PMB' }, { xtype: 'combo', store: ds_jadwalpmb, name: 'kdjadwalpmb', id: 'kdjadwalpmb', triggerAction: 'all', editable: false, valueField: 'idjadwalpmb', displayField: 'nmjadwalpmb', forceSelection: true, submitValue: true, hiddenName: 'h_kdjadwalpmb', listeners: {}, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, width: 250 }, { xtype: 'label', text: '' }, { xtype: 'label', text: '' }, { xtype: 'label', text: '' }, { text: 'Program Studi' }, { xtype: 'combo', store: ds_prodi, name: 'kdprodi', id: 'kdprodi', triggerAction: 'all', editable: true, valueField: 'kdprodi', displayField: 'nmprodi', forceSelection: true, submitValue: true, hiddenName: 'h_kdprodi', listeners: {}, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, width: 250 }, // { // // text: 'Jadwal PMB' // xtype: 'checkbox', // boxLabel: 'Semua', // name: 'chall', // id: 'chall', // value: '1', // listeners: { // check: function() { // var nilai = Ext.getCmp('chall').getValue(); // if (nilai == true) { // Ext.getCmp('kdprodi').setDisabled(true); // prodiall = 'All'; // } else { // Ext.getCmp('kdprodi').setDisabled(false); // prodiall =''; // } // } // } // }, { xtype: 'label', text: '' }] }, { xtype: 'button', text: ' Cari ', iconCls: 'silk-find', id: 'btn_data', width: 3, handler: function() { ds_grid.setBaseParam('idjadwalpmb', Ext.getCmp('kdjadwalpmb').getValue()); ds_grid.setBaseParam('kdprodi', Ext.getCmp('kdprodi').getValue()); // ds_grid.setBaseParam('prodiall', prodiall); // alert(Ext.getCmp('kdprodi').getValue()); ds_grid.load(); } },'-', { xtype: 'button', text: ' Cetak ', iconCls: 'silk-printer', id: 'btn_cetak', width: 3, handler: function() { var parsing = ''; parsing = parsing + Ext.getCmp('kdjadwalpmb').getValue() + 'istra'; parsing = parsing + Ext.getCmp('kdprodi').getValue() + 'istra'; var win = window.open(); win.location.reload(); win.location = BASE_URL + 'print/print_topdf/plpendaftarterverifikasi/'+parsing; } }], sm: sm_nya, vw: vw, autoScroll: true, cm: cm, bbar: paging, //autoExpandColumn: 'common', clicksToEdit: 1, listeners: { rowclick: function rowclick(grid, rowIdx) { var rec = ds_grid.getAt(rowIdx); nopmbx = rec.data["nopmb"]; // alert(nopmbx); } } }); var form_bp_general = new Ext.form.FormPanel({ id: 'form_bp_general_id', title: 'Laporan Pendaftar Terverifikasi', region: 'center', //autoScroll: true, buttonAlign: 'left', bodyStyle: 'padding: 5px', border: false, disabled: true, waitMsg: 'Waiting...', maskDisabled: false, monitorValid: true, items: [{ layout: 'form', border: false, items: [grid_nya] }] }); get_content(form_bp_general); }