|  | @@ -320,3 +320,129 @@ var menuSub = Ext.create('Ext.menu.Menu',{
 | 
											
												
													
														|  |  	},{
 |  |  	},{
 | 
											
												
													
														|  |  		text : 'RTU综合监控',
 |  |  		text : 'RTU综合监控',
 | 
											
												
													
														|  |  		cls:'usky_menu',
 |  |  		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		iconCls : 'menu_efire_btn',
 | 
											
												
													
														|  | 
 |  | +		disabled:($("#V_LOGINNAME").val()=='guest'),
 | 
											
												
													
														|  | 
 |  | +		handler: function() {
 | 
											
												
													
														|  | 
 |  | +			var div = document.getElementById('main_center_layout');
 | 
											
												
													
														|  | 
 |  | +			try{
 | 
											
												
													
														|  | 
 |  | +				div.innerHTML='<iframe frameborder=0 width="100%" height="100%" allowtransparency="true" scrolling=auto src="'+baseUrl+'view/rtuAlarm/index.jsp?theme='+theme+($("#company_code").val().length>0?('&company_code='+$("#company_code").val()):'')+'"></iframe>';
 | 
											
												
													
														|  | 
 |  | +			}catch(e){}
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	}]
 | 
											
												
													
														|  | 
 |  | +});
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +var chkViewMapAlarm = function(id){
 | 
											
												
													
														|  | 
 |  | +	var str = "";
 | 
											
												
													
														|  | 
 |  | +	var len=8;
 | 
											
												
													
														|  | 
 |  | +	var check = new Array();
 | 
											
												
													
														|  | 
 |  | +	for(var i=0;i<len;i++){
 | 
											
												
													
														|  | 
 |  | +		check.push(Ext.getCmp('viewMapAlarm'+i));
 | 
											
												
													
														|  | 
 |  | +	}
 | 
											
												
													
														|  | 
 |  | +	if(id==0){
 | 
											
												
													
														|  | 
 |  | +		if(check[0].checked==true){
 | 
											
												
													
														|  | 
 |  | +			for(var i=1;i<len;i++){
 | 
											
												
													
														|  | 
 |  | +				if(!check[i].isDisabled()){
 | 
											
												
													
														|  | 
 |  | +					check[i].setChecked(true);
 | 
											
												
													
														|  | 
 |  | +				}
 | 
											
												
													
														|  | 
 |  | +			}
 | 
											
												
													
														|  | 
 |  | +		}else{
 | 
											
												
													
														|  | 
 |  | +			for(var i=1;i<len;i++){
 | 
											
												
													
														|  | 
 |  | +				check[i].setChecked(false);
 | 
											
												
													
														|  | 
 |  | +			}
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	}
 | 
											
												
													
														|  | 
 |  | +	for(var i=0;i<len;i++){
 | 
											
												
													
														|  | 
 |  | +		if(check[i].checked==true){
 | 
											
												
													
														|  | 
 |  | +			str +="1";
 | 
											
												
													
														|  | 
 |  | +		}else{
 | 
											
												
													
														|  | 
 |  | +			str +="0";
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	}
 | 
											
												
													
														|  | 
 |  | +	$("#viewAlarmType").val(str);
 | 
											
												
													
														|  | 
 |  | +	try{
 | 
											
												
													
														|  | 
 |  | +		document.getElementById("frame_frontpage").contentWindow.changeMapView(str);
 | 
											
												
													
														|  | 
 |  | +	}catch(e){}
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +var viewMap = Ext.create('Ext.menu.Menu',{
 | 
											
												
													
														|  | 
 |  | +	items : [{
 | 
											
												
													
														|  | 
 |  | +		xtype: 'menucheckitem',
 | 
											
												
													
														|  | 
 |  | +		id: 'viewMapAlarm0',
 | 
											
												
													
														|  | 
 |  | +		text: '全选',
 | 
											
												
													
														|  | 
 |  | +		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		checked: 'checked',
 | 
											
												
													
														|  | 
 |  | +		handler :function(){
 | 
											
												
													
														|  | 
 |  | +			chkViewMapAlarm(0);
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	},{
 | 
											
												
													
														|  | 
 |  | +		xtype: 'menucheckitem',
 | 
											
												
													
														|  | 
 |  | +		id: 'viewMapAlarm1',
 | 
											
												
													
														|  | 
 |  | +		text: '火警监控系统告警',
 | 
											
												
													
														|  | 
 |  | +		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		checked: 'checked',
 | 
											
												
													
														|  | 
 |  | +		handler : function(){
 | 
											
												
													
														|  | 
 |  | +			chkViewMapAlarm(1);
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	},{
 | 
											
												
													
														|  | 
 |  | +		xtype: 'menucheckitem',
 | 
											
												
													
														|  | 
 |  | +		id: 'viewMapAlarm2',
 | 
											
												
													
														|  | 
 |  | +		text: '电气火灾监控系统告警',
 | 
											
												
													
														|  | 
 |  | +		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		checked: 'checked',
 | 
											
												
													
														|  | 
 |  | +//		disabled: true,
 | 
											
												
													
														|  | 
 |  | +		handler : function(){
 | 
											
												
													
														|  | 
 |  | +			chkViewMapAlarm(2);
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	},{
 | 
											
												
													
														|  | 
 |  | +		xtype: 'menucheckitem',
 | 
											
												
													
														|  | 
 |  | +		id: 'viewMapAlarm3',
 | 
											
												
													
														|  | 
 |  | +		text: '消防水监控系统告警',
 | 
											
												
													
														|  | 
 |  | +		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		checked: 'checked',
 | 
											
												
													
														|  | 
 |  | +		handler : function(){
 | 
											
												
													
														|  | 
 |  | +			chkViewMapAlarm(3);
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	},{
 | 
											
												
													
														|  | 
 |  | +		xtype: 'menucheckitem',
 | 
											
												
													
														|  | 
 |  | +		id: 'viewMapAlarm4',
 | 
											
												
													
														|  | 
 |  | +		text: '通道监控系统告警',
 | 
											
												
													
														|  | 
 |  | +		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		disabled: true,
 | 
											
												
													
														|  | 
 |  | +		handler : function(){
 | 
											
												
													
														|  | 
 |  | +			chkViewMapAlarm(4);
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	},{
 | 
											
												
													
														|  | 
 |  | +		xtype: 'menucheckitem',
 | 
											
												
													
														|  | 
 |  | +		id: 'viewMapAlarm5',
 | 
											
												
													
														|  | 
 |  | +		text: '消防电源监控系统告警',
 | 
											
												
													
														|  | 
 |  | +		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		disabled: true,
 | 
											
												
													
														|  | 
 |  | +		handler : function(){
 | 
											
												
													
														|  | 
 |  | +			chkViewMapAlarm(5);
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	},{
 | 
											
												
													
														|  | 
 |  | +		xtype: 'menucheckitem',
 | 
											
												
													
														|  | 
 |  | +		text: 'RTU监控系统告警',
 | 
											
												
													
														|  | 
 |  | +		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		id: 'viewMapAlarm6',
 | 
											
												
													
														|  | 
 |  | +		checked: 'checked',
 | 
											
												
													
														|  | 
 |  | +		handler : function(){
 | 
											
												
													
														|  | 
 |  | +			chkViewMapAlarm(6);
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	},{
 | 
											
												
													
														|  | 
 |  | +		xtype: 'menucheckitem',
 | 
											
												
													
														|  | 
 |  | +		text: '烟感监控系统告警',
 | 
											
												
													
														|  | 
 |  | +		cls:'usky_menu',
 | 
											
												
													
														|  | 
 |  | +		id: 'viewMapAlarm7',
 | 
											
												
													
														|  | 
 |  | +		
 | 
											
												
													
														|  | 
 |  | +		disabled: true,
 | 
											
												
													
														|  | 
 |  | +		handler : function(){
 | 
											
												
													
														|  | 
 |  | +			chkViewMapAlarm(7);
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +	}]
 | 
											
												
													
														|  | 
 |  | +});
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +var viewTheme = Ext.create('Ext.menu.Menu',{items : [{id: 'view_theme_default',xtype: 'menucheckitem',group: 'theme',text: '经典',cls:'usky_menu',handler : function(){location.href = baseUrl + 'view/mainframe.jsp?theme=default';}},{id: 'view_theme_gray',xtype: 'menucheckitem',group: 'theme',text: '灰色',cls:'usky_menu',handler : function(){location.href = baseUrl + 'view/mainframe.jsp?theme=gray';}},{id: 'view_theme_access',xtype: 'menucheckitem',group: 'theme',text: '反白',cls:'usky_menu',handler : function(){location.href = baseUrl + 'view/mainframe.jsp';}}]});
 | 
											
												
													
														|  | 
 |  | +var alarmScope = Ext.create('Ext.menu.Menu',{
 | 
											
												
													
														|  | 
 |  | +	items : [
 | 
											
												
													
														|  | 
 |  | +		new Ext.menu.CheckItem({
 |