var isMaxViewGridClicked=false;var isFlag=true;var isTabularViewClicked=false;var ciscoData="";Ext.define("componentDashboard.controller.NetworkController",{extend:"Ext.app.Controller",requires:["Ext.ux.data.PagingMemoryProxy","componentDashboard.view.network.NetworkMainPanel","utilities.ScrollTabPanel","componentDashboard.view.network.SubNetworkPanel","componentDashboard.view.network.SubNetworkTabPanel","componentDashboard.view.network.NetworkTimeLinePanel","componentDashboard.view.network.ciscoMainPanel","componentDashboard.view.network.networkFullViewPanel","utilities.CustomGrid"],refs:[{ref:"subnetworkpanel",selector:"subnetworkpanel"},{ref:"networkmainpanel",selector:"networkmainpanel"},{ref:"subnetworktabpanel",selector:"subnetworktabpanel"},{ref:"networktimeline",selector:"networktimeline"},{ref:"ciscomainpanel",selector:"ciscomainpanel"},{ref:"subciscopanel",selector:"subciscopanel"},{ref:"ciscodialpanel",selector:"ciscodialpanel"},{ref:"maximizeview",selector:"maximizeview"},{ref:"main",selector:"main"},{ref:"protocolspanel",selector:"protocolspanel"},{ref:"ciscoflowspanel",selector:"ciscoflowspanel"},{ref:"networkfullviewpanel",selector:"networkfullviewpanel"}],init:function(){networkController=this;
this.control({'subnetworkpanel combo[id="networksubsystem"]':{"select":this.selectSubSystem},"networkmainpanel":{"beforeshow":this.beforeShowNetworkPanel},'subciscopanel combo[id="ciscosubsystem"]':{"select":this.selectCiscoSubSystem},'ciscodialpanel button[id="cisco_TabularView"]':{"click":this.onTabularViewButton},'ciscodialpanel button[id="cisco_FullGridView"]':{"click":this.onFullGridViewButton},'ciscodialpanel combo[id="cisco_Timeline"]':{select:this.onSelectTimeLine},'ciscodialpanel combo[id="cisco_sortby"]':{select:this.onSelectSortByMeasure},'ciscodialpanel combo[id="cisco_topNOption"]':{select:this.onSelectTopNOption},'ciscodialpanel button[id="cisco_DialGridButton"]':{"click":this.dialGridViewButton},'protocolspanel combo[id="interfaceCombo"]':{"select":this.interfaceComboLoad},'subciscopanel combo[id="flowInterfaces"]':{"select":this.selectFlowInterfaces},"networkfullviewpanel":{"boxready":this.loadFullViewPanel},"maximizeview":{"boxready":this.loadMaximizedView}});
},selectSubSystem:function(c){var b=c.getValue();netLastLoadedURL="";netCurrentTabId="";netLastGraphTypeLoaded="";if(b!=undefined){if(b.toLowerCase()=="overview"){Ext.getCmp("Netoverviewpanel").show();}else{Ext.getCmp("Netoverviewpanel").hide();}var a=Ext.getCmp("networksubsystem").getValue();if(Ext.isEmpty(a)||a.length==0){a="Overview";
}Ext.getCmp("networkmainpanel").fireEvent("beforeshow",Ext.getCmp("networkmainpanel"));}},networkDefaultLoad:function(k){if(Ext.getCmp("subNetworkPanelId")==null||Ext.getCmp("subNetworkPanelId")==undefined){this.getNetworkmainpanel().add({xtype:"subnetworkpanel",id:"subNetworkPanelId",name:"subNetworkPanelId",margin:0,bodyPadding:0,border:true},{xtype:"subnetworktabpanel",id:"subnetworktabpanelID",autoScroll:false,scroll:false,name:"subnetworktabpanelID"},{xtype:"ciscomainpanel",hidden:true});
}var g=Ext.getCmp("net_fullviewId");if(g!=null){g.destroy();Ext.getCmp("subNetworkPanelId").show();Ext.getCmp("subnetworktabpanelID").show();}var c="default";isNetworkTabSelected=true;Ext.getCmp("networkmainpanel").suspendEvents(true);var h=new Array();var i=this;if(k!=""&&k!=null&&!Ext.isEmpty(k)){var j=k["screenLabels"];
h["networksubsystem"]=j["subsystemTitle"];i.loadScreenLabels(h);var e=k["subsystemCombo"];var l=k["selectedValues"];i.setValueWithOptionInList("networksubsystem",e,l["subsystemSelected"]);var b=k["SUBSYSTEM"];if(b!=undefined){if(b.toLowerCase()=="overview"){Ext.getCmp("Netoverviewpanel").show();var f=k["OVERVIEW"];
i.showOverview(f);var m=k["TAB_URL"];i.showTabs(m);var d=Ext.getCmp(Ext.getCmp("Nettabpanel").getActiveTab().getId()).tabName;if(d.toLowerCase()=="history"&&isDisableTrendComputation==false){Ext.getCmp("net-history-tool").show();Ext.getCmp("net-calendar-tool").show();Ext.getCmp("net-history-tool").show();
Ext.getCmp("net-summary-tool").show();Ext.getCmp("net-area-tool").show();}else{Ext.getCmp("net-history-tool").hide();Ext.getCmp("net-calendar-tool").hide();Ext.getCmp("net-history-tool").hide();Ext.getCmp("net-summary-tool").hide();Ext.getCmp("net-area-tool").hide();}}else{Ext.getCmp("Netoverviewpanel").hide();
var m=k["TAB_URL"];i.showTabs(m);var d=Ext.getCmp(Ext.getCmp("Nettabpanel").getActiveTab().getId()).tabName;if(d.toLowerCase()=="history"&&isDisableTrendComputation==false){Ext.getCmp("net-history-tool").show();Ext.getCmp("net-calendar-tool").show();Ext.getCmp("net-history-tool").show();Ext.getCmp("net-summary-tool").show();
Ext.getCmp("net-area-tool").show();}else{Ext.getCmp("net-history-tool").hide();Ext.getCmp("net-calendar-tool").hide();Ext.getCmp("net-history-tool").hide();Ext.getCmp("net-summary-tool").hide();Ext.getCmp("net-area-tool").hide();}}}Ext.getCmp("networkmainpanel").resumeEvents();var n=null;var a=document.getElementsByTagName("body")[0];
if(!Ext.isEmpty(Ext.get(a))){n=new Ext.LoadMask(Ext.get(a),{msg:loadingLbl+"...",cls:"maskDash"});n.hide();}}},beforeShowNetworkPanel:function(g){if(Ext.getCmp("subNetworkPanelId")==null||Ext.getCmp("subNetworkPanelId")==undefined){this.getNetworkmainpanel().add({xtype:"subnetworkpanel",id:"subNetworkPanelId",name:"subNetworkPanelId",margin:0,bodyPadding:0,border:true},{xtype:"subnetworktabpanel",id:"subnetworktabpanelID",scroll:false,autoScroll:false,name:"subnetworktabpanelID"},{xtype:"ciscomainpanel",hidden:true});
}if(Ext.getCmp("componentsDropDown")!=undefined&&Ext.getCmp("componentsDropDown")!=null){var c=Ext.getCmp("componentsDropDown").getValue();if(!Ext.isEmpty(c)){componentType=c.substring(0,c.indexOf(":"));componentName=c.substring(c.indexOf(":")+1);}}if(isIncludedNetflowDeviceAvailable||isExcludedNetflowDeviceAvailable){Ext.getCmp("ciscomainpanel").show();
Ext.getCmp("subNetworkPanelId").hide();Ext.getCmp("subnetworktabpanelID").hide();this.afterCiscoPanelRendered(g);return;}var e=Ext.getCmp(g.getId()).getEl();e.mask(loadingLbl+"...","maskCenter");var d=this;var f=Ext.getCmp("networksubsystem").getValue();if(Ext.isEmpty(f)||f.length==0){f="Overview";}netLastLoadedURL="/final/monitor/egNetDashBoardJSON.jsp?tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(f)+"&screenWidth=1012&screenHeight=570&host="+encodeURIComponent(requestParams.compname)+"&time_line=24 hours&starttime=&endtime=&starthr=&endhr=&format="+encodeURIComponent(dateFormatForTimeline);
if(netLastGraphTypeLoaded!=null&&netLastGraphTypeLoaded!=null&&!Ext.isEmpty(netLastGraphTypeLoaded)&&netLastGraphTypeLoaded!=undefined){if(netLastLoadedURL.indexOf("graphType")>-1){netLastLoadedURL=netLastLoadedURL.replace(/(graphType=)[^\&]+/,"$1"+netLastGraphTypeLoaded);}else{netLastLoadedURL+="&graphType="+netLastGraphTypeLoaded;
}}Ext.Ajax.request({url:netLastLoadedURL,method:"POST",success:function(h){if(h.status==200&&!Ext.isEmpty(h.responseText)){e.unmask();var j=h.responseText;var i=Ext.decode(j);d.networkDefaultLoad(i);}}});Ext.getCmp("networkmainpanel").resumeEvents();var b=null;var a=document.getElementsByTagName("body")[0];
if(!Ext.isEmpty(Ext.get(a))){b=new Ext.LoadMask(Ext.get(a),{msg:loadingLbl+"...",cls:"maskDash"});b.hide();}},networkRefreshFunc:function(b){var a="refresh";var c=this;if(b!=""&&b!=null&&!Ext.isEmpty(b)){var d=Ext.getCmp("networksubsystem").getValue();if(d.toLowerCase()=="overview"){Ext.getCmp("Netoverviewpanel").show();
var g=b["OVERVIEW"];c.showOverview(g);var f=Ext.getCmp(Ext.getCmp("Nettabpanel").getActiveTab().getId()).tabName;var e=b["INNER_TAB_URL"];e=encodeURI(e);c.loadInnerTab("Network_"+netLastGraphTypeLoaded,e,a);}else{Ext.getCmp("Netoverviewpanel").hide();var f=Ext.getCmp(Ext.getCmp("Nettabpanel").getActiveTab().getId()).tabName;
var e=b["INNER_TAB_URL"];e=encodeURI(e);c.loadInnerTab("Network_"+netLastGraphTypeLoaded,e,a);}}},loadScreenLabels:function(a){for(var b in a){if(Ext.getCmp(b)!=undefined){Ext.getCmp(b).setFieldLabel(a[b]);}}},setValueWithOptionInList:function(c,b,a){if(!Ext.isEmpty(b)&&b!=null&&b!=undefined){Ext.getCmp(c).getStore().loadRawData(b);
Ext.getCmp(c).suspendEvents(false);if(!Ext.isEmpty(a)){Ext.getCmp(c).setValue(a);}else{Ext.getCmp(c).setValue(b[0].valueField);}Ext.getCmp(c).resumeEvents();}},showOverview:function(C){var n="default";var A=Ext.getCmp("netCurrentAlerts");var x=C["alertTitle"];var v=new Array();var s=new Array();v.push({xtype:"container",id:"NetAlertsTitleID",html:'<div class="title"><b>'+x+"</b></div>"});
var u=C["ALERTS"];if(u!=undefined){if(u=="-"){var J=C["NO_ALERTS"];v.push({xtype:"container",id:"NetNoAlerts_ID",width:"100%",padding:"20px 10px 10px 10px",html:'<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"><div class="iconNoalarms" style="margin:0px auto"></div><div style="text-align:center;">'+J+" </div></div></div>"});
}else{var t=u["OPEN_ALERT_TITLE"];var i=u["OPEN_ALERTS"];var k=u["DISTRIBUTION_TITLE"];var q="";if(u["DISTRIBUTION_CRITICAL_VALUE"]!=undefined&&u["DISTRIBUTION_CRITICAL_VALUE"]>0){var H=u["DISTRIBUTION_CRITICAL_DESC"];var h="";if(u["DISTRIBUTION_CRITICAL_LINK"]!=undefined){var a=u["DISTRIBUTION_CRITICAL_LINK"];
var g=a["METHOD_NAME"];var c=a["PARAMS"];var w=c.split("|");var j='<div style="text-align:center;" >'+u["DISTRIBUTION_CRITICAL_VALUE"]+"</div>";q+='<td><div class="bar12_high" style="float:left;width:100%;text-align:center;height: 13px !important">'+j+"</div></td>";}else{q+='<td><div class="bar12_high" style="float:left;text-align:center;width:100%;height: 13px !important">'+u["DISTRIBUTION_CRITICAL_VALUE"]+"</div></td>";
}}if(u["DISTRIBUTION_MAJOR_VALUE"]!=undefined&&u["DISTRIBUTION_MAJOR_VALUE"]>0){var H=u["DISTRIBUTION_MAJOR_DESC"];var h="";if(u["DISTRIBUTION_MAJOR_LINK"]!=undefined){var a=u["DISTRIBUTION_MAJOR_LINK"];var g=a["METHOD_NAME"];var c=a["PARAMS"];var w=c.split("|");var j='<div style="text-align:center;" >'+u["DISTRIBUTION_MAJOR_VALUE"]+"</div>";
q+='<td><div class="bar12_intermediate" style="float:left;text-align:center;width:100%;height: 13px !important">'+j+"</div></td>";}else{q+='<td><div class="bar12_intermediate" style="float:left;width:100%;text-align:center;height: 13px !important">'+u["DISTRIBUTION_MAJOR_VALUE"]+"</div></td>";}}if(u["DISTRIBUTION_MINOR_VALUE"]!=undefined&&u["DISTRIBUTION_MINOR_VALUE"]>0){var H=u["DISTRIBUTION_MINOR_DESC"];
var h="";if(u["DISTRIBUTION_MINOR_LINK"]!=undefined){var a=u["DISTRIBUTION_MINOR_LINK"];var g=a["METHOD_NAME"];var c=a["PARAMS"];var w=c.split("|");var j='<div style="text-align:center;" >'+u["DISTRIBUTION_MINOR_VALUE"]+"</div>";q+='<td><div class="bar12_low" style="float:left;width:100%;text-align:center;height: 13px !important">'+j+"</div></div></td>";
}else{q+='<td><div class="bar12_low" style="float:left;width:100%;text-align:center;height: 13px !important">'+u["DISTRIBUTION_MINOR_VALUE"]+"</div></td>";}}q='<table width="100%"><tr>'+q+"</tr></table>";v.push({xtype:"container",layout:"hbox",items:[{xtype:"container",id:"NetdistribHTMLId",width:"100%",padding:10,html:'<table width="100%" height="100%" style="margin-top: 16px;"><tr><td width="5%"></td><td width="90%"></td></tr><tr><td width="5%"><div class="summaryOpenProblems" style="top:25px;"></td><td width="90%"><div style="float: right;text-align:right"><div  class="font_no">'+i+'</div><div class="font_bold12">'+t+'</div><div style="clear:right"></div></div></td></tr></table><div class="outer_round" style="margin-top: 5px;">'+q+"</div>"}]});
}}if(Ext.getCmp("NetAlertsTitleID")!=null){Ext.getCmp("NetAlertsTitleID").update('<div class="title"><b>'+x+"</b></div>");if(u=="-"){if(Ext.getCmp("NetNoAlerts_ID")!=null){Ext.getCmp("NetNoAlerts_ID").update('<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"><div class="iconNoalarms" style="margin:0px auto"></div><div style="text-align:center;">'+J+"</div></div></div>");
}else{A.removeAll();A.add(v);A.doComponentLayout();}}else{if(Ext.getCmp("NetdistribHTMLId")!=null){Ext.getCmp("NetdistribHTMLId").update('<table width="100%" height="100%" style="margin-top: 16px;"><tr><td width="5%"></td><td width="90%"></td></tr><tr><td width="5%"><div class="summaryOpenProblems" style="top:25px;"></td><td width="90%"><div style="float: right;text-align:right"><div  class="font_no">'+i+'</div><div class="font_bold12">'+t+'</div><div style="clear:right"></div></div></td></tr></table><div class="outer_round" style="margin-top: 5px;">'+q+"</div>");
}else{A.removeAll();A.add(v);A.doComponentLayout();}}}else{A.removeAll();A.add(v);A.doComponentLayout();}var F=C["EVENTS"];var d=C["eventUrl1"];var E=C["eventUrl2"];var f=C["eventUrl3"];var o=F["eventsTitle"];if(o==undefined&&F=="-"){o=C["eventsTitle"];}var e=Ext.getCmp("netCurrentEvents");var b=new Array();
b.push({xtype:"container",id:"NeteventsTitleID",width:"100%",padding:"10px 10px 2px 10px",html:'<div class="title"><b>'+o+"</b></div>"});if(F!=undefined){if(F=="-"){var z=C["NO_EVENTS"];b.push({xtype:"container",id:"NetNo_EVENTSID",width:"100%",flex:1,padding:"0px 10px 10px 10px",html:'<div class="iconNoalarms" style="margin:1.5% auto 0 auto""></div><div style="text-align:center;">'+z+" </div>"});
}else{var l="";var G=F["criticalEvtCount"];var y=F["majorEvtCount"];var D=F["minorEvtCount"];if(G!=undefined&&G>0){if(d!=undefined){var j="<div onclick=\"javascript:goToAlarmHistory('"+d+'\');" style="text-align:center;cursor:pointer" >'+G+"</div>";l+='<td><div class="bar12_high" style="text-align:center;color:#ffffff;height: 13px !important">'+j+"</div></td>";
}else{l+='<td><div class="bar12_high" style="float:left;width:24px;text-align:center;display:none;height: 13px !important">'+G+"</div></td>";}}if(y!=undefined&&y>0){if(E!=undefined){var j="<div onclick=\"javascript:goToAlarmHistory('"+E+'\');" style="text-align:center;cursor:pointer" >'+y+"</div>";l+='<td><div class="bar12_intermediate" style="text-align:center;color:#ffffff;height: 13px !important">'+j+"</div></td>";
}else{l+='<td><div class="bar12_intermediate" style="float:left;width:24px;text-align:center;display:none;height: 13px !important">'+y+"</div></td>";}}if(D!=undefined&&D>0){if(f!=undefined){var j="<div onclick=\"javascript:goToAlarmHistory('"+f+'\');" style="text-align:center;cursor:pointer" >'+D+"</div>";
l+='<td><div class="bar12_low" style="text-align:center;color:#ffffff;height: 13px !important">'+j+"</div></td>";}else{l+='<td><div class="bar12_low" style="float:left;width:24px;text-align:center;display:none;height: 13px !important">'+D+"</div></td>";}}l='<table width="100%"><tr>'+l+"</tr></table>";
var r=F["monitor.dashboard.Total Events"];var K=F["TOTAL_EVENTS"];var m=F["monitor.dashboard.Avg Duration"];var B=F["AVG_DURATION"];var p=F["monitor.dashboard.Max Duration"];var I=F["MAX_DURATION"];b.push({xtype:"container",flex:1,layout:{type:"hbox",align:"middle",pack:"center"},padding:"0 10",margin:0,width:"100%",defaults:{height:65,style:{"overflow":"visible"}},items:[{xtype:"container",layout:{type:"vbox"},cls:"fancy_border",flex:4,items:[{xtype:"container",id:"NettotalEventsID",width:"100%",flex:1,padding:"15 0 0 0",margin:"0 10 0 0",html:'<table width="100%" style="margin-bottom:3px;"><tr><td width="5%"></td><td width="90%"></td></tr><tr><td width="5%"><div class="totalEvents"></td><td width="90%"><div style="float: right;text-align:right"><div class="font_no">'+K+'</div><div class="font_bold12">'+r+'</div><div style="clear:both"></div></div></td></tr></table><div class="outer_round" >'+l+"</div>"}]},{xtype:"container",cls:"fancy_border",flex:2,layout:{type:"vbox",align:"center"},items:[{xtype:"container",id:"NetavgDurationID",width:"100%",padding:"15 10 0 10",flex:1,style:{"text-align":"right","padding":"0 12px 0 12px"},html:'<div><div class="summaryAverageDuration" style="position:absolute;top: 17px;"></div><div class="font_no">'+B+'</div><div class="font_bold" >'+m+"</b></div></div>"}]},{xtype:"container",layout:"vbox",flex:2,layout:{type:"vbox",align:"center"},cls:"fancy_border",items:[{xtype:"container",id:"NetmaxDurationID",padding:"15 10 0 10",width:"100%",flex:1,style:{"text-align":"right","padding":"0 12px 0 12px"},html:'<div><div class="summaryMaximumDuration" style="position:absolute;top: 16px;"></div><div class="font_no">'+I+'</div><div style=""><div class="font_bold" >'+p+"</div></div></div>"}]}]});
}}if(Ext.getCmp("NeteventsTitleID")!=null){Ext.getCmp("NeteventsTitleID").update('<div class="title"><b>'+o+"</b></div>");if(F=="-"){if(Ext.getCmp("NetNo_EVENTSID")!=null){Ext.getCmp("NetNo_EVENTSID").update('<div class="iconNoalarms" style="margin:1.5% auto 0 auto""></div><div style="text-align:center;">'+z+" </div>");
}else{e.removeAll();e.add(b);e.doComponentLayout();}}else{if(Ext.getCmp("NettotalEventsID")!=null&&Ext.getCmp("NetavgDurationID")!=null&&Ext.getCmp("NetmaxDurationID")!=null){Ext.getCmp("NettotalEventsID").update('<table width="100%" style="margin-bottom:3px;"><tr><td width="5%"></td><td width="90%"></td></tr><tr><td width="5%"><div class="totalEvents"></td><td width="90%"><div style="float: right;text-align:right"><div class="font_no">'+K+'</div><div class="font_bold12">'+r+'</div><div style="clear:both"></div></div></td></tr></table><div class="outer_round" >'+l+"</div>");
Ext.getCmp("NetavgDurationID").update('<div><div class="summaryAverageDuration" style="position:absolute;top: 17px;"></div><div class="font_no">'+B+'</div><div class="font_bold" >'+m+"</b></div></div>");Ext.getCmp("NetmaxDurationID").update('<div><div class="summaryMaximumDuration" style="position:absolute;top: 16px;"></div><div class="font_no">'+I+'</div><div style=""><div class="font_bold" >'+p+"</div></div></div>");
}else{e.removeAll();e.add(b);e.doComponentLayout();}}}else{e.removeAll();e.add(b);e.doComponentLayout();}},showTabs:function(g){var m="default";var e=Ext.getCmp("networksubsystem").getValue();var s=this;var q=this.getSubnetworktabpanel();var t=q.getEl();q.removeAll();t.mask(loadingLbl+"...","maskCenter");
var k="",d="";var n=new Array();Ext.Ajax.request({url:g,method:"GET",async:false,success:function(i){if(i.status==200&&!Ext.isEmpty(i.responseText)){t.unmask();k=i.responseText;d=Ext.decode(k);n=d["tabs"];}},failure:function(){alert("I am in failure...");}});var b=new Array();if(!Ext.isEmpty(n)){for(var l=0;
l<n.length;l++){var j=n[l];var a=j["TAB_NAME"];var o=j["TAB_MAPPING_NAME"];var h=j["METHOD_NAME"];var p=j["PARAMS"];var c=p.split("|");var r=j["TAB_ID"];var c=p.split("|");var f=d["TimelineWindow"];timelineVals["timeline"]=f[0]["selected"];timelineVals["starttime"]=f[1]["value"];timelineVals["starthour"]=f[2]["selected"];
timelineVals["endtime"]=f[3]["value"];timelineVals["endhour"]=f[4]["selected"];b.push({title:o,id:r,tabName:a,dataArray:j,xtype:"panel",layout:"vbox",listeners:{"afterrender":function(){if(Ext.get("net-configModApp")!=undefined){Ext.get("net-configModApp").destroy();}var v=this.dataArray;var x="";if(v["TAB_NAME"].toLowerCase()=="at-a-glance"){if(e.toLowerCase()=="overview"){x="/final/monitor/egDashboardOverviewJSON.jsp";
x+="?"+"hostName="+encodeURIComponent(componentName)+"&compType="+encodeURIComponent(componentType)+"&tab=Network";}s.loadInnerTab(v["TAB_ID"],x,m);}else{if(v["TAB_NAME"].toLowerCase()=="details"||v["TAB_NAME"].toLowerCase()=="comparison"){var B=d["TimelineWindow"];var z=B[0]["selected"];var y=B[1]["value"];
var A=B[2]["selected"];var i=B[3]["value"];var u=B[4]["selected"];x="/final/monitor/egDashboardHistoryJSON.jsp";var w=v["PARAMS"].split("|");s.loadInnerTab(v["TAB_ID"],x+"?tab=Network&hostName="+encodeURIComponent(componentName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(Ext.getCmp("networksubsystem").getValue())+"&graphType="+encodeURIComponent(w[2])+"&showGraph="+encodeURIComponent(w[2])+"&time_line=&starttime="+encodeURIComponent(y)+"&endtime="+encodeURIComponent(i)+"&starthr="+encodeURIComponent(A)+"&endhr="+encodeURIComponent(u)+"&format="+encodeURIComponent(dateFormatForTimeline)+"&host="+encodeURIComponent(componentName),m);
}else{if(v["TAB_NAME"].toLowerCase()=="history"){var B=d["TimelineWindow"];var z=B[0]["selected"];var y=B[1]["value"];var A=B[2]["selected"];var i=B[3]["value"];var u=B[4]["selected"];x="/final/monitor/egDashboardHistoryJSON.jsp";var w=v["PARAMS"].split("|");s.loadInnerTab(v["TAB_ID"],x+"?tab=Network&hostName="+encodeURIComponent(componentName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(Ext.getCmp("networksubsystem").getValue())+"&graphType="+encodeURIComponent(w[2])+"&showGraph="+encodeURIComponent(w[2])+"&time_line=&starttime="+encodeURIComponent(y)+"&endtime="+encodeURIComponent(i)+"&starthr="+encodeURIComponent(A)+"&endhr="+encodeURIComponent(u)+"&format="+encodeURIComponent(dateFormatForTimeline)+"&host="+encodeURIComponent(componentName),m);
}}}}}});}}if(!Ext.isEmpty(b)){q.add({xtype:"scrolltabPanel",id:"Nettabpanel",dataArray:g,name:"Nettabpanel",flex:1,ui:"newTabPanelBasic",border:true,plain:false,frame:false,margin:"0 10 0 10",defaults:{border:true,frame:false},activeTab:netCurrentTabId,listeners:{render:function(){var i="";this.items.each(function(u){u.tab.on("click",function(){i=u.id;
netCurrentTabId=i;if(u.tabName.toLowerCase()=="history"&&isDisableTrendComputation==false){Ext.getCmp("net-history-tool").show();Ext.getCmp("net-calendar-tool").show();Ext.getCmp("net-history-tool").show();Ext.getCmp("net-summary-tool").show();Ext.getCmp("net-area-tool").show();}else{Ext.getCmp("net-history-tool").hide();
Ext.getCmp("net-calendar-tool").hide();Ext.getCmp("net-history-tool").hide();Ext.getCmp("net-summary-tool").hide();Ext.getCmp("net-area-tool").hide();}});});this.tabBar.add({xtype:"tbfill",id:"net-tab-seperator"},{xtype:"toolbar",ui:"footer",width:27,hidden:true,id:"net-calendar-tool",cls:"iconBg",height:21,margin:"0 50 0 0",dock:"right",items:[{xtype:"button",iconCls:"iconCalendar",id:"net-calendar-btn",hidden:true,handler:function(){Ext.get("net-configModApp").animate({to:{"top":11},listeners:{afteranimate:function(){Ext.get("net-configModApp").setStyle("left","");
}}}).show();},listeners:{"click":function(){var u=Ext.get("net-configModApp");if(Ext.isEmpty(u)){var v=new Ext.XTemplate('<div style="float:left;margin:4px 0px 0px 4px"><b>'+defSettingsLbl+'</b></div><div style="text-align:right;float:right;"><div class="iconClose3" id="net-closeSettingsApp"></div></div>');
Ext.create("Ext.container.Container",{width:530,id:"net-configModApp",padding:5,closeAction:"hide",cls:"configMode_popup",style:{"position":"absolute"},items:[{xtype:"container",cls:"configMode_popupArrow",style:{"top":"-14px","left":"400px"}},{xtype:"container",html:v.apply(),style:{"top":"0px","margin":"2px"}},{xtype:"networktimeline",height:60}],renderTo:"Nettabpanel-body"});
}else{u.show();}Ext.getBody().on("click",function(){var w=Ext.get("net-configModApp");if(w!=null&&w!=undefined){w.hide();}w.animate({duration:500,to:{y:-500}});},null,{delegate:"#net-closeSettingsApp"});Ext.Ajax.request({url:g,method:"GET",async:false,success:function(w){if(w.status==200&&!Ext.isEmpty(w.responseText)){var F=w.responseText;
var M=Ext.decode(F);var E=M["TimelineWindow"];var z=E[0]["selected"];var B=E[1]["value"];var A=E[2]["selected"];var O=E[3]["value"];var N=E[4]["selected"];var I=Ext.getCmp("net_er_timeline");I.getStore().loadRawData(E[0]["items"]);var G=I.getValue();var D=Ext.getCmp("net_er_stdate");var H=Ext.getCmp("net_er_enddate");
var K=Ext.getCmp("net_er_sthr");var J=Ext.getCmp("net_er_endhr");if(G!=null&&G!=""){I.setValue(G);var L=D.getValue();var x=H.getValue();var C=K.getValue();var y=J.getValue();D.setValue(L);H.setValue(x);K.setValue(C);J.setValue(y);}else{I.setValue(z);D.setValue(B);H.setValue(O);K.setValue(A);J.setValue(N);
}}}});},"afterrender":function(u){u.addListener("loadTime");Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"Calendar"});}}}]},{xtype:"toolbar",id:"net-history-tool",hidden:true,ui:"footer",layout:"hbox",width:27,cls:"iconBg",height:21,margin:"0 0 0 0",dock:"right",items:[{xtype:"button",id:"net-history-bar",iconCls:"iconLineChart",listeners:{"afterrender":function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:historyViewText});
}},handler:function(){s.callView("measureGraph");}},{xtype:"tbseparator",margin:"2 0 0 0"}]},{xtype:"toolbar",width:27,layout:"hbox",ui:"footer",cls:"iconBg",hidden:true,id:"net-summary-tool",height:21,margin:"0 0 0 0",dock:"right",items:[{xtype:"button",iconCls:"iconBarChart",listeners:{"afterrender":function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:summaryViewText});
}},handler:function(){s.callView("summaryGraph");}},{xtype:"tbseparator",margin:"2 0 0 0"}]},{xtype:"toolbar",width:27,layout:"hbox",ui:"footer",hidden:true,id:"net-area-tool",cls:"iconBg",height:21,margin:"0 0 0 0",dock:"right",items:[{xtype:"button",iconCls:"iconAreaChart",listeners:{"afterrender":function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:trendViewText});
}},handler:function(){s.callView("trendGraph");}}]});}},items:b});}q.doComponentLayout();q.show();},loadInnerTab:function(c,j,e){if(c=="Network_trendGraph"||c=="Network_summaryGraph"){c="Network_measureGraph";}var b=Ext.getCmp("networksubsystem").getValue();var l=componentType;var k=this;var f="";if(!Ext.isEmpty(Ext.getCmp(c))){f=Ext.getCmp(c).getEl();
}var h=Ext.getCmp(c);if(e=="default"){h.removeAll();}var a=0;if(!Ext.isEmpty(b)&&b.toLowerCase()!="overview"){a=133;}h.setHeight((Ext.getBody().getHeight()-265)+a);var g=h.dataArray;var i=g["TAB_NAME"];var d="",m="";f.mask(loadingLbl+"...","maskCenter");Ext.Ajax.request({url:j+"&screenWidth="+(Ext.getBody().getViewSize().width)+"&screenHeight="+(Ext.getBody().getViewSize().height),method:"POST",success:function(n){if(n.status==200&&!Ext.isEmpty(n.responseText)){d=n.responseText;
f.unmask();m=Ext.decode(d);netgraphUrl=m["hiddens"];if(i.toLowerCase()=="at-a-glance"){if(b.toLowerCase()=="overview"){k.showAtAGlance(c,m,e);}}else{if(i.toLowerCase()=="details"||i.toLowerCase()=="comparison"){k.showDetailsTab(c,m,e);}else{if(i.toLowerCase()=="history"){k.showHistoryTab(c,m,e);}}}}}});
},showAtAGlance:function(z,aB,aI){var aO=Ext.getCmp(z);aO.setHeight(Ext.getBody().getHeight()-265);aO.setAutoScroll(true);var an=new Array();if(aI=="default"){aO.removeAll();aO.add({xtype:"panel",id:"nethealthdialpanel",cls:"block1",width:"100%",margin:"10 5 5 10",padding:"8 0 8 0",layout:"hbox"});aO.add({xtype:"panel",id:"nethopDelaypanel",cls:"block1",width:"100%",margin:"5 10 5 10",hidden:true,layout:"hbox"});
aO.add({xtype:"panel",id:"netdigitalpanel",cls:"block1",width:"100%",margin:"5 5 5 10",padding:"8 0 8 0",layout:"hbox",defaults:{cls:"containerDigitalData"}});aO.add({xtype:"panel",id:"netconfigpanel",width:"100%",layout:{type:"column",align:"stretch"},defaults:{margin:"5 5 10 10",columnWidth:0.5,cls:"block1",}});
aO.doComponentLayout();}var b=Ext.getCmp("nethealthdialpanel");var av=Ext.getCmp("netdigitalpanel");var aa=Ext.getCmp("netconfigpanel");var ay=Ext.getCmp("nethopDelaypanel");av.removeAll();aa.removeAll();ay.removeAll();if(!Ext.isEmpty(aB)){an.splice(0,an.length);var y=aB["HEALTH"];if(!Ext.isEmpty(y)){var m=new Array();
var d=y["TITLE"];var ag=y["XML_DATA"];var X=y["SWF_PATH"];var G=Math.round(y["HEIGHT"]);var aW=Math.round(y["WIDTH"]);G=G+10;if(ag=="-"){var a=y["MSG"];m.push({xtype:"container",cls:"componentnetworkseperator",padding:0,height:259,margin:0,layout:{type:"vbox",align:"stretch"},items:[{xtype:"label",align:"center",html:'<div style="text-align:center;" class="font_bold12">'+d+"</div>"},{xtype:"container",height:200,flex:1,width:aW,html:'<table width="100%" height="100%" style="text-align:center"><tr><td><div class="iconInformation" style="margin:0px auto"></div><div>'+a+"</div></td></tr></table>"}]});
}else{m.push({xtype:"container",cls:"componentnetworkseperator",height:205,margin:"0 10 0 10",padding:"0 0 3 0",width:255,layout:{type:"vbox",align:"stretch"},items:[{xtype:"label",align:"center",html:'<div style="text-align:center;margin-top:10px" class="font_bold12">'+d+"</div>"},{xtype:"container",height:G,id:"net-tmpChart",width:aW,padding:"40 0 0 0",html:'<div id="net-HealthChart" style="height:'+G+'px;margin-top: -20px;"></div>'}]});
}b.removeAll();b.add(m);b.doComponentLayout();if(ag!="-"){try{var p={};p=jQuery.extend(true,{},getHighChartsBarInstance("net-HealthChart",150,220),p);p.setData(ag,currentDateFormat,"","pie");p.drawChart();}catch(aP){console.log(aP);}}}var s=aB["DIAL"];layerModelURL=aB["hiddens"];if(!Ext.isEmpty(s)&&s!="-"){an.splice(0,an.length);
for(var Y=0;Y<s.length;Y++){var v=s[Y]["TITLE"];var aX=s[Y]["TOOL_TIP_TITLE"];var D=s[Y]["Dial_Fullview"];var aA=s[Y]["METHOD_NAME"];var aF=s[Y]["PARAMS"];var aq=s[Y]["subTitle_Dial"];var G=Math.round(s[Y]["HEIGHT"]);var aW=Math.round(s[Y]["WIDTH"]);var ag=s[Y]["XML_DATA"];var X=s[Y]["SWF_PATH"];var aM=s[Y]["CMP_TYPE"];
var ai=s[Y]["DialPARAMS"];var L=s[Y]["dialInterfaceFlag"];if(G==null||G==undefined){aW="255";G="150";}var ap=parseInt(G)-3;if(D!=""&&D=="true"&&D!=undefined){var R="iconMaximize";}else{var R="";}if(aq==undefined||aq==""){aq="";}an.push({xtype:"container",layout:{type:"vbox",width:aW,align:"stretch"},items:[{xtype:"container",margin:"0 0 0 0",style:{"text-align":"center"},align:"center",html:'<div style="text-align:center;margin-top:10px" title="'+aX+'" class="font_bold"><span >'+v+"</span><span class="+R+' style="float:right;cursor:pointer;margin-right:10px;" onclick="javascript:'+aA+"('"+aF+"');\"></span></div>"},{xtype:"label",padding:"20 0 0 0",height:15,html:'<div style="text-align:center;cursor:pointer;margin-top:0px;height:15px;overflow: hidden;-o-text-overflow:ellipsis;text-overflow: ellipsis;white-space:nowrap;padding:0px 4px" data-qtip="'+aq+'" class="font_text" "><b>'+aq+"</b></div>"},{xtype:"container",width:"100%",id:"net-dialChart-"+Y,dataArray:s[Y],flex:1,align:"center",style:{"text-align":"center"},html:'<div id="net-chart-'+Y+'" style="border:0px solid blue;width:'+aW+"px;height:"+ap+'px;margin:-10px auto"></div>'}]});
}var at=new Array();at.push({xtype:"container",width:"100%",id:"netdialpanel",flex:0.25,margin:"0 10 0 10",padding:"0 0 3 0",layout:{type:"hbox",align:"stretch"},defaults:{cls:"containerDigitalData",flex:0.25,height:205},items:an});b.add(at);b.doComponentLayout();for(var Y=0;Y<s.length;Y++){var q=Ext.getCmp("net-dialChart-"+Y);
if(!Ext.isEmpty(q)){var C=q.dataArray;var ag=C["XML_DATA"];var X=C["SWF_PATH"];var L=C["dialInterfaceFlag"];if(ag!="-"){if(L!=undefined&&L=="false"&&L!="true"){getHighChartsGuage("net-chart-"+Y,ag);}else{Ext.get("net-chart-"+Y).update('<div style="margin-top:50px;vertical-align:middle;display:inline-block;text-align: center;font-size:12px;"><img src="/final/images/spacer.gif" class="iconAlert" style="vertical-align: middle"> <span >'+ag+"</span></div>");
}}else{Ext.get("net-chart-"+Y).update('<div style="border:0px solid blue;margin:0px auto"><div class="iconInformation" width="100%" style="text-align:center;margin:0px auto;margin-top: 20px;"></div><div style="text-align:center;margin:0px auto;">'+noMeasureExcl+"</div></div>");}}}}else{b.add({xtype:"container",width:"100%",id:"netdialpanel",height:207,flex:0.25,margin:"0 10 0 10",padding:"0 0 8 0",layout:{type:"hbox",align:"stretch"}});
b.doComponentLayout();}var I=aB["hopObj"];if(!Ext.isEmpty(I)){var k=I["WIDTH"];var aE=I["HEIGHT"];var Z=I["TITLE"];var ae=new Array();an.splice(0,an.length);var Q=I["NoMess"];if(Q=="true"){}else{ae.push({xtype:"container",height:aE,width:k,cls:"last_border",margin:"10 10 10 10",padding:"0 0 10 0",html:'<div style="border:0px solid red;text-align:center;margin:5px 0px 5px 10px;"><div class="font_bold12">'+Z+'</div><div class="x-table" style="margin-top: 6px;"><table class="x-grid-table x-grid-table-resizer border-theme" cellspacing="0" cellpadding="1px" border="0" width="100%" style="width:100%"><thead><tr class="x-grid-row"><td class="x-grid-cell" align="center" style="padding:4px 4px 2px 4px">'+I["COLUMN_0"]+'</td><td class="x-grid-cell" align="center" style="padding:4px 4px 2px 4px">'+I["COLUMN_1"]+'</td></tr></thead><tr class="x-grid-row"><td class="x-grid-cell" >'+I["COLUMN_0_val"]+'</td><td align="center" class="x-grid-cell" ><div class="measuresInnerTable"><table cellpadding="0" border="0" style="border-bottom:0px;border: 0px;" ><tr><td align="center" style="border-bottom:0px;border:0px !important;padding:4px 4px 0px 4px;" > '+I["COLUMN_1_val_0"]+'</td><td align="center" style="border-bottom:0px;border:0px !important;padding:4px 4px 0px 4px;">'+I["COLUMN_1_val_1"]+'</td><td align="center" style="border-bottom:0px;border:0px !important;padding:4px 4px 0px 4px">'+I["COLUMN_1_val_2"]+"</td></tr></table></div></td></tr></table></div></div>"});
}b.add(ae);}var ar=aB["DIGITAL"];if(!Ext.isEmpty(ar)){an.splice(0,an.length);for(var Y=0;Y<ar.length;Y++){var aC=ar[Y]["IMG_HEADING"];var F=ar[Y]["IMG_SRC"];var w=ar[Y]["HEIGHT"];var aw=ar[Y]["WIDTH"];var aS=ar[Y]["UNIT"];var aM=ar[Y]["CMP_TYPE"];var aN=Math.round(ar[Y]["CONTAINER_WIDTH"]);if(F!="-"){an.push({xtype:"panel",flex:0.25,id:"containerDigitalData"+Y,cls:"containerDigitalData",margin:"10 0 0 0",layout:{type:"vbox",align:"stretch"},items:[{xtype:"label",html:'<div style="text-align:center;" class="font_bold12">'+aC+"</div>"},{xtype:"container",id:"digitalChartID"+Y,height:65,margin:"8 0 0 0",style:{"text-align":"center","height":"65px !important"},dataArray:ar[Y],listeners:{"afterrender":function(j){var l=this.dataArray;
var a3=l["IMG_SRC"];var a1=l["HEIGHT"];var a0=l["WIDTH"];var aZ=l["IMG_TITLE"];var a2=l["METHOD_NAME"];var aY=l["PARAMS"];var i='<img src="'+a3+'" title="'+aZ+'" style="cursor:pointer" onclick="javascript:'+a2+"('"+aY+"');\"/>";a1=Math.round(a1);this.setHeight(a1);this.update(i);}}},{xtype:"label",html:'<div style="text-align:center"><b>'+aS+"</b></div>"}]});
}else{an.push({xtype:"panel",flex:0.25,id:"containerDigitalData"+Y,cls:"containerDigitalData",height:95,layout:{type:"vbox",align:"stretch"},items:[{xtype:"label",html:'<div style="text-align:center;" class="font_bold12">'+aC+"</div>"},{xtype:"container",id:"digitalChartID"+Y,height:75,margin:"8 0 0 0",style:{"text-align":"center","height":"75px !important"},listeners:{"afterrender":function(j){var i=this.id;
Ext.get(j.id).update('<div style="border:0px solid blue;margin:0px auto"><div class="iconInformation" width="100%" style="text-align:center;margin:0px auto"></div><div style="text-align:center;margin:0px auto;">'+noMeasureExcl+"</div></div>");}}}]});}}}if((s==undefined||Ext.isEmpty(s))&&(ar==undefined||Ext.isEmpty(ar))){var aH=aB["NET_TAB_NoGraphTitle"];
var n=aB["DIAL_DIGITAL_MSG"];var am=testExcludedorDisabledMsg;if(n==undefined||Ext.isEmpty(n)){am=noMeasure;}Ext.getCmp("netdialpanel").removeAll();Ext.getCmp("netdialpanel").flex=1;var x={xtype:"container",margin:"1px 0px 0px 0",width:"100%",height:200,html:'<div class="noGraphTitle" style="padding-top:5px;">'+aH+'</div><table width="100%" height="100%" style="text-align:center"><tr><td><div class="iconInformation" style="margin:0px auto"></div><div>'+am+"</div></td></tr></table>"};
var u=Ext.getCmp("netdialpanel");u.removeAll();u.add(x);u.doComponentLayout();av.hide();}else{if(Ext.isEmpty(s)){var aH=aB["NET_TAB_NoGraphTitle"];var ab=aB["DIAL_MSG"];var am=testExcludedorDisabledMsg;if(ab==undefined||Ext.isEmpty(ab)){am=noMeasure;}Ext.getCmp("netdialpanel").removeAll();Ext.getCmp("netdialpanel").flex=1;
var x={xtype:"container",margin:"1px 0px 0px 0",width:"100%",height:150,html:'<div class="noGraphTitle" style="padding-top:0px;">'+aH+'</div><table width="100%" height="100%" style="text-align:center"><tr><td><div class="iconInformation" style="margin:0px auto"></div><div>'+am+"</div></td></tr></table>"};
var u=Ext.getCmp("netdialpanel");u.removeAll();u.add(x);u.doComponentLayout();}else{if(Ext.isEmpty(ar)){av.hide();}}}av.add(an);if(Ext.getCmp("containerDigitalData0")){Ext.getCmp("containerDigitalData0").addCls("first");}av.doComponentLayout();var aQ=aB["CONFIG_DATAS"];if(!Ext.isEmpty(aQ)){an.splice(0,an.length);
var U=0;for(var Y=0;Y<aQ.length;Y++){var aK=aQ[Y];var ax=aK["TITLE"];var ac=aK["TYPE"];ac=ac.toLowerCase();var ak=aK["ADMIN_PERMISSION"];var t=new Array();if(ak.toLowerCase()=="true"){t.push({xtype:"button",iconCls:"iconMaximize",dataArray:"netconfig-"+Y,handler:function(){var i=this.dataArray;}});}else{t.push({xtype:"button",iconCls:"iconMaximize",dataArray:"netconfig-"+Y,handler:function(){var i=this.dataArray;
}});}if(ac=="table"){var aT=aK["CONFIGURATION"];var e="";if(!Ext.isEmpty(aT)&&aT!="-"){e='<div class="x-table"><table cellspacing="0" width="100%" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer"><tbody>';for(var W=0;W<aT.length;W++){var g="";if(aT[W]["TITLE"]!=undefined){e+='<tr class="x-grid-row"><td colspan="2" class=" x-grid-cell x-grid-cell-first"><div class="x-grid-cell-inner">'+aT[W]["TITLE"]+"</div></td></tr>";
}else{var aV="",aU="";if(aT[W]["VALUE_1"]!=undefined){aV=aT[W]["VALUE_1"];}if(aT[W]["VALUE_2"]!=undefined){aU=aT[W]["VALUE_2"];}e+='<tr class="x-grid-row"><td class=" x-grid-cell x-grid-cell-first"><div class="x-grid-cell-inner">'+aV+'</div></td><td class=" x-grid-cell x-grid-cell-first"><div class="x-grid-cell-inner">'+aU+"</div></td></tr>";
}}e+="</tbody></table></div>";}else{var P=aK["MSG"];e='<table cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr class="x-grid-row"><td width="100%" height="170px" valign="middle" align="center"><div class="iconInformation" width="100%" style="text-align:center;margin:0px auto"></div><div>'+P+"</div></td></tr></tbody></table>";
}var aj=aK["configInfos"];var ao=true;var al="";var ad="";if(aj!=null&&aj!="undefined"&&aj!="-"){ao=false;al=aK["configInfosLable"];ad=aK["configSelectedInfos"];}an.push({xtype:"commonPanel",height:200,padding:0,layout:"fit",title:ax,id:"netconfig-"+Y,tools:[{xtype:"combo",hidden:ao,labelWidth:45,fieldLabel:al,store:new Ext.data.Store({fields:["displayField","valueField"],data:aj}),value:ad,cls:"dropdown ",queryMode:"local",stateId:componentName+"_AdapterInfos",stateful:true,displayField:"displayField",valueField:"valueField",listeners:{"select":function(l){var j=this;
var i="/final/monitor/egDashboardOverviewJSON.jsp";i+="?"+"hostName="+encodeURIComponent(componentName)+"&compType="+encodeURIComponent(componentType)+"&selectedConfigInfos="+encodeURIComponent(l.value)+"&tab=Network";Ext.Ajax.request({url:i,method:"GET",async:false,success:function(a0){if(a0.status==200&&!Ext.isEmpty(a0.responseText)){jsonText=a0.responseText;
jsonData=Ext.decode(jsonText);var a7=jsonData["CONFIG_DATAS"];for(var a3=0;a3<a7.length;a3++){var a1=a7[a3];var aZ=a1["TITLE"];var a8=a1["TYPE"];a8=a8.toLowerCase();if(a8=="table"){var a4=a1["CONFIGURATION"];var ba="";if(!Ext.isEmpty(a4)&&a4!="-"){ba='<div class="x-table"><table cellspacing="0" width="100%" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer"><tbody>';
for(var a2=0;a2<a4.length;a2++){var a9="";if(a4[a2]["TITLE"]!=undefined){ba+='<tr class="x-grid-row"><td colspan="2" class=" x-grid-cell x-grid-cell-first"><div class="x-grid-cell-inner">'+a4[a2]["TITLE"]+"</div></td></tr>";}else{var a6="",a5="";if(a4[a2]["VALUE_1"]!=undefined){a6=a4[a2]["VALUE_1"];}if(a4[a2]["VALUE_2"]!=undefined){a5=a4[a2]["VALUE_2"];
}ba+='<tr class="x-grid-row"><td class=" x-grid-cell x-grid-cell-first"><div class="x-grid-cell-inner">'+a6+'</div></td><td class=" x-grid-cell x-grid-cell-first"><div class="x-grid-cell-inner">'+a5+"</div></td></tr>";}}ba+="</tbody></table></div>";}else{var aY=a7["MSG"];ba='<table cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr class="x-grid-row"><td width="100%" height="170px" valign="middle" align="center"><div class="iconInformation" width="100%" style="text-align:center;margin:0px auto"></div><div>'+aY+"</div></td></tr></tbody></table>";
}j.up("panel").update(ba);}}}},failure:function(){alert("I am in failure...");}});}}}],html:e});}else{if(ac=="spark"){var aT=aK["CONFIGURATION"];var e="";if(aT!="-"){e='<div class="x-table"><table cellspacing="0" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer" width="100%"><tbody>';
for(var W=0;W<aT.length;W++){var J=aT[W];e+='<tr class="x-grid-row" height="20px">';var au="";for(var h in J){var ah=J[h];if(h.toLowerCase()=="state"){au+='<td class="x-grid-cell x-grid-cell-first" width="30px"><div class="x-grid-cell-inner"><div class="state_'+ah+'"></div></div></td>';}else{if(h.toLowerCase()=="link"){var aL=ah;
var K=aL["MEASURE"];var aR=aL["STATE"];if(aR!=undefined){au+='<td class="x-grid-cell" width="15px" ><div class="x-grid-cell-inner" ><div class="state_'+aR+'"></div></div></td>';}if(aL["METHOD_NAME"]!=undefined&&aL["PARAMS"]!=undefined){var aA=aL["METHOD_NAME"];var aF=aL["PARAMS"];au+='<td class="x-grid-cell x-grid-cell-first"><div class="x-grid-cell-inner"><a href="javascript:void(0);" onclick="javascript:'+aA+"('"+aF+'\');" title="'+K+'">'+K+"</a></div></td>";
}else{au+='<td class="x-grid-cell x-grid-cell-first"><div class="x-grid-cell-inner">'+K+"</div></td>";}}else{if(h.toLowerCase()=="xml_data"){var ag=ah;if(ag!="-"){var X=ah["SWF_PATH"];au+='<td class="x-grid-cell x-grid-cell-first" width="70"><div class="x-grid-cell-inner"><div id="net-chartSparkContainer'+U+'" style="border:0px solid red;height:20px;cursor:pointer"></div></div></td>';
}else{au+='<td class="x-grid-cell x-grid-cell-first" width="70"><div class="x-grid-cell-inner"><div id="net-chartSparkContainer'+U+'" style="border:0px solid red;height:20px;">'+ag+"</div></div></td>";}U++;}else{if(h.toLowerCase()=="value"){if(ah!=undefined&&ah>0&&ah!=""&&!isNaN(ah)){au+='<td class="x-grid-cell x-grid-cell-first" width="70"><div class="x-grid-cell-inner">'+Number(ah).toFixed(2)+"</div></td>";
}else{au+='<td class="x-grid-cell x-grid-cell-first" width="70"><div class="x-grid-cell-inner">'+ah+"</div></td>";}}}}}}e+=au+"</tr>";}e+="</tbody></table></div>";}else{var P=aK["MSG"];e='<table cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr class="x-grid-row"><td width="100%" height="170px" valign="middle" align="center"><div class="iconInformation" width="100%" style="text-align:center;margin:0px auto"></div><div>'+P+"</div></td></tr></tbody></table>";
}an.push({xtype:"commonPanel",height:200,padding:0,title:ax,dataArray:aT,id:"netconfig-"+Y,html:e});}else{if(ac=="grid"){var o="";var af=0.5;if(aK["COLUMN_WIDTH"]!=undefined){af=aK["COLUMN_WIDTH"];}if(aK["GRID_COLUMNS"]!=undefined&&aK["GRID_VALUES"]!=undefined){var N=aK["GRID_COLUMNS"];var H=aK["GRID_VALUES"];
var M=new Array();var B=new Array();if(!Ext.isEmpty(N)){for(var V=0;V<N.length;V++){if(V==0){B.push({name:"COLUMN_"+V,type:"FLOATORSTRING"});B.push({name:"COLUMN_"+V+"_STATE",type:"FLOATORSTRING"});}else{B.push({name:"COLUMN_"+V,type:"FLOATORSTRING"});}M.push({header:N[V],flex:0.2,dataIndex:"COLUMN_"+V,renderer:function(a3,l,a1,a5,aY,a4,i){if(aY==0){var j=i.getHeaderAtIndex(aY);
var a2=a1.get(j.dataIndex+"_STATE");if(!Ext.isEmpty(a2)){a3='<div style="position:relative;"><span class="state_'+a2+'" style="width: 16px;display:inline-block;float:left;position:relative;top: 1.5px;"></span><span style="margin-left:9px;">'+a3+"</span></div>";}}if(aY==1){var aZ=a3["TOOLTIP_TITLE"];var a0=a3["STATUS"];
if(a0=="up"){a3='<img title ="'+aZ+'" src="/final/images/spacer.gif" class="iconArrowUp" border="0">';}else{if(a0=="down"){a3='<img title ="'+aZ+'" src="/final/images/spacer.gif" class="iconArrowDown" border="0">';}}}return a3;}});}}o={xtype:"customgrid",cls:"gridSkin",width:"100%",layout:"fit",flex:1,autoScroll:true,store:new Ext.data.Store({fields:B,data:H}),columns:M};
}else{var P=aK["MSG"];o={xtype:"container",width:"100%",height:200,layout:"anchor",html:'<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:27px auto"></div><div style="text-align:center">'+P+" </div></div></div>"};
}if(o!=""){an.push({xtype:"commonPanel",layout:{type:"vbox",align:"stretch"},flex:1,padding:0,columnWidth:af,height:250,title:ax,id:"netconfig-"+Y,items:[o]});}}else{if(ac=="fusion_chart"){var c=aK["XML_DATA"];var E=aK["SWF_PATH"];var aG=aK["HEIGHT"];var O=aK["WIDTH"];an.push({xtype:"panel",frame:false,height:200,title:ax,id:"netconfig-"+Y,html:'<div id="net-LayerwiseHealth" style="margin:0px auto 0px auto"></div>',listeners:{"afterrender":function(i){if(c!="-"){try{var j={};
j=jQuery.extend(true,{},getHighChartsBarInstance("net-LayerwiseHealth",140,450),j);j.setData(c,currentDateFormat,"","stackedBar");j.drawChart();}catch(l){console.log(l);}}else{Ext.get("net-LayerwiseHealth").update('<div style="border:0px solid blue;margin:0px auto"><div class="iconInformation" width="100%" style="text-align:center;margin:0px auto;margin-top: 20px;"></div><div style="text-align:center;margin:0px auto;">'+noMeasureExcl+"</div></div>");
}}}});}else{an.push({xtype:"commonPanel",height:200,padding:0,title:ax,id:"netconfig-"+Y,html:'<table cellspacing="0" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer" width="100%"><tbody><tr class="x-grid-row"><td width="100%" height="170px" valign="middle" align="center"><div class="iconInformation" width="100%" style="text-align:center;margin:0px auto"></div><div>'+noMeasureExcl+"</div></td></tr></tbody></table>"});
}}}}}aa.add(an);aa.doComponentLayout();var aD=0;for(var S=0;S<aa.items.length;S++){var az=Ext.getCmp("netconfig-"+S);if(az!=undefined&&az.dataArray!=null){var C=az.dataArray;var f=0;for(var A=aD;A<U;A++){var T=az.getEl().dom.innerHTML;if(T.indexOf("net-chartSparkContainer"+A)>-1){var r=C[f]["XML_DATA"];
if(r!="-"){var X=C[f]["SPARK_PATH"];var aJ=getSparkCharts("net-chartSparkContainer"+A,"90","20",r,X);}}f++;}aD+=az.dataArray.length;}}}}netLastGraphTypeLoaded="SummaryAtGlance";},showDetailsTab:function(x,f,v){var c=Ext.getCmp(x);c.setAutoScroll(true);if(v=="default"){c.removeAll();c.add({xtype:"container",id:"net-details-outer-panel",width:c.getWidth(),height:c.getHeight(),autoScroll:true,width:"100%",layout:{type:"column"},defaults:{columnWidth:0.333,cls:"datapanel",}});
c.doComponentLayout();}var h=0;var j=Ext.getCmp("networksubsystem").getValue();if(!Ext.isEmpty(j)&&j.toLowerCase()!="overview"){}var o=c.getHeight();var e=new Array();var k=Ext.getCmp("net-details-outer-panel");k.removeAll();var a=f["CHARTS"];var m=f["detailHopArr"];if(!Ext.isEmpty(a)){if(a["NO_CHARTS"]!=undefined&&a["NO_CHARTS"]=="true"){var t=a["NO_CHARTS_MSG"];
e.push({xtype:"panel",layout:"fit",columnWidth:1,margin:10,border:true,frame:true,height:c.getHeight()-20,cls:"block1",html:'<table width="100%" height="100%" style="text-align:center"><tr><td><div class="iconInformation" style="margin:0px auto 0px auto"></div><div>'+t+"</div></td></tr></table>"});k.add(e);
k.doComponentLayout();}else{var p=new Array();for(var u=0;u<a.length;u++){var d=a[u];var o=a[u]["HEIGHT"];var b=a[u]["WIDTH"];var n=a[u]["ddGraphUrlLarge"];e.push({xtype:"container",cls:"datapanel optionalListPanel",id:"net-bar-container-"+u,dataArray:d,max:n,chartCnt:u,width:b,height:o,margin:"10 10 10 10",autoScroll:true,scroll:true,html:'<div id="net-barChart'+u+'" style="border 1px solid red;cursor:pointer;width:'+b+"px;height:"+o+'px"></div>',listeners:{"afterrender":function(){try{var A=Ext.get("net-barChart"+this.chartCnt).getHeight();
var i=Ext.get("net-barChart"+this.chartCnt).getWidth();var B={};B=jQuery.extend(true,{},getHighChartsBarInstance("net-barChart"+this.chartCnt,A,i),B);var z=this.dataArray["ddGraphUrlLarge"];B.setData(this.dataArray["XML_DATA"],currentDateFormat,z,"bar");B.drawChart();}catch(C){console.log(C);}},"resize":function(){try{var A=Ext.get("net-barChart"+this.chartCnt).getHeight();
var i=Ext.get("net-barChart"+this.chartCnt).getWidth();var B={};B=jQuery.extend(true,{},getHighChartsBarInstance("net-barChart"+this.chartCnt,A,i),B);var z=this.dataArray["ddGraphUrlLarge"];B.setData(this.dataArray["XML_DATA"],currentDateFormat,z,"bar");B.drawChart();}catch(C){console.log(C);}}}});}k.add(e);
k.doComponentLayout();}}else{e.push({xtype:"panel",layout:"fit",columnWidth:1,margin:10,border:true,frame:true,height:c.getHeight()-20,cls:"block1",html:'<table width="100%" height="100%" style="text-align:center"><tr><td><div class="iconInformation" style="margin:0px auto 0px auto"></div><div>'+noMeasureExcl+"</div></td></tr></table>"});
k.add(e);k.doComponentLayout();}var s=new Array();if(!Ext.isEmpty(m)){var r=m[0];var y=r["TABLETITLE"];var g=r["TYPE"];var l=r["Msg"];var q=c.getWidth()-5;if(l!="true"){var w={xtype:"container",height:228,width:"100%",cls:"datapanel optionalListPanel",padding:"5% 0% 5% 0%",margin:"10 10 10 10",html:'<div style="border:0px solid red;text-align:center;margin:5px" ><div class="font_bold12">'+y+'</div><div class="x-table themeborder" style="margin-top: 6px;"><table class="x-grid-table x-grid-table-resizer" cellspacing="0" cellpadding="0" border="0"> <col style="width:25%"><col style="width:13%"><col style="width:13%"><col style="width:13%"><col style="width:41%"><thead><tr class="x-grid-row"><td class="x-grid-cell" align="center"><div class="x-grid-cell-inner ">'+r["COLUMN_0"]+'</div></td><td class="x-grid-cell" align="center"><div class="x-grid-cell-inner ">'+r["COLUMN_1"]+'</div></td><td class="x-grid-cell" align="center"><div class="x-grid-cell-inner ">'+r["COLUMN_2"]+'</div></td><td class="x-grid-cell" align="center"><div class="x-grid-cell-inner ">'+r["COLUMN_3"]+'</div></td><td class="x-grid-cell" align="center"><div class="x-grid-cell-inner ">'+r["COLUMN_4"]+'</div></td></tr></thead><tbody class="networkTableCell"><tr><td class="x-grid-cell" align="center"><div class="x-grid-cell-inner ">'+r["COLUMN_0_val"]+'</div></td><td class="x-grid-cell" align="center" ><div class="x-grid-cell-inner ">'+r["COLUMN_1_val"]+'</div></td><td class="x-grid-cell" align="center" ><div class="x-grid-cell-inner ">'+r["COLUMN_2_val"]+'</div></td><td class="x-grid-cell" align="center" ><div class="x-grid-cell-inner ">'+r["COLUMN_3_val"]+'</div></td><td style="width:300px;padding:0px; height:24px" align="center" class="x-grid-cell" style="border-right: 1px solid #d7d7d7;"><div class="x-grid-cell-inner "><table cellpadding="1" cellpadding="0" border="0" style="table-layout:fixed;width:150px;height:20px" class="hop" ><tr><td align="center" class="x-grid-cell" >'+r["COLUMN_4_val_0"]+'</td><td align="center">'+r["COLUMN_4_val_1"]+'</td><td align="center" class="x-grid-cell"> '+r["COLUMN_4_val_2"]+"</td></tr></tbody></table></div></td></table></div></div>"};
}k.add(w);k.doLayout();}netLastGraphTypeLoaded="DDgraph";},showHistoryTab:function(H,j,E){var y=j["uptimeURL"];var p=Ext.getCmp(H);p.setAutoScroll(true);if(E=="default"){p.removeAll();}var w=false;if(y!=null&&!Ext.isEmpty(y)&&y!=undefined){this.loadUptimeSummary(H,y,E);w=true;}var n=Ext.getCmp("networksubsystem").getValue();
var m=0;if(!Ext.isEmpty(n)&&n.toLowerCase()!="overview"){}p.setAutoScroll(true);p.setHeight((Ext.getBody().getHeight()-265)+m);if(p.getEl()!=undefined){p.getEl().mask(loadingLbl+"...","maskCenter");}var t=p.getHeight();var b=Ext.getCmp("networksubsystem").getValue();var a=j["CHARTS"];var g=j["hiddens"];
netLastGraphTypeLoaded=g["graphType"];if(!Ext.isEmpty(a)){if(a["NO_CHARTS"]!=undefined&&a["NO_CHARTS"]=="true"){var A=a["NO_CHARTS_MSG"];if(b=="Overview"){var k="margin:6% auto 0px auto";}else{var k="margin:9% auto 0px auto";}if(E=="default"){p.add({xtype:"container",id:"NetnoCharts_Measure",height:350,width:"100%",margin:"0px 0px 0px 0px",html:'<table width="200px" height="200px" style="'+k+'"><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div>'+A+"</td></tr></table>"});
}else{if(Ext.getCmp("NetnoCharts_Measure")!=null){Ext.getCmp("NetnoCharts_Measure").update('<table width="200px" height="200px" style="'+k+'"><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div>'+A+"</td></tr></table>");}else{p.add({xtype:"container",id:"NetnoCharts_Measure",height:350,width:"100%",margin:"0px 0px 0px 0px",html:'<table width="200px" height="200px" style="'+k+'"><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div>'+A+"</td></tr></table>"});
}}}}else{if(!Ext.isEmpty(j["MEASURE_GRAPHS"])&&g["graphType"]=="measureGraph"){var u=new Array();var D=j["MEASURE_GRAPHS"];if(E=="default"){p.add({xtype:"container",id:"net-chart-container",width:"100%",margin:5,layout:"column",defaults:{columnWidth:0.333,cls:"datapanel",}});p.doComponentLayout();}for(var B=0;
B<D.length;B++){var f=D[B];var t=f["HEIGHT"];var e=f["WIDTH"];var h=f["TITLE"];var l=f["TOOLTIP_TITLE"];var d=f["IMG_SRC"];var x=f["HIGH_CHART"];var q="";if(x=="false"){var c=D[B]["PARAMS"];q="<img onClick=\"javascript:MeasureGraphOnClick('"+c+'\');" src="'+d+'" height="'+t+'" width="'+e+'" />';}else{q='<div id="net-high-chart-'+B+'" style="border:0px solid yellow;height:'+t+"px;width:"+e+'px;margin:0px auto;"></div>';
}u.push({xtype:"panel",id:"net-measure-graph-"+B,cls:"datapanel optionalListPanel cursor",margin:"5",padding:0,bodyPadding:5,width:"100%",dataArray:f,items:[{xtype:"label",style:{"text-align":"center"},html:'<div title="'+l+'" class="font_bold" style="padding:5px;margin-top:7px;text-align:center">'+h+"</div>"},{xtype:"container",width:"100%",html:q}]});
}Ext.getCmp("net-chart-container").removeAll();Ext.getCmp("net-chart-container").add(u);Ext.getCmp("net-chart-container").doComponentLayout();for(var B=0;B<D.length;B++){var d=D[B]["IMG_SRC"];if(D[B]["HIGH_CHART"]=="true"){var c=D[B]["PARAMS"];if(Ext.get("net-high-chart-"+B)!=null&&Ext.get("net-high-chart-"+B)!="null"&&Ext.get("net-high-chart-"+B)!=undefined){Ext.Ajax.request({url:d,method:"GET",async:false,success:function(J){if(J.status==200&&!Ext.isEmpty(J.responseText)){var M=J.responseText;
if(M.indexOf("png")==-1&&M.indexOf("PNG")==-1&&M.indexOf("gif")==-1&&M.indexOf("GIF")==-1){var K=Ext.decode(M);try{var i={};i=jQuery.extend(true,{},getHighCharts("net-high-chart-"+B,D[B]["HEIGHT"],D[B]["WIDTH"],c),i);if(K.hasOwnProperty("title")){K.title="";}K["legVerAlignWBottom"]=true;i.setData(K,currentDateFormat,c,true,"bottom");
i.drawChart();}catch(L){alert("e::"+L);}}else{Ext.get("net-high-chart-"+B).update('<table width="100%" height="100%"><tr><td align="center"><div class="iconInformation" style="margin:0px auto;margin-top:-50px"></div>'+noMeasureExcl+"</td></tr></table>");}}else{Ext.get("net-high-chart-"+B).update('<table width="100%" height="100%"><tr><td align="center"><div class="iconInformation" style="margin:0px auto;margin-top:-50px"></div>'+noMeasureExcl+"</td></tr></table>");
}}});}}}}else{if(!Ext.isEmpty(j["SUMMARY_GRAPHS"])&&g["graphType"]=="summaryGraph"){var u=new Array();var D=j["SUMMARY_GRAPHS"];if(E=="default"){p.add({xtype:"container",id:"net-chart-container",width:"100%",autoScroll:!w,layout:"column",defaults:{columnWidth:0.5}});p.doComponentLayout();}for(var B=0;
B<D.length;B++){var f=D[B];var e=f["WIDTH"];var t=f["HEIGHT"];var h=f["TITLE"];var l=f["TOOLTIP_TITLE"];var v=f["summryFullviewGraphUrl"];u.push({xtype:"container",margin:5,cls:"containerShadow",items:[{xtype:"label",html:'<div style="text-align: center;margin-top: 10px;"><span title="'+l+'" style="padding:5px;text-align:center">'+h+"</span></div>"},{xtype:"container",margin:"10",width:"100%",id:"net-summary-graph-"+B,dataArray:f,MaxURL:v,style:{cursor:"pointer"},html:'<div style="text-align:center;padding:0px 0px" ><div id="net-summaryChart-'+B+'" style="width:'+e+"px;height:"+t+'px;margin:0px auto"></div></div>',listeners:{"afterrender":function(i){var K=this.dataArray["XML_DATA"];
try{var J={};J=jQuery.extend(true,{},getHighChartsBarInstance(i.id,250,e),J);J.setData(K,currentDateFormat,i.MaxURL,"stackedColumn");J.drawChart();}catch(L){console.log(L);}}}}]});}Ext.getCmp("net-chart-container").removeAll();Ext.getCmp("net-chart-container").add(u);Ext.getCmp("net-chart-container").doLayout();
}else{if(!Ext.isEmpty(j["TREND_GRAPHS"])&&g["graphType"]=="trendGraph"){var u=new Array();var D=j["TREND_GRAPHS"];if(E=="default"){p.add({xtype:"container",id:"net-chart-container",width:"100%",autoScroll:!w,margin:10,layout:"column",defaults:{columnWidth:0.33}});p.doComponentLayout();}for(var B=0;B<D.length;
B++){var f=D[B];var e=f["WIDTH"];var t=f["HEIGHT"];var h=f["TITLE"];var l=f["TOOLTIP_TITLE"];u.push({xtype:"panel",cls:"datapanel optionalListPanel cursor",margin:"5",bodyPadding:5,id:"net-trend-graph-"+B,width:"100%",dataArray:f,items:[{xtype:"label",style:{"text-align":"center"},html:'<div title="'+l+'" class="font_bold" style="padding:5px;margin-top:7px;text-align:center" >'+h+"</div>"},{xtype:"container",id:"net-trendChart-"+B,width:"100%",height:parseInt(t)}]});
}Ext.getCmp("net-chart-container").removeAll();Ext.getCmp("net-chart-container").add(u);Ext.getCmp("net-chart-container").doComponentLayout();for(var B=0;B<D.length;B++){var I=Ext.getCmp("net-trend-graph-"+B);var z=I.dataArray;var G=I.getWidth();var r=z["XML_DATA"];if(r!="-"){try{var C=z["WIDTH"];var o=z["HEIGHT"];
var v=z["minMaxtrendFullView"];var F={};F=jQuery.extend(true,{},createLineChart("net-trendChart-"+B,o,G-16,false),F);F.setData(r,currentDateFormat,v,"line",true);F.drawChart();}catch(s){console.log(s);}}}}}}}if(Ext.getCmp("net-calendar-btn")!=undefined){}if(p.getEl()!=undefined){p.getEl().unmask();}},loadUptimeSummary:function(c,b,a){var e="";
var d=new Array();Ext.Ajax.request({url:b,method:"POST",async:false,success:function(k){if(k.status==200&&!Ext.isEmpty(k.responseText)){var h=k.responseText;var n=Ext.decode(h);e=n["uptimeArr"];var q=e[0];var g=e[1];var j=q["tableTitle"];var l=Ext.getCmp(c);if(a=="default"){l.removeAll();l.add({xtype:"container",columnWidth:3,layout:"column",width:"100%",defaults:{columnWidth:0.5},padding:4,id:"net-uptime-container"});
l.doComponentLayout();}var i=Ext.getCmp("net-uptime-container");var p=g["RebootTitle"];var f=g["Msg"];var m="";var o="";if(j!=null&&!Ext.isEmpty(j)){m='<table cellspacing="0" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer" width="100%"><tbody>'+'<tr class="x-grid-row"><td width="100%" height="170px" valign="middle" align="center"><div class="iconInformation" width="100%" style="text-align:center;"></div><div>'+noMeasureExcl+"</div></td></tr></tbody></table>";
}else{m='<table cellspacing="0" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer" width="100%"><tbody>';m+='<tr class="x-grid-row" height="20px">';m+='<td class="x-grid-cell" >'+q["COLUMN_0"]+"</td>";m+='<td class="x-grid-cell">'+q["COLUMN_0_val"]+"</td>";m+="</tr>";m+='<tr class="x-grid-row" height="20px">';
m+='<td class="x-grid-cell">'+q["COLUMN_1"]+"</td>";m+='<td class="x-grid-cell">'+q["COLUMN_1_val"]+"</td>";m+="</tr>";m+='<tr class="x-grid-row" height="20px">';m+='<td class="x-grid-cell">'+q["COLUMN_2"]+"</td>";m+='<td class="x-grid-cell">'+q["COLUMN_2_val"]+"</td>";m+="</tr>";m+='<tr class="x-grid-row" height="20px">';
m+='<td class="x-grid-cell">'+q["COLUMN_3"]+"</td>";m+='<td class="x-grid-cell">'+q["COLUMN_3_val"]+"</td>";m+="</tr>";m+='<tr class="x-grid-row" height="20px">';m+='<td class="x-grid-cell">'+q["COLUMN_4"]+"</td>";m+='<td class="x-grid-cell">'+q["COLUMN_4_val"]+"</td>";m+="</tr>";m+="</tbody></table>";
}if(f!=null&&f=="true"){o='<table cellspacing="0" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer" width="100%"><tbody>'+'<tr class="x-grid-row"><td width="100%" height="170px" valign="middle" align="center"><div class="iconInformation" width="100%" style="text-align:center;"></div><div>'+g["EmptyMsg"]+"! </div></td></tr></tbody></table>";
}else{o='<div class="x-table"><table cellspacing="0" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer" width="100%"><tbody>';o+='<tr class="x-grid-row" height="20px">';o+='<td class="x-grid-cell" >'+g["COLUMN_0"]+"</td>";o+='<td class="x-grid-cell">'+g["COLUMN_1_val"]+"</td>";o+="</tr>";
o+='<tr class="x-grid-row" height="20px">';o+='<td class="x-grid-cell">'+g["COLUMN_1"]+"</td>";o+='<td class="x-grid-cell">'+g["COLUMN_2_val"]+"</td>";o+="</tr>";o+="</tbody></table></div>";}d.push({xtype:"commonPanel",id:"net-uptimeSum",padding:"0px 10px 0px 0px",height:200,title:j,html:m});d.push({xtype:"commonPanel",id:"net-rebootSum",height:200,padding:"0px 0px 0px 0px",title:p,html:o});
i.removeAll();i.add(d);i.doComponentLayout();}}});},callView:function(a){var d="default";var e=Ext.getCmp(Ext.getCmp("Nettabpanel").getActiveTab().getId());e.getEl().mask(loadingLbl+"...","maskCenter");var j=this;var f=(Ext.getCmp("net_er_timeline")!=undefined)?Ext.getCmp("net_er_timeline").getValue():timelineVals["timeline"];
var g="";var i="";if((Ext.getCmp("net_er_stdate")!=undefined)){g=formatDate(Ext.getCmp("net_er_stdate").getValue(),mgrDisplayDateFormat);}else{g=timelineVals["starttime"];}if((Ext.getCmp("net_er_enddate")!=undefined)){i=formatDate(Ext.getCmp("net_er_enddate").getValue(),mgrDisplayDateFormat);}else{i=timelineVals["endtime"];
}var c=Ext.get("net-configModApp");if(!Ext.isEmpty(c)){c.hide();c=null;}var k=(Ext.getCmp("net_er_sthr")!=undefined)?Ext.getCmp("net_er_sthr").getValue():timelineVals["starthour"];var b=(Ext.getCmp("net_er_endhr")!=undefined)?Ext.getCmp("net_er_endhr").getValue():timelineVals["endhour"];var h="";if(a=="summaryGraph"||a=="trendGraph"){h="tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(Ext.getCmp("networksubsystem").getValue())+"&graphType="+encodeURIComponent(a)+"&showGraph="+encodeURIComponent(a)+"&time_line=24 hours&starttime="+encodeURIComponent(g)+"&endtime="+encodeURIComponent(i)+"&starthr="+encodeURIComponent(k)+"&endhr="+encodeURIComponent(b)+"&format="+encodeURIComponent(dateFormatForTimeline)+"&host="+encodeURIComponent(requestParams.hostName);
}else{h="tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(Ext.getCmp("networksubsystem").getValue())+"&graphType="+encodeURIComponent(a)+"&showGraph="+encodeURIComponent(a)+"&time_line=1 hour&starttime="+encodeURIComponent(g)+"&endtime="+encodeURIComponent(i)+"&starthr="+encodeURIComponent(k)+"&endhr="+encodeURIComponent(b)+"&format="+encodeURIComponent(dateFormatForTimeline)+"&host="+encodeURIComponent(requestParams.hostName);
}netLastLoadedURL="/final/monitor/egNetDashBoardJSON.jsp?"+h;j.loadInnerTab(Ext.getCmp("Nettabpanel").getActiveTab().getId(),"/final/monitor/egDashboardHistoryJSON.jsp?"+h,d);netLastGraphTypeLoaded=a;},AreaGraphOnClick:function(a){Ext.getCmp("ciscomainpanel").hide();Ext.getCmp("subNetworkPanelId").hide();
Ext.getCmp("subnetworktabpanelID").hide();var b=this.getNetworkmainpanel();b.remove("maximizeview");b.add({xtype:"maximizeview",width:(Ext.getBody().getViewSize().width-10),height:(Ext.getBody().getViewSize().height-60),Dataurl:a});b.doLayout();b.show();},filterDecode:function(i){var d=["[","]","(",")","=","%","'"];
var c=["|lsbr|","|rsbr|","|lbr|","|rbr|","|eq|","|per|","|squot|"];try{if(i!=null&&i!=undefined&&!Ext.isEmpty(i)){for(var b in d){var f=d[b];var g=c[b];do{i=i.replace(g,f);}while(i.indexOf(g)>-1);}}}catch(h){}return i;},loadMaximizedView:function(){var e=this;var c=Ext.getCmp("maximize");var d=c.Dataurl;
var b="";var a="";if(d.lastIndexOf("&")>0){a=d.substring(d.lastIndexOf("&")+1);a=a.split("=");a=a[1];}if(a!=null&&a.toLowerCase()=="highcharts"){Ext.Ajax.request({url:d,method:"POST",success:function(g){if(g.status==200&&!Ext.isEmpty(g.responseText)){var l=g.responseText;if(l.indexOf("png")==-1&&l.indexOf("PNG")==-1&&l.indexOf("gif")==-1&&l.indexOf("GIF")==-1){var j=Ext.decode(l);
var i=Ext.getCmp("ciscosubsystem").getValue();if(i!=null&&i=="protocols"){var f=Ext.getCmp("bandwidthMainPanel").title;var h=Ext.getCmp("interfaceCombo").getValue();var k=f.substring(0,f.indexOf("-"))+" for "+h+" - "+f.substring(f.indexOf("-")+1);k=e.filterDecode(k);c.setTitle(k);}else{var k=j["title"];
k=k.replace("percent","%");k=e.filterDecode(k);c.setTitle(k);}c.add({xtype:"container",id:"netareaChrtCont",padding:"5 3px 0 10px",layout:{type:"vbox",align:"stretch"},margin:"20px 0px 0px 0px",items:[{xtype:"container",height:58,scroll:true,id:"protocolArealegend",autoScroll:true,overflowY:"auto",cls:"scrollCon",},{xtype:"container",flex:1,id:"net_Area_high_chart_max",html:'<div id="net_Area_high_chart" style="margin-top:20px;border:0px solid yellow;"></div>',listeners:{"afterrender":function(r){var y="";
var u=r.up("panel").getWidth()-15;var A=r.up("panel").getHeight()-90;var x=j["DataSet"];if((x!=null&&!Ext.isEmpty(x))){y+='<div class="chartCount" style="position:relative;z-index:88;">';y+="<ul>";for(var t in x){var s=x[t];if(s!=null&&s.hasOwnProperty("dispLegend")){var o=s["dispLegend"];var z=s["measVal"];
var p=s["layerModelUrl"];var n=s["color"];var v=s["unit"];y+='<li style="display:block">';y+='<div style="margin-top:-10px;float:left;" "><span class="chartLegend" style="color:'+n+';display: inline-block !important;">.</span>';if(o!=null&&o!="-"&&z!=null&&z!="-"){y+="<a  href='javascript:wayToLayerModelForArea(\""+encodeURIComponent(p)+'")\'><span class="status font_bold netflowLabel">'+o+"</span></a>";
}else{y+='<span class="status font_bold">'+o+"</span>";}if(v!=null&&v!="-"&&z!=null&&z!="-"){y+="<a href='javascript:wayToLayerModelForArea(\""+encodeURIComponent(p)+'")\'><span class="matric font_bold"> ('+v+")</span></a>";}else{y+='<span class="matric font_bold"> ('+v+")</span>";}y+="</div>";if(z!=null&&z!="-"){y+='<div class="font_bold" style="padding-left:8px;float:left"><a href=\'javascript:wayToLayerModelForArea("'+encodeURIComponent(p)+"\")'>"+z+"</a></div>";
}else{y+='<div class="font_bold" style="padding-left:8px">'+z+"</div>";}y+='<div style="clear:both"></div>';y+="</li>";}}y+="</ul>";y+="</div>";Ext.get("protocolArealegend").update(y);}try{var m={};var q=Ext.getCmp("net_Area_high_chart_max").getWidth();m=jQuery.extend(true,{},getHighCharts("net_Area_high_chart",(A-20),(u-50),""),m);
m.setData(j,currentDateFormat,"",true,"bottom");m.drawChart();}catch(w){alert("e::"+w);}}}}]});}else{c.update(l);}}else{c.update("<table border='0' height='100%' width='100%'><tr><td align='center'><img src='/final/monitor/eg_images/gray/graph_error_message.gif'></td></tr></table>");}}});}else{if(a!=null&&a.toLowerCase()=="easycharts"){c.update('<table width="600px" height="360px"><tr><td align="center" valign="middle"><img  src="'+d+'" border="0" /></td></tr></table>');
}}},ciscoDefaultLoad:function(e){if(Ext.getCmp("subNetworkPanelId")==null||Ext.getCmp("subNetworkPanelId")==undefined){this.getNetworkmainpanel().add({xtype:"subnetworkpanel",id:"subNetworkPanelId",name:"subNetworkPanelId",margin:0,bodyPadding:0,border:true},{xtype:"subnetworktabpanel",id:"subnetworktabpanelID",autoScroll:false,scroll:false,name:"subnetworktabpanelID"},{xtype:"ciscomainpanel",hidden:true});
}Ext.getCmp("ciscomainpanel").show();Ext.getCmp("subNetworkPanelId").hide();Ext.getCmp("subnetworktabpanelID").hide();var C=this;var u=this.getMain().getEl();u.mask(loadingLbl+"...","maskCenter");if(e!=""&&e!=null&&!Ext.isEmpty(e)){u.unmask();ciscoData=e;var b=e["subSystemArr"];var a=e["subsystemSelected"];
C.setValueWithOptionInList("ciscosubsystem",b,a);if(a!=undefined){if(a.toLowerCase()=="overview"){Ext.getCmp("ciscodialpanel").show();Ext.getCmp("currentAlertBar").show();Ext.getCmp("protocolpanelID").hide();Ext.getCmp("flowspanelID").hide();Ext.getCmp("cisco_Timeline").getStore().loadRawData(e["GRID_DATA"]["TIMELINE_VALUES"]);
var g="1 hour";if(e["GRID_DATA"].hasOwnProperty("selectedTimeline")){g=e["GRID_DATA"]["selectedTimeline"];}Ext.getCmp("cisco_Timeline").setValue(g);var B=e["GRID_DATA"]["MAIN_TITLE"];Ext.getCmp("cisco_areachartView").setTitle(B);var k=e["OVERVIEW"];if(isExcludedNetflowDeviceAvailable){Ext.getCmp("ciscooverviewpanel").show();
C.showCiscoOverview(k);}else{if(isIncludedNetflowDeviceAvailable){C.showNetflowOverview(k);}}var z=e["FUSION-CHART"]["dialChartValues"];layerModelURL=e["hiddens"];var f=e["NoMeasure"];if(Ext.getCmp("cisco_TabularView")!=null&&Ext.getCmp("cisco_TabularView").clicked==true){isFlag=true;this.onTabularViewButton(Ext.getCmp("cisco_TabularView"));
}else{C.loadAreaCharts();}var n=Ext.getCmp("cisco_dialpanel");n.removeAll();if(!Ext.isEmpty(z)&&z!=null&&z!=undefined){Ext.getCmp("cisco_dialpanel").defaults.columnWidth=(1/z.length);for(var x=0;x<z.length;x++){var o=z[x]["dialXMLData"];var E=z[x]["FusionChartsURL"];var j=z[x]["dialGraphHeight"];var h=z[x]["tooltip"];
var F=z[x]["dialGraphWidth"];var r=z[x]["unit"];if(o!=null&&o!=" "&&o!=undefined&&o!="-"){var y=new Date();var q="Fusionchart"+x+"_"+y.getMinutes()+"_"+y.getSeconds();var d="Dial_chart"+x;n.add({xtype:"container",chartRndrId:q,chartDivId:d,cls:"searchSeperatorLine",id:"Fusion_chart"+x,chartXmlData:o,dataArray:z,padding:10,items:[{xtype:"label",width:"150",html:'<div style="font-weight:bold;text-align: center;font-size:12px">'+h+" ("+r+")</div>"},{xtype:"container",html:'<div id="Dial_chart'+x+'" style="height:'+j+"px;width:"+F+'px;border:0px solid red;margin:auto;"></div>'}],listeners:{"afterrender":function(){getHighChartsGuage(this.chartDivId,this.chartXmlData);
}}});}}}else{Ext.getCmp("cisco_dialpanel").defaults.columnWidth=1;var v=e["NET_TAB_NoGraphTitle"];var l=e["DIAL_MSG"];var s=testExcludedorDisabledMsg;if(l==undefined||Ext.isEmpty(l)){s=noMeasure;}n.add({xtype:"container",margin:5,border:true,frame:true,width:"100%",height:120,html:'<div class="noGraphTitle" style="padding-top:0px;">'+v+'</div><table width="100%" height="100px" style="text-align:center"><tr><td><div class="iconInformation" style="margin:0px auto"></div><div>'+s+"</div></td></tr></table>"});
}if(!Ext.isEmpty(z)){var c=z.length-1;Ext.getCmp("Fusion_chart"+c).addCls("lastChild");}}else{if(a.toLowerCase()=="protocols"){var p=e["protocolsURL"];p=encodeURI(p);var t=e["ineterfaceArr"];var A=e["NOtestMSG"];C.loadProtocolsPanel(p,t,A);}else{if(a.toLowerCase()=="flows"){var D=e["flowsURL"];D=encodeURI(D);
C.loadFlowsPanel(D);}}}}}var w=null;var m=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(m))){w=new Ext.LoadMask(Ext.get(m),{msg:loadingLbl+"...",cls:"maskDash"});w.hide();}},afterCiscoPanelRendered:function(e){var c=this;var a=Ext.getCmp(e.getId());var b=this.getMain().getEl();b.mask(loadingLbl+"...","maskCenter");
if(subSystemFromRequest!=null&&subSystemFromRequest!=""){Ext.getCmp("ciscosubsystem").setValue(subSystemFromRequest);}var d=Ext.getCmp("ciscosubsystem").getValue();if(Ext.isEmpty(d)||d.length==0){d="Overview";}ciscoLastLoadedURL="/final/monitor/EgCiscoDashboardJSON.jsp?tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&ciscoSelectedType="+encodeURIComponent(d)+"&screenWidth=1012&screenHeight=570";
Ext.Ajax.request({url:ciscoLastLoadedURL,method:"POST",scope:this,success:function(f){if(f.status==200&&!Ext.isEmpty(f.responseText)){b.unmask();var h=f.responseText;var g=Ext.decode(h);c.ciscoDefaultLoad(g);}}});},selectCiscoSubSystem:function(c){var b=c.getValue();subSystemFromRequest=b;if(b!=undefined){if(b.toLowerCase()=="overview"){if(isExcludedNetflowDeviceAvailable){Ext.getCmp("ciscooverviewpanel").show();
}}else{Ext.getCmp("ciscooverviewpanel").hide();}var a=Ext.getCmp("ciscosubsystem").getValue();if(Ext.isEmpty(a)||a.length==0){a="Overview";}Ext.getCmp("networkmainpanel").fireEvent("beforeshow",Ext.getCmp("networkmainpanel"));}},showNetflowOverview:function(e){if(!Ext.isEmpty(Ext.getCmp("flowInterfaces"))){Ext.destroy(Ext.getCmp("flowInterfaces"));
}if(!Ext.isEmpty(Ext.getCmp("netflow_fullview_settings"))){Ext.destroy(Ext.getCmp("netflow_fullview_settings"));}var l=Ext.getCmp("currentAlertBar");var s=e["alertTitle"];var c=new Array();var o=new Array();var a=e["ALERTS"];var h=e["eventUrl1"];var k=e["eventUrl2"];var n=e["eventUrl3"];if(a!=undefined){if(a!="-"){var b=a["OPEN_ALERT_TITLE"];
var m=a["OPEN_ALERTS"];var j=a["DISTRIBUTION_TITLE"];var f="";if(a["DISTRIBUTION_CRITICAL_VALUE"]!=undefined){var i=a["DISTRIBUTION_CRITICAL_DESC"];var r="";if(a["DISTRIBUTION_CRITICAL_LINK"]!=undefined){var d=a["DISTRIBUTION_CRITICAL_LINK"];var g=d["METHOD_NAME"];var q=d["PARAMS"];var p=q.split("|");
if(h!=undefined){f+='<td><div style="text-align:center;cursor:pointer" onclick="javascript:goToAlarmHistory(\''+h+'\');" class="bar12_low" style="text-align:center;color:#ffffff;height: 13px !important;">'+a["DISTRIBUTION_CRITICAL_VALUE"]+"</div></td>";}else{f+='<td><div class="bar12_high" style="float:left;width:24px;text-align:center;display:none;height: 13px !important;">'+a["DISTRIBUTION_CRITICAL_VALUE"]+"</div></td>";
}}else{f+='<td><div class="bar12_high" style="float:left;text-align:center;display:none;height: 13px !important">'+a["DISTRIBUTION_CRITICAL_VALUE"]+"</div></td>";}}if(a["DISTRIBUTION_MAJOR_VALUE"]!=undefined){var i=a["DISTRIBUTION_MAJOR_DESC"];var r="";if(a["DISTRIBUTION_MAJOR_LINK"]!=undefined){var d=a["DISTRIBUTION_MAJOR_LINK"];
var g=d["METHOD_NAME"];var q=d["PARAMS"];var p=q.split("|");if(k!=undefined){f+='<td><div style="text-align:center;cursor:pointer" onclick="javascript:goToAlarmHistory(\''+k+'\');" class="bar12_low" style="text-align:center;color:#ffffff;height: 13px !important;">'+a["DISTRIBUTION_MAJOR_VALUE"]+"</div></td>";
}else{f+='<td><div class="bar12_intermediate" style="float:left;width:24px;text-align:center;display:none;height: 13px !important;">'+a["DISTRIBUTION_MAJOR_VALUE"]+"</div></td>";}}else{f+='<td><div class="bar12_intermediate" style="display:none;width:100%;text-align:center;height: 13px !important;">'+a["DISTRIBUTION_MAJOR_VALUE"]+"</div></td>";
}}if(a["DISTRIBUTION_MINOR_VALUE"]!=undefined){var i=a["DISTRIBUTION_MINOR_DESC"];var r="";if(a["DISTRIBUTION_MINOR_LINK"]!=undefined){var d=a["DISTRIBUTION_MINOR_LINK"];var g=d["METHOD_NAME"];var q=d["PARAMS"];var p=q.split("|");if(n!=undefined){f+='<td><div style="text-align:center;cursor:pointer" onclick="javascript:goToAlarmHistory(\''+n+'\');" class="bar12_low" style="text-align:center;color:#ffffff;height: 13px !important;">'+a["DISTRIBUTION_MINOR_VALUE"]+"</div></td>";
}else{f+='<td><div class="bar12_low" style="float:left;width:24px;text-align:center;display:none;height: 13px !important;">'+a["DISTRIBUTION_MINOR_VALUE"]+"</div></td>";}}else{f+='<td><div class="bar12_low" style="display:none;text-align:center;height: 13px !important">'+a["DISTRIBUTION_MINOR_VALUE"]+"</div></td>";
}}f='<table width="100%"><tr>'+f+"</tr></table>";c.push({xtype:"container",width:450,style:{"margin-left":"100px"},html:'<div style="display:inline-block"  ><table width="100%" height="100%"><tr><td width="90%"><div style="font-size:13px;font-weight:bold;margin-top: 16px;float: right;margin-right: -8px;">'+b+'</div></td></tr></table></div><div style="display:inline-block; margin-left:20px;width:250px;height:17px"  >'+f+"</div>"});
}}l.removeAll();l.add(c);l.doComponentLayout();},showCiscoOverview:function(g){if(!Ext.isEmpty(Ext.getCmp("flowInterfaces"))){Ext.destroy(Ext.getCmp("flowInterfaces"));}if(!Ext.isEmpty(Ext.getCmp("netflow_fullview_settings"))){Ext.destroy(Ext.getCmp("netflow_fullview_settings"));}var m=Ext.getCmp("ciscoCurrentAlerts");
var v=g["alertTitle"];var d=new Array();var p=new Array();d.push({xtype:"container",padding:"10px 10px 10px 10px",html:'<div class="title"><b>'+v+"</b></div>"});var b=g["ALERTS"];if(b!=undefined){if(b=="-"){var u=g["NO_ALERTS"];d.push({xtype:"container",width:"100%",margin:10,html:'<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"><div class="iconNoalarms" style="margin:0px auto"></div><div style="text-align:center;">'+u+"</div></div></div>"});
}else{var c=b["OPEN_ALERT_TITLE"];var n=b["OPEN_ALERTS"];var l=b["DISTRIBUTION_TITLE"];var h="";if(b["DISTRIBUTION_CRITICAL_VALUE"]!=undefined){var j=b["DISTRIBUTION_CRITICAL_DESC"];var t="";if(b["DISTRIBUTION_CRITICAL_LINK"]!=undefined){var f=b["DISTRIBUTION_CRITICAL_LINK"];var i=f["METHOD_NAME"];var s=f["PARAMS"];
var r=s.split("|");var e='<div style="width:100%;text-align:center;" >'+b["DISTRIBUTION_CRITICAL_VALUE"]+"</div>";h+='<td><div class="bar12_high" style="text-align:center;color:#ffffff;height: 13px !important;">'+e+"</div></td>";}else{h+='<td><div class="bar12_high" style="float:left;text-align:center;display:none;height: 13px !important">'+b["DISTRIBUTION_CRITICAL_VALUE"]+"</div></td>";
}}if(b["DISTRIBUTION_MAJOR_VALUE"]!=undefined){var j=b["DISTRIBUTION_MAJOR_DESC"];var t="";if(b["DISTRIBUTION_MAJOR_LINK"]!=undefined){var f=b["DISTRIBUTION_MAJOR_LINK"];var i=f["METHOD_NAME"];var s=f["PARAMS"];var r=s.split("|");var e='<div style="text-align:center;" >'+b["DISTRIBUTION_MAJOR_VALUE"]+"</div>";
h+='<td><div class="bar12_intermediate" style="width:100%;text-align:center;color:#ffffff;height: 13px !important;">'+e+"</div></td>";}else{h+='<td><div class="bar12_intermediate" style="display:none;width:100%;text-align:center;height: 13px !important;">'+b["DISTRIBUTION_MAJOR_VALUE"]+"</div></td>";
}}if(b["DISTRIBUTION_MINOR_VALUE"]!=undefined){var j=b["DISTRIBUTION_MINOR_DESC"];var t="";if(b["DISTRIBUTION_MINOR_LINK"]!=undefined){var f=b["DISTRIBUTION_MINOR_LINK"];var i=f["METHOD_NAME"];var s=f["PARAMS"];var r=s.split("|");var e='<div style="text-align:center;" >'+b["DISTRIBUTION_MINOR_VALUE"]+"</div>";
h+='<td><div class="bar12_low" style="width:100%;text-align:center;color:#ffffff;height: 13px !important;">'+e+"</div></td>";}else{h+='<td><div class="bar12_low" style="display:none;text-align:center;height: 13px !important">'+b["DISTRIBUTION_MINOR_VALUE"]+"</div></td>";}}h='<table width="100%"><tr>'+h+"</tr></table>";
d.push({xtype:"container",layout:"hbox",padding:"0 10 10 10",items:[{xtype:"container",width:"100%",html:'<table width="100%" height="100%"><tr><td width="5%"></td><td width="90%"></td></tr><tr><td width="5%"><div class="summaryOpenProblems" style="top:25px;"></td><td width="90%"><div style="font-size: 17px;font-weight:bold;float: right">'+n+'</div><div style="font-size:12px;font-weight:bold;margin-top: 16px;float: right;margin-right: -8px;">'+c+'</div></td></tr></table><div class="outer_round" style="margin-top: 5px;">'+h+"</div>"}]});
}}m.removeAll();m.add(d);m.doComponentLayout();if(!isIncludedNetflowDeviceAvailable){var a=g["UPTIME_TITLE"];var q=g["UPTIME"];var o=new Array();var k=Ext.getCmp("ciscoUptime");if(q!=undefined&&!Ext.isEmpty(q)&&q!=null&&a!=undefined&&!Ext.isEmpty(a)&&a!=null){o.push({xtype:"container",width:"100%",margin:"10 10 25 10",padding:"10px 10px 2px 10px",html:'<div  class="title"><b>'+a+'</b></div><br/><div class="font_bold" style="font-size:14px;text-align:center">'+q+"</div>"});
}else{o.push({xtype:"container",width:"100%",margin:"10 10 10 10",html:'<div  class="title"><b>Device UpTime</b></div><div style="text-align:center"><div class="iconInformation" style="margin:0px auto"></div><div style="font-size:12px">No data found!</div></div>'});}k.removeAll();k.add(o);k.doComponentLayout();
}},onTabularViewButton:function(i){var q=this;if(isFlag==true){if(isMaxViewGridClicked){Ext.getCmp("cisco_FullGridView").fireEvent("click",Ext.getCmp("cisco_FullGridView"));}i.clicked=true;Ext.getCmp("cisco_TabularView").setIconCls("iconAreaChart");Ext.getCmp("tabularbtnToolTip").update(graphicalViewLbl);
var h=Ext.getCmp("cisco_areachartView");Ext.getCmp("cisco_Timeline").hide();Ext.getCmp("cisco_sortby").hide();Ext.getCmp("cisco_topNOption").hide();h.removeAll();var n=ciscoData["GRID_DATA"]["STATE_VALUES"];var l=ciscoData["GRID_DATA"]["COLUMN_VALUES"];var a=l["Interface_NOMes"];if(a!=null&&a!=undefined){Ext.getCmp("cisco_FullGridView").hide();
h.removeAll();h.add({xtype:"container",id:"errorpanel",padding:80,columnWidth:1,html:'<table width="100%" ><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div>'+a+"</td></tr></table>"});h.doComponentLayout();}else{var r=ciscoData["sortByMeasures"];var k=ciscoData["topNArray"];
if(isMaxViewGridClicked==false){Ext.getCmp("cisco_FullGridView").show();}var f=Ext.getCmp("cisco_sortby");var d=Ext.getCmp("cisco_topNOption");f.show();f.setFieldLabel(ciscoData["sortByMeasuresLabel"]);q.setValueWithOptionInList("cisco_sortby",r,ciscoData["selectedSortByMeasure"]);d.show();d.setFieldLabel(ciscoData["topNArrayLabel"]);
q.setValueWithOptionInList("cisco_topNOption",k,ciscoData["topNSelectedValue"]);var g=new Array();var o=new Array();var c,m;var b=new Array();var j=0;for(var s in l){if(j==0){o.push({name:"COLUMN_"+j,type:"string"});}else{o.push({name:"COLUMN_"+j,type:"FLOATORSTRING"});}b.push({header:l[s],dataIndex:"COLUMN_"+j,flex:(j==0?0.25:0.12),sortable:true,renderer:function(x,u,t,z,w,v,y){if(w==1&&(x=="iconRight"||x=="iconWrong")){return'<div class="'+x+'" style="border:0px solid red;margin:0px;padding:0px;cursorointer"></div>';
}else{return x;}}});j++;}var e=Ext.data.Store({fields:o,data:n,pageSize:10,proxy:{type:"pagingmemory",reader:{type:"json"}},sorters:[{property:ciscoData["sortByColumn"],direction:"DESC"}]});var p=new Array();p.push({xtype:"pagingtoolbar",cls:"pagingtoolbar",dock:"bottom",displayInfo:true,cls:"pagingtoolbar",id:"ackPagingToolBar",name:"ackPagingToolBar",pageSize:10,store:e,displayInfo:true,displayMsg:displayTopicsLbl,emptyMsg:noTopicsLbl,listeners:{change:function(t,v,u){Ext.getCmp("cisco_customgrid").getStore().loadPage(v.currentPage);
}}});h.add({xtype:"customgrid",cls:"gridSkin",anchor:"100%",columnWidth:1,width:"100%",id:"cisco_customgrid",name:"cisco_customgrid",store:e,dockedItems:p,columns:b});h.doComponentLayout();}isFlag=false;}else{if(isFlag==false){var h=Ext.getCmp("cisco_areachartView");h.removeAll();Ext.getCmp("cisco_Timeline").show();
Ext.getCmp("cisco_sortby").hide();Ext.getCmp("cisco_topNOption").hide();Ext.getCmp("cisco_TabularView").setIconCls("iconData");Ext.getCmp("tabularbtnToolTip").update(dataViewLbl);Ext.getCmp("cisco_TabularView").show();Ext.getCmp("cisco_DialGridButton").hide();Ext.getCmp("cisco_FullGridView").hide();this.loadAreaCharts();
isFlag=true;i.clicked=false;}}},loadAreaCharts:function(){var e=false;var d="bottom";var c=this.getMain().getEl();c.mask(loadingLbl+"...","maskCenter");var b=Ext.getCmp("cisco_Timeline").getValue();var a=ciscoData["AREACHART_URL"];a=encodeURI(a);var f=Ext.getCmp("cisco_areachartView");if(ciscoLastLoadedURL!=null&&ciscoLastLoadedURL.indexOf("&selectedTimeline=")>0){ciscoLastLoadedURL=ciscoLastLoadedURL.replace(/(selectedTimeline=)[^\&]+/,"$1"+b);
}else{ciscoLastLoadedURL=ciscoLastLoadedURL+"&selectedTimeline="+b;}Ext.Ajax.request({url:a+"&selectedDate="+b,scope:this,async:false,success:function(g){f.removeAll();if(g.status==200&&!Ext.isEmpty(g.responseText)){var x=this.getMain().getWidth(),q=this.getMain().getHeight();var z=g.responseText;var i=Ext.decode(z);
var w=i["AREACHART_DATA"];var l=i["NoMeasureMsg"];if(!Ext.isEmpty(w)){var n=new Array();var h=new Array();var p=new Array();var o=new Array();var v=new Array();var y=0;for(var E in w){var u=w[E]["Title"];var A=w[E]["areaChartURL"];var k=w[E]["Type"];var s=w[E]["GRAPH_FORMAT"];var B=230;var r=450;var D=new Array();
D[0]=u;D[1]=A;D[2]=k;var m="";if(!Ext.isEmpty(s)){if(s.indexOf("highchart")>-1){m='<div style="cursor:pointer" id="netareaDesktopChart'+E+'"></div>';p.push("netareaDesktopChart"+E);n.push(A);h.push("ciscoArealegend"+E);o.push(B);}}var C=Ext.getCmp("cisco_areachartView");var t=Math.round((C.body.dom.clientWidth/2)-20);
f.add({xtype:"panel",id:"netareablock"+E,cls:"datapanel",dataArray:D,border:true,frame:true,title:(u.replace("percent","%")),width:t,height:280,items:[{xtype:"container",layout:{type:"vbox",align:"stretch"},margin:"0 5 0 0",items:[{xtype:"container",flex:1,height:56,id:"ciscoArealegend"+E,autoScroll:true,overflowY:"auto",cls:"scrollCon"}]},{xtype:"container",layout:{type:"vbox",align:"stretch"},flex:1,margin:"0px 0px 0px 0px",id:"netareaDesktopChart"+E,itemId:"loopchart",style:{cursor:"pointer",},items:[{xtype:"container",height:"100%",width:"100%",margin:"0px 5px 2px 10px",dataArray:A,html:m,listeners:{"afterrender":function(){var j=this.dataArray;
var F=Ext.getCmp("netareablock"+E);r=Math.round(F.el.dom.offsetWidth);if(!Ext.isEmpty(s)){if(s.indexOf("highchart")>-1){setAreaHighChart(n[y],p[y],h[y],o[y],r,j,e,d,true,"area","overview",F);}else{this.update("<img onClick=\"javascript:AreaGraphOnClick('"+j+'\');" src="'+j+'&height=180&width=550&mode=2D" />');
}}y=y+1;}}}]},]});}}else{f.add({xtype:"container",padding:80,columnWidth:1,html:'<table width="100%" ><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div>'+noMeasure+"</td></tr></table>"});}f.doComponentLayout();}}});c.unmask();isFlag=true;},onFullGridViewButton:function(){isMaxViewGridClicked=true;
if(isMaxViewGridClicked){Ext.getCmp("ciscooverviewpanel").hide();var a=Ext.getCmp("ciscosubsystem");a.up("toolbar").hide();Ext.getCmp("cisco_dialpanel").hide();Ext.getCmp("currentAlertBar").hide();Ext.getCmp("cisco_DialGridButton").show();Ext.getCmp("cisco_TabularView").hide();Ext.getCmp("cisco_FullGridView").hide();
}},onSelectSortByMeasure:function(a){var b=a.getValue();if(ciscoLastLoadedURL.indexOf("selectedMeasure")>-1){ciscoLastLoadedURL=ciscoLastLoadedURL.replace(/(selectedMeasure=)[^\&]+/,"$1"+encodeURIComponent(b));}else{ciscoLastLoadedURL+="&selectedMeasure="+encodeURIComponent(b);}Ext.Ajax.request({url:ciscoLastLoadedURL,scope:this,async:false,success:function(d){if(d.status==200&&!Ext.isEmpty(d.responseText)){var g=this.getMain().getWidth(),c=this.getMain().getHeight();
var f=d.responseText;var e=Ext.decode(f);ciscoData=e;isFlag=true;this.onTabularViewButton(Ext.getCmp("cisco_TabularView"));}}});},onSelectTopNOption:function(a){var b=a.getValue();if(ciscoLastLoadedURL.indexOf("selectedTopNOption")>-1){ciscoLastLoadedURL=ciscoLastLoadedURL.replace(/(selectedTopNOption=)[^\&]+/,"$1"+encodeURIComponent(b));
}else{ciscoLastLoadedURL+="&selectedTopNOption="+encodeURIComponent(b);}Ext.Ajax.request({url:ciscoLastLoadedURL,scope:this,async:false,success:function(d){if(d.status==200&&!Ext.isEmpty(d.responseText)){var g=this.getMain().getWidth(),c=this.getMain().getHeight();var f=d.responseText;var e=Ext.decode(f);
ciscoData=e;isFlag=true;this.onTabularViewButton(Ext.getCmp("cisco_TabularView"));}}});},onSelectTimeLine:function(a){this.loadAreaCharts();},dialGridViewButton:function(){if(isExcludedNetflowDeviceAvailable){Ext.getCmp("ciscooverviewpanel").show();}var a=Ext.getCmp("ciscosubsystem");a.up("toolbar").show();
Ext.getCmp("cisco_dialpanel").show();Ext.getCmp("cisco_TabularView").show();Ext.getCmp("cisco_DialGridButton").hide();Ext.getCmp("cisco_FullGridView").show();isFlag=false;isMaxViewGridClicked=false;},ciscoAreaChartOnClick:function(c){var f=Ext.getCmp(c);var e=this.getMain().getWidth(),a=this.getMain().getHeight();
var d=Ext.widget("maximizeview",{width:e,height:a,id:"Maximize",html:'<div id="areaChart" style="text-align:center;margin-top:25% width:'+(e-40)+'px; height:400px;"><div class="iconInformation" style="margin:0px auto"></div></div>'}).show();var b=Ext.getCmp(c).dataArray;if(!Ext.isEmpty(b["XML_DATA"])){}else{Ext.get("areaChart").update('<div style="text-align:center;margin-top:25%" ><div class="iconInformation" style="margin:0px auto"></div><div>'+noMeasureExcl+"</div></div>");
}},loadProtocolsPanel:function(s,r,z){if(protocolLastLoadedURL!=null){s=protocolLastLoadedURL;}if(!Ext.isEmpty(Ext.getCmp("flowInterfaces"))){Ext.destroy(Ext.getCmp("flowInterfaces"));}if(!Ext.isEmpty(Ext.getCmp("netflow_fullview_settings"))){Ext.destroy(Ext.getCmp("netflow_fullview_settings"));}var x=false;
var A="bottom";var D=this;Ext.getCmp("ciscooverviewpanel").hide();Ext.getCmp("currentAlertBar").hide();Ext.getCmp("ciscodialpanel").hide();Ext.getCmp("flowspanelID").hide();Ext.getCmp("protocolpanelID").show();Ext.getCmp("interfaceCombo").show();Ext.getCmp("TimelineCombo").show();var n=Ext.getCmp("currentTrafficPanel");
if(!Ext.isEmpty(n)){n.removeAll();}var l=r;if(z!=null&&!Ext.isEmpty(z)&&z!=undefined){var q=Ext.getCmp("Protocol_currentTrafficPanel");q.removeAll();var F=Ext.getCmp("Protocol_currentTrafficPanel")+"-body";q.add({xtype:"container",layout:{type:"vbox",pack:"center",align:"center",},width:"100%",items:[{xtype:"container",height:q.getHeight()-25,width:"100%",html:'<table width="100%" height="100%"><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div>'+z+"</td></tr></table>"}]});
Ext.getCmp("ProtocolTab_panel").hide();}else{if(l!=null&&!Ext.isEmpty(l)&&l!=undefined){var E=l[0]["currenTraffic"];var p=l[0]["unit"];Ext.getCmp("Protocol_currentTrafficPanel").setTitle(E);var c=l[0]["AREACHART"];var f=l[0]["XML_FLAG"];var e=l[0]["NOMSG"];if(c!=null&&!Ext.isEmpty(c)&&c=="false"){var q=Ext.getCmp("Protocol_currentTrafficPanel");
q.removeAll();q.add({xtype:"container",layout:{type:"vbox",pack:"center",align:"center",},width:"100%",items:[{xtype:"container",height:200,html:' <table width="100%" height="150px"><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div>'+e+"</td></tr></table>"}]});Ext.getCmp("ProtocolTab_panel").hide();
}else{var w=new Array();var j=Math.ceil(l.length/3);for(var t=0;t<j;t++){if(t==0){w+='<div class="pie_dot pie_dot_light" id="piechartdot_'+t+'" style="height:6px; width:6px"></div>';}else{w+='<div class="pie_dot" id="piechartdot_'+t+'" style="height:6px; width:6px"></div>';}}Ext.get("center_div").update(w);
if(l.length==1){n.defaults.columnWidth=1;}for(var v=0;v<l.length;v++){if(f!=null&&!Ext.isEmpty(f)&&f=="false"){n.add({xtype:"panel",flex:1,items:[{xtype:"container",height:150,html:'<table width="100%" height="150px"><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div><div>'+e+"</div></td></tr></table>"}]});
}else{var m=l[v]["XML_DATA"];var G=l[v]["SWF_PATH"];var h=l[v]["COLUMN_0"];var b=l[v]["pieGraphWidth"];var u=this.getMain().getWidth(),g=this.getMain().getHeight();var y=new Date();var o="piechart_"+v+"_"+y.getMinutes()+"_"+y.getSeconds();var d="piechart_"+v;var B=0.33344;if(l.length==2){B=0.5;}else{if(l.length==1){B=1;
}}n.defaults.columnWidth=B;var a=(strSkin=="Light")?"#2a292a":"#c0c0c0";n.add({id:d,xtype:"container",chartRndrId:o,layout:{type:"vbox",align:"stretch"},defaults:{flex:1,height:200},flex:0.24,chartDivId:d,id:"pie_chart"+v,chartxmlData:m,dataArray:l,items:[{xtype:"container",style:{"text-align":"center"},margin:"0px",html:'<div class="mytemp"  id="piechart_'+v+'" style="margin:0px auto"></div>',}],listeners:{"afterrender":function(I){var k=n.getWidth()/3;
try{var i={};i=jQuery.extend(true,{},getHighChartsBarInstance("piechart_"+v,180,k),i);if(componentType=="NetflowDevice"){i.setData(this.chartxmlData,currentDateFormat,"","ProtocolPieNetflow");}else{i.setData(this.chartxmlData,currentDateFormat,"","Ciscopie");}i.drawChart();}catch(H){console.log(H);}}}});
}}}if(!Ext.isEmpty(n)){if(l.length==1){n.items.each(function(k,i){Ext.getCmp(k.id).addCls("pieSeperatorlastChild");});}else{if(l.length==2){n.items.each(function(k,i){if((i%2)==1){Ext.getCmp(k.id).addCls("pieSeperatorlastChild");}else{Ext.getCmp(k.id).addCls("pieSeperatorLine");}});}else{if(l.length>2){n.items.each(function(k,i){if((i%3)==2){Ext.getCmp(k.id).addCls("pieSeperatorlastChild");
}else{Ext.getCmp(k.id).addCls("pieSeperatorLine");}});}}}n.doComponentLayout();}}}var C=Ext.getCmp("bandwidthpanel");C.removeAll();Ext.Ajax.request({url:s,scope:this,async:false,success:function(i){if(i.status==200&&!Ext.isEmpty(i.responseText)){var aa=this.getMain().getWidth(),R=this.getMain().getHeight();
var ab=i.responseText;var K=Ext.decode(ab);var V=K["CHARTNTABLE_DATA"];var k=K["ProtocolTimelineCombo"];var S=k["ProtocolTimelineComboArray"];var T=k["protocolSelectedTimelineCombo"];if(V!=null&&V!=undefined&&!Ext.isEmpty(V)){var L=V[0]["TITLE"];var M=V[0]["NoMeasureMsg"];if(M!=null&&!Ext.isEmpty(M)&&M!=undefined){Ext.getCmp("interfaceCombo").hide();
Ext.getCmp("TimelineCombo").hide();C.add({xtype:"container",flex:1,height:"100%",width:"100%",layout:"fit",style:{"border":"0px solid red"},items:[{xtype:"container",height:"100%",width:"100%",html:'<table width="100%" height="100%" ><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div><div>'+M+"</div></td></tr></table>"}]});
}else{var H=V[0]["COLUMNAM_0"];var af=V[0]["COLUMNVAL_0"];D.setValueWithOptionInList("interfaceCombo",af,V[0]["selectedCombo"]);D.setValueWithOptionInList("TimelineCombo",S,T);Ext.getCmp("bandwidthMainPanel").setTitle(L);var Z=K["CHARTNTABLE_DATA"];if(!Ext.isEmpty(Z)){var P=new Array();var Q=new Array();
var J=new Array();var O=new Array();var Y=new Array();var ad=0;for(var ah in Z){var X=Z[ah]["Title"];var ac=Z[ah]["areaChartURL"];var I=Z[ah]["Type"];var W=Z[ah]["GRAPH_FORMAT"];var ae=200;var U=550;var ag=new Array();ag[0]=X;ag[1]=ac;ag[2]=I;var N="";if(!Ext.isEmpty(W)){if(W.indexOf("highchart")>-1){N='<div id="netProtocolareaDesktopChart'+ah+'"></div>';
Q.push("netProtocolareaDesktopChart"+ah);P.push(ac);J.push("protocolArealegend"+ah);O.push(ae);}}C.add({xtype:"container",id:"netProtoareablock"+ah,itemId:"netProtoareablock"+ah,cls:"block1",layout:{type:"hbox"},dataArray:ag,style:{"border":"0px !important"},flex:1,width:"100%",items:[{xtype:"container",layout:{type:"hbox",align:"stretch"},flex:0.8,height:"100%",margin:"20px 0px 10px 0px",id:"netProtocolareaDesktopChart"+ah,style:{cursor:"pointer",},items:[{xtype:"container",width:"100%",dataArray:ac,html:N,listeners:{"afterrender":function(){var aj=Math.round(Ext.getCmp("protocolpanelID").getWidth()-360);
U=aj;var ak=Ext.getCmp("netProtoareablock"+ah);var ai=this.dataArray;O=Ext.getCmp("netProtocolareaDesktopChart"+ah).el.dom.clientHeight;if(!Ext.isEmpty(W)){if(W.indexOf("highchart")>-1){setAreaHighChart(P[ad],Q[ad],J[ad],O[ad],U,ai,x,A,false,"area","protocol",ak);}else{this.update('<table width="600px" height="400px"><tr><td align="center" valign="middle"><img onClick="javascript:AreaGraphOnClick(\''+ai+'\');" src="'+ai+'" border="0" /></td></tr></table>');
}}ad=ad+1;$(".pie_dot").click(function(){var am=this.id.split("_")[1];$(this).addClass("pie_dot_light").siblings().removeClass("pie_dot_light").addClass("pie_dot");var al=Math.round(am*200);if(am==0){$(".pie_column").css({"top":al});}else{$(".pie_column").css({"top":-al});}});}}}]},{xtype:"container",width:200,overflowY:"auto",margin:"0 10 0 0",height:"100%",layout:{type:"vbox",align:"center",pack:"center",},items:[{xtype:"container",id:"protocolArealegend"+ah,width:200,}]}]});
}}}}C.doComponentLayout();}}});},protocolTimelineSelect:function(g){var d=g.getValue();var b=Ext.getCmp("ciscosubsystem").getValue();var a="/final/monitor/EgCiscoDashHelperJSON.jsp?tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&ciscoSelectedType="+encodeURIComponent(b)+"&screenWidth=1012&screenHeight=570&subsystem=Protocols&blockType=Protocols";
if(a.indexOf("&protocolTimeline")>0){a=a.replace(/(protocolTimeline=)[^\&]+/,"$1"+encodeURIComponent(d));}else{a+="&protocolTimeline="+encodeURIComponent(d);}var f=Ext.getCmp("interfaceCombo").getValue();if(a.indexOf("&selectedInterface")>0){a=a.replace(/(selectedInterface=)[^\&]+/,"$1"+encodeURIComponent(f));
}else{a+="&selectedInterface="+encodeURIComponent(f);}protocolLastLoadedURL=a;var e=Ext.getCmp("bandwidthpanel");e.removeAll();var c=false;var i="bottom";var h=this;Ext.Ajax.request({url:a,scope:this,async:false,success:function(j){if(j.status==200&&!Ext.isEmpty(j.responseText)){var C=this.getMain().getWidth(),u=this.getMain().getHeight();
var D=j.responseText;var n=Ext.decode(D);var y=n["NoTestMsg"];var w=n["CHARTNTABLE_DATA"];if(y!=null&&!Ext.isEmpty(y)&&y!=undefined){Ext.getCmp("interfaceCombo").hide();Ext.getCmp("TimelineCombo").hide();e.add({xtype:"panel",width:"100%",items:[{xtype:"container",height:200,width:"100%",margin:"20px 0px 0px 0px",html:'<table width="100%" height="150px"><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div><div>'+y+"</div></td></tr></table>"}]});
}else{if(w!=null&&w!=undefined&&!Ext.isEmpty(w)){var o=w[0]["TITLE"];var p=w[0]["NoMeasureMsg"];if(p!=null&&!Ext.isEmpty(p)&&p!=undefined){Ext.getCmp("interfaceCombo").hide();Ext.getCmp("TimelineCombo").hide();e.add({xtype:"container",flex:1,items:[{xtype:"container",height:150,width:"100%",html:'<table width="100%" height="100%" ><tr><td align="center"><div class="iconInformation" style="margin:0px auto"></div><div>'+p+"</div></td></tr></table>"}]});
}else{var k=w[0]["COLUMNAM_0"];var H=w[0]["COLUMNVAL_0"];h.setValueWithOptionInList("interfaceCombo",H,w[0]["selectedCombo"]);Ext.getCmp("bandwidthMainPanel").setTitle(o);var B=n["CHARTNTABLE_DATA"];if(!Ext.isEmpty(B)){var r=new Array();var t=new Array();var m=new Array();var s=new Array();var A=new Array();
var F=0;for(var J in B){var z=B[J]["Title"];var E=B[J]["areaChartURL"];var l=B[J]["Type"];var x=B[J]["GRAPH_FORMAT"];var G=200;var v=550;var I=new Array();I[0]=z;I[1]=E;I[2]=l;var q="";if(!Ext.isEmpty(x)){if(x.indexOf("highchart")>-1){q='<div id="netProtocolareaDesktopChart'+J+'"></div>';t.push("netProtocolareaDesktopChart"+J);
r.push(E);m.push("protocolArealegend"+J);s.push(G);}}e.add({xtype:"container",id:"netProtoareablock"+J,itemId:"netProtoareablock"+J,cls:"block1",layout:{type:"hbox"},dataArray:I,border:true,frame:true,width:"100%",style:{"border":"0px !important"},flex:1,items:[{xtype:"container",layout:{type:"hbox",align:"stretch"},flex:0.8,height:"100%",margin:"20px 0px 10px 0px",id:"netProtocolareaDesktopChart"+J,style:{cursor:"pointer",},items:[{xtype:"container",width:"100%",dataArray:E,html:q,listeners:{"afterrender":function(){var L=Math.round(Ext.getCmp("protocolpanelID").getWidth()-360);
v=L;var M=Ext.getCmp("netProtoareablock"+J);var K=this.dataArray;s=Ext.getCmp("netProtocolareaDesktopChart"+J).el.dom.clientHeight;if(!Ext.isEmpty(x)){if(x.indexOf("highchart")>-1){setAreaHighChart(r[F],t[F],m[F],s[F],v,K,c,i,false,"area","protocol",M);}else{this.update('<table width="600px" height="400px"><tr><td align="center" valign="middle"><img onClick="javascript:AreaGraphOnClick(\''+K+'\');" src="'+K+'" border="0" /></td></tr></table>');
}}F=F+1;$(".pie_dot").click(function(){var O=this.id.split("_")[1];$(this).addClass("pie_dot_light").siblings().removeClass("pie_dot_light").addClass("pie_dot");var N=Math.round(O*200);if(O==0){$(".pie_column").css({"top":N});}else{$(".pie_column").css({"top":-N});}});}}}]},{xtype:"container",width:200,overflowY:"auto",margin:"0 10 0 0",height:"100%",layout:{type:"vbox",align:"center",pack:"center",},items:[{xtype:"container",id:"protocolArealegend"+J,width:200,}]}]});
}}}}}e.doComponentLayout();}}});},ciscoPieChartOnClick:function(d){var g=Ext.getCmp(d);var f=this.getMain().getWidth(),a=this.getMain().getHeight();var e=Ext.widget("maximizeview",{width:f,height:a,id:"Maximize",html:'<div id="areaChart" style="text-align:center;margin-top:25% width:'+(f-40)+'px; height:400px;"><div class="iconInformation" style="margin:0px auto"></div></div>'}).show();
var c=Ext.getCmp(d).dataArray;if(!Ext.isEmpty(c["XML_DATA"])){var b=c["AreaSwfpath"];}else{Ext.get("areaChart").update('<div style="text-align:center;margin-top:25%" ><div class="iconInformation" style="margin:0px auto"></div><div>'+noMeasureExcl+" </div></div>");}},loadFlowsPanel:function(g){if(selectedInterface!=null&&selectedParentID!=null){this.loadDetailsTable(selectedInterface,selectedParentID);
}else{var e=this;var a=false;var f=new Array();var d="";var c=Ext.getCmp("flowspanelID");var b=new Array();c.removeAll();Ext.getCmp("ciscooverviewpanel").hide();Ext.getCmp("currentAlertBar").hide();Ext.getCmp("ciscodialpanel").hide();Ext.getCmp("protocolpanelID").hide();Ext.getCmp("interfaceCombo").hide();
Ext.getCmp("TimelineCombo").hide();Ext.getCmp("flowspanelID").show();Ext.Ajax.request({url:g,scope:this,async:false,success:function(o){if(o.status==200&&!Ext.isEmpty(o.responseText)){var aj=this.getMain().getWidth(),R=this.getMain().getHeight();var y=o.responseText;var Q=Ext.decode(y);if(isIncludedNetflowDeviceAvailable){if(!Ext.isEmpty(Ext.getCmp("flowInterfaces"))){Ext.destroy(Ext.getCmp("flowInterfaces"));
}if(!Ext.isEmpty(Ext.getCmp("netflow_fullview_settings"))){Ext.destroy(Ext.getCmp("netflow_fullview_settings"));}if(!Ext.isEmpty(Ext.getCmp("netflow_configMod"))){Ext.destroy(Ext.getCmp("netflow_configMod"));}var ai=Q["flowsInterfaceCombo"];Ext.getCmp("ciscomainpanel").down("toolbar").add({fieldLabel:"Interfaces",labelAlign:"left",xtype:"checkcombo",width:300,id:"flowInterfaces",name:"flowInterfaces",editable:false,multiSelect:true,forceSelection:false,labelWidth:80,queryMode:"local",labelSeparator:"",valueField:"valueField",displayField:"displayField",cls:"dropdown",flowsURL:g,emptyText:"All interfaces",allText:"All interfaces",store:new Ext.data.Store({fields:["valueField","displayField"],}),addAllSelector:true});
if(ai!=null){e.setValueWithOptionInList("flowInterfaces",ai,Q["flowsInterfaceSelectedCombo"]);}var ab=Math.round($("#ciscomainpanel").height()-55);c.add({xtype:"scrolltabPanel",id:"flowtabpanel",margin:"0 10 10 10",height:ab,listeners:{"tabchange":function(k){var l=k.getLayout().activeItem;var av=k.items.indexOf(l);
netflowSelectedTabIndex=av;if(av!=null&&av!=undefined){netflowSelectedTabIndex=av;if(a==true){for(var j=0;j<f.length;j++){if(netflowSelectedTabIndex==f[j].tab_index){$(".pie_column").css({"top":-f[j].setHeight});}}}}}}});Ext.getCmp("flowtabpanel").tabBar.addTool([{xtype:"tbfill"},{xtype:"scrollcombo",fieldLabel:"Timeline",id:"netflow_high_er_timeline",name:"netflow_high_er_timeline",displayField:"displayField",valueField:"valueField",queryMode:"local",labelWidth:55,labelSeparator:"",margin:"2 5 0 0",width:150,defaultListConfig:{maxHeight:300,shadow:"sides"},cls:"dropdown",defaultListConfig:{shadow:"sides"},editable:false,store:new Ext.data.Store({fields:["valueField","displayField"],data:[]}),value:"",listeners:{"select":function(i){componentDashboard.app.getController("NetworkController").timelineSelect(i);
}}}]);var r=Q["timelineCombo"]["timelineComboArray"];var Y=Q["timelineCombo"]["monitor.dashboard.TimeLine"];var n=Q["timelineCombo"]["selectedTimelineCombo"];e.setValueWithOptionInList("netflow_high_er_timeline",r,n);Ext.getCmp("netflow_high_er_timeline").setFieldLabel(Y);var t=Q["flowsInterfaceSelectedCombo"];
$("#flowInterfaces-inputEl").attr("data-qtip",t);var at=Q["flowsPieArr"];for(var an=0;an<at.length;an++){var ar=at[an]["DATA_"+an];var q=ar["Data"];var P=ar["PIE_TITLE"];var u=ar["MaxJSON"];var x=ar["tableData"];var V=ar["pieChart"];var al="";var F="";var w="";var G="";if(x!=null&&x!=undefined){al=x[0]["gridValues"];
F=x[0]["tableColumns"];w=x[0]["TABLE_TITLE"];G=x[0]["TABLE_TIMELINE_TITLE"];}var L=0;if(V!=null&&V!=undefined&&V.length==1){L=1;}w+=" for "+t;P+=" for "+t;var ap=new Array();var ag=new Array();if(!Ext.isEmpty(F)){for(var af=L;af<F.length;af++){ag.push({name:"COLUMVal_"+af,type:"FLOATORSTRING"});ap.push({header:F[af],flex:0.2,dataIndex:"COLUMVal_"+af,MaxValues:u,renderer:function(az,j,aw,aB,l,aA,i){var av=i.getHeaderAtIndex(l);
var k=av.dataIndex;if(k!=null&&k=="COLUMVal_5"){if(az!=null&&az!="-"){var ay=aw.get("COLUMVal_0");if(L==1){ay=t;}if(az>0){var ax='<table width="100%" cellpadding="0" cellspacing="0" border="0"  height="8" class="prog_border">';ax+="<tr>";ax+='<td align="left" width="100%" height="8" >';ax+='<table width="'+az+'%" height="8"  cellpadding="0" cellspacing="0" border="0">';
ax+="<tr>";ax+='<td class="progress_GOOD" width="100%"> </td>';ax+="</tr>";ax+="</table>";ax+="</td>";ax+="</tr>";ax+="</table>";az="<table width='100%' cellpadding='0' cellspacing='0'><tr><td style='width:50px'><span>"+az+"</span></td><td >"+ax+"</td></tr></table>";}}}return az;}});}}if(q!=null&&(q=="false"||al.length==0)){var B=ar["mappingName"];
var K=ar["ErrorMsg"];Ext.getCmp("flowtabpanel").add({xtype:"panel",cls:"datapanel",margin:10,frame:true,border:true,title:B,items:[{xtype:"container",height:"100%",width:"100%",margin:10,html:'<table width="100%" height="100%"><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:0px auto"></div><div style="font-size:12px">'+K+"</div></td></tr></table>"}]});
Ext.getCmp("flowtabpanel").setActiveTab(netflowSelectedTabIndex);}else{if(q!=null&&q=="true"){var C=new Date();if(x!=null&&x!=undefined&&!Ext.isEmpty(x)){var M=new Array();var h=new Array();var H=new Array();var ao="";var Z="";var aa="";var D=new Array();if(V!=null&&V!=undefined&&!Ext.isEmpty(V)){for(var ak=0;
ak<V.length;ak++){var T=V[ak]["TITLE"];}if(T.indexOf("Conversations")>0){aa=Math.ceil(V.length/2);}else{aa=Math.ceil(V.length/3);}for(var ah=0;ah<aa;ah++){if(ah==0){M+='<div class="pie_dot pie_dot_light" id="piechartdot_'+ah+'" style="height:6px; width:6px"></div>';}else{M+='<div class="pie_dot" id="piechartdot_'+ah+'" style="height:6px; width:6px"></div>';
}}for(var ak=0;ak<V.length;ak++){var m="flowsFusnchart"+ak+"_"+C.getMinutes()+"_"+C.getSeconds();var T=V[ak]["TITLE"];ao=350;if(T.indexOf("Conversations")>0){ao=600;}var U=V[ak]["XML_DATA"];var z=V[ak]["Interface"];var au=V[ak]["SWF_PATH"];var p=V[ak]["width"];var S=V[ak]["height"];var ad={xtype:"container",id:T+ak,width:"100%",cls:"pieSeperatorLine",items:[{xtype:"container",chartRendrId:m,dataArray:U,pieInterface:z,pieWidth:ao,height:180,width:"100%",margin:"0 0 10 0",style:{"text-align":"center"},listeners:{"afterrender":function(av){var i=new Date().getTime();
try{var aw="";if(L==1){aw="pieNetflowforOne";}else{aw="pieNetflow";}var l=this.dataArray;var j={};j=jQuery.extend(true,{},getHighChartsBarInstance(av.id,180,this.pieWidth),j);j.setData(l,currentDateFormat,"",aw);j.drawChart();}catch(k){console.log(k);}}}}]};h.push(ad);}}var J=Math.round(($("#flowtabpanel").height())-330);
var s={xtype:"customgrid",cls:"gridSkin",width:"100%",id:"detailsView_"+an,gridId:"detailsView_"+an,flex:1,scroll:true,autoScroll:true,overflowY:"auto",style:{"border":"0px solid black !important"},store:new Ext.data.Store({fields:ag,data:al,sortOnLoad:true,sorters:{property:"COLUMVal_2",direction:"DESC"}}),stateId:"grid_data_"+an,stateful:true,columns:ap};
H.push({xtype:"container",flex:1,layout:{type:"vbox",align:"stretch",},items:[s]});var O=0.33344;if(V.length==2){O=0.5;}if(T.indexOf("Conversations")>0){O=0.5;}if(L==1){O=1;Ext.getCmp("flowtabpanel").add({xtype:"panel",chartDivId:"flowsDial_chart"+an,dataArray:U,cls:"datapanel datapnl",border:true,frame:true,id:"Fusn_chart"+an,tableId:"detailsView_"+an,activeIndex:an,title:T,layout:{type:"vbox",pack:"center",align:"center"},items:[{xytpe:"panel",width:"100%",cls:"datapanel",flex:1,layout:{type:"hbox",align:"middle",pack:"center",},margin:"7 6 0 6",title:P,items:[{xtype:"container",layout:"column",cls:"pie_column",width:575,defaults:{columnWidth:O},items:h},{xtype:"panel",layout:{type:"vbox",align:"stretch",},flex:1,border:false,frame:false,overflowY:"auto",id:"netflowsPanel"+an,cls:"datapanel netdatapanel",margin:"0 10 0 10",items:H,}]}],});
}else{Ext.getCmp("flowtabpanel").add({xtype:"panel",chartDivId:"flowsDial_chart"+an,dataArray:U,cls:"datapanel datapnl",border:true,frame:true,id:"Fusn_chart"+an,tableId:"detailsView_"+an,activeIndex:an,title:T,layout:{type:"vbox",pack:"center",align:"center"},pieChartNavigationValue:aa,items:[{xytpe:"panel",layout:"vbox",width:"100%",cls:"datapanel",height:190,margin:"7 6 0 6",style:{"z-index":"1"},title:P,items:[{xtype:"container",layout:"column",cls:"pie_column",width:"100%",defaults:{columnWidth:O},items:h}]},{xtype:"container",margin:"0 7 -2 7",itemdId:"page_navig",cls:"page_navig",layout:{type:"fit",pack:"center",align:"center"},html:'<div id="corner_left"></div><span id="center_div">'+M+'</span><div id="corner_right"></div>',},{xtype:"panel",layout:{type:"vbox",align:"stretch",},flex:1,width:"100%",border:false,frame:false,title:w,overflowY:"auto",id:"netflowsPanel"+an,cls:"datapanel netdatapanel",margin:"7 6 0 6",tools:[{xtype:"tbseparator",margin:"0 8 0 0",},{xtype:"button",width:20,margin:"2px -2px 0px 0px",id:"iconMaximize"+an,iconCls:"iconMaximize",style:{background:"none",border:"0px",},handler:function(j){var i=Ext.getCmp("flowtabpanel").getActiveTab().activeIndex;
if(netflowSelectedTabIndex==i){Ext.getCmp("flowtabpanel").getComponent(i).getComponent(0).hide();Ext.getCmp("flowtabpanel").getComponent(i).getComponent(1).hide();Ext.getCmp("netGridButton"+i).show();Ext.getCmp("iconMaximize"+i).hide();}Ext.getCmp("flowtabpanel").doLayout();}},{xtype:"button",hidden:true,width:20,margin:"2px -2px 0px 0px",iconCls:"iconMinimize",id:"netGridButton"+an,style:{background:"none",border:"0px"},handler:function(j){var i=Ext.getCmp("flowtabpanel").getActiveTab().activeIndex;
if(netflowSelectedTabIndex==i){Ext.getCmp("flowtabpanel").getComponent(i).getComponent(0).show();Ext.getCmp("flowtabpanel").getComponent(i).getComponent(1).show();Ext.getCmp("netGridButton"+i).hide();Ext.getCmp("iconMaximize"+i).show();}Ext.getCmp("flowtabpanel").doLayout();}}],items:H,}],listeners:{"afterrender":function(i){$(".pie_dot").click(function(){var k=this.id.split("_")[1];
$(this).addClass("pie_dot_light").siblings().removeClass("pie_dot_light").addClass("pie_dot");var j=Math.round(k*190);if(k==0){$(".pie_column").css({"top":j});}else{$(".pie_column").css({"top":-j});}d=Ext.getCmp("flowtabpanel").getActiveTab().activeIndex;a=true;f.push({flag:a,tab_index:d,setHeight:j});
});}}});}Ext.getCmp("flowtabpanel").setActiveTab(netflowSelectedTabIndex);}if(V.length==1){Ext.getCmp("flowtabpanel").getComponent(an).getComponent(0).getComponent(0).items.each(function(j,i){Ext.getCmp(j.id).addCls("pieSeperatorlastChild");});}else{if(V.length==2){Ext.getCmp("flowtabpanel").getComponent(an).getComponent(0).getComponent(0).items.each(function(j,i){if((i%2)==1){Ext.getCmp(j.id).addCls("pieSeperatorlastChild");
}else{Ext.getCmp(j.id).addCls("pieSeperatorLine");}});}else{if(T=="Top Conversations"){Ext.getCmp("flowtabpanel").getComponent(an).getComponent(0).getComponent(0).items.each(function(j,i){if((i%2)==1){Ext.getCmp(j.id).addCls("pieSeperatorlastChild");}else{Ext.getCmp(j.id).addCls("pieSeperatorLine");}});
}else{Ext.getCmp("flowtabpanel").getComponent(an).getComponent(0).getComponent(0).items.each(function(k,j){if((j%3)==2){Ext.getCmp(k.id).addCls("pieSeperatorlastChild");}else{Ext.getCmp(k.id).addCls("pieSeperatorLine");}});}}}Ext.getCmp("ciscomainpanel").doComponentLayout();}}}c.doComponentLayout();}else{if(isExcludedNetflowDeviceAvailable){var ac=Q["folwsArr"];
var X=Q["gridJsons"];var v;if(!Ext.isEmpty(ac)){for(var an=0;an<ac.length;an++){var am=ac[an]["mappingName"];var W=ac[an]["noMesMsg"];if(W!=null&&!Ext.isEmpty(W)){c.add({xtype:"panel",cls:"datapanel",margin:10,frame:true,border:true,id:"Fusn_chart"+an,title:am,items:[{xtype:"container",height:150,width:"100%",margin:10,html:'<table width="100%" height="100%"><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:0px auto"></div><div style="font-size:12px">'+W+"</div></td></tr></table>"}]});
}else{var am=ac[an]["mappingName"];var aq=ac[an]["XML_DATA"];var A=ac[an]["width"];var ae=ac[an]["height"];var E=ac[an]["SWF_PATH"];var C=new Date();var m="flowsFusnchart"+an+"_"+C.getMinutes()+"_"+C.getSeconds();var N="flowsDial_chart"+an;var I=ac[an]["gridvalues"];var w=I["TABLE_TITLE"];var F=I["tableColumns"];
var al=I["gridValues"];v='<div class="x-table" style="border: 1px solid #adadad"><table cellspacing="0" cellpadding="0" border="0" class="x-grid-table x-grid-table-resizer nowrap"><table class="x-grid-table x-grid-table-resizer nowrap"  width="100%">';v+='<thead width="100%">';v+='<tr class="x-grid-row" width="100%">';
v+='<div class="x-grid-cell" width="100%" style="height:30px;margin-left							:10px;color:#000" class="font_bold"><div class="font_bold" style="color:#000;margin-top:7px">'+w+"</div></div>";v+="</tr>";v+="</thead>";v+='<thead width="100%">';v+='<tr class="x-grid-row" >';v+='<td class="x-grid-cell" ><div class="x-grid-cell-inner">'+F["COLUMNNAME_0"]+"</div></td>";
v+='<td class="x-grid-cell" ><div class="x-grid-cell-inner">'+F["COLUMNNAME_1"]+"</div></td>";v+='<td class="x-grid-cell" ><div class="x-grid-cell-inner">'+F["COLUMNNAME_2"]+"</div></td>";v+='<td class="x-grid-cell" ><div class="x-grid-cell-inner">'+F["COLUMNNAME_3"]+"</div></td>";v+="</tr>";v+="</thead>";
v+="<tbody>";for(var ah=0;ah<al.length;ah++){v+='<tr class="x-grid-row">';v+='<td class="x-grid-cell" ><div class="x-grid-cell-inner">'+al[ah]["COLUMVal_0"]+"</div></td>";v+='<td class="x-grid-cell"><div class="x-grid-cell-inner">'+al[ah]["COLUMVal_1"]+"</div></td>";v+='<td class="x-grid-cell"><div class="x-grid-cell-inner">'+al[ah]["COLUMVal_2"]+"</div></td>";
v+='<td class="x-grid-cell"><div class="x-grid-cell-inner">'+al[ah]["COLUMVal_3"]+"</div></td>";v+="</tr>";}v+="</tbody></table></div>";c.add({xtype:"panel",chartDivId:"flowsDial_chart"+an,dataArray:ac[an],cls:"datapanel",border:true,frame:true,margin:10,id:"Fusn_chart"+an,title:am,items:[{xtype:"container",padding:"10px 325px 10px 10px",html:'<div class="f12-bold" style="text-align:center;">'+am+"</div>"},{xtype:"container",chartRendrId:m,height:200,width:"100%",html:'<div id="flowsDial_chart'+an+'" style="height:'+ae+"px;width:"+A+'px;border:0px solid red;float:left;"></div>'},{xtype:"panel",padding:"10px 10px 10px 10px",html:v}],listeners:{"afterrender":function(){var i=new Date().getTime();
try{var l=this.dataArray["XML_DATA"];var j={};j=jQuery.extend(true,{},getHighChartsBarInstance("flowsDial_chart"+an,200,900),j);j.setData(l,currentDateFormat,"","Ciscopie");j.drawChart();}catch(k){console.log(k);}}}});}}}c.doComponentLayout();}}}}});}},loadDetailsTable:function(f,h){selectedInterface=f;
selectedParentID=h;var g=Ext.getCmp("flowtabpanel").getActiveTab().title;var e=Ext.getCmp("flowtabpanel").getActiveTab().id;var d=Ext.getCmp(e).getComponent(2).id;if(h.indexOf(g)>-1){Ext.getCmp(e).getComponent(2).removeAll();var b=Ext.getCmp(e).getComponent(2);$("#"+e+" .pieSeperatorLine").removeClass("PieBackground");
Ext.getCmp(h).addCls("PieBackground");var c=Ext.getCmp("flowInterfaces");var a="";if(c!=undefined&&c!=null){a=Ext.getCmp("flowInterfaces").flowsURL;if(a!=null&&a.indexOf("interfaceToView")>0){a=a.replace(/(interfaceToView=)[^\&]+/,"$1"+encodeURIComponent(f));}else{a=a+"&interfaceToView="+encodeURIComponent(f);
}flowsDetailsLastLoadedURL=a;}if(a==null||a==undefined||a==""){a=flowsDetailsLastLoadedURL;}Ext.Ajax.request({url:a,scope:this,async:false,success:function(j){if(j.status==200&&!Ext.isEmpty(j.responseText)){var z=this.getMain().getWidth(),u=this.getMain().getHeight();var A=j.responseText;var o=Ext.decode(A);
var x=o["flowsPieArr"];var m=new Array();var v=new Array();for(var B=0;B<x.length;B++){var E=x[B]["DATA_"+B];var w=E["Data"];if(w!=null&&w=="true"){var q=E["MaxJSON"];var n=E["tableData"];var C=n[0]["tableColumns"][1];if(g.toUpperCase().indexOf(C)>-1){var F="";var p="";var s="";var k="";if(n!=null&&n!=undefined){F=n[0]["gridValues"];
p=n[0]["tableColumns"];s=n[0]["TABLE_TITLE"];s+=" for "+f;b.setTitle(s);k=n[0]["TABLE_TIMELINE_TITLE"];}var t=new Array();var r=new Array();if(!Ext.isEmpty(p)){for(var y=1;y<p.length;y++){r.push({name:"COLUMVal_"+y,type:"FLOATORSTRING"});t.push({header:p[y],flex:0.2,dataIndex:"COLUMVal_"+y,MaxValues:q,renderer:function(L,l,J,N,H,M,i){var I=i.getHeaderAtIndex(H);
var G=I.dataIndex;if(G!=null&&G=="COLUMVal_5"){if(L!=null&&L!="-"){if(L>0){var K='<table width="100%" cellpadding="0" cellspacing="0" border="0"  height="8" class="prog_border">';K+="<tr>";K+='<td align="left" width="100%" height="8" >';K+='<table width="'+L+'%" height="8"  cellpadding="0" cellspacing="0" border="0">';
K+="<tr>";K+='<td class="progress_GOOD" width="100%"> </td>';K+="</tr>";K+="</table>";K+="</td>";K+="</tr>";K+="</table>";L="<table width='100%' cellpadding='0' cellspacing='0'><tr><td style='width:50px'><span>"+L+"</span></td><td >"+K+"</td></tr></table>";}}}return L;}});}}var D={xtype:"customgrid",cls:"gridSkin",width:"100%",id:"detailsView_"+B,layout:"fit",flex:1,scroll:true,autoScroll:true,overflowY:"auto",style:{"border":"0px solid black !important"},store:new Ext.data.Store({fields:r,data:F,sortOnLoad:true,sorters:{property:"COLUMVal_2",direction:"DESC"}}),stateId:"grid_data_"+B,stateful:true,columns:t};
v.push({xtype:"container",flex:1,layout:{type:"vbox",align:"stretch",},items:[D]});}}}Ext.getCmp(d).add({xtype:"panel",flex:1,layout:{type:"vbox",align:"stretch",},scroll:true,autoScroll:true,overflowY:"auto",items:v});}}});}},selectFlowInterfaces:function(h){selectedInterface=null;selectedParentID=null;
var g=h.getValue();g=g.replace(",",", ");var b=g.split(",");var a=g.split(",").length;if(g!=null&&!Ext.isEmpty(g)&&g!=undefined){var d=Ext.getCmp("flowspanelID");d.removeAll();var e=Math.round($("#ciscomainpanel").height()-55);d.add({xtype:"scrolltabPanel",id:"flowtabpanel",margin:"0 10 10 10",height:e,listeners:{"tabchange":function(i){netflowSelectedTabIndex=i.getActiveTab().activeIndex;
}}});Ext.getCmp("flowtabpanel").tabBar.addTool([{xtype:"tbfill"},{xtype:"scrollcombo",fieldLabel:"Timeline",id:"netflow_high_er_timeline",name:"netflow_high_er_timeline",displayField:"displayField",valueField:"valueField",queryMode:"local",labelWidth:60,labelSeparator:"",margin:"2 5 0 0",width:150,defaultListConfig:{maxHeight:300,shadow:"sides"},cls:"dropdown",defaultListConfig:{shadow:"sides"},editable:false,store:new Ext.data.Store({fields:["valueField","displayField"],data:[]}),value:"",listeners:{"select":function(i){componentDashboard.app.getController("NetworkController").timelineSelect(i);
}}}]);var f=h.flowsURL;if(f!=null&&f.indexOf("interfaceToView")>0){f=f.replace(/(interfaceToView=)[^\&]+/,"$1"+encodeURIComponent(g));}else{f=f+"&interfaceToView="+encodeURIComponent(g);}var c=f.substring(f.indexOf("?")+1);ciscoLastLoadedURL=ciscoLastLoadedURL.substring(0,ciscoLastLoadedURL.indexOf("?")+1)+c;
Ext.Ajax.request({url:f,scope:this,async:false,success:function(p){if(p.status==200&&!Ext.isEmpty(p.responseText)){var Z=this.getMain().getWidth(),N=this.getMain().getHeight();var y=p.responseText;var M=Ext.decode(y);var s=M["timelineCombo"]["timelineComboArray"];var S=M["timelineCombo"]["monitor.dashboard.TimeLine"];
var o=M["timelineCombo"]["selectedTimelineCombo"];this.setValueWithOptionInList("netflow_high_er_timeline",s,o);Ext.getCmp("netflow_high_er_timeline").setFieldLabel(S);var u=M["flowsInterfaceSelectedCombo"];$("#flowInterfaces-inputEl").attr("data-qtip",u);var ag=M["flowsPieArr"];for(var ac=0;ac<ag.length;
ac++){var B=new Date();var af=ag[ac]["DATA_"+ac];var r=af["Data"];var v=af["MaxJSON"];var L=af["PIE_TITLE"];var x=af["tableData"];var R=af["pieChart"];var ab="";var D="";var w="";var E="";if(x!=null&&x!=undefined){ab=x[0]["gridValues"];D=x[0]["tableColumns"];w=x[0]["TABLE_TITLE"];E=x[0]["TABLE_TIMELINE_TITLE"];
}var I=0;if(a==1){I=1;}w+=" for "+g;L+=" for "+g;var ae=new Array();var X=new Array();if(!Ext.isEmpty(D)){for(var W=I;W<D.length;W++){X.push({name:"COLUMVal_"+W,type:"FLOATORSTRING"});ae.push({header:D[W],flex:0.2,dataIndex:"COLUMVal_"+W,MaxValues:v,renderer:function(an,j,ak,ap,l,ao,i){var aj=i.getHeaderAtIndex(l);
var k=aj.dataIndex;if(k!=null&&k=="COLUMVal_5"){if(an!=null&&an!="-"){var am=ak.get("COLUMVal_0");if(I==1){am=g;}if(an>0){var al='<table width="100%" cellpadding="0" cellspacing="0" border="0"  height="8" class="prog_border">';al+="<tr>";al+='<td align="left" width="100%" height="8" >';al+='<table width="'+an+'%" height="8"  cellpadding="0" cellspacing="0" border="0">';
al+="<tr>";al+='<td class="progress_GOOD" width="100%"> </td>';al+="</tr>";al+="</table>";al+="</td>";al+="</tr>";al+="</table>";an="<table width='100%' cellpadding='0' cellspacing='0'><tr><td style='width:50px'><span>"+an+"</span></td><td >"+al+"</td></tr></table>";}}}return an;}});}}if(r!=null&&(r=="false"||ab.length==0)){var A=af["mappingName"];
var H=af["ErrorMsg"];Ext.getCmp("flowtabpanel").add({xtype:"panel",cls:"datapanel",margin:10,frame:true,border:true,title:A,items:[{xtype:"container",height:"100%",width:"100%",margin:10,html:'<table width="100%" height="100%"><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:0px auto"></div><div style="font-size:12px">'+H+"</div></td></tr></table>"}]});
Ext.getCmp("flowtabpanel").setActiveTab(netflowSelectedTabIndex);}else{if(r!=null&&r=="true"){if(x!=null&&x!=undefined&&!Ext.isEmpty(x)){var J=new Array();var m=new Array();var F=new Array();var ad="";var T="";var U="";var C=new Array();if(R!=null&&R!=undefined&&!Ext.isEmpty(R)){for(var aa=0;aa<R.length;
aa++){var P=R[aa]["TITLE"];}if(P.indexOf("Conversations")>0){U=Math.ceil(R.length/2);}else{U=Math.ceil(R.length/3);}for(var Y=0;Y<U;Y++){if(Y==0){J+='<div class="pie_dot pie_dot_light" id="piechartdot_'+Y+'" style="height:6px; width:6px"></div>';}else{J+='<div class="pie_dot" id="piechartdot_'+Y+'" style="height:6px; width:6px"></div>';
}}var ah={xtype:"container",margin:"0 7 0 7",itemdId:"page_navig",layout:{type:"fit",pack:"center",align:"center"},html:'<div id="corner_left"></div><div id="center_div">'+J+'</div><div id="corner_right"></div>',};if(U==1){}for(var aa=0;aa<R.length;aa++){var n="flowsFusnchart"+aa+"_"+B.getMinutes()+"_"+B.getSeconds();
var P=R[aa]["TITLE"];ad=350;if(P.indexOf("Conversations")>0){ad=600;}var Q=R[aa]["XML_DATA"];var z=R[aa]["Interface"];var ai=R[aa]["SWF_PATH"];var q=R[aa]["width"];var O=R[aa]["height"];var V={xtype:"container",id:P+aa,cls:"pieSeperatorLine",items:[{xtype:"container",chartRendrId:n,dataArray:Q,pieInterface:z,pieWidth:ad,height:180,width:"100%",margin:"0 0 10 0",style:{"text-align":"center"},listeners:{"afterrender":function(aj){var i=new Date().getTime();
try{var ak="";if(I==1){ak="pieNetflowforOne";}else{ak="pieNetflow";}var l=this.dataArray;var j={};j=jQuery.extend(true,{},getHighChartsBarInstance(aj.id,180,this.pieWidth),j);j.setData(l,currentDateFormat,"",ak);j.drawChart();}catch(k){console.log(k);}}}}]};m.push(V);T=$(".pieSeperatorLine").height();
}}var G=Math.round(($("#flowtabpanel").height())-330);var t={xtype:"customgrid",cls:"gridSkin",width:"100%",id:"detailsView_"+ac,gridId:"detailsView_"+ac,flex:1,scroll:true,autoScroll:true,overflowY:"auto",style:{"border":"0px solid black !important"},store:new Ext.data.Store({fields:X,data:ab,sortOnLoad:true,sorters:{property:"COLUMVal_2",direction:"DESC"}}),stateId:"grid_data_"+ac,stateful:true,columns:ae};
F.push({xtype:"container",flex:1,overflowY:"auto",layout:{type:"vbox",align:"stretch",},items:[t]});var K=0.33344;if(a==2){K=0.5;}if(P.indexOf("Conversations")>0){K=0.5;}if(I==1){K=1;Ext.getCmp("flowtabpanel").add({xtype:"panel",chartDivId:"flowsDial_chart"+ac,dataArray:Q,cls:"datapanel datapnl",border:true,frame:true,id:"Fusn_chart"+ac,tableId:"detailsView_"+ac,activeIndex:ac,title:P,layout:{type:"vbox",pack:"center",align:"center"},items:[{xytpe:"panel",width:"100%",cls:"datapanel",flex:1,layout:{type:"hbox",align:"middle",pack:"center",},margin:"7 6 0 6",title:L,items:[{xtype:"container",layout:"column",cls:"pie_column",width:575,defaults:{columnWidth:K},items:m},{xtype:"panel",layout:{type:"vbox",align:"stretch",},flex:1,border:false,frame:false,overflowY:"auto",id:"netflowsPanel"+ac,cls:"datapanel netdatapanel",margin:"0 10 0 10",items:F,}]}],});
}else{Ext.getCmp("flowtabpanel").add({xtype:"panel",chartDivId:"flowsDial_chart"+ac,dataArray:Q,cls:"datapanel datapnl",border:true,frame:true,id:"Fusn_chart"+ac,tableId:"detailsView_"+ac,activeIndex:ac,title:P,layout:{type:"vbox",pack:"center",align:"center"},pieChartNavigationValue:U,items:[{xytpe:"panel",layout:"vbox",width:"100%",cls:"datapanel",height:190,margin:"7 6 0 6",title:L,style:{"z-index":"1"},items:[{xtype:"container",layout:"column",cls:"pie_column",width:"100%",defaults:{columnWidth:K},items:m}]},ah,{xtype:"panel",layout:{type:"vbox",align:"stretch",},flex:1,width:"100%",border:false,frame:false,title:w,overflowY:"auto",id:"netflowsPanel"+ac,cls:"datapanel netdatapanel",margin:"7 6 0 6",tools:[{xtype:"tbseparator",margin:"0 10 0 0",},{xtype:"button",width:20,margin:"0px 0px 0px 0px",id:"iconMaximize"+ac,iconCls:"iconMaximize",style:{background:"none",border:"0px",},handler:function(j){var i=Ext.getCmp("flowtabpanel").getActiveTab().activeIndex;
if(netflowSelectedTabIndex==i){Ext.getCmp("flowtabpanel").getComponent(i).getComponent(0).hide();Ext.getCmp("flowtabpanel").getComponent(i).getComponent(1).hide();Ext.getCmp("netGridButton"+i).show();Ext.getCmp("iconMaximize"+i).hide();}Ext.getCmp("flowtabpanel").doLayout();}},{xtype:"button",hidden:true,width:20,margin:"0px 0px 0px 0px",iconCls:"iconMinimize",id:"netGridButton"+ac,style:{background:"none",border:"0px"},handler:function(j){var i=Ext.getCmp("flowtabpanel").getActiveTab().activeIndex;
if(netflowSelectedTabIndex==i){Ext.getCmp("flowtabpanel").getComponent(i).getComponent(0).show();Ext.getCmp("flowtabpanel").getComponent(i).getComponent(1).show();Ext.getCmp("netGridButton"+i).hide();Ext.getCmp("iconMaximize"+i).show();}Ext.getCmp("flowtabpanel").doLayout();}}],items:F,}],listeners:{"afterrender":function(i){$(".pie_dot").click(function(){d.doComponentLayout();
var k=this.id.split("_")[1];$(this).addClass("pie_dot_light").siblings().removeClass("pie_dot_light").addClass("pie_dot");var j=Math.round(k*T);if(k==0){$(".pie_column").css({"top":j});}else{$(".pie_column").css({"top":-j});}tab_index=Ext.getCmp("flowtabpanel").getActiveTab().activeIndex;flag=true;});
}}});}Ext.getCmp("flowtabpanel").setActiveTab(netflowSelectedTabIndex);}if(a==1){Ext.getCmp("flowtabpanel").getComponent(ac).getComponent(0).getComponent(0).items.each(function(j,i){Ext.getCmp(j.id).addCls("pieSeperatorlastChild");});}else{if(a==2){Ext.getCmp("flowtabpanel").getComponent(ac).getComponent(0).getComponent(0).items.each(function(j,i){if((i%2)==1){Ext.getCmp(j.id).addCls("pieSeperatorlastChild");
}else{Ext.getCmp(j.id).addCls("pieSeperatorLine");}});}else{if(P=="Top Conversations"){Ext.getCmp("flowtabpanel").getComponent(ac).getComponent(0).getComponent(0).items.each(function(j,i){if((i%2)==1){Ext.getCmp(j.id).addCls("pieSeperatorlastChild");}else{Ext.getCmp(j.id).addCls("pieSeperatorLine");}});
}else{Ext.getCmp("flowtabpanel").getComponent(ac).getComponent(0).getComponent(0).items.each(function(k,j){if((j%3)==2){Ext.getCmp(k.id).addCls("pieSeperatorlastChild");}else{Ext.getCmp(k.id).addCls("pieSeperatorLine");}});}}}}}}d.doComponentLayout();}}});}},interfaceComboLoad:function(){var e=false;
var d="bottom";var f=Ext.getCmp("bandwidthpanel");f.removeAll();var c=Ext.getCmp("ciscosubsystem").getValue();var a=Ext.getCmp("interfaceCombo").getValue();var g=Ext.getCmp("TimelineCombo").getValue();var b="/final/monitor/EgCiscoDashHelperJSON.jsp?tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&ciscoSelectedType="+encodeURIComponent(c)+"&screenWidth=1012&screenHeight=570&subsystem=Protocols&blockType=Protocols";
if(b.indexOf("&selectedInterface")>0){b=b.replace(/(selectedInterface=)[^\&]+/,"$1"+encodeURIComponent(a));}else{b+="&selectedInterface="+encodeURIComponent(a);}if(b.indexOf("&protocolTimeline")>0){b=b.replace(/(protocolTimeline=)[^\&]+/,"$1"+encodeURIComponent(g));}else{b+="&protocolTimeline="+encodeURIComponent(g);
}protocolLastLoadedURL=b;Ext.Ajax.request({url:b,scope:this,success:function(h){if(h.status==200&&!Ext.isEmpty(h.responseText)){var x=this.getMain().getWidth(),r=this.getMain().getHeight();var z=h.responseText;var l=Ext.decode(z);var w=l["CHARTNTABLE_DATA"];var i=w[0]["COLUMNAM_0"];if(!Ext.isEmpty(w)){var o=new Array();
var q=new Array();var k=new Array();var p=new Array();var v=new Array();var y=0;for(var D in w){var u=w[D]["Title"];var A=w[D]["areaChartURL"];var m=w[D]["Type"];var t=w[D]["GRAPH_FORMAT"];var B=200;var s=550;var C=new Array();C[0]=u;C[1]=A;C[2]=m;var n="";if(!Ext.isEmpty(t)){if(t.indexOf("highchart")>-1){n='<div id="netareaDesktopChartDiv'+D+'" style="margin:20px 0px 0px 0px;padding:0px 0px 0px 90px"></div>';
q.push("netareaDesktopChartDiv"+D);k.push("protocolInterfaceArealegend"+D);o.push(A);p.push(B);}}f.add({xtype:"panel",cls:"block1",layout:{type:"hbox",align:"stretch"},dataArray:C,title:u,width:"100%",flex:1,id:"netareaChartDiv"+D,items:[{xtype:"container",height:220,layout:{type:"hbox",align:"stretch"},flex:0.8,margin:"20px 0px 10px 0px",id:"netareaDesktopChartDiv"+D,URL:A,html:n,style:{cursor:"pointer"},listeners:{"afterrender":function(){var F=this.URL;
if(!Ext.isEmpty(t)){var j=Math.round(Ext.getCmp("protocolpanelID").getWidth()-360);s=j;var E=Ext.getCmp("netareaChartDiv"+D);p=Ext.getCmp("netareaChartDiv"+D).el.dom.clientHeight;if(t.indexOf("highchart")>-1){setAreaHighChart(o[y],q[y],k[y],p[y],s,F,e,d,false,"area","protocol",E);}else{this.update("<img onClick=\"javascript:AreaGraphOnClick('"+F+'\');" src="'+F+'&height=180&width=550&mode=2D" />');
}}y=y+1;}}},{xtype:"container",width:200,overflowY:"auto",margin:"0 10 0 0",height:"100%",layout:{type:"vbox",align:"center",pack:"center",},items:[{xtype:"container",id:"protocolInterfaceArealegend"+D,width:200,}]}]});}}f.doComponentLayout();}}});},ddOnclick:function(b){Ext.getCmp("subNetworkPanelId").hide();
Ext.getCmp("subnetworktabpanelID").hide();comboChangeURL="/final/monitor/egDashTimelineJSON.jsp?"+b+"&graphType=DDgraph";var c=this.getNetworkmainpanel();c.remove("networkfullviewpanel");var a={xtype:"networkfullviewpanel",Dataurl:"/final/monitor/egDashTimelineJSON.jsp?"+b+"&graphType=DDgraph",viewType:"barGraph",gtype:"bar"};
c.add(a);c.doLayout();},comparisionBarOnclick:function(b){Ext.getCmp("subNetworkPanelId").hide();Ext.getCmp("subnetworktabpanelID").hide();b=b.split("?");var d=b[1];comboChangeURL="/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=comparisionBargraph";var c=this.getNetworkmainpanel();c.remove("networkfullviewpanel");
var a={xtype:"networkfullviewpanel",width:(Ext.getBody().getViewSize().width-10),height:(Ext.getBody().getViewSize().height-60),Dataurl:"/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=comparisionBargraph",viewType:"barGraph",gtype:"bar"};c.add(a);c.doLayout();},trendGraphOnclick:function(b){Ext.getCmp("subNetworkPanelId").hide();
Ext.getCmp("subnetworktabpanelID").hide();b=b.split("?");var d=b[1];comboChangeURL="/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=Trendgraph";var c=this.getNetworkmainpanel();c.remove("networkfullviewpanel");var a={xtype:"networkfullviewpanel",width:(Ext.getBody().getViewSize().width-10),height:(Ext.getBody().getViewSize().height-60),Dataurl:"/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=Trendgraph",viewType:"trendGraph",gtype:"trend"};
c.add(a);c.doLayout();},summaryGraphOnclick:function(b){Ext.getCmp("subNetworkPanelId").hide();Ext.getCmp("subnetworktabpanelID").hide();b=b.split("?");var d=b[1];comboChangeURL="/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=Summarygraph";var c=this.getNetworkmainpanel();c.remove("networkfullviewpanel");
var a={xtype:"networkfullviewpanel",width:(Ext.getBody().getViewSize().width-10),height:(Ext.getBody().getViewSize().height-60),Dataurl:"/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=Summarygraph",viewType:"Summarygraph",gtype:"summary"};c.add(a);c.doLayout();},DDGraphOnClick:function(b){Ext.getCmp("subNetworkPanelId").hide();
Ext.getCmp("subnetworktabpanelID").hide();b=b.split("?");var d=b[1];comboChangeURL="/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=DDgraph";var c=this.getNetworkmainpanel();c.remove("networkfullviewpanel");var a={xtype:"networkfullviewpanel",width:(Ext.getBody().getViewSize().width-10),height:(Ext.getBody().getViewSize().height-60),Dataurl:"/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=DDgraph",viewType:"barGraph",gtype:"bar"};
c.add(a);c.doLayout();},ComparisonGraphGraphOnClick:function(b){Ext.getCmp("subNetworkPanelId").hide();Ext.getCmp("subnetworktabpanelID").hide();b=b.split("?");var d=b[1];comboChangeURL="/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=comparisionBargraph";var c=this.getNetworkmainpanel();c.remove("networkfullviewpanel");
var a={xtype:"networkfullviewpanel",width:(Ext.getBody().getViewSize().width-10),height:(Ext.getBody().getViewSize().height-60),Dataurl:"/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=comparisionBargraph",viewType:"barGraph",gtype:"bar"};c.add(a);c.doLayout();},MeasureGraphOnClick:function(b){Ext.getCmp("subNetworkPanelId").hide();
Ext.getCmp("subnetworktabpanelID").hide();b=b.split("?");var d=b[1];comboChangeURL="/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=measureGraph";var c=this.getNetworkmainpanel();c.remove("networkfullviewpanel");var a={xtype:"networkfullviewpanel",width:(Ext.getBody().getViewSize().width-10),height:(Ext.getBody().getViewSize().height-60),Dataurl:"/final/monitor/egDashTimelineJSON.jsp?"+d+"&graphType=measureGraph",viewType:"measureGraph",gtype:"measure"};
c.add(a);c.doLayout();},loadFullViewPanel:function(){var e=this;var b=Ext.getCmp("net_fullviewId");var d=b.Dataurl;var c=b.up("panel");b.setLoading(true,true);d+="&screenWidth="+(c.getWidth()-10)+"&screenHeight="+(c.getHeight());var a=Ext.getCmp("net_fullviewId").viewType;if(a=="barGraph"){Ext.getCmp("net_period").hide();
Ext.getCmp("net_graphID").hide();Ext.getCmp("net_Show").show();}else{if(a=="trendGraph"){Ext.getCmp("net_period").show();Ext.getCmp("net_graphID").show();Ext.getCmp("net_Show").hide();}else{if(a=="Summarygraph"){Ext.getCmp("net_period").show();Ext.getCmp("net_Show").hide();}else{if(a=="measureGraph"){Ext.getCmp("net_period").hide();
Ext.getCmp("net_Show").hide();}}}}Ext.Ajax.request({url:d,scope:this,method:"POST",success:function(h){if(h.status==200&&!Ext.isEmpty(h.responseText)){var m=h.responseText;var R=Ext.decode(m);var I=R["dateArrayValues"];var s=R["trendGrpDuration"];if(s!=null&&s!=""&&!Ext.isEmpty(s)){var A=s["monitor.dashboard.Duration"];
var C=s["selectedDuration"];var ah=s["trendGrpDurationArr"];var j=Ext.getCmp("net_period");j.setFieldLabel(A);j.getStore().loadRawData(ah);j.setValue(C);}var Z=R["BARGRAPH"];if(Z!=null&&Z!=""&!Ext.isEmpty(Z)){var E=Z["monitor.common.Show"];var am=Z["selectedShowCombo"];var al=Z["barGraphShowCombo"];var D=Ext.getCmp("net_Show");
D.setFieldLabel(E);D.getStore().loadRawData(al);D.setValue(am);}var M=R["timelineCombo"];if(M!=null&&M!=""&!Ext.isEmpty(M)){var X=M["monitor.dashboard.TimeLine"];var aq=M["selectedTimelineCombo"];var an=M["timelineCombo"];var B=Ext.getCmp("net_high_er_timeline");B.setFieldLabel(X);B.getStore().loadRawData(an);
B.setValue(aq);}var N=R["fromValues"];if(N!=null&&N!=""&!Ext.isEmpty(N)){var ab=N["monitor.VirtualDashboard.From"];var v=N["from"];var F=N["value"];var p=Ext.getCmp("net_high_er_stdate");p.setFieldLabel(ab);p.setDisabled(v);p.dataArray=I[0];p.setValue(I[6]);}var x=R["startHr"];if(x!=null&&x!=""&!Ext.isEmpty(x)){var Y=x["monitor.VirtualDashboard.Hr"];
var ao=x["isStartHrEnabled"];var J=x["selectedStartHr"];var L=x["startHrArray"];var ak=Ext.getCmp("net_high_er_sthr");ak.setFieldLabel(Y);ak.getStore().loadRawData(L);ak.setDisabled(ao);ak.dataArray=I[2];ak.setValue(I[7]);}var ag=R["toValues"];if(ag!=null&&ag!=""&!Ext.isEmpty(ag)){var k=ag["monitor.VirtualDashboard.To"];
var W=ag["to"];var af=ag["value"];var Q=Ext.getCmp("net_high_er_enddate");Q.setDisabled(W);Q.setFieldLabel(k);Q.dataArray=I[1];Q.setValue(I[9]);}var t=R["endHr"];if(t!=null&&t!=""&!Ext.isEmpty(t)){var Y=t["monitor.VirtualDashboard.Hr"];var aj=t["isEndHrEnabled"];var u=t["selectedEndHr"];var P=t["endHrArray"];
var U=Ext.getCmp("net_high_er_endhr");U.setFieldLabel(Y);U.getStore().loadRawData(P);U.setDisabled(aj);U.dataArray=I[3];U.setValue(I[10]);}var y=R["GraphCombo"];if(y!=null&&y!=undefined&&y!=""){var g=y["monitor.dashboard.Graph"];var z=y["trendGraph"];var ae=y["selectedGraph"];var r=Ext.getCmp("net_graphID");
r.setFieldLabel(g);r.getStore().loadRawData(z);r.setValue(ae);}var o=R["ddGraphObj"];if(o!=null&&o!=""&!Ext.isEmpty(o)){var q=o["DetailsLink"];var O=o["DetailsLabel"];if(q=="true"){Ext.getCmp("net_detailsID").show();}}var f=Ext.getCmp("net_fullViewBarId");f.removeAll();f.update("");if(a=="measureGraph"){var n=R["MeasureGraphImage"];
if(n!=null&&n!=""&!Ext.isEmpty(n)&&n!=undefined){var w=n["DATA"];var ai=n["HIGH_CHART"];var K="";if(ai=="highcharts"){K=true;}else{K=false;}var V=R["minMaxTable"];var l="";var aa="";if(V!=null&&V!=""&!Ext.isEmpty(V)&&V!=undefined){l=V["minMaxTableHeadersArray"];}var S=R["measuresTable"];if(S!=null&&S!=""&!Ext.isEmpty(S)&&S!=undefined){aa=S["measuresTableDataArray"];
}if(w=="true"){var ac=n["iframeSrc"];e.loadMeasureGraph(ac,K);}else{var G=n["Msg"];f.update(G);b.setLoading(false);}}}else{var H=R["FullViewXmlData"];if(H!=null&&H!=""&!Ext.isEmpty(H)){var ap=H["DATA"];if(ap=="true"){var i=H["WIDTH"];var T=H["HEIGHT"];T=parseInt(T);f.add({xtype:"container",id:"net_fullViewPanelBigId",style:{"text-align":"center","margin":"20px auto"},xmlData:H,width:i,height:T,listeners:{"afterrender":function(ay){var av=ay.xmlData["XMLDATA"];
try{if(a=="Summarygraph"){var aw={};aw=jQuery.extend(true,{},getHighChartsBarInstance(ay.id,ay.height-20,i),aw);aw.setData(av,currentDateFormat,"","stackedColumn");aw.drawChart();}else{if(a=="trendGraph"){var au=ay.xmlData["WIDTH"];var at=ay.xmlData["HEIGHT"];var ar={};ar=jQuery.extend(true,{},createLineChart(ay.id,parseInt(at-20),(parseInt(au)-20)),ar);
ar.setData(av,currentDateFormat,"","line",true);ar.drawChart();}else{var aw={};aw=jQuery.extend(true,{},getHighChartsBarInstance(ay.id,ay.height-20,i-150),aw);aw.setData(av,currentDateFormat,"","bar");aw.drawChart();}}b.setLoading(false);}catch(ax){console.log(ax);}}}});}else{var ad=H["MSG"];f.update(ad);
}}}}}});},loadFullViewGraph:function(d){var b=Ext.getCmp("net_fullviewId");var c=b.up("panel");b.setLoading(true,true);d+="&screenWidth="+(c.getWidth()-10)+"&screenHeight="+(c.getHeight());var f=Ext.getCmp("net_fullViewBarId");f.removeAll();f.update("");var e=this;var a=Ext.getCmp("net_fullviewId").viewType;
Ext.Ajax.request({url:d,scope:this,method:"POST",success:function(g){if(g.status==200&&!Ext.isEmpty(g.responseText)){var w=g.responseText;var i=Ext.decode(w);if(a=="measureGraph"){var o=i["MeasureGraphImage"];if(o!=null&&o!=""&!Ext.isEmpty(o)&&o!=undefined){var m=o["DATA"];var t=o["HIGH_CHART"];var q="";
if(t=="highcharts"){q=true;}else{q=false;}var n=i["minMaxTable"];var u="";var s="";if(n!=null&&n!=""&!Ext.isEmpty(n)&&n!=undefined){u=n["minMaxTableHeadersArray"];}var p=i["measuresTable"];if(p!=null&&p!=""&!Ext.isEmpty(p)&&p!=undefined){s=p["measuresTableDataArray"];}if(m=="true"){var h=o["iframeSrc"];
e.loadMeasureGraph(h,q);}else{var r=o["Msg"];x.update(r);b.setLoading(false);}}}else{var j=i["FullViewXmlData"];if(j!=null&&j!=""&!Ext.isEmpty(j)){var y=j["DATA"];var x=Ext.getCmp("net_fullViewBarId");if(y=="true"){var k=j["WIDTH"];var v=j["HEIGHT"];v=parseInt(v);x.add({xtype:"container",id:"net_fullViewPanelBigId",xmlData:j,width:k,height:v,listeners:{"afterrender":function(G){var D=G.xmlData["XMLDATA"];
try{if(a=="Summarygraph"){var E={};E=jQuery.extend(true,{},getHighChartsBarInstance(G.id,480,1280),E);E.setData(D,currentDateFormat,"","stackedColumn");E.drawChart();}else{if(a=="trendGraph"){var C=G.xmlData["WIDTH"];var B=G.xmlData["HEIGHT"];var A={};A=jQuery.extend(true,{},createLineChart(G.id,B,C),A);
A.setData(D,currentDateFormat,"","line",true);A.drawChart();}else{var E={};var z=parseInt(b.getWidth())-100;E=jQuery.extend(true,{},getHighChartsBarInstance(G.id,490,z),E);E.setData(D,currentDateFormat,"","bar");E.drawChart();}}b.setLoading(false);}catch(F){console.log(F);}}}});}else{var l=j["MSG"];x.update('<table width="100%" height="300"><tr><td valign="middle" align="center"><div class="iconInformation" style="margin-top:5%"></div><div style="font-size:12px">'+l+"</div></td></tr></table>");
b.setLoading(false);}}}}}});},dateDiff:function(c,a){var b=24*60*60*1000;var c=new Date(c);var a=new Date(a);var d=Math.round(Math.abs(c.getTime()-a.getTime())/(b));return d;},goBtnOnClick:function(){var o=Ext.getCmp("net_high_er_sthr");var g=Ext.getCmp("net_high_er_endhr");var h=Ext.getCmp("net_Show").getValue();
var n=Ext.getCmp("net_high_er_timeline").getValue();var a=Ext.getCmp("net_high_er_stdate").getValue();a=formatDate(Ext.getCmp("net_high_er_stdate").getValue(),mgrDisplayDateFormat);var c=o.getValue();var d=Ext.getCmp("net_high_er_enddate").getValue();d=formatDate(Ext.getCmp("net_high_er_enddate").getValue(),mgrDisplayDateFormat);
var m=g.getValue();var e="2D";var l=Ext.getCmp("net_period").getValue();var j=Ext.getCmp("net_graphID").getValue();var f=Ext.getCmp("net_fullviewId").viewType;var k=new Date();var i=this.dateDiff(new Date(a),new Date(d));var b=k.getMonth()+"/"+k.getDay()+"/"+k.getYear();if(n!=null&&n.toLowerCase()=="any"){if(new Date(a)>new Date(d)){Ext.MessageBox.show({title:alertLbl,msg:_stDateLessThanEndDateMsg,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});
return false;}if(new Date(a).valueOf()==new Date(d).valueOf()){if(c>m){Ext.MessageBox.show({title:alertLbl,msg:_stDateLessThanEndDateMsg,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});return false;}}if(k<new Date(a)){Ext.MessageBox.show({title:alertLbl,msg:_fromdatelesserThanMsg,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});
return false;}}if(f=="measureGraph"){if(i>14){Ext.MessageBox.show({title:alertLbl,msg:_timelineTwoWeeksMsg,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});return false;}}if(f=="barGraph"){comboChangeURL=comboChangeURL.replace(/(priority=)[^\&]+/,"$1"+h);}else{if(f=="trendGraph"){comboChangeURL=comboChangeURL.replace(/(mode=)[^\&]+/,"$1"+e);
if(comboChangeURL.indexOf("duration")>0){comboChangeURL=comboChangeURL.replace(/(duration=)[^\&]+/,"$1"+l);}else{comboChangeURL+="&duration="+l;}if(comboChangeURL.indexOf("trendType")>0){comboChangeURL=comboChangeURL.replace(/(trendType=)[^\&]+/,"$1"+j);}else{comboChangeURL+="&trendType="+j;}}else{if(f=="Summarygraph"){comboChangeURL=comboChangeURL.replace(/(mode=)[^\&]+/,"$1"+e);
if(comboChangeURL.indexOf("duration")>0){comboChangeURL=comboChangeURL.replace(/(duration=)[^\&]+/,"$1"+encodeURIComponent(l));}else{comboChangeURL+="&duration="+encodeURIComponent(l);}}else{if(f=="measureGraph"){comboChangeURL=comboChangeURL.replace(/(mode=)[^\&]+/,"$1"+e);}}}}comboChangeURL=comboChangeURL.replace(/(timeline_compare=)[^\&]+/,"$1"+encodeURIComponent(n));
comboChangeURL=comboChangeURL.replace(/(starttime=)[^\&]+/,"$1"+encodeURIComponent(a));comboChangeURL=comboChangeURL.replace(/(starthr=)[^\&]+/,"$1"+o.dataArray);comboChangeURL=comboChangeURL.replace(/(endtime=)[^\&]+/,"$1"+encodeURIComponent(d));comboChangeURL=comboChangeURL.replace(/(endhr=)[^\&]+/,"$1"+g.dataArray);
if(comboChangeURL.indexOf("durationChanged")>0){comboChangeURL=comboChangeURL.replace(/(durationChanged=)[^\&]+/,"$1"+"false");}this.loadFullViewGraph(comboChangeURL);Ext.get("net_configMod").animate({duration:500,to:{y:-350}});},timelineSelect:function(a){selectedInterface=null;selectedParentID=null;
var b=a.getValue();if(ciscoLastLoadedURL.indexOf("timeline")>-1){ciscoLastLoadedURL=ciscoLastLoadedURL.replace(/(timeline=)[^\&]+/,"$1"+b);}else{ciscoLastLoadedURL+="&timeline="+b;}Ext.Ajax.request({url:ciscoLastLoadedURL,scope:this,async:false,success:function(d){if(d.status==200&&!Ext.isEmpty(d.responseText)){var g=this.getMain().getWidth(),c=this.getMain().getHeight();
var f=d.responseText;var e=Ext.decode(f);this.ciscoDefaultLoad(e);}}});},durationComboChange:function(a){var b=a.getValue();if(comboChangeURL.indexOf("duration")>0){comboChangeURL=comboChangeURL.replace(/(duration=)[^\&]+/,"$1"+b);}else{comboChangeURL+="&duration="+b;}if(comboChangeURL.indexOf("durationChanged")>0){comboChangeURL=comboChangeURL.replace(/(durationChanged=)[^\&]+/,"$1"+"true");
}else{comboChangeURL+="&durationChanged=true";}Ext.Ajax.request({url:comboChangeURL,method:"POST",success:function(c){if(c.status==200&&!Ext.isEmpty(c.responseText)){var g=c.responseText;var e=Ext.decode(g);var d=e["timelineCombo"];if(d!=null&&d!=""&!Ext.isEmpty(d)){var f=d["monitor.dashboard.TimeLine"];
var j=d["selectedTimelineCombo"];var h=d["timelineCombo"];var i=Ext.getCmp("net_high_er_timeline");i.setFieldLabel(f);i.getStore().loadRawData(h);i.setValue(j);}Ext.getCmp("net_high_er_timeline").fireEvent("select",Ext.getCmp("net_high_er_timeline"));}}});},loadMeasureGraph:function(d,b){var g="";var e="";
var c="";var f=Ext.getCmp("net_fullViewBarId");var a=Ext.getCmp("net_fullviewId");f.removeAll();f.update("");if(b){Ext.Ajax.request({url:d,method:"POST",success:function(h){if(h.status==200&&!Ext.isEmpty(h.responseText)){var m=h.responseText;var k=Ext.decode(m);var j=k["ERROR"];if(j!=null&&j!=undefined&&!Ext.isEmpty(j)&&j=="NO_DATA_FOUND"){Ext.getCmp("net_measureTableID").update("");
f.update('<div class="iconInformation" style="margin:15% auto 0 auto"></div><div style="text-align:center;">'+noMeasure+"</div>");a.setLoading(false);}else{g=k["MeasurementTable_Highcharts"];var i=g["minMaxTable"];if(i!=null&&i!=""&!Ext.isEmpty(i)&&i!=undefined){e=i["minMaxTableHeadersArray"];}var l=g["measuresTable"];
if(l!=null&&l!=""&!Ext.isEmpty(l)&&l!=undefined){c=l["measuresTableDataArray"];}if(m.indexOf("png")==-1&&m.indexOf("PNG")==-1&&m.indexOf("gif")==-1&&m.indexOf("GIF")==-1){f.add({xtype:"container",id:"net_fullViewPanelHighChatrBigId",html:'<div id="net_high-chart-measuregraph" style="border:0px solid yellow;height:300px;"></div>',listeners:{"afterrender":function(u){try{var n={};
n=jQuery.extend(true,{},getHighCharts("net_high-chart-measuregraph",300,900,""),n);n.setData(k,currentDateFormat,"",true,"bottom");n.drawChart();a.setLoading(false);}catch(s){alert("e::"+s);}if(!Ext.isEmpty(e)&&e!=undefined&&e!=null&&e!=""&&c!=undefined&&c!=null&&c!=""&&!Ext.isEmpty(c)){var t="";t+='<div class="newTable" style="width:600px;margin:10px auto 10px auto;padding-bottom:0px"> '+'<table cellspacing="0" cellpadding="0" border="0"  class="x-grid-table x-grid-table-resizer">'+'<thead style="display:table;width:100%;table-layout:fixed;">'+'<tr style="display:table;width:100%;table-layout:fixed;">'+'<th style="width:50px">'+'<div  style="margin-left: 12px;">'+e[0]["name"]+"</div>"+"</th>"+'<th  style="width: 210px;">'+"<div >"+e[1]["name"]+"</div>"+"</th>"+'<th  style="width: 50px;">'+"<div >"+e[2]["name"]+"</div>"+"</th>"+'<th  style="width: 50px;">'+"<div  >"+e[3]["name"]+"</div>"+"</th>"+'<th  style="width: 50px;">'+"<div >"+e[4]["name"]+"</div>"+"</th>"+"</tr>"+"</thead>"+'<tbody style="width:100%;table-layout:fixed;display:block;overflow:auto;max-height:100px">';
for(var q=0;q<c.length;q++){var p=c[q];t+='<tr style="display:table;width:100%;table-layout:fixed;" >';for(var o in p){if(o=="value0"){t+='<td   style="vertical-align:middle" width="50px">'+'<div   ><span id="id_colorcheck" style="display: inline-block;background:'+p[o]+';height: 10px;width: 10px;margin-left: 22px;"><span></div>'+"</td>";
}else{var r="50px";if(o=="value1"){r="210px";}t+='<td  style="vertical-align:middle" width="'+r+'">'+"<div  >"+p[o]+"</div>"+"</td>";}}t+="</tr>";}t+="</tbody>"+"</table>"+"</div>";Ext.getCmp("net_measureTableID").update(t);}}}});}else{f.update(m);a.setLoading(false);}}}else{f.update("<table border='0' height='100%' width='100%'><tr><td align='center'><img src='/final/monitor/eg_images/gray/graph_error_message.gif'></td></tr></table>");
a.setLoading(false);}}});}else{f.update('<table width="100%" height="360px"><tr><td align="center" valign="middle"><img src="'+d+'" border="0" /></td></tr></table>');a.setLoading(false);}}});