- },{
- header:'对象' ,
- dataIndex:'node' ,
- renderer:function (value,meta,record){
- var nodeType = Ext.util.Format.uppercase(record.get( 'nodeType' ));
- if ([ 'BSC' , 'MSC' , 'MGW' , 'GGSN' , 'SGSN' ].indexOf(nodeType)!=-1){
- meta.css = 'netcell' ;
- meta.attr = String.format(' netcell="{0}" netcellType="{1}" ' ,record.get( 'node' ),nodeType);
- }
- return value;
- },
renderer:Ext.util.Format.dateRenderer('y-m-d H:i:s' ),
- },{
- header:'操作' ,
- dataIndex:'node' ,
- renderer:function (value,meta,record){
- var resultStr = "<div class='controlBtn'& gt;<a href='javascript:void(0);' class='alarm_detail'>详细</a& gt; | <a href='javascript:void(0);' class='alarm_check'>签阅</a& gt; | <a href='javascript:void(0);' class='alarm_delete'>删除< /a></div>" ;
- return resultStr;
- },
- css:"text-align:center;" ,
- width:30,
- sortable:false
- }
- var grid = new Ext.grid.GridPanel({
-
- region:'center' ,
- store:store,
- enableColumnMove: true ,
- enableHdMenu: true ,
- autoScroll: true ,
- cm:cm,
- sm:sm,
- columnLines:true ,
- trackMouseOver:false ,
-
-
- viewConfig:{
- forceFit : true ,
- deferEmptyText: true ,
- emptyText: "<div>业务运行正常</div>" ,
- enableRowBody:true ,
- getRowClass: function (record, rowIndex, rowParams, store){
- if (record.get( 'alarmType' )==Elvis.NetCellAlarmMonitor.ALARM_TYPE_CALLLIMIT_EVENT){
- return 'alarm_row_event' ;
- }else {
- return 'alarm_row_alarm' ;
- }
- }
- }
- });