//COMMON FINANCE FUCTIONS function gridLookupMhsKeu(){ //STORE var fields_grid = RH.storeFields('nim','nmmhs','kdjnskelamin','nmfakultas','kdprodi','nourutprodi', 'nmprodi','lnmprodi','nmjenjangstudi','thnmasuk','idklsmhs','nmklsmhs','kdnmklsmhs','kdstawalmhs', 'kdstaktivitasmhs','nmstawal','nmstaktiv','idjnskls','nmjnskls','catnonaktif'); var ds_grid = RH.JsonStore({ url : BASE_URL + 'data_controller/lookup_mhs_keu', fields : fields_grid, limit: 20, enableSearch: true, }); var cm_grid = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), { header: 'NPM', width: 100, dataIndex: 'nim', sortable: true }, { header: 'Nama Mahasiswa', width: 200, dataIndex: 'nmmhs', sortable: true }, { header: 'Program Studi', width: 130, dataIndex: 'nmprodi', sortable: true }, { header: 'Thn. Masuk', width: 60, dataIndex: 'thnmasuk', sortable: true }, { header: 'Jenis Kelas', width: 85, dataIndex: 'nmklsmhs', sortable: true }, { header: 'Status Daftar', width: 80, dataIndex: 'nmstawal', sortable: true }, { header: 'Status Aktiv', width: 80, dataIndex: 'nmstaktiv', sortable: true }] ); //SEARCH OBJ var searchParObj = new Object([ { 'key': 'nim', 'name': 'NPM' } , { 'key': 'nmmhs', 'name': 'Nama Mahasiswa' } , { 'key': 'nmfakultas', 'name': 'Fakultas' } , { 'key': 'lnmprodi', 'name': 'Program Studi' } , { 'key': 'thnmasuk', 'name': 'Tahun Masuk' } ]); RH.searchObj_init(); // MUST to INITIALIZE RH.searchObj.textWidth = 250; RH.searchObj.params = searchParObj; // MUST OVR RH.searchObj.store = ds_grid; // MUST OVR //GRID PANEL var gp_grid = new Ext.grid.GridPanel({ ds: ds_grid, cm: cm_grid, sm: new Ext.grid.RowSelectionModel({ singleSelect: true}), view: new Ext.grid.GridView({ emptyText: '< Belum ada Data >'}), forceFit: true,//height: 400,width: 720, tbar:[RH.searchBar()], forceFit: true, autoSizeColumns: true, enableColumnResize: true, enableColumnHide: false, enableColumnMove: false, enableHdaccess: false, columnLines: true, loadMask: true, layout: 'anchor', bbar: new Ext.PagingToolbar({ store: ds_grid, displayInfo: true, displayMsg: 'Data {0} - {1} dari {2}', emptyMsg: "Belum ada data", }), /*listeners: { rowdblclick: on_dblclk_grid }*/ }); return gp_grid; }