|
@@ -127,3 +127,70 @@ Ext.onReady(function(){
|
|
titleCollapse:true,
|
|
titleCollapse:true,
|
|
id: 'queryPanel',
|
|
id: 'queryPanel',
|
|
cellTip:true,
|
|
cellTip:true,
|
|
|
|
+ store: myStore,
|
|
|
|
+ columns: [
|
|
|
|
+ { header: 'id', dataIndex:'id',hidden:true, menuDisabled:true},
|
|
|
|
+ { header: '项目名称', dataIndex: 'company_name',width:240, menuDisabled:true },
|
|
|
|
+ { header: '报告时间', dataIndex: 'time', width:160, menuDisabled:true },
|
|
|
|
+ { header: '报告数据', dataIndex: 'data', width:140, menuDisabled:true },
|
|
|
|
+ { header: '报告内容', dataIndex: 'fullname', width:480, menuDisabled:true },
|
|
|
|
+ { header: '处理状态', dataIndex: 'clzt', width:100, menuDisabled:true },
|
|
|
|
+ { header: '处理人', dataIndex: 'clr_name',width:150, menuDisabled:true },
|
|
|
|
+ { header: '处理时间', dataIndex: 'clsj', width:160, menuDisabled:true }
|
|
|
|
+ ],
|
|
|
|
+ columnLines: true,
|
|
|
|
+// tbar: [
|
|
|
|
+// {
|
|
|
|
+// xtype: 'button',
|
|
|
|
+// iconCls:'delete_btn',
|
|
|
|
+// text: '刷新',
|
|
|
|
+// listeners: {
|
|
|
|
+// click: storeReload2
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// ],
|
|
|
|
+ height: maxHeight,
|
|
|
|
+ width: '100%',
|
|
|
|
+ bbar: new Ext.PagingToolbar({
|
|
|
|
+ store: myStore,
|
|
|
|
+ id:'queryListPageToolbar',
|
|
|
|
+ displayInfo: true,
|
|
|
|
+ pageSize: 5,
|
|
|
|
+ prependButtons: true,
|
|
|
|
+ displayMsg : '显示第 {0}条到 {1}条记录,总共 {2}条',
|
|
|
|
+ emptyMsg : "没有记录",
|
|
|
|
+ firstText: '第一页',
|
|
|
|
+ prevText: '前一页',
|
|
|
|
+ nextText: '后一页',
|
|
|
|
+ lastText: '最后一页'
|
|
|
|
+
|
|
|
|
+ }),
|
|
|
|
+ frame: true,
|
|
|
|
+ border:false,
|
|
|
|
+ iconCls: 'icon-grid',
|
|
|
|
+ renderTo: Ext.getBody(),
|
|
|
|
+ listeners:{
|
|
|
|
+ 'celldblclick' : function(grid, td, cellIndex, record, tr, rowIndex, e, eOpts){
|
|
|
|
+ window.parent.frames.show_alarm_info(dwtype,
|
|
|
|
+ record.data.status,
|
|
|
|
+ record.data.id,
|
|
|
|
+ record.data.name,
|
|
|
|
+ record.data.device_code,
|
|
|
|
+ record.data.company_code,
|
|
|
|
+ record.data.company_name,
|
|
|
|
+ record.data.fullname,
|
|
|
|
+ record.data.time,
|
|
|
|
+ record.data.data,
|
|
|
|
+ record.data.data2,
|
|
|
|
+ record.data.clzt,
|
|
|
|
+ record.data.clwb,
|
|
|
|
+ record.data.clr_name,
|
|
|
|
+ record.data.clnr,
|
|
|
|
+ record.data.clsj);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ myStore.reload();
|
|
|
|
+ body_resize();
|
|
|
|
+});
|