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', 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: _("DATE_LABEL"), width: 100, dataIndex: "ABE_REQ_DATE", sortable: true}, {header: _("ID_CASE_NUMBER_CAPITALIZED"), width: 70, dataIndex: "APP_NUMBER", sortable: true}, {header: _("ID_SUBJECT"), width: 150, dataIndex: "ABE_REQ_SUBJECT", sortable: true}, {header: _("ID_SENDER"), width: 110, dataIndex: "USER", sortable: true}, {header: _("ID_TO"), width: 110, dataIndex: "ABE_REQ_SENT_TO", sortable: true}, {header: _("ID_STATUS"), width: 40, dataIndex: "ABE_REQ_STATUS", sortable: true}, {header: _("ID_ANSWERED"), width: 60, dataIndex: "ABE_REQ_ANSWERED"}, {header: _("ID_VIEW_RESPONSE"), width: 80, sortable: false, align: 'center', renderer: function(val){ return '