var actionsByEmailGrid; var store; var win ; new Ext.KeyMap(document, { key: Ext.EventObject.F5, fn: function(keycode, e) { if (! e.ctrlKey) { if (Ext.isIE) { e.browserEvent.keyCode = 8; } e.stopEvent(); document.location = document.location; } else { Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE')); } } }); Ext.onReady(function(){ Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); Ext.QuickTips.init(); store = new Ext.data.GroupingStore( { proxy : new Ext.data.HttpProxy({ url: '../actionsByEmail/actionsByEmailAjax', method: 'POST' }), reader : new Ext.data.JsonReader( { totalProperty: 'totalCount', root: 'data', fields : [ {name : 'ABE_UID'}, {name : 'ABE_REQ_UID'}, {name : 'APP_UID'}, {name : 'TAS_UID'}, {name : 'ABE_REQ_DATE'}, {name : 'ABE_REQ_SUBJECT'}, {name : 'APP_NUMBER'}, {name : 'USER'}, {name : 'ABE_REQ_SENT_TO'}, {name : 'ABE_REQ_STATUS'}, {name : 'ABE_REQ_ANSWERED'}, {name : 'ABE_RES_MESSAGE'} ] }) }); store.setBaseParam( 'action', 'loadActionByEmail' ); actionsByEmailGrid = new Ext.grid.GridPanel( { region: 'center', layout: 'fit', id: 'actionsByEmailGrid', //width:800, title : '', stateful : true, stateId : 'grid', enableColumnResize: true, enableHdMenu: true, frame:false, columnLines: true, cm: new Ext.grid.ColumnModel({ defaults: { sortable: true }, columns: [ {id: 'ABE_UID', dataIndex: 'ABE_UID', hidden:true, hideable:false}, {header: _('ID_DATE').toUpperCase(), width: 100, dataIndex: 'ABE_REQ_DATE', sortable: true }, {header: "Case Number".toUpperCase(), width: 70, dataIndex: 'APP_NUMBER', sortable: true }, {header: _('ID_SUBJECT').toUpperCase(), width: 150, dataIndex: 'ABE_REQ_SUBJECT', sortable: true }, {header: _('ID_FROM').toUpperCase(), width: 110, dataIndex: 'USER', sortable: true }, {header: _('ID_TO').toUpperCase(), width: 110, dataIndex: 'ABE_REQ_SENT_TO', sortable: true }, {header: _('ID_STATUS').toUpperCase(), width: 40, dataIndex: 'ABE_REQ_STATUS', sortable: true }, {header: "Answered".toUpperCase(), width: 60, dataIndex: 'ABE_REQ_ANSWERED' }, {header: "View Response".toUpperCase(), width: 80, sortable: false, align: 'center', renderer: function(val){ return '