Browse Source

3dDisplayEngine query.js 李欣儒 commit at 2021-04-20

李欣儒 4 năm trước cách đây
mục cha
commit
83ca29bf97
1 tập tin đã thay đổi với 67 bổ sung0 xóa
  1. 67 0
      3dDisplayEngine/buildingJs/query.js

+ 67 - 0
3dDisplayEngine/buildingJs/query.js

@@ -127,3 +127,70 @@ Ext.onReady(function(){
 	    titleCollapse:true,
 	    id: 'queryPanel',
 	    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();
+});