var task=new Ext.util.DelayedTask(function(){if(!Ext.isEmpty(Ext.getCmp("subsystemSelect"))&&Ext.getCmp("subsystemSelect").getRawValue()=="CPU"){if(!Ext.isEmpty(Ext.getCmp("subSystemId"))&&Ext.getCmp("subSystemId")!=null&&Ext.getCmp("subSystemId")!=undefined){Ext.getCmp("subSystemId").addCls("block1");
}}else{if(!Ext.isEmpty(Ext.getCmp("subSystemId"))&&Ext.getCmp("subSystemId")!=null&&Ext.getCmp("subSystemId")!=undefined){Ext.getCmp("subSystemId").removeCls("block1");}}if(!Ext.isEmpty(Ext.getCmp("subsystemNSelect"))&&(Ext.getCmp("subsystemNSelect").getRawValue()=="Network")){if(!Ext.isEmpty(Ext.getCmp("subSystemNetworkMainId"))&&Ext.getCmp("subSystemNetworkMainId")!=null&&Ext.getCmp("subSystemNetworkMainId")!=undefined){Ext.getCmp("subSystemNetworkMainId").addCls("block1");
}}else{if(!Ext.isEmpty(Ext.getCmp("subSystemNetworkMainId"))&&Ext.getCmp("subSystemNetworkMainId")!=null&&Ext.getCmp("subSystemNetworkMainId")!=undefined){Ext.getCmp("subSystemNetworkMainId").removeCls("block1");}}});Ext.define("insideViewDashboard.controller.Main",{extend:"Ext.app.Controller",requires:["insideViewDashboard.view.InsideViewDashboardTabPanel","insideViewDashboard.view.SubSystemPanel","insideViewDashboard.view.DetailsGraphPanel","utilities.ZoomGraphPanel","insideViewDashboard.view.SubSystemNetworkPanel","insideViewDashboard.view.DetailsNetworkGraphPanel","insideViewDashboard.view.TestInfo","insideViewDashboard.view.ConfigureThresholds","insideViewDashboard.view.NewLayout","insideViewDashboard.view.Measures","insideViewDashboard.view.testTreeView","utilities.OuterPanel","utilities.CommonBackButton","utilities.CommonPanel","utilities.ScrollCombo","utilities.ScrollPanel","insideViewDashboard.view.AlarmDetails"],refs:[{selector:"main",ref:"main"},{selector:"insideviewdashboardtabpanel",ref:"insideviewdashboardtabpanel"},{selector:"measuresdata",ref:"measuresdata"},{selector:"systempanel",ref:"systempanel"},{selector:"subsystempanel",ref:"subsystempanel"},{selector:"detailsgraphpanel",ref:"detailsgraphpanel"},{selector:"networkpanel",ref:"networkpanel"},{selector:"subsystemnetworkpanel",ref:"subsystemnetworkpanel"},{selector:"detailsnetworkgraphpanel",ref:"detailsnetworkgraphpanel"},{ref:"zoomGraphComboMode",selector:'zoomgraphpanel  combo[itemId= "mode"]'},{ref:"zoomGraphComboTimeline",selector:'zoomgraphpanel  combo[itemId= "timeline"]'},{ref:"zoomGraphComboFromhr",selector:'zoomgraphpanel combo[itemId= "fromhr"]'},{ref:"zoomGraphComboTohr",selector:'zoomgraphpanel combo[itemId= "tohr"]'},{ref:"zoomGraphComboFrommin",selector:'zoomgraphpanel combo[itemId= "frommin"]'},{ref:"zoomGraphComboTomin",selector:'zoomgraphpanel combo[itemId= "tomin"]'},{ref:"zoomGraphFromDate",selector:'zoomgraphpanel datefield[itemId= "from"]'},{ref:"zoomGraphToDate",selector:'zoomgraphpanel datefield[itemId= "to"]'},{ref:"zoomGraphComboShow",selector:'zoomgraphpanel combo[itemId= "priority"]'},{ref:"zoomGraphPanel",selector:"zoomgraphpanel"},{ref:"newlayout",selector:"newlayout"},{ref:"testtreeview",selector:"testtreeview"},{ref:"measures",selector:"measures"},{ref:"alarmDetails",selector:"alarmdetails"},{ref:"alarmDetailsTableContainer",selector:"alarmdetails container#tableContainer"},{ref:"alarmDetailsTableContainerAcknowledge",selector:"alarmdetails container#tableContainerAcknowledge"},{ref:"configureThresholds",selector:"configurethresholds"},{selector:"testinfo",ref:"testInfo"},{ref:"testInfoTableContainer",selector:"testinfo container#tableContainer"}],commonUrl:null,commonOtherUrl:null,maxChart:null,testSearchedLayers:[],recordClicked:new Array(),init:function(){app=this;
setInterval("execute()",refreshFrequency);this.control({'testinfo button[itemId="iconTestConfig"]':{click:this.testConfigureEvent},"main":{"boxready":this.afterMainRender},"main":{"resize":this.afterMainRender},'main scrollcombo[id="componentName"]':{"select":this.submitForResult},'main scrollcombo[id="info_insideViewCombo"]':{"select":this.submitForResult},'main button[id="back"]':{"click":this.goBack},"testtreeview":{"itemclick":this.layerClick,},'insideviewdashboardtabpanel tabpanel[name="insideViewtabpanelName"]':{"tabchange":this.insideviewDashboardTabChange},'systempanel scrollcombo[id="subsystemSelect"]':{"select":this.submitForResult},'networkpanel scrollcombo[id="subsystemNSelect"]':{"select":this.submitForResult},'zoomgraphpanel combo[itemId= "mode"]':{select:this.displayZoomGraph},'zoomgraphpanel combo[itemId= "timeline"]':{select:this.timelineChangeHandler},'zoomgraphpanel combo[itemId= "priority"]':{select:this.displayZoomGraph},'zoomgraphpanel button[itemId="timelineAny"]':{render:function(a){var b=this;
a.getEl().on("click",function(c){b.displayZoomGraph();});}},"zoomgraphpanel tool[itemId=minimizePanelDiv]":{click:this.bigGraphOnClick},'zoomgraphpanel button[id="ddIcon"]':{"click":this.displayBigDDData},'configurethresholds slider[id="relMinCritical"]':{"drag":this.minRelCriticalSlider,"change":this.minRelCriticalSlider,},'configurethresholds slider[id="relMinMajor"]':{"drag":this.minRelMajorSlider,"change":this.minRelMajorSlider,},'configurethresholds slider[id="relMinMinor"]':{"drag":this.minRelMinorSlider,"change":this.minRelMinorSlider,},'configurethresholds slider[id="relMaxCritical"]':{"drag":this.maxRelCriticalSlider,"change":this.maxRelCriticalSlider,},'configurethresholds slider[id="relMaxMajor"]':{"drag":this.maxRelMajorSlider,"change":this.maxRelMajorSlider,},'configurethresholds slider[id="relMaxMinor"]':{"drag":this.maxRelMinorSlider,"change":this.maxRelMinorSlider,},'configurethresholds checkbox[id="minStaticCheck"]':{"change":this.minStaticCheckChange,},'configurethresholds checkbox[id="minAutoCheck"]':{"change":this.minAutoCheckChange,},'configurethresholds checkbox[id="maxStaticCheck"]':{"change":this.maxStaticCheckChange,},'configurethresholds checkbox[id="maxAutoCheck"]':{"change":this.maxAutoCheckChange,},'configurethresholds combo[id="alarmPolicyCombo"]':{"select":this.alarmPolicyChange,},'configurethresholds button[id="updateBtn"]':{"click":this.applyThresholdsData,}});
},showAlarmDetails:function(b){var a=this;Ext.Ajax.request({url:b,success:function(c){var d=Ext.decode(c.responseText);a.getAlarmDetails().setData(d);a.getAlarmDetailsTableContainer().removeAll();a.getAlarmDetailsTableContainerAcknowledge().removeAll();a.getAlarmDetailsTableContainer().add(a.createTableView(alarmDetailsT1,alarmDetailsT2,d.eventDetails));
Ext.getCmp("acknowledge").hide();if(!Ext.isEmpty(d.ackDetails)){Ext.getCmp("acknowledge").show();a.getAlarmDetailsTableContainerAcknowledge().add(a.createTableView(alarmDetailsT3,alarmDetailsT1,alarmDetailsT4,d.ackDetails));}a.getAlarmDetails().show();},failure:function(){}});},layerClick:function(f,g,y,s,t,u){if(!Ext.isEmpty(firstRecordSel)){Ext.fly(firstRecordSel).removeCls("x-grid-row-selected");
}firstRecordSel=null;firstRecordSelraw=null;if(!Ext.isEmpty(selectedRecord)){Ext.fly(selectedRecord).removeCls("x-grid-row-selected");}var n=g.parentNode;if(n){}var x=t.target.id;if(!Ext.isEmpty(x)&&x=="virtualLive"){return false;}var o=g.raw.text;if(!Ext.isEmpty(o)&&o.indexOf("iconLayerMoreInfo")!=-1){var c=g.raw.fireEvent;
if(!Ext.isEmpty(c)){MoreInfoLayerTreePopUp(c,"");return;}else{return false;}}if(!Ext.isEmpty(o)&&o.indexOf("<div")>-1&&o.indexOf("_trigger")>-1){o=o.substring(0,o.indexOf("<div"));this.openLayer=o;}if(g.isExpanded()){g.collapse();for(i=0;i<this.recordClicked.length;i++){var w=g.raw.text.substring(0,g.raw.text.indexOf("<"));
var v=this.recordClicked[i].raw.text.substring(0,this.recordClicked[i].raw.text.indexOf("<"));if(w==v){this.recordClicked.splice(i,1);for(j=0;j<this.testSearchedLayers.length;j++){if(!Ext.isEmpty(this.testSearchedLayers[j][w])){this.testSearchedLayers.splice(j,1);break;}}break;}}}else{if(!Ext.isEmpty(g.raw.measuresLink)&&g.childNodes.length==0){var o="";
layerNode=g.parentNode;o=layerNode.raw.text;o=o.substring(0,o.indexOf("<"));if(Ext.isEmpty(o)&&!Ext.isEmpty(layerNode.data.children)){layerNode=g.parentNode.parentNode;if(!Ext.isEmpty(layerNode)){o=layerNode.raw.text;}if(!Ext.isEmpty(o)&&(o.indexOf("<")>-1)){o=o.substring(0,o.indexOf("<"));}}this.currentLayer=o;
this.selectedTest=g.raw.text;this.testQS=g.raw.measuresLink;if(isDouble){this.measuresUrl="/final/monitor/egDashBoardDispCompMeasure.jsp?"+g.raw.measuresLink;}else{this.measuresUrl="/final/monitor/egDashBoardDispCompMeasure.jsp?"+g.raw.measuresLink;}if(!Ext.isEmpty(this.allCheck)&&!Ext.isEmpty(this.allCheck[o])){this.allNodeCheck[o+"_Test_Exp"]=true;
}var b=Ext.getCmp("tabPanelId").getActiveTab();var r=b.id;Ext.getCmp(r+"_measures").changeUrl(this.measuresUrl);Ext.getCmp(r+"_measures").refreshData();}else{if(!Ext.isEmpty(g.raw.moreDescriptorsURL)&&g.childNodes.length==0){var a=g.raw.moreDescriptorsURL;var d=a.substring(a.indexOf("?")+1,a.length);
window.openWindow("/final/monitor/EgMoreInfosApp.jsp?"+d+"&page=More Infos","MoreDescriptors","width=1012,height=603,left=0,top=105,scrollbars=1,scrollbars=yes,resizable=yes,location=no");}else{if(!Ext.isEmpty(g.raw.moreDescriptorsTreeURL)&&g.childNodes.length==0){var a=g.raw.moreDescriptorsTreeURL;var d=a.substring(a.indexOf("?")+1,a.length);
MoreInfoLayerTreePopUp("/final/servlet/com.eg.EgDashboardController?"+d+"&page=More Infos","More Infos");}else{if(!g.isExpanded()){g.expand();var o="";o=g.raw.text;if(o!=null&&o!=undefined&&o.indexOf("<a href")>-1){o=(o).substr((o).indexOf(";>")+2);}o=o.substring(0,o.indexOf("<"));if(!Ext.isEmpty(o)&&Ext.isEmpty(g.data.children)){this.recordClicked=new Array();
this.allNodeCheck=new Object();this.allCheck=new Object();this.recordClicked.push(g);this.setTestsForLayer(g.internalId,g.raw.onclickurl+"&currLayerState="+currLayerState,false);}}}}}}},setTestsForLayer:function(c,b,o){var g=this;var a=Ext.getCmp("tabPanelId").getActiveTab();var e=a.id;var d=Ext.getCmp(e+"_testtreeview").getView().getTreeStore().getNodeById(c);
var r=d.raw.text.substring(0,d.raw.text.indexOf("<"));var n="";for(i=0;i<this.testSearchedLayers.length;i++){if(!Ext.isEmpty(this.testSearchedLayers[i][r])){n=this.testSearchedLayers[i][r];}}if(b!=null&&b.indexOf("&searchString=")>-1){b=b.replace(/(searchString=)[^\&]+/,"$1"+n);}else{b+="&searchString="+n;
}if(!Ext.isEmpty(requestParams.isMoreInfosTreeView)&&(requestParams.isMoreInfosTreeView||requestParams.isMoreInfosTreeView=="true")){if(b!=null&&b!=undefined&&b.indexOf("MoreInfosTreeView")<0){b=b+"&MoreInfosTreeView=true&showAll=yes&searchByDescriptor=true";}}var a=Ext.getCmp("tabPanelId").getActiveTab();
var e=a.id;var f=Ext.getCmp(e+"_testtreeview");if(!Ext.isEmpty(f.getEl())){f.getEl().mask("Loading...","maskCenter");}if(isDouble){b=encodeURI(b);}Ext.Ajax.request({url:"/final/monitor/egDashBoardDispCompTests.jsp?"+b,scope:this,disableCaching:false,success:function(t){var G=null;G=t.responseText;var w=null;
if(!Ext.isEmpty(G)&&G!=null){w=Ext.decode(G);}G=null;delete G;Ext.destroy(G);var x="GOOD_border";if(!Ext.isEmpty(w.layerState)){x=w.layerState+"_border";}if(w.tests.length>0){var F=[];if(!Ext.isEmpty(w.tests)){for(i=0;i<w.tests.length;i++){var E="";if((w.tests.length-1)==i){E="last_leaf";}w.tests[i].cls="secondlevel "+x+" "+E;
var B="";if(!Ext.isEmpty(w.tests[i].maintenaceTimePeriodStr)){B=w.tests[i].maintenaceTimePeriodStr;}else{if(!Ext.isEmpty(w.tests[i].descriptorMaintenaceTimePeriodStr)){B=w.tests[i].descriptorMaintenaceTimePeriodStr;}}if(!Ext.isEmpty(B)){var s=w.tests[i].text;var v="";if(s.indexOf("<")>-1){s=w.tests[i].text.substring(0,w.tests[i].text.indexOf("<"));
v=w.tests[i].text.substring(w.tests[i].text.indexOf("<"));}s+='<img class="iconMaintenance" style="margin:2px 5px 0" data-qtip="'+B+'" data-qclass="yellowTip"  src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==">';s+=v;w.tests[i].text=s;}if(!Ext.isEmpty(w.tests[i].children)){for(j=0;
j<w.tests[i].children.length;j++){w.tests[i].children[j].cls="thirdlevel "+x+" "+E;if(!Ext.isEmpty(w.tests[i].children[j])){for(k=0;k<w.tests[i].children.length;k++){w.tests[i].children[j].cls="fourthlevel "+x;if((w.tests[i].children.length-1==j&&Ext.isEmpty(w.tests[i].children[j].children))||w.tests[i].children.length-1==j){w.tests[i].children[j].cls="fourthlevel "+x+" "+E;
}if(!Ext.isEmpty(w.tests[i].children[j].children)){for(l=0;l<w.tests[i].children[j].children.length;l++){w.tests[i].children[j].children[l].cls="fifthlevel "+x;if((w.tests[i].children.length-1==j&&w.tests[i].children[j].children.length-1==l)||(w.tests[i].children.length-1==1&&Ext.isEmpty(w.tests[i].children[j].children))){w.tests[i].children[j].children[l].cls="fifthlevel "+x+" "+E;
}if(!Ext.isEmpty(w.tests[i].children[j].children[l])&&w.tests[i].children[j].children[l].children!=null&&w.tests[i].children[j].children[l].children!=undefined){var D=w.tests[i].children[j].children[l].children.length;for(m=0;m<w.tests[i].children[j].children[l].children.length;m++){w.tests[i].children[j].children[l].children[m].cls="sixthlevel "+x;
if(w.tests[i].children.length-1==m||(w.tests[i].children.length-1==1&&Ext.isEmpty(w.tests[i].children[j].children))){if(m+1==D){w.tests[i].children[j].children[l].children[m].cls="sixthlevel "+x+" "+E;}}}}}}}}}}}}F.push(w.tests);d.removeAll();d.insertChild(0,F);d.expand();d.collapseChildren();g.selectTestInfo(d);
}else{d.removeAll();d.insertChild(0,{cls:"errorBox "+x,text:'<div style="text-align:center;height:60px;font-weight:normal"><img src="/final/images/clear.png" class="list-empty"/><div class="iconInformation" style="margin:10px auto 0px auto"></div>'+(w.errormsg.Msgfortest?w.errormsg.Msgfortest:w.errormsg.MsgforSearchTest)+(w.errormsg.SearchString?", "+w.errormsg.SearchString:"")+"</div>"});
d.expand();d.expandChildren();}if(o){d.eachChild(g.reloadMeasures,g);}if(!Ext.isEmpty(w.liveGraph)){var C=Ext.create("Ext.form.Label",{renderTo:"virtualLiveImg",html:w.liveGraphDiv});}if(!Ext.isEmpty(w.SearchRequired)){var z=(d.raw.text).substr(0,(d.raw.text).indexOf("<div"));var A="searchTests_"+z;if(A.indexOf("<a href")>-1){A="searchTests_"+(A).substr((A).indexOf(";>")+2);
}if(A!=null&&A!=undefined&&A.indexOf("</a>")>-1){A=(A).substr(0,(A).indexOf("</a>"));}A=A.replace(/ /g,"_");var y=false;if(!Ext.isEmpty(requestParams.isMoreInfosTreeView)&&(requestParams.isMoreInfosTreeView||requestParams.isMoreInfosTreeView=="true")){y=true;}var H=Ext.create("Ext.form.field.Trigger",{width:115,style:"position:absolute; right:65px;top:0px;",emptyText:"Search",layer:z,id:y?"moreinfo_search_trigger":A+"Trigger",cls:"whitedropdown_search x-hidden",value:(w.SearchText?w.SearchText:""),onTriggerClick:function(M){var K=new Object();
if(!Ext.isEmpty(this.getValue())){K[this.layer]=this.getValue();g.testSearchedLayers.push(K);}else{for(i=0;i<g.testSearchedLayers.length;i++){if(!Ext.isEmpty(g.testSearchedLayers[i][this.layer])){g.testSearchedLayers.splice(i,1);}}}if(b.indexOf("&searchString=")>-1){var L=b.substr(b.indexOf("&searchString=")+14);
if(L.indexOf("&")>-1){L=L.substr(L.indexOf("&"));}else{L="";}b=b.substr(0,b.indexOf("&searchString="))+L;}if(!Ext.isEmpty(requestParams.isMoreInfosTreeView)&&(requestParams.isMoreInfosTreeView||requestParams.isMoreInfosTreeView=="true")){if(b!=null&&b!=undefined&&b.indexOf("searchByDescriptor")<0){b=b+"&searchByDescriptor=true";
}}g.setTestsForLayer(c,b+"&searchString="+this.getValue());},listeners:{scope:this,blur:function(L,K){Ext.fly(A+"iconMagnify").show();if(y){Ext.fly("moreinfo_search_trigger").addCls("x-hidden");}else{Ext.fly(A+"Trigger").addCls("x-hidden");}},afterrender:function(L){L.getEl().swallowEvent(["mouseover","mouseout","click","dblclick"],"true");
if(Ext.getCmp(A+"Trigger")!=null&&Ext.getCmp(A+"Trigger")!=undefined&&Ext.getCmp(A+"Trigger")!="null"&&Ext.getCmp(A+"Trigger")!="undefined"){var K="";if(y){K=Ext.getCmp("moreinfo_search_trigger").getValue();}else{K=Ext.getCmp(A+"Trigger").getValue();}if(!Ext.isEmpty(K)&&K!=null&&K!=undefined&&K!="null"){if(y){Ext.fly("moreinfo_search_trigger").removeCls("x-hidden");
}else{Ext.fly(A+"Trigger").removeCls("x-hidden");}}else{if(y){Ext.fly("moreinfo_search_trigger").addCls("x-hidden");}else{Ext.fly(A+"Trigger").addCls("x-hidden");}}}},specialKey:function(L,K){if(K.getKey()===K.ENTER){L.onTriggerClick(K);L.triggerBlur();L.blur();}}}});var u=Ext.create("Ext.Button",{iconCls:"iconTopologySearch",tooltip:"Search",margin:"0 0 0 95",style:{"background":"none","background-image":"none","border":"0px #000 solid!important"},onClick:function(){if(y){Ext.fly("moreinfo_search_trigger").removeCls("x-hidden");
}else{Ext.fly(A+"Trigger").removeCls("x-hidden");}this.getEl().hide();},listeners:{afterrender:function(K){K.getEl().swallowEvent(["mouseover","mouseout","click","Dblclick"],"true");}},id:A+"iconMagnify"});var J=d.raw.text.substring(0,d.raw.text.indexOf("<"));var I=Ext.create("Ext.form.field.Checkbox",{renderTo:A+"_checkbox",cls:"layer_checkbt",style:"",checked:(!Ext.isEmpty(g.allCheck)&&!Ext.isEmpty(g.allCheck[J]))?g.allCheck[J]:w.checkBox,labelWidth:0,listeners:{afterrender:function(L){var K=this;
L.getEl().swallowEvent(["mouseover","mouseout","click","dblclick"],"true");K.fireEvent("change",K,K.checked);},change:function(M,N,K,L){if(N){d.expandChildren();g.allNodeCheck=new Object();}else{if(!Ext.isEmpty(g.allNodeCheck)&&!Ext.isEmpty(g.allNodeCheck[J+"_Test_Exp"])&&g.allNodeCheck[J+"_Test_Exp"]==true){g.selectTestInfoCol(d);
}else{d.collapseChildren();if(!Ext.isEmpty(g.allNodeCheck)&&!Ext.isEmpty(g.allNodeCheck[J+"_Test_Exp"])){g.allNodeCheck[J+"_Test_Exp"]=false;}}}g.allCheck[J]=N;}}});if(A+"_trigger"){Ext.create("Ext.container.Container",{id:A+"_holder",renderTo:A+"_trigger",autoDestroy:true,items:[u,H]});}Ext.getCmp(A+"_holder").doComponentLayout();
delete H,u;}if(!Ext.isEmpty(f.getEl())){}w=null;delete w;Ext.destroy(w);},failure:function(){if(!Ext.isEmpty(f.getEl())){}}});},layersTreeBeforeItemClick:function(b,d,t,g,n,o){var r=this;var a=Ext.getCmp("tabPanelId").getActiveTab();var f=a.id;Ext.getCmp(f+"_testtreeview").getView().getRootNode().eachChild(r.removePreSelected,r);
var s=b.getNode(d);if(!Ext.isEmpty(s)){Ext.get(s).addCls("layers-tree-bold-node");}var c=d.parentNode;while(!Ext.isEmpty(c)){s=b.getNode(c);if(!Ext.isEmpty(s)){Ext.get(s).addCls("layers-tree-bold-node");}c=c.parentNode;}Ext.getCmp(f+"_testtreeview").getView().doLayout();},testConfigureEvent:function(){var c="/final/admin/EgSpecificTestConfiguration.jsp?reqfrom=LayerModel&showUnconfigCompType=false&testType=PerformanceTest&com.eg.CSRF_NONCE="+csrfToken;
var b="reqfrom=LayerModel&showUnconfigCompType=false&testType=PerformanceTest&com.eg.CSRF_NONCE="+csrfToken;if(!Ext.isEmpty(Ext.getCmp("testname1").monSource)){c+="&monSource="+Ext.getCmp("testname1").monSource;b+="&monSource="+Ext.getCmp("testname1").monSource;}if(!Ext.isEmpty(Ext.getCmp("testname1").State)){c+="&State="+Ext.getCmp("testname1").State;
b+="&State="+Ext.getCmp("testname1").State;}if(!Ext.isEmpty(Ext.getCmp("testname1").compName)){c+="&compName="+Ext.getCmp("testname1").compName;b+="&compName="+Ext.getCmp("testname1").compName;}if(!Ext.isEmpty(Ext.getCmp("testname1").layerName)){c+="&layerName="+Ext.getCmp("testname1").layerName;b+="&layerName="+Ext.getCmp("testname1").layerName;
}if(!Ext.isEmpty(Ext.getCmp("testname1").testName)){c+="&testName="+Ext.getCmp("testname1").testName;c+="&layerTestName="+Ext.getCmp("testname1").testName;b+="&testName="+Ext.getCmp("testname1").testName;b+="&layerTestName="+Ext.getCmp("testname1").testName;}if(!Ext.isEmpty(Ext.getCmp("testname1").testStateName)){c+="&clickedFrom="+Ext.getCmp("testname1").testStateName;
b+="&clickedFrom="+Ext.getCmp("testname1").testStateName;}if(!Ext.isEmpty(Ext.getCmp("testname1").compType)){c+="&componentType="+Ext.getCmp("testname1").compType;b+="&componentType="+Ext.getCmp("testname1").compType;}if(!Ext.isEmpty(Ext.getCmp("testname1").compName)){c+="&componentName="+Ext.getCmp("testname1").compName;
b+="&componentName="+Ext.getCmp("testname1").compName;}if(!Ext.isEmpty(Ext.getCmp("testname1").monDescName)){c+="&monDescName="+encodeURIComponent(Ext.getCmp("testname1").monDescName);b+="&monDescName="+encodeURIComponent(parent.filterEncode(Ext.getCmp("testname1").monDescName));}if(!Ext.isEmpty(Ext.getCmp("testname1").monTestState)){c+="&monTestState="+Ext.getCmp("testname1").monTestState;
b+="&monTestState="+Ext.getCmp("testname1").monTestState;}var a=document.getElementsByTagName("body")[0];mask=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});mask.show();Ext.Ajax.request({url:"/final/admin/SpecificTestConfiguration/data/MonitorURL.jsp?referrerModule=monitor&"+b,method:"POST",timeout:280000,params:{hitFrom:"monitor"},scope:this,async:false,success:function(d,e){mask.hide();
},failure:function(){}});do{c=c.replace("=","|eq|");}while(c.indexOf("=")>-1);do{c=c.replace("?","|qs|");}while(c.indexOf("?")>-1);window.parent.goToTestConfiguration(indexTabURL.adminTabURL+"&monLayerUrl="+encodeURIComponent(parent.filterEncode(c)));},goBack:function(){var c=requestParams.fromPage;var a=requestParams.toBckComp;
if(!Ext.isEmpty(fromVal)&&(fromVal=="Vmsearch"||fromVal=="MyDashboard")){window.history.go(-1);}else{if(!Ext.isEmpty(isFromVmDashboard)&&isFromVmDashboard){window.location.href="/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard&onlyVM="+isOnlyVmCase;}else{if(comp!=null&&comp!=undefined&&comptype!=null&&comptype!=undefined&&layer_name!=null&&layer_name!=undefined&&monitor_Skin!=null&&monitor_Skin!=undefined&&userSearchParams.indexOf("searchuser")==-1){if(isVM&&checkVal!=null&&checkVal!=undefined&&checkVal=="uservms"&&fromVal!=null&&fromVal!=undefined&&fromVal=="MainDashboard"&&stateNameVal!=null&&stateNameVal!=undefined&&stateNameVal=="all"){if(fromHomePage!=null&&fromHomePage=="true"){window.location.href="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";
}else{window.location.href="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard&action=uservms";}}else{if(!Ext.isEmpty(orgUserType)&&orgUserType!=undefined&&orgUserType=="VDIESX"){if(detail!=undefined&&detail!=null&&detail!=""&&detail!="null"){window.location.href="/final/monitor/endUserDashboard.jsp?access=allusers&userType="+orgUserType+"&fromMenu=true&enableBackButton=true&filterBy="+encodeURI(filterBy)+"&isfromuedoverview=&overviewsearchstr=&isFromVCDS=true&filterFlag=true&searchFilter=&nextSearch=&priorityFilter="+priorityFilter+"&dscomp="+encodeURI(dscomp)+"&dscomptype="+dscomptype+"&dsInfo="+encodeURI(dsInfo)+"&dsmsmt_host="+encodeURI(dsmsmt_host)+"&isFromVCDS=true&detail="+encodeURI(detail)+"&compCombo="+encodeURI(compCombo)+"&subFilter="+encodeURI(subFilter);
}else{window.location.href="/final/monitor/endUserDashboard.jsp?access=allusers&userType="+orgUserType+"&fromMenu=true&enableBackButton=true&filterBy=&isfromuedoverview=&overviewsearchstr=&filterFlag=&searchFilter=&nextSearch=&priorityFilter=All&dscomp="+encodeURI(dscomp)+"&dscomptype="+dscomptype+"&dsInfo="+encodeURI(dsInfo)+"&dsmsmt_host="+encodeURI(dsmsmt_host)+"&isFromVCDS=true";
}}else{if(!Ext.isEmpty(orgUserType)&&orgUserType!=undefined&&orgUserType=="VDI"&&!Ext.isEmpty(fromUEDDrilldown)&&fromUEDDrilldown!=undefined&&fromUEDDrilldown=="true"){window.history.go(-1);}else{if(sourcePage!=null&&sourcePage=="UEDVMs"){var b="/final/monitor/endUserDashboard.jsp?access=allusers&userType=ESX&fromMenu=true&priorityFilter="+encodeURIComponent(priorityFilter)+"&filterBy="+encodeURIComponent(filterBy)+"&compCombo="+encodeURIComponent(compCombo)+"&detail="+encodeURIComponent(detail)+"&filterFlag="+encodeURIComponent(filterFlag);
if(!Ext.isEmpty(searchString)&&searchString!=undefined&&searchString!=null){b=b+"&searchString="+searchString;}window.location.href=b;}else{if(fromHomePage!=null&&fromHomePage=="true"){window.location.href="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";}else{if(c!=null&&c=="vm"){if(a!=null&&a!=undefined&&a!=" "){document.location="/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard&toBckComp="+a;
}else{document.location="/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard";}}else{window.location.href="/final/monitor/EgVmwareDesktop.jsp?comp="+comp+"&comptype="+comptype+"&Layer="+layer_name+"&monitor_Skin="+monitor_Skin;}}}}}}}else{if(!Ext.isEmpty(userSearchParams)&&userSearchParams!=null&&userSearchParams!=undefined&&userSearchParams.indexOf("searchuser")!=-1){document.location="/final/monitor/eGSearch.jsp?"+userSearchParams;
}else{if(!Ext.isEmpty(orgUserType)&&orgUserType!=undefined&&orgUserType=="VDIESX"){window.location.href="/final/monitor/endUserDashboard.jsp?access=allusers&userType="+orgUserType+"&fromMenu=true&filterBy=&enableBackButton=true&isfromuedoverview=false&overviewsearchstr=&filterFlag=&searchFilter=&nextSearch=&priorityFilter=&dscomp="+encodeURI(dscomp)+"&dscomptype="+dscomptype+"&dsInfo="+encodeURI(dsInfo)+"&dsmsmt_host="+encodeURI(dsmsmt_host)+"&isFromVCDS=true";
}else{if(sourcePage!=null&&sourcePage=="UEDVMs"){var b="/final/monitor/endUserDashboard.jsp?access=allusers&userType=ESX&fromMenu=true&priorityFilter="+encodeURIComponent(priorityFilter)+"&filterBy="+encodeURIComponent(filterBy)+"&compCombo="+encodeURIComponent(compCombo)+"&detail="+encodeURIComponent(detail)+"&filterFlag="+encodeURIComponent(filterFlag);
if(!Ext.isEmpty(searchString)&&searchString!=undefined&&searchString!=null){b=b+"&searchString="+searchString;}window.location.href=b;}else{window.history.go(-1);}}}}}}},displayCurrentAlertPopup:function(c,a){var b=this;this.setInfoData(a);Ext.Function.defer(function(){var e="";var d="";if(!Ext.isEmpty(c.jsonData.Distribution_HIGH_Desc)){d=b.createTooltipDisplay(c.jsonData.Distribution_HIGH_Desc,"subsystempanel");
e="highStateComponent";b.createHighStateTooltip(e,d);}if(!Ext.isEmpty(c.jsonData.Distribution_INTERMEDIATE_Desc)){e="";d="";d=b.createTooltipDisplay(c.jsonData.Distribution_INTERMEDIATE_Desc,"subsystempanel");e="intermediateStateComponent";b.createInterStateTooltip(e,d);}if(!Ext.isEmpty(c.jsonData.Distribution_LOW_Desc)){e="";
d="";d=b.createTooltipDisplay(c.jsonData.Distribution_LOW_Desc,"subsystempanel");e="lowStateComponent";b.createLowStateTooltip(e,d);}},100);},createTooltipDisplay:function(c,a){var b=Ext.create("Ext.panel.Panel",{border:true,html:c});return b;},createHighStateTooltip:function(c,b){var a=Ext.create("Ext.tip.ToolTip",{target:c,maxWidth:600,showDelay:0,width:600,layout:{type:"fit"},items:b,listeners:{"afterrender":function(){this.mon(this.el,"mouseover",function(){this.clearTimer("hide");
this.clearTimer("dismiss");},this);this.mon(this.el,"mouseout",function(){this.clearTimer("show");if(this.autoHide!==false){this.delayHide();}},this);}}});return a;},createInterStateTooltip:function(c,b){var a=Ext.create("Ext.tip.ToolTip",{target:c,maxWidth:600,showDelay:0,width:600,layout:{type:"fit"},items:b,listeners:{"afterrender":function(){this.mon(this.el,"mouseover",function(){this.clearTimer("hide");
this.clearTimer("dismiss");},this);this.mon(this.el,"mouseout",function(){this.clearTimer("show");if(this.autoHide!==false){this.delayHide();}},this);}}});return a;},createLowStateTooltip:function(c,b){var a=Ext.create("Ext.tip.ToolTip",{target:c,maxWidth:600,showDelay:0,width:600,layout:{type:"fit"},items:b,listeners:{"afterrender":function(){this.mon(this.el,"mouseover",function(){this.clearTimer("hide");
this.clearTimer("dismiss");},this);this.mon(this.el,"mouseout",function(){this.clearTimer("show");if(this.autoHide!==false){this.delayHide();}},this);}}});return a;},insideviewDashboardTabChange:function(b,c,d){var a=b.getActiveTab().getId();this.setTabData(a);},setTabData:function(a){switch(a.toLowerCase()){case"measures":showMeasures();
break;case"system":showSystem();break;case"network":showNetwork();break;}this.submitForResult();},setInfoData:function(a){setSelectedInfo(a);},setStateIconClsToAllTab:function(g){if(!Ext.isEmpty(g)&&g&&!Ext.isEmpty(Ext.getCmp("tabPanelId"))){var e=Ext.getCmp("tabPanelId").items;var n=Ext.getCmp("info_insideViewCombo");
var f=selectedInfo;if(!Ext.isEmpty(n)&&n.getValue().trim().length>0){f=n.getValue();}if(e!=null&&e.length>0&&runningTest!=null&&runningTest.length>0&&e.length==runningTest.length){for(var b=0;b<runningTest.length;b++){var o=e.items[b];var d=o.id;var c="/final/monitor/egDashBoardDispCompTests.jsp?site=NULL&host="+encodeURI(comp)+"&qctr=1&layer="+encodeURI(layer_name)+"&comptype="+encodeURI(comptype)+"&fromalarm="+fromVal+"&layerpriority="+stateNameVal+"&test="+testName+"&faketype=&dispDate=null&currLayerState=&searchString=&insideViewTestConfig="+encodeURI(runningTest[b].name)+"&info="+encodeURI(f)+"&disableDesc=true";
Ext.Ajax.request({url:c,method:"GET",async:false,timeout:280000,success:function(a){if(a.status==200&&!Ext.isEmpty(a.responseText)){var s=a.responseText;var r=Ext.decode(s);if(r.tests!=null&&r.tests!=""&&r.tests!=undefined&&r.tests!="undefined"&&r.tests.length>0){var t=r.tests[0].iconCls;if(t!=null&&t.indexOf("_")>0){t=t.substring(t.indexOf("_")+1);
}o.setIconCls("state_wBorder_"+t);}}}});}}}},showNewPanel:function(c,f,t){this.setStateIconClsToAllTab(f);try{if(!Ext.isEmpty(f)&&f){var a=Ext.getCmp("tabPanelId").getActiveTab();var n=a.id;var o="/final/monitor/egDashBoardDispCompTests.jsp?";var r=Ext.getCmp(n+"_testtreeview").getSelectionModel().selected.items.length;
try{if(r>0){var b=Ext.getCmp(n+"_testtreeview").getSelectionModel().selected.items[0].raw.measuresLink;if(b!=undefined&&b!=null&&b.trim().length>0){o+=b;var e=infoName;if(c!=undefined&&c!=null&&c.trim().length>-1){e=c;}o+="&insideViewTestConfig="+encodeURI(a.name)+"&info="+encodeURI(e);}}else{o=Ext.getCmp(n).layerurl;
}}catch(s){}Ext.Ajax.request({url:o,method:"GET",timeout:280000,success:function(x){if(x.status==200&&!Ext.isEmpty(x.responseText)){var u=x.responseText;var A=0;var D=Ext.decode(u);Ext.getCmp(n+"_testtreeview").suspendEvents();Ext.getCmp(n+"_testtreeview").setRootNode({text:"root",children:D.tests,});
var z=Ext.getCmp(n+"_testtreeview").getRootNode().childNodes;var G="";if(firstRecordSelraw!=null&&firstRecordSelraw!=undefined){G=firstRecordSelraw.text;}if(z!=undefined&&z!=null){for(var y=0;y<z.length;y++){if(!Ext.isEmpty(z[y].data.expandable)&&z[y].data.expandable){z[y].expand();var w=z[y].childNodes;
for(var v=0;v<w.length;v++){if(!Ext.isEmpty(w[v].data.expandable)&&w[v].data.expandable){w[v].expand();var F=w[v].childNodes;for(var B=0;B<F.length;B++){if(!Ext.isEmpty(F[B].data.expandable)&&F[B].data.expandable){F[B].expand();var H=F[B].childNodes;for(var C=0;C<H.length;C++){if(!Ext.isEmpty(H[C].data.expandable)&&H[C].data.expandable){H.expand();
}if(!Ext.isEmpty(H[C].raw.selected)&&(H[C].raw.selected||(H[C].raw.text==G))){var E=Ext.getCmp(n+"_testtreeview").getView().getNode(H[C]);Ext.fly(E).addCls("x-grid-row-selected");Ext.getCmp(n+"_testtreeview").doLayout();selectedRecord=E;A++;}}}if(!Ext.isEmpty(F[B].raw.selected)&&(F[B].raw.selected||(F[B].raw.text==G))&&A==0){var E=Ext.getCmp(n+"_testtreeview").getView().getNode(F[B]);
Ext.fly(E).addCls("x-grid-row-selected");Ext.getCmp(n+"_testtreeview").doLayout();selectedRecord=E;A++;}}}if(!Ext.isEmpty(w[v].raw.selected)&&(w[v].raw.selected||(w[v].raw.text==G))&&A==0){var E=Ext.getCmp(n+"_testtreeview").getView().getNode(w[v]);Ext.fly(E).addCls("x-grid-row-selected");Ext.getCmp(n+"_testtreeview").doLayout();
selectedRecord=E;A++;}}}if(!Ext.isEmpty(z[y].raw.selected)&&(z[y].raw.selected||(z[y].raw.text==G))&&A==0){var E=Ext.getCmp(n+"_testtreeview").getView().getNode(z[y]);Ext.fly(E).addCls("x-grid-row-selected");Ext.getCmp(n+"_testtreeview").doLayout();selectedRecord=E;A++;}}}Ext.getCmp(n+"_testtreeview").resumeEvents();
Ext.getCmp(n+"_measures").refreshData();}t.hide();}});}else{var d=this.getMeasuresdata();d.show();d.removeAll();d.add({xtype:"newlayout",tabviewlist:requestParams.tab_view_list,infoObj:c,flex:1,});t.hide();}}catch(g){}},showResult:function(Q){var af=this.getMeasuresdata();af.show();af.removeAll();var J=Q["OUTPUT_VALUES"];
var t="";if(!Ext.isEmpty(J)){for(var X=0;X<J.length;X++){var R=J[X]["HEADERS"];if(!Ext.isEmpty(R["Logon_Details_Support"])){var M=R["Logon_Details_Support"];if(M!=null&&M!=undefined&&M!="null"&&M!="undefined"){var K=R["Logon_Details_Support"].urlParam1;var ae=R["Logon_Details_Support"].logonTooltip;var ag=R["Logon_Details_Support"].titleforLogon;
t='<span style="float:right;margin-top:3px">&nbsp;<img class="iconLogonDetails mouse" data-qtip="'+ae+'" data-qclass="yellowTip" onclick="LogonDetailsPopUp(\''+K+"','"+ag+'\')" src="/final/images/clear.png" /></span>';}}}}var g=Q["HEADER"];if(!Ext.isEmpty(g)){var U="<span>"+g[0]["TITLE"]+"</span>";U+=t;
layerBtn=Ext.create("Ext.Button",{cls:"button20",width:100,height:30,text:g[0]["TEXT"],listeners:{click:function(){window.location.href=g[0]["LINK"];}}});af.add({xtype:"container",margin:"10 10 0 10",layout:"hbox",padding:0,items:[{xtype:"label",cls:"font_bold13",html:U},{xtype:"tbfill"},{xtype:"button",cls:"button20",text:g[0]["TEXT"],listeners:{click:function(){window.location.href=g[0]["LINK"];
}}}]});}var z=Q["OUTPUT_VALUES"];if(!Ext.isEmpty(z)){for(var X=0;X<z.length;X++){var I="";var R=z[X]["HEADERS"];var ah=R["STATE"];var n=R["DISPLAY_DATE"];var U='<div class="state_'+ah+'" style="float:left;border:0px solid green;margin-right:3px;margin-top:6px"></div>';if(!Ext.isEmpty(R["LINKS"])){var H=R["LINKS"];
var E=H["LINK"];var D=H["TEXT"];var c=H["TITLE"];var b=H["METHOD_NAME"];var O=E.substring(0,E.indexOf("|amp|"));var N=E.substring(E.indexOf("|amp|")+5);if(Ext.isEmpty(b)){U+='<div style="margin:6px 0 0 0;border:0px solid red;float:left;font-size:12px;valign:middle;">'+D+"</div>";}else{U+='<div style="margin:6px 0 0 0;border:0px solid red;float:left;font-size:12px;valign:middle;"><a href="javascript:void(0);" onclick="javascript:'+b+"('"+O+"','"+O+'\');" title="'+c+'">'+D+" </a></div>";
}}else{var y=R["TITLE"];U+=' <div style="border:0px solid red;float:left;font-size:12px;margin-top:5px">'+y+"</div>";}if(!Ext.isEmpty(R["MAINTENANCE"])){var d=R["MAINTENANCE"];var s=d["ICON"];var b=d["METHOD_NAME"];var B=d["LINK"];var O=B.substring(0,B.indexOf("|"));var N=B.substring(B.indexOf("|")+1);
I=O;U+='<div class="iconQuickLinksConfig" id="maintenanceIcon'+X+'" style="float:left;cursor:pointer;"></div>';}var x=new Array();var C=R["HELP_LINK"];if(!Ext.isEmpty(R["INFO_LINK"])){var P=R["INFO_LINK"];x.push({xtype:"container",html:'<span style="font-weight:normal!important;font-size:11px!important">'+n+"</span>",margin:"0 0 0 0"},{xtype:"container",html:'<div class="iconRumInfo" id="iconInfo'+X+'" style="cursor:pointer;margin:-2px 0 0 3px" onclick="javascript:openInfoLink(\''+P+"');\"></div>",id:"cont"+X,dataArray:P},{xtype:"container",html:'<div class="iconHelp2" style="cursor:pointer;" onclick="javascript:openHelpWin(\''+C+"');\"></div>"});
}else{x.push({xtype:"container",html:'<span style="font-weight:normal!important;font-size:11px!important">'+n+"</span>",margin:"0 0 0 0"},{xtype:"container",html:'<div class="iconInfo" style="cursor:pointer;margin:-2px 0 0 3px" ></div>',id:"cont"+X,hidden:true,dataArray:"iconInfo"+X},{xtype:"container",html:'<div class="iconHelp2" style="cursor:pointer;margin:-2px 0 0 3px" onclick="javascript:openHelpWin(\''+C+"');\"></div>"});
}var V=new Array();if(!Ext.isEmpty(z[X])){if(z[X]["CASE"]=="1"){var w=(z[X]["IS_GRID"]=="TRUE")?true:false;if(w&&!Ext.isEmpty(z[X]["GRID_VALUES"])){var ac=z[X]["GRID_FIELDS"].length;var S=z[X]["GRID_VALUES"];var aa=new Array();var Z=new Array();if(!Ext.isEmpty(S)){for(var W=0;W<ac;W++){aa[aa.length]="COLUMN_"+W;
Z.push({header:z[X]["GRID_FIELDS"][W]["TEXT"],dataIndex:"COLUMN_"+W,align:"center",flex:1,renderer:function(aA,aD,ak,ao,al,am,aq){if(al==0){if(!Ext.isEmpty(aA["INFO_LINKS"])&&!Ext.isEmpty(aA["LINKS"])){var ap=aA["INFO_LINKS"];var av=ap["METHOD_NAME"];var aG=ap["PARAMS"];var ax=new Array();ax[ax.length]=aG.substring(0,aG.indexOf("|"));
ax[ax.length]=aG.substring(aG.lastIndexOf("|")+1);var ai='<img class="iconRumInfo" style="border:0px solid red;float:left;cursor:pointer;" border="0px" src="../images/clear.png" onclick="javascript:openInfoLink(\''+P+"');\"></img>";var aj=aA["LINKS"];var ay=aj["METHOD_NAME"];var aw=aj["PARAMS"];var aE=new Array();
aE[aE.length]=aw.substring(0,aw.indexOf("|"));aE[aE.length]=aw.substring(aw.lastIndexOf("|")+1);var aI=aj["LINK_TEXT"];var aJ='<div><a href="javascript:void(0);" onclick="javascript:'+ay+"('"+aE[0]+"','"+aE[1]+"');\" >"+aI+"</a></div>";if(Ext.isEmpty(ay)){aJ="<div>"+aI+"</div>";}var ar="<div>"+ai+aJ+"</div>";
return ar;}}else{if(al>0){var az=aA["STATE"];var at=aA["MEASURE"];if(!Ext.isEmpty(at["LINK_TEXT"])){var aI=at["LINK_TEXT"];var av=at["METHOD_NAME"];var aw=at["PARAMS"];var aE=new Array();aE[aE.length]=aw.substring(0,aw.indexOf("|"));aE[aE.length]=aw.substring(aw.lastIndexOf("|")+1);var aC="";if(!Ext.isEmpty(at["DD"])){var aB=at["DD"];
var aF=aB["METHOD_NAME"];var an=aB["PARAMS"];var aH=aB["LINK_TITLE"];var au=new Array();au[au.length]=an.substring(0,an.indexOf("|"));au[au.length]=an.substring(an.lastIndexOf("|")+1);aC='<div class="iconDiagnosis" style="cursor:pointer;float:left;margin-left:10px;" onclick="javascript:'+aF+"('"+au[0]+"','"+au[0]+"')\"> </div>";
}at='<a href="javascript:void(0);" onclick="javascript:'+av+"('"+aE[0]+"','"+aE[1]+"')\">"+aI+"</a>"+aC;}var ar="";ar='<div style="width:100%;"><div style="float:left;margin-right:4px;" class="state_footer_'+az+'" ></div><div style="float:left;">'+at+"</div></div>";return ar;}}return aA;}});}V.push({xtype:"customgrid",autoScroll:true,margin:"0 0 0 0",cls:"gridSkin horizontal-scroll",width:"100%",store:new Ext.data.Store({fields:aa,data:S}),columns:Z});
}}else{V.push({xtype:"panel",html:'<div style="text-align:center;width:400px;margin:10px auto 10px auto;"><div class="iconInformation" style="margin:0px auto"> </div>'+noMeasures+"</div>"});}}else{if(z[X]["CASE"]=="2"){var L=z[X]["TABLE_VALUES"];var f="";if(!Ext.isEmpty(L)){for(var W=0;W<L.length;W+=2){if((W%2)==0){f+="<tr >";
}var A="";var ah=L[W]["STATE"];var r=L[W]["MEASURE"];var T=L[W]["UNIT"];var ab=L[W]["MEASURE_RESULT"];if(!Ext.isEmpty(ab["LINK_TEXT"])){var G=ab["LINK_TEXT"];var a=ab["PARAMS"];var b=ab["METHOD_NAME"];var u='<div style="float:left"><a href="javascript:void(0);" onclick="javascript:'+b+"('"+a.substring(0,a.indexOf("|"))+"','"+a.substring(a.lastIndexOf("|")+1)+"')\">"+G+"</a></div>";
if(Ext.isEmpty(b)){u='<div style="float:left">'+G+"</div>";}if(!Ext.isEmpty(ab["DD"])){var e="";var v=ab["DD"];var F=v["PARAMS"];var ad=v["METHOD_NAME"];e='<div  class="iconDiagnosis" style="cursor:pointer;float:left;margin-left:10px" onclick="javascript:'+ad+"('"+F.substring(0,F.indexOf("|"))+"','"+F.substring(F.lastIndexOf("|")+1)+"')\"></div>";
u+=e;}ab=u;}A='<td width="50%"><div class="measuresInnerTable2" style="width:100%;border:0px solid red;"><table border="0" cellpadding="0" width="100%" cellspacing="0"><col width="22px"><col width="80%"><col width="22%"><tr><td class="measureTableFont"><div class="stateSymbol_'+ah+'" style="float:left;margin-left:4px"></div></td><td style="margin-top:2px;margin-left:2px" class="measureTableFont">'+r+" "+T+'</td><td class="measureTableFont">'+ab+'</td></tr></table></div></td><td style="width:10px;" ></td>';
var o="";if(!Ext.isEmpty(L[W+1])&&!Ext.isEmpty(L[W+1]["STATE"])){var ah=L[W+1]["STATE"];var r=L[W+1]["MEASURE"];var T=L[W+1]["UNIT"];var ab=L[W+1]["MEASURE_RESULT"];if(!Ext.isEmpty(ab["LINK_TEXT"])){var G=ab["LINK_TEXT"];var a=ab["PARAMS"];var b=ab["METHOD_NAME"];var u='<div style="float:left"><a href="javascript:void(0);" onclick="javascript:'+b+"('"+a.substring(0,a.indexOf("|"))+"','"+a.substring(a.lastIndexOf("|")+1)+"')\">"+G+"</a></div>";
if(Ext.isEmpty(b)){u='<div style="float:left">'+G+"</div>";}if(!Ext.isEmpty(ab["DD"])){var e="";var v=ab["DD"];var F=v["PARAMS"];var ad=v["METHOD_NAME"];e='<div class="iconDiagnosis" style="cursor:pointer;float:left;margin-left:10px" onclick="javascript:'+ad+"('"+F.substring(0,F.indexOf("|"))+"','"+F.substring(F.lastIndexOf("|")+1)+"');\"></div>";
u+=e;}ab=u;}o='<td width="50%" ><div class="measuresInnerTable2" style="width:100%;border:0px solid red;"><table border="0" cellpadding="0" width="100%" cellspacing="0"><col width="22px"><col width="82%"><col width="22%"><tr><td class="measureTableFont"><div class="stateSymbol_'+ah+'" style="float:left;margin-left:4px"></div></td><td class="measureTableFont">'+r+" "+T+'</td><td class="measureTableFont">'+ab+"</td></tr></table></div></td>";
}else{A+='<td width="50%">&nbsp;</td>';}f+=A+o;if((W%2)==0){f+="</tr>";}}}else{f='<div style="text-align:center;width:400px;margin:10px auto 10px auto;"><div class="iconInformation" style="margin:0px auto"> </div>'+noMeasures+"</div>";}f='<div class="measuresInnerTable" style="float:left;width:100%;padding-bottom:0px;border:0px solid blue"><table width="100%" cellspacing="0" cellpadding="0" border="0">'+f+"</table></div>";
V.push({xtype:"panel",margin:"0 0 7 0",html:f});}else{if(z[X]["CASE"]=="3"){var w=(z[X]["IS_GRID"]=="TRUE")?true:false;if(w&&!Ext.isEmpty(z[X]["GRID_VALUES"])){var ac=z[X]["GRID_FIELDS"].length;var S=z[X]["GRID_VALUES"];var aa=new Array();var Z=new Array();if(!Ext.isEmpty(S)){for(var W=0;W<ac;W++){aa[aa.length]="COLUMN_"+W;
Z.push({header:z[X]["GRID_FIELDS"][W]["TEXT"],dataIndex:"COLUMN_"+W,align:"center",forceFit:true,renderer:function(av,ax,ai,an,ak,al,ao){var ap="";if(ak==0){if(!Ext.isEmpty(av["INFOS"])){var aB=av["INFOS"];var aq=aB["METHOD_NAME"];var az=aB["PARAMS"];var aE=aB["TITLE"];ap='<img class="iconRumInfo" style="border:0px solid red;float:left;cursor:pointer;" border="0px" src="../images/clear.png" onclick="javascript:openInfoLink(\''+az+"');\"></img>";
}if(!Ext.isEmpty(av["LINK"])){var at=av["LINK"];var aq=at["METHOD_NAME"];var az=at["PARAMS"];var aC=at["LINK_TEXT"];var aw=at["STATE"];if(!Ext.isEmpty(aC)&&aC.indexOf(":")>-1){aC=aC.substring(aC.indexOf(":")+1);}if(Ext.isEmpty(aq)){ap+='<img class="stateSymbol_'+aw+'" style="border:0px solid red;float:left;" border="0px" src="../images/clear.png" /><span data-qtip="'+aC+'" data-qclass="yellowTip">'+aC+"</span>";
}else{ap+='<img class="stateSymbol_'+aw+'" style="border:0px solid red;float:left;" border="0px" src="../images/clear.png" /><a href="javascript:void(0);" onclick="javascript:'+aq+"('"+az.substring(0,az.indexOf("|"))+"','"+az.substring(az.lastIndexOf("|")+1)+'\')" data-qtip="'+aC+'" data-qclass="yellowTip">'+aC+"</a>";
}}else{if(!Ext.isEmpty(av["TEXT"])){ap+='<span data-qtip="'+av["TEXT"]+'" data-qclass="yellowTip">'+av["TEXT"]+"</span>";}}ap='<span style="border:0px solid blue;">'+ap+"</span>";return ap;}else{if(ak>0){var aj=av["STATE"];var au=av["MEASURES"];ap='<div class="stateSymbol_'+aj+'" style="float:left"></div>';
if(!Ext.isEmpty(au)&&!Ext.isEmpty(au["LINK_TEXT"])){var aD="";var aq=au["METHOD_NAME"];var az=au["PARAMS"];var aC=au["LINK_TEXT"];aD='<div style="float:left;"><a href="javascript:void(0);" onclick="javascript:'+aq+"('"+az.substring(0,az.indexOf("|"))+"','"+az.substring(az.lastIndexOf("|")+1)+"');\">"+aC+"</a></div>";
if(Ext.isEmpty(aq)){aD='<div style="float:left;">'+aC+"</div>";}if(!Ext.isEmpty(au["DD"])){var aA=au["DD"];var ay=aA["METHOD_NAME"];var am=aA["PARAMS"];var ar=aA["TITLE"];aD+='<div style="float:left;cursor:pointer;margin-left:10px;" class="iconDiagnosis" onclick="javascript:'+ay+"('"+am.substring(0,am.indexOf("|"))+"','"+am.substring(am.lastIndexOf("|")+1)+'\');" title="'+ar+'"></div>';
}ap+=aD;}else{var aq=av["METHOD_NAME"];var az=av["PARAMS"];var aC=av["LINK_TEXT"];if(!Ext.isEmpty(az)&&az!=undefined){ap='<a href="javascript:void(0);" onclick="javascript:'+aq+"('"+az.substring(0,az.indexOf("|"))+"','"+az.substring(az.lastIndexOf("|")+1)+"')\">"+aC+"</a>";if(Ext.isEmpty(aq)){ap='<a href="javascript:void(0);">'+aC+"</a>";
}}}ap='<div style="float:left;">'+ap+"</div>";return ap;}}return av;}});}}V.push({xtype:"customgrid",plugins:Ext.create("Ext.ux.AutoColumnWithLockingPlugin"),autoScroll:true,cls:"gridSkin horizontal-scroll",store:new Ext.data.Store({fields:aa,data:S}),columns:Z});}else{V.push({xtype:"panel",html:'<div style="text-align:center;width:400px;margin:12% auto 10px auto;"><div class="iconInformation" style="margin:0px auto"> </div>'+noMeasures+"</div>"});
}}}}}af.add({xtype:"panel",title:U,html:"",border:true,margin:"4 8 4 8",frame:false,cls:"datapanel",items:V,tools:x});var Y=Ext.get("maintenanceIcon"+X);Ext.create("Ext.tip.ToolTip",{target:Y,html:I});}}else{af.add({xtype:"panel",html:'<div style="text-align:center;width:400px;margin:16% auto 0px auto;"><div class="iconInformation" style="margin:0px auto"> </div>'+noMeasures+"</div>"});
}af.doLayout();},showSubSystemResult:function(b,r,x){var t="S";var c="subSystemId";if(!Ext.isEmpty(x)&&x=="Network"){t="N";c="subSystemNId";}var o=Ext.getCmp(c);o.removeAll();var u="";if(!Ext.isEmpty(b.inArrData)){u='<div style="border:0px solid violet;"></div>';}var f={xtype:"container",layout:"fit",height:115,padding:5,html:u};
var a=b.inArrData;if(!Ext.isEmpty(a)){for(var w=0;w<a.length;w++){var s=a[w];var v="agSvChart_"+t+w;u='<div style="background-color:transparent;background:none;text-align:center;width:100%;height:100%;float:left;">';if(!Ext.isEmpty(s.display_Err_Mes)){u=u+'<div style="background-color:transparent;background:none;padding:10px;" class="font_bold">'+s.display_Err_Mes+'</div><div style="height:78%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">'+s.measureErrDisplay+"</div></div></div>";
}else{if(!Ext.isEmpty(s.dialSVTitle)){var e="";if(!Ext.isEmpty(s.dialSVFullViewUrl)){e='<div style="text-align:center;background-color:transparent;background:none;"><a class="mouse eg_monlink" onclick="javascript:loadPageForDial('+s.dialSVFullViewUrl+',event);" title="More" ><img  border="0" src="/final/monitor/eg_images/icon-newwindow_o.gif"/></a></div>';
}u=u+'<div style="background-color:transparent;background:none;margin:auto;padding:3;display:inline-block;"><div style="text-align:center;"><div class="font_bold">'+s.dialSVTitle+"</div></div>"+e+'<div id="'+v+'"  style="height:100%;"></div></div>';}}u=u+"</div>";var d="";if(!Ext.isEmpty(s.chartName)){d=s.dialUrl;
}if(!Ext.isEmpty(Ext.getCmp("subSystemNetworkMainId"))&&Ext.getCmp("subSystemNetworkMainId")!=null&&Ext.getCmp("subSystemNetworkMainId")!=undefined){Ext.getCmp("subSystemNetworkMainId").show();}if(isFusionChart){var f=new Ext.Panel({id:"dialUrlSV"+t+w,layout:"fit",bodyStyle:{"background":"none"},clickUrl:d,height:150,cls:"componentnetworkseperator",padding:5,margin:10,flex:0.5,html:u});
o.add(f);if(!Ext.isEmpty(s.chartName)){var n="mySvAngularGaugeChartId"+t+w;if(s.chartName=="VLED"){n="mySvVLEDChartId"+t+w;}if(FusionCharts(n)){FusionCharts(n).dispose();}var g=new FusionCharts("/final/FusionCharts/swf/"+s.chartName+".swf",n,s.chartWidth,s.chartHeight,"0","1");g.setXMLData(s.chartXML);
g.setTransparent(true);g.render(v);}}else{var f=new Ext.Panel({id:"dialUrlSV"+t+w,layout:"fit",clickUrl:d,height:150,cls:"componentnetworkseperator",flex:0.5,html:u,listeners:{"afterrender":function(z){var y=s.chartXML;if(!Ext.isEmpty(y)){y["useHtml"]=false;y["goToPage"]="layerModel";y["layerModelUrl"]=z.id;
y["layerModelUrlId"]=z.id;getHighChartsGuage("dialUrlSV"+t+w,y,"InsideViewDashboard");}}}});if(!Ext.isEmpty(Ext.getCmp("subSystemId"))&&Ext.getCmp("subSystemId")!=null&&Ext.getCmp("subSystemId")!=undefined&&Ext.getCmp("subSystemId").getEl()!=null&&Ext.getCmp("subSystemId").getEl()!=undefined){Ext.getCmp("subSystemId").getEl().addCls("block1");
}o.add(f);if(!Ext.isEmpty(Ext.getCmp("subSystemNetworkMainId"))&&Ext.getCmp("subSystemNetworkMainId")!=null&&Ext.getCmp("subSystemNetworkMainId")!=undefined){Ext.getCmp("subSystemNetworkMainId").show();Ext.getCmp("subSystemNetworkMainId").addCls("block1");}if(!Ext.isEmpty(Ext.getCmp("subSystemId"))&&Ext.getCmp("subSystemId")!=null&&Ext.getCmp("subSystemId")!=undefined){Ext.getCmp("subSystemId").show();
}}}}else{if(!Ext.isEmpty(b.uptimeTitle)){u='<div class="title"><b>'+b.uptimeTitle+'</b></div><center><div class="summaryTotalComponents" style="margin-top: 10px"><div style="margin-left:10px" class="iconArrowUp"></div></div><div style="font-size:12px;font-weight:500;padding-top:10px">'+b.uptimeDetails+"</div></center>";
var f={xtype:"container",cls:"frameset",padding:"20 0 0 0",layout:"fit",border:true,height:137,margin:"10 2 3 2",flex:0.5,html:u};if(!Ext.isEmpty(Ext.getCmp("subSystemId"))&&Ext.getCmp("subSystemId")!=null&&Ext.getCmp("subSystemId")!=undefined){Ext.getCmp("subSystemId").getEl().removeCls("block1");}o.add(f);
if(!Ext.isEmpty(Ext.getCmp("subSystemNetworkMainId"))&&Ext.getCmp("subSystemNetworkMainId")!=null&&Ext.getCmp("subSystemNetworkMainId")!=undefined){Ext.getCmp("subSystemNetworkMainId").show();}if(!Ext.isEmpty(Ext.getCmp("subSystemId"))&&Ext.getCmp("subSystemId")!=null&&Ext.getCmp("subSystemId")!=undefined){Ext.getCmp("subSystemId").show();
}}else{if(Ext.isEmpty(a)&&Ext.isEmpty(b.uptimeTitle)){u='<div style="border:0px solid red;"></div>';var f={xtype:"container",layout:"fit",height:150,padding:5,flex:0.3,html:u};if(!Ext.isEmpty(Ext.getCmp("subSystemNetworkMainId"))&&Ext.getCmp("subSystemNetworkMainId")!=null&&Ext.getCmp("subSystemNetworkMainId")!=undefined){Ext.getCmp("subSystemNetworkMainId").hide();
}if(!Ext.isEmpty(Ext.getCmp("subSystemId"))&&Ext.getCmp("subSystemId")!=null&&Ext.getCmp("subSystemId")!=undefined){Ext.getCmp("subSystemId").hide();}}}}},showSystemOrNetworkResult:function(ag,u,ac){var F=this;var K="S";var ad="S";var E="subsystemSelect";var G="subSystemId";var ae="firstCon";var x="secCon";
var B="graphContainer";var aj="legendContainer";var e=Ext.getCmp("networkpanel");if(!Ext.isEmpty(ac)&&ac=="Network"){K="N";ad="";E="subsystemNSelect";G="subSystemNId";ae="firstNCon";x="secNCon";B="graphNContainer";aj="legendNContainer";}if(!Ext.isEmpty(Ext.getCmp("subSystemNetworkMainId"))&&Ext.getCmp("subSystemNetworkMainId")!=null&&Ext.getCmp("subSystemNetworkMainId")!=undefined){Ext.getCmp("subSystemNetworkMainId").show();
}var d=Ext.getCmp(E);d.suspendEvents(true);d.setFieldLabel(ag.jsonData.Subsystem);var U=ag.jsonData.SubsystemData;d.getStore().loadRawData(U);d.setValue(ag.jsonData.selectedSubsystem);d.resumeEvents();if(!Ext.isEmpty(ag.jsonData.Non_Overview_URL)){Ext.Ajax.request({url:ag.jsonData.Non_Overview_URL,method:"POST",timeout:280000,success:function(an){if(an.status==200&&!Ext.isEmpty(an.responseText)){var ao=an.responseText;
var am=Ext.decode(ao);F.showSubSystemResult(am,u,ac);}}});}else{var T=Ext.getCmp(G);T.removeAll();T.setBorder(true);T.show();var o="";if(!Ext.isEmpty(ag.jsonData.alertErr)){o='<div class="title" ><b>'+ag.jsonData.Current_System_Alerts+'</b></div><div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">'+ag.jsonData.alertErr+"</div></div></div>";
}else{if(!Ext.isEmpty(ag.jsonData.Open_Alerts)){o='<div  class="title"><b>'+ag.jsonData.Current_System_Alerts+"</b></div>";o=o+'<div style="float:right;text-align:right;padding:10px 15px;width:100%;border:0px solid blue"><div class="summaryOpenProblems" style="margin-top:10px;margin-right:25px;border:0px solid yellow;height:150px;width:40px;float:left;position:relative"></div><div style="180px"><span style="width:180px;font-size:23px;font-weight:bold;text-align:right	">'+ag.jsonData.Open_Alerts_Value+'</span></div><div><span style="width:180px;font-size:13px;font-weight:bold;text-align:right">'+ag.jsonData.Open_Alerts+'</span></div></div><div class="crl"></div><div class="outer_round" style="margin-top:25px;margin-left:5px;width:95%;border:0px solid orange;display:flex;">';
if(ag.jsonData.Distribution_HIGH>0){o=o+'<div class="bar12_high" id="highStateComponent" style="flex:'+ag.jsonData.Distribution_HIGH+';height:100%;float:left;text-align:center;display: block;font-size: 10px;">'+ag.jsonData.Distribution_HIGH+"</div> ";}if(ag.jsonData.Distribution_INTERMEDIATE>0){o=o+'<div class="bar12_intermediate" id="intermediateStateComponent" style="flex:'+ag.jsonData.Distribution_INTERMEDIATE+';height:100%;float:left;text-align:center;display: block;font-size: 10px;">'+ag.jsonData.Distribution_INTERMEDIATE+"</div> ";
}if(ag.jsonData.Distribution_LOW>0){o=o+'<div class="bar12_low" id="lowStateComponent"style="flex:'+ag.jsonData.Distribution_LOW+';height:100%;float:left;text-align:center;display: block;font-size: 10px;" >'+ag.jsonData.Distribution_LOW+"</div></div>";}}else{if(!Ext.isEmpty(ag.jsonData.inArrData)){o='<div style="border:0px solid red;"></div>';
}}}var H={xtype:"container",cls:"frameset",border:true,layout:"fit",height:137,margin:"10 3 3 3",padding:"20 0 0 0",flex:0.22,html:o};T.add(H);o="";if(!Ext.isEmpty(ag.jsonData.History_Events_Err)){o='<div class="title"><b>'+ag.jsonData.History_Events+'</b></div><div style="margin:3% 0 auto 0;text-align:center;border:0px solid red"><div class="iconNoalarms" style="margin:0% auto 0px auto;text-align:center"></div><div style="text-align:center" >'+ag.jsonData.History_Events_Err+"</div></div>";
var H={xtype:"container",cls:"frameset",layout:"fit",border:true,height:137,margin:"10 5 3 3",flex:1,html:o};T.add(H);}else{if(!Ext.isEmpty(ag.jsonData.TotalEvents)){var t="Bar2DContainer"+K;var ai="myBar2DChartId"+K;var C='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
if(ag.jsonData.isFusionChart){o='<div class="title"><b>'+ag.jsonData.History_Events+'</b></div><div id="'+t+'"  style="margin-top:10px;float:left;height:115px;border:0px solid yellow;width:230px"></div><div class="searchSeperatorLine" style="width:10px;height:115px;float:left"></div><div style="padding:0 0 0 80;border:0px solid red;height:120px;width:100%"><div style="border:0px solid #000;width:24%;float:left;padding:50 0 0 0"><div class="totalEvents" style="margin-left:7px;width:50px;float:left;height:115px"></div><div style="float:right;height:115px;margin-top:-10px" ><span style="float:left;font-size:23px;font-weight:bold;float:right;width:130px;text-align:right">'+ag.jsonData.TotalEvents_Value+'</span><div class="crl"></div><span style="margin-top:8px;font-size:13px;font-weight:bold;float:right;width:130px;text-align:right">'+ag.jsonData.TotalEvents+'</span></div></div><div class="searchSeperatorLine" style="width:10px;height:115px;float:left"></div><div style="width:24%;float:left;border:0px solid #000;padding:50 0 0 0"><div  class="summaryAverageDuration" style="width:50px;float:left;height:115px"></div><div style="float:left;height:115px;margin-top:-40px"><span style="font-size:23px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.AvgDuration_Value+'</span><span style="margin-top:3px;font-size:13px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.AvgDuration+'</span></div></div><div class="searchSeperatorLine" style="width:10px;height:115px;float:left"></div><div style="border:0px solid black;width:25%;float:right;height:115px;padding:50 15 0 0"><div class="summaryMaximumDuration"></div><div style="float:right;height:115px;margin-top:-40px"><span style="font-size:23px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.MaxDuration_Value+'</span><div class="crl"></div><span style="margin-top:3px;font-size:13px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.MaxDuration+'</span><div class="crl"></div></div></div></div>';
var H={xtype:"container",cls:"frameset",border:true,layout:{type:"anchor",align:"stretch"},height:145,margin:"10 6 6 6",flex:1,html:o};T.add(H);if(FusionCharts(ai)){FusionCharts(ai).dispose();}var J=new FusionCharts("/final/FusionCharts/swf/Bar2D.swf",ai,"240","88","0","1");J.setXMLData(ag.jsonData.History_Events_XML);
J.setTransparent(true);J.render(t);this.displayCurrentAlertPopup(ag,u);}else{var c='<div id="'+t+'"  style="float:left;border:0px solid yellow;width:230px;font-weight:bold"></div>';var b='<div style="float:right;padding:0 0 0 0;width:100%;border:0px solid orange;"><div class="totalEvents" style="width:50px;float:left;margin-top:10px;"></div><div style="float:left;margin-top:20px;" ><span style="float:right;font-size:23px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.TotalEvents_Value+'</span><span style="margin-top:3px;font-size:13px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.TotalEvents+"</span></div>";
var a='<div style="float:left;border:0px solid red;padding:0 0 0 0;width:100%"><div  class="summaryAverageDuration" style="width:50px;float:left;margin-top:10px;"></div><div style="float:left;margin-top:20px;"><span style="font-size:23px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.AvgDuration_Value+'</span><span style="margin-top:3px;font-size:13px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.AvgDuration+"</span></div>";
var al='<div style="background:transparent !important;border:0px solid green;float:right;padding:0 0 0 0;width:100%"><div style="margin-top:10px;" class="summaryMaximumDuration"></div><div style="float:right;margin-right:8px;margin-top:20px"><span style="font-size:23px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.MaxDuration_Value+'</span><span style="margin-top:3px;font-size:13px;font-weight:400;float:right;width:150px;text-align:right">'+ag.jsonData.MaxDuration+"</span></div>";
var H={xtype:"container",border:true,layout:{},margin:"0 6 0 6",flex:1,items:[{xtype:"fieldset",cls:"innerFieldset",title:ag.jsonData.History_Events,layout:"column",padding:0,margin:0,height:147,items:[{columnWidth:0.37,html:c,padding:"0 10 0 0",listeners:{"afterrender":function(){var am=ag.jsonData.History_Events_XML;
if(Ext.isEmpty(am)){Ext.get(t).update(C);}else{am["fromPage"]="insideView";am["showLegend"]=false;am["tick"]=false;am["isStateBar"]=true;am["enableClick"]=true;var an={};an=jQuery.extend(true,{},createBar(t,am.chartHeight-35,370),an);an.setData(am,"","","bar");an.drawChart();}}}},{xtype:"tbseparator",height:105,margin:"8 0 0 0",cls:"searchSeperatorLine"},{columnWidth:0.21,html:b,padding:"0 25 0 25"},{xtype:"tbseparator",height:105,margin:"8 0 0 0",cls:"searchSeperatorLine"},{columnWidth:0.21,html:a,padding:"0 25 0 25"},{xtype:"tbseparator",height:105,margin:"8 0 0 0",cls:"searchSeperatorLine"},{columnWidth:0.21,html:al,padding:"0 25 0 25"}]}],};
T.add(H);}}}}var D=Ext.getCmp(ae);var aa=Ext.getCmp(x);D.removeAll();aa.removeAll();if(!Ext.isEmpty(ag.jsonData.Non_Overview_URL)){D.hide();aa.hide();}else{D.show();aa.show();}if(Ext.isEmpty(ag.jsonData.Non_Overview_URL)){o="";if(!Ext.isEmpty(ag.jsonData.CurrentSystemStatusErr)){o='<div style="text-align:center;font-size:12px;font-weight:bold">'+ag.jsonData.CurrentSystemStatus+'</div><div style="height:85%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">'+ag.jsonData.CurrentSystemStatusErr+"</div></div></div>";
var H=new Ext.Panel({layout:"fit",margin:"5px 0 0 0",height:175,flex:0.25,html:o});D.add(H);}else{if(!Ext.isEmpty(ag.jsonData.CurrentSystemStatusXML)){var t="Pie3DContainer"+K;var ai="myPie3DChartId"+K;o='<center><div style="display:inline-block;width:100%"><div style="text-align:center;font-size:12px;font-weight:bold">'+ag.jsonData.CurrentSystemStatus+'</div><div id="'+t+'"  style="height:80%;"></div></div></center>';
if(isFusionChart){var H={layout:"fit",border:false,frame:false,flex:0.25,cls:"componentnetworkseperator",margin:"5 10 5 10",padding:"0 5 0 5",height:175,html:o};D.add(H);if(FusionCharts(ai)){FusionCharts(ai).dispose();}var J=new FusionCharts("/final/FusionCharts/swf/Pie3D.swf",ai,ag.jsonData.pieGraphWidth,ag.jsonData.pieGraphHeight,"0","1");
J.setXMLData(ag.jsonData.CurrentSystemStatusXML);J.setTransparent(true);J.render(t);}else{o='<div id="'+t+'"  style="margin:auto;width:100%;height:100%;"></div>';var H={xtype:"container",cls:"componentnetworkseperator dfsf",flex:0.25,margin:0,height:175,html:o,listeners:{"afterrender":function(){var am=ag.jsonData.CurrentSystemStatusXML;
am["title"]=ag.jsonData.CurrentSystemStatus;am["unit"]="%";var an={};an=jQuery.extend(true,{},createBar(t,175,ag.jsonData.layerHealthWidth),an);an.setData(am,"","","pie");an.drawChart();}}};D.add(H);}}}if(!Ext.isEmpty(ac)&&ac=="Network"){o="";if(!Ext.isEmpty(ag.jsonData.layerHealthErr)){o='<div style="padding:4px;border:0px solid red"><b>'+ag.jsonData.CurrentLayerwiseHealth+'</b></div><div style="margin:6% 0 auto 0;text-align:center;border:0px solid red"><div class="iconInformation" style="margin:auto;text-align:center"></div><div style="text-align:center" >'+ag.jsonData.layerHealthErr+"</div></div>";
var H={xtype:"container",margin:"5px 0 0 0",cls:"componentnetworkseperator sdfcdf ",height:175,html:o};D.add(H);}else{if(!Ext.isEmpty(ag.jsonData.layerHealthXML)){var t="StackedBar2DContainer"+K;var ai="myStackedBar2DChartId"+K;var C='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
if(isFusionChart){o='<div style="display:inline-block;"><div style="text-align:center;font-weight:bold;font-size:12px">'+ag.jsonData.CurrentLayerwiseHealth+'</div><div id="'+t+'" ></div></div>';var H=new Ext.Container({height:175,flex:0.33,id:"panelIdNewID",margin:"5px 0 0 0",cls:"componentnetworkseperator",html:"<center>"+o+"</center>",});
D.add(H);if(FusionCharts(ai)){FusionCharts(ai).dispose();}var J=new FusionCharts("/final/FusionCharts/swf/StackedBar2D.swf",ai,ag.jsonData.layerHealthWidth,ag.jsonData.layerHealthHeight,"0","1");J.setXMLData(ag.jsonData.layerHealthXML);J.setTransparent(true);J.render(t);}else{o='<div style="display:inline-block;"><div id="'+t+'" ></div></div>';
var H=new Ext.Container({height:175,flex:0.33,margin:5,id:"panelIdNewID",cls:"componentnetworkseperator",html:"<center>"+o+"</center>",listeners:{"afterrender":function(){var am=ag.jsonData.layerHealthXML;am["tick"]=false;am["title"]=ag.jsonData.CurrentLayerwiseHealth;if(Ext.isEmpty(am)){Ext.getCmp("panelIdNewID").update(C);
}else{am["fromPage"]="insideView";am["showLegend"]=false;am["tick"]=false;am["isStateBar"]=true;am["isNetworkTab"]=true;am["isInside"]=true;var ao=300;if(Ext.getBody().getWidth()>1300){ao=500;}var an={};an=jQuery.extend(true,{},createBar(t,am.chartHeight+10,ao),an);an.setData(am,"","","bar");an.drawChart();
}}}});D.add(H);}}}}var V=ag.jsonData.inArrData;if(!Ext.isEmpty(V)){for(var S=0;S<V.length;S++){var P=V[S];var Q="agChart_"+K+S;o='<div style="float:left;width:100%;height:100%;text-align:center">';if(!Ext.isEmpty(P.display_Err_Mes)){o=o+'<div style="text-align:center;" class="font_bold" >'+P.display_Err_Mes+'</div><div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">'+P.measureErrDisplay+"</div></div></div>";
}else{if(!Ext.isEmpty(P.display_Mes)){var af="";if(!Ext.isEmpty(P.display_MeaFullViewUrl)){af='<center><div style="text-align:center"><a class="mouse eg_monlink" onclick="javascript:loadPageForDial('+P.display_MeaFullViewUrl+",event,"+P.display_MeaFVTip+"("+P.display_MeaFVUnit+'));" title="More" ><img  border="0" src="/final/monitor/eg_images/icon-newwindow_o.gif"/></a></div></center>';
}o=o+'<center><div style="display:inline-block;"><div style="text-align:center;" class="font_bold" >'+P.display_Mes+"</div>"+af+'<div id="'+Q+'" style="height:80%;"></div></div></center>';}}o=o+"</div>";var M="";if(!Ext.isEmpty(P.chartName)){M=P.dialUrl;}if(isFusionChart){var H={xtype:"container",cls:"componentnetworkseperator",id:"dialUrl"+K+S,layout:"fit",height:175,flex:0.25,margin:"5 0 5 0",padding:"0 5 0 5",clickUrl:M,html:o};
D.add(H);if(!Ext.isEmpty(P.chartName)){var y="myAngularGaugeChartId"+K+S;if(P.chartName=="VLED"){y="myVLEDChartId"+K+S;}if(FusionCharts(y)){FusionCharts(y).dispose();}var J=new FusionCharts("/final/FusionCharts/swf/"+P.chartName+".swf",y,P.chartWidth,P.chartHeight,"0","1");J.setXMLData(P.chartXML);J.setTransparent(true);
J.render(Q);}}else{var H={xtype:"container",cls:"componentnetworkseperator",id:"dialUrl"+K+S,layout:"fit",height:175,width:300,flex:0.25,padding:"10 0 10 0",clickUrl:M,html:o,listeners:{"afterrender":function(an){var am=P.chartXML;if(!Ext.isEmpty(am)){am["useHtml"]=true;getHighChartsGuage("dialUrl"+K+S,am,"InsideViewDashboard");
}}}};D.add(H);}}}if(!Ext.isEmpty(ac)&&ac=="System"){o="";if(!Ext.isEmpty(ag.jsonData.layerHealthErr)){o='<div style="padding:4px;border:0px solid red"><b>'+ag.jsonData.CurrentLayerwiseHealth+'</b></div><div style="margin:auto;text-align:center;border:0px solid red"><div class="iconInformation" style="margin:auto;text-align:center"></div><div style="text-align:center" >'+ag.jsonData.layerHealthErr+"</div></div>";
var H=new Ext.Panel({layout:"fit",height:200,items:[{html:o}]});aa.add(H);}else{if(!Ext.isEmpty(ag.jsonData.layerHealthXML)){var t="StackedBar2DContainer"+K;var ai="myStackedBar2DChartId"+K;o='<div style="display:inline-block;"><div style="text-align:center;padding-top:16px;" class="font_bold">'+ag.jsonData.CurrentLayerwiseHealth+'</div><div id="'+t+'" ></div></div>';
var C='<center><div class="font_bold" style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';if(isFusionChart){var H=new Ext.Panel({layout:"fit",cls:"block1",id:"panelIdNew",border:true,frame:true,margin:"6 6 6 0",height:200,width:300,items:[{html:o}]});
aa.add(H);if(FusionCharts(ai)){FusionCharts(ai).dispose();}var J=new FusionCharts("/final/FusionCharts/swf/StackedBar2D.swf",ai,ag.jsonData.layerHealthWidth,ag.jsonData.layerHealthHeight,"0","1");J.setXMLData(ag.jsonData.layerHealthXML);J.setTransparent(true);J.render(t);}else{var H=new Ext.Panel({cls:"block1",id:"panelIdNew",border:true,frame:true,margin:"6 6 6 0",height:200,width:300,items:[{html:o,listeners:{"afterrender":function(){var am=ag.jsonData.layerHealthXML;
if(Ext.isEmpty(am)){Ext.get(t).update(C);}else{am["tick"]=false;am["fromPage"]="insideView";am["showLegend"]=false;am["isStateBar"]=true;am["isNetworkTab"]=false;am["isInside"]=true;var ao={};var an=Ext.getCmp("panelIdNew").getWidth();ao=jQuery.extend(true,{},createBar(t,160,an-5),ao);ao.setData(am,"","","bar");
ao.drawChart();}}}}]});aa.add(H);}}}}o="";var n=ag.jsonData.kpiJsonData;if(!Ext.isEmpty(n)){var H=Ext.create("Ext.panel.Panel",{cls:"block1",bodyCls:"keyperformancetable",title:keyPerformanceIndicatorsText,layout:"fit",margin:"6 0 6 0",flex:0.85,border:true,frame:true,scroll:true,autoscroll:true,height:200,bodyPadding:0,padding:0,html:n});
aa.add(H);}}var I=Ext.getCmp(aj);I.removeAll();var ak=ag.GraphArray;if(!Ext.isEmpty(ak)&&ag.chartOption.indexOf("highchart")>-1){var s=ag.LegendInChart;s=(s=="false"||s=="no")?0:1;if(!Ext.isEmpty(Ext.getCmp("newPanel"))){Ext.getCmp("newPanel").destroy();}if(!Ext.isEmpty(Ext.getCmp("er_chart_checkbox"))){Ext.getCmp("er_chart_checkbox").destroy();
}var H=Ext.create("Ext.panel.Panel",{layout:{type:"hbox",pack:"end",align:"right"},margin:"0 0 0 2",flex:0.1,border:false,autoDestroy:true,frame:false,height:20,bodyPadding:0,padding:0,id:"newPanel",items:[{xtype:"checkboxgroup",margin:"0 20 0 0",autoDestroy:true,id:"er_chart_checkbox",items:[{boxLabel:showLegendsText,margin:"0 10 0 0",inputValue:"true",defaultAlign:"tr-br",itemId:"showLegend",cls:"showLegend checkbt",checked:s,}]}]});
I.add(H);}var f=Ext.getCmp(B);f.removeAll();if(!Ext.isEmpty(ak)){for(var S=0;S<ak.length;S++){var P=ak[S];if(!Ext.isEmpty(P.errData)){o='<div style="margin:15% auto;text-align:center;border:0px solid red"><div class="iconInformation" style="margin:auto;text-align:center"></div><div style="text-align:center" >'+P.errData+"</div></div>";
var L=new Ext.Panel({layout:"fit",height:200,flex:1,cls:"block1",items:[{html:o}]});f.add(L);}else{var z="";if(!Ext.isEmpty(P.currentStatusUrl)){z='<div><a href="javascript:void(0);" ><img src="'+P.currentStatusUrl+'"/></a></div></center>';var L={layout:"fit",height:200,cls:"datapanel",items:[{html:z}]};
f.add(L);}if(!Ext.isEmpty(P.graphName)){z="";var w='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';var R=ag.chartOption;var A=P.graphUrl;var ab='<div style="margin:auto;padding:3px;display:inline-block;"><div class="font_bold12">'+P.graphName+"</div></div>";
if(!Ext.isEmpty(R)&&!Ext.isEmpty(A)&&A.indexOf("/final/images/nomeasures_custom.gif")<0){if(R.indexOf("highchart")>-1){z='<div style="height:100%;width:100%;" id="insideLine'+S+'" ></div>';}else{z='<div class="component-list-left-font" style="width:100%;font-size:12px;text-align:center;margin-top: 5%;">'+P.graphName+'</div><center><div style="margin:5% auto 0% auto"><img src="'+P.graphUrl+'"/></div></center>';
}}else{if(R.indexOf("highchart")>-1){z='<center><div style="margin:3% auto 0% auto"><img src=/final/images/'+strSkin+"/nomeasures_custom.png></div></center>";}else{z='<div class="component-list-left-font" style="width:100%;font-size:12px;text-align:center;margin-top: 5%;">'+P.graphName+'</div><center><div style="margin:5% auto 0% auto"><img src="'+P.graphUrl+'"/></div></center>';
}}A=A+"&isSmall=true";var ah="chartdiv"+S;var g=Ext.getCmp(ah);if(!Ext.isEmpty(g)){g.destroy();}var O=P.bigGraphUrl;var W=(!Ext.isEmpty(A)&&A.indexOf("/final/images")>-1)?true:false;var L={xtype:"panel",cls:"block1",layout:"fit",border:true,frame:true,height:220,margin:"5",padding:0,id:ah,title:ab,tools:[{xtype:"button",cls:"iconMaximize",itemId:"lineChartMaximizedId"+S,style:{"border":"none"},thisUrl:O,clickUrl:O,listeners:{"afterrender":function(am){am.el.on("click",function(){F.displayBigGraph(am);
});}}}],items:[{html:z}],listeners:{"afterrender":function(){if(!Ext.isEmpty(R)&&R.indexOf("highchart")>-1){if(!Ext.isEmpty(A)&&A.indexOf("/final/images")==-1){var am=($(window).width()/3)-75;am=Math.floor(am);bigHighChart(A,"insideLine"+S,190,am,O,"false","bottom",P.graphName);}else{Ext.get("insideLine"+S).update(w);
}}},render:function(am){am.el.on("click",function(){if(!Ext.isEmpty(A)&&A.indexOf("/final/images")<0){}});}}};f.add(L);f.doLayout();}else{if(!Ext.isEmpty(P.ddTitle)){if(!Ext.isEmpty(P.ddDataXml)){var t="Bar2DContainer"+K+S;var ai="myBar2DChartId"+K+S;o='<div style="margin:auto;padding:3px;display:inline-block;"><div style="text-align:center;"  class="font_bold12">'+P.ddTitle+'</div><div id="'+t+'" ></div></div>';
var C='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';var v="";var N="";if(!Ext.isEmpty(P.ddGraphUrlLarge)){v=P.ddGraphUrlLarge;N=P.ddDataurl;}if(!isFusionChart){var Z=$(window).width();Z=(Z/3)-100;
o='<div style="margin:auto;padding:3px;display:inline-block;height:100%;width:100%;"><div id="'+t+'" style="height:100%;width:100%;" ></div></div>';var Y='<div style="margin:auto;padding:3px;display:inline-block;"><div style="text-align:center;" class="font_bold12">'+P.ddTitle+"</div></div>";var L={xtype:"panel",cls:"block1",padding:0,id:"ddGraphUrlLarge"+ad+S,height:320,border:true,frame:false,margin:"5 5 10 5",clickFCUrl:v,clickDDDUrl:N,title:Y,divId:t,columnWidth:0.333,minWidth:Z,tools:[{xtype:"button",cls:"iconMaximize",itemId:"bigMaximizedId"+S,style:{"border":"none"},clickFCUrl:v,clickDDDUrl:N,maxId:P.maxUrlId,tempId:"ddGraphUrlLarge"+ad+S,listeners:{"afterrender":function(am){am.el.on("click",function(){var an=am.maxId;
var ao=an.split("^eg^");showBigGraph(am.tempId,ao[1]);});}}}],items:[{html:o}],listeners:{"afterrender":function(an){var ap=($(window).width()/3)-75;var am=P.ddDataXml;if(Ext.isEmpty(am)){Ext.get(t).update(C);}else{am["fromPage"]="insideView";am["showLegend"]=false;am["barMarginFrom"]="insideview";am["isMax"]=false;
am["chartHeight"]=285;var ao={};ao=jQuery.extend(true,{},createBar(an.divId,am.chartHeight,ap),ao);ao.setData(am,"","","bar");ao.drawChart();}}}};f.add(L);}else{var L={xtype:"container",cls:"block1",id:"ddGraphUrlLarge"+ad+S,layout:"fit",height:200,border:true,frame:false,margin:5,clickFCUrl:v,clickDDDUrl:N,items:[{html:o}]};
f.add(L);if(FusionCharts(ai)){FusionCharts(ai).dispose();}var J=new FusionCharts("/final/FusionCharts/swf/Bar2D.swf",ai,P.ddGraphWidth,P.ddGraphHeight,"0","1");J.setXMLData(P.ddDataXml);J.setTransparent(true);J.render(t);}}else{if(!Ext.isEmpty(P.ddDataErr)){o='<div style="display:table;height:98%;width:100%" ><div style="display:table-cell;vertical-align:middle;text-align:center;"><div style="margin:auto;" class="iconInformation"></div><div>'+P.ddDataErr+"</div></div></div>";
var L=new Ext.Panel({layout:"fit",id:"ddGraphUrlLarge"+ad+S,title:P.ddTitle,height:320,border:true,frame:true,margin:5,cls:"block1",clickFCUrl:P.ddGraphUrlLarge,items:[{html:o}],tools:[{xtype:"button",cls:"iconMaximize",style:{"border":"none"},clickFCUrl:P.ddGraphUrlLarge,clickDDDUrl:P.ddGraphUrlLarge,maxId:P.maxUrlId,tempId:"ddGraphUrlLarge"+ad+S,listeners:{"afterrender":function(am){am.el.on("click",function(){var an=am.maxId;
var ao=an.split("^eg^");showBigGraph(am.tempId,ao[1]);});}}}],});f.add(L);}}}else{if(!Ext.isEmpty(P.ddDataErr)){o='<div style="padding:4px;border:0px solid red"></div><div style="margin:5$ auto;text-align:center;border:0px solid red"><div class="iconInformation" style="margin:auto;text-align:center"></div><div style="text-align:center" >'+P.ddDataErr+"</div></div>";
var r=new Ext.Panel({layout:"fit",border:true,title:P.ddTitle,frame:true,height:320,margin:5,cls:"block1",items:[{html:o}]});f.add(r);}}}if(!Ext.isEmpty(P.Process)){o='<div style="margin:auto;text-align:center;border:0px solid red" id="example-grid"></div>';var r=new Ext.Panel({border:true,frame:true,height:220,margin:5,cls:"block1",padding:0,title:P.dataTitle,html:o});
f.add(r);f.doLayout();Ext.define("processModel",{extend:"Ext.data.Model",fields:[P.Process,P.Min,P.Max,P.Avg]});var X=Ext.create("Ext.data.Store",{model:"processModel",autoLoad:true,proxy:{type:"memory",data:P.grpData}});Ext.create("utilities.CustomGrid",{store:X,columns:[{text:P.Process,width:140,dataIndex:P.Process},{text:P.Min+P.Min_Unit,width:50,dataIndex:P.Min},{text:P.Max+P.Max_Unit,width:50,dataIndex:P.Max},{text:P.Avg+P.Avg_Unit,width:50,dataIndex:P.Avg},],renderTo:"example-grid",cls:"gridSkin",flex:1,forceFit:true,height:192});
}else{if(!Ext.isEmpty(P.grpDataErr)){o='<div style="margin:12% 0 auto 0;text-align:center;border:0px solid red"><div class="iconInformation" style="margin:auto;text-align:center"></div><div style="text-align:center" >'+P.grpDataErr+"</div></div>";var r=new Ext.Panel({layout:"fit",cls:"block1",margin:5,title:P.dataTitle,border:true,height:220,items:[{html:o}]});
f.add(r);}}}}}},zoomLoaded:function(){var a=this.getZoomGraphImgPanel();if(!Ext.isEmpty(a)){a.handleScrollBars(a);}},zoomClose:function(){this.bigGraphOnClick();},bigGraphOnClick:function(){var a=this.getZoomGraphPanel();if(!Ext.isEmpty(a)){a.destroy();}if(!Ext.isEmpty(this.getSystempanel())&&this.getSystempanel()!=null&&this.getSystempanel()!=undefined){this.getSystempanel().show();
}},timelineChangeHandler:function(e){var o=e.getValue();if(o=="Any"){this.enableDisableDateFields(true);}else{this.enableDisableDateFields(false);}var v=currentDateFormat_js;var w="";var a=this.getZoomGraphFromDate();if(!Ext.isEmpty(a)&&!Ext.isEmpty(a.getValue())){w=Ext.Date.format(a.getValue(),mgr_dateFormat);
}var d="";var u=this.getZoomGraphToDate();if(!Ext.isEmpty(u)&&!Ext.isEmpty(u.getValue())){d=Ext.Date.format(u.getValue(),mgr_dateFormat);}var b="";var n=this.getZoomGraphComboFromhr();if(!Ext.isEmpty(n)&&!Ext.isEmpty(n.getValue())){b=n.getValue();}var g="";var c=this.getZoomGraphComboFrommin();if(!Ext.isEmpty(c)&&!Ext.isEmpty(c.getValue())){g=c.getValue();
}var f="";var x=this.getZoomGraphComboTohr();if(!Ext.isEmpty(x)&&!Ext.isEmpty(x.getValue())){f=x.getValue();}var t="";var r=this.getZoomGraphComboTomin();if(!Ext.isEmpty(r)&&!Ext.isEmpty(r.getValue())){t=r.getValue();}var s="F=getTimeJSON&P0=["+o+"]&P1=["+w+"]&P2=["+d+"]&P3=["+b+"]&P4=["+f+"]&P5=["+v+"]&P6=["+g+"]&P7=["+t+"]&C=1&calljson=true";
Ext.Ajax.request({url:remoteURL,scope:this,method:"POST",params:s,timeout:100000,success:function(y){if(y.status==200&&!Ext.isEmpty(y.responseText)){var A=y.responseText;var z=Ext.decode(A);this.setTime(z.getTime);}}});},enableDisableDateFields:function(b){var c=this.getZoomGraphFromDate();var e=this.getZoomGraphToDate();
var d=this.getZoomGraphComboFromhr();var a=this.getZoomGraphComboTohr();if(b){c.setDisabled(false);e.setDisabled(false);d.setDisabled(false);a.setDisabled(false);}else{c.setDisabled(true);e.setDisabled(true);d.setDisabled(true);a.setDisabled(true);}},setTime:function(f){var e=this.getZoomGraphFromDate();
var n=this.getZoomGraphToDate();var g=this.getZoomGraphComboFromhr();var c=this.getZoomGraphComboTohr();var a=this.getZoomGraphComboFrommin();var d=this.getZoomGraphComboTomin();var b=f.split("\t");time_line_obj=new Object();time_line_obj.starttime=b[0];e.setValue(b[6]);time_line_obj.endtime=b[1];n.setValue(b[7]);
if(!Ext.isEmpty(b[2])&&b[2].length==1){time_line_obj.starthr="0"+b[2];g.setValue("0"+b[8]);}else{time_line_obj.starthr=b[2];g.setValue(b[8]);}if(!Ext.isEmpty(b[4])&&b[4].length==1){time_line_obj.startmin="0"+b[4];a.setValue("0"+b[10]);}else{time_line_obj.startmin=b[4];a.setValue(b[10]);}if(!Ext.isEmpty(b[3])&&b[3].length==1){time_line_obj.endhr="0"+b[3];
c.setValue("0"+b[9]);}else{time_line_obj.endhr=b[3];c.setValue(b[9]);}if(!Ext.isEmpty(b[5])&&b[5].length==1){time_line_obj.endmin="0"+b[5];d.setValue("0"+b[11]);}else{time_line_obj.endmin=b[5];d.setValue(b[11]);}this.displayZoomGraph();},displayZoomGraph:function(){var b=this.getZoomGraphPanel();if(!Ext.isEmpty(b)&&!Ext.isEmpty(b.jsonData)){var H=b.jsonData;
var f="";var L="";var n="";var C="";var s="";var A="";var M="";var g="";var r="";var Q="";var E=this.getZoomGraphComboTimeline();if(!Ext.isEmpty(E)&&!Ext.isEmpty(E.getValue())){r=E.getValue();}var S=this.getZoomGraphComboMode();if(!Ext.isEmpty(S)&&!Ext.isEmpty(S.getValue())){f=S.getValue();}var v=this.getZoomGraphComboShow();
if(!Ext.isEmpty(v)&&!Ext.isEmpty(v.getValue())){L=v.getValue();}var K=this.getZoomGraphFromDate();if(!Ext.isEmpty(K)){if(!Ext.isEmpty(K.getValue())){if(!Ext.isEmpty(r)&&r=="Any"&&!Ext.isEmpty(time_line_obj)){if(!Ext.isEmpty(K)&&!Ext.isEmpty(K.getValue())){n=Ext.Date.format(K.getValue(),mgr_dateFormat);
}}else{n=Ext.Date.format(K.getValue(),mgr_dateFormat);}}else{if(!Ext.isEmpty(time_line_obj)){n=time_line_obj.starttime;}else{n=Ext.Date.format(K.getValue(),mgr_dateFormat);}}}var F=this.getZoomGraphToDate();if(!Ext.isEmpty(F)){if(!Ext.isEmpty(F.getValue())){if(!Ext.isEmpty(r)&&r=="Any"&&!Ext.isEmpty(time_line_obj)){if(!Ext.isEmpty(F)&&!Ext.isEmpty(F.getValue())){C=Ext.Date.format(F.getValue(),mgr_dateFormat);
}}else{C=Ext.Date.format(F.getValue(),mgr_dateFormat);}}else{if(!Ext.isEmpty(time_line_obj)){C=time_line_obj.endtime;}else{C=Ext.Date.format(F.getValue(),mgr_dateFormat);}}}var x=this.getZoomGraphComboFromhr();if(!Ext.isEmpty(x)){if(!Ext.isEmpty(x.getValue())){if(!Ext.isEmpty(r)&&r=="Any"&&!Ext.isEmpty(time_line_obj)){if(!Ext.isEmpty(x)&&!Ext.isEmpty(x.getValue())){s=x.getValue();
}}else{s=x.getValue();}}else{if(!Ext.isEmpty(time_line_obj)){s=time_line_obj.starthr;}else{s=x.getValue();}}}var o=this.getZoomGraphComboFrommin();if(!Ext.isEmpty(o)){if(!Ext.isEmpty(o.getValue())){if(!Ext.isEmpty(r)&&r=="Any"&&!Ext.isEmpty(time_line_obj)){if(!Ext.isEmpty(o)&&!Ext.isEmpty(o.getValue())){A=o.getValue();
}}else{A=o.getValue();}}else{if(!Ext.isEmpty(time_line_obj)){A=time_line_obj.startmin;}else{A=o.getValue();}}}var a=this.getZoomGraphComboTohr();if(!Ext.isEmpty(a)){if(!Ext.isEmpty(a.getValue())){if(!Ext.isEmpty(r)&&r=="Any"&&!Ext.isEmpty(time_line_obj)){if(!Ext.isEmpty(a)&&!Ext.isEmpty(a.getValue())){g=a.getValue();
}}else{g=a.getValue();}}else{if(!Ext.isEmpty(time_line_obj)){g=time_line_obj.endhr;}else{g=a.getValue();}}}var y=this.getZoomGraphComboTomin();if(!Ext.isEmpty(y)){if(!Ext.isEmpty(y.getValue())){if(!Ext.isEmpty(r)&&r=="Any"&&!Ext.isEmpty(time_line_obj)){if(!Ext.isEmpty(y)&&!Ext.isEmpty(y.getValue())){toMin=y.getValue();
}}else{toMin=y.getValue();}}else{if(!Ext.isEmpty(time_line_obj)){toMin=time_line_obj.tomin;}else{toMin=y.getValue();}}}var Q=K.getName();var u=Ext.Date.format(K.getValue(),"m/d/Y");var e=Ext.Date.format(F.getValue(),"m/d/Y");var D=parseInt(s);var c=parseInt(g);if(dateValidation(u,e,D,c,0,0)==-1){Ext.Msg.alert("Error",Q);
return;}var d="";if(!Ext.isEmpty(main_commonUrl)){d=main_commonUrl;}var w=this;var T=d.substring(0,d.indexOf("?"));var G=d.substring(d.indexOf("?")+1,d.length);if(G.indexOf("&priority=")<0){G=G+"&priority="+L;}var O=G.split("&");var R="";for(var P=0;P<O.length;P++){var t=O[P];if(!Ext.isEmpty(t)){var B=t.split("=");
if(!Ext.isEmpty(B)&&B[0]=="mode"){R=R+"&mode="+f;}else{if(!Ext.isEmpty(B)&&B[0]=="starttime"){R=R+"&starttime="+n;}else{if(!Ext.isEmpty(B)&&B[0]=="endtime"){R=R+"&endtime="+C;}else{if(!Ext.isEmpty(B)&&B[0]=="starthr"){R=R+"&starthr="+s;}else{if(!Ext.isEmpty(B)&&B[0]=="endhr"){R=R+"&endhr="+g;}else{if(!Ext.isEmpty(B)&&(B[0]=="time_line"||B[0]=="timeLine")){R=R+"&time_line="+r;
}else{if(!Ext.isEmpty(B)&&B[0]=="priority"){R=R+"&priority="+L;}else{R=R+"&"+t;}}}}}}}}}R=R+"&startmin="+A+"&endmin="+toMin;var z="/final/monitor/egDashBoardTimeline.jsp?graphType=Measuregraph&"+R+"&isZoomGraph=true&come_from=insideViewDashboard&graphId="+this.graphId;if(!Ext.isEmpty(T)&&T.indexOf("/final/servlet/com.egurkha.monitor.DDOverviewLineChart")>-1){z="/final/monitor/egDashBoardTimeline.jsp?graphType=DDOverviewGraph&"+R+"&isZoomGraph=true&come_from=insideViewDashboard&graphId="+this.graphId;
}else{if(!Ext.isEmpty(T)&&T.indexOf("/final/servlet/com.egurkha.monitor.DDTopview")>-1){z="/final/monitor/egDashBoardTimeline.jsp?graphType=ddGraph&"+R+"&isZoomGraph=true&come_from=insideViewDashboard&graphId="+this.graphId+"&time_line="+E.getValue();}}var J=documentView.getWidth();var I=documentView.getHeight();
z=z+"&screenWidth="+J+"&screenHeight="+I;var N=Ext.getCmp("showLegend").getValue();z=z+"&showLegend="+N;Ext.Ajax.request({url:z,scope:this,timeout:100000,success:function(U){var W=U.responseText;if(!Ext.isEmpty(W)){var V=Ext.decode(W);b.removeAll();b.createItems(V);}},failure:function(){}});}},displayBigGraph:function(a){var d="";
if(!Ext.isEmpty(a)&&!Ext.isEmpty(a.clickUrl)){d=a.clickUrl;this.commonUrl=d;main_commonUrl=d;this.commonOtherUrl="";}else{if(!Ext.isEmpty(a)&&!Ext.isEmpty(a.clickDDUrl)){this.commonUrl=a.clickDDUrl;main_commonUrl=a.clickDDUrl;}else{if(!Ext.isEmpty(a)&&!Ext.isEmpty(a.clickFCUrl)){if(!Ext.isEmpty(this.maxChart)&&this.maxChart=="FC"){d=a.clickFCUrl;
this.commonOtherUrl=a.clickDDDUrl;this.commonUrl="";}else{d=a.clickDDDUrl;this.commonOtherUrl=a.clickFCUrl;this.commonUrl=d;}main_commonUrl=d;}else{d=a;main_commonUrl=d;this.commonUrl=d;this.commonOtherUrl="";d=String(d);}}}var f=this;var e=d.substring(0,d.indexOf("?"));var r=d.substring(d.indexOf("?")+1,d.length);
var c=Ext.create("utilities.ZoomGraphPanel",{title:graphText,padding:0,closable:false,border:true,frame:false,modal:true,bodyPadding:0,ui:"zoomGraphPanel",width:this.getMain().getWidth(),height:this.getMain().getHeight(),autoScroll:true,scroll:true,resizable:false,ghost:false,renderTo:this.getMain().id,margin:"0",});
var b="/final/monitor/egDashBoardTimeline.jsp?graphType=Measuregraph&"+r+"&isZoomGraph=true&come_from=insideViewDashboard&graphId="+this.graphId;if(!Ext.isEmpty(e)&&e.indexOf("/final/servlet/com.egurkha.monitor.DDOverviewLineChart")>-1){b="/final/monitor/egDashBoardTimeline.jsp?graphType=DDOverviewGraph&"+r+"&isZoomGraph=true&come_from=insideViewDashboard&graphId="+this.graphId;
this.maxChart="common";}else{if(!Ext.isEmpty(e)&&e.indexOf("/final/servlet/com.egurkha.monitor.DDTopview")>-1){b="/final/monitor/egDashBoardTimeline.jsp?graphType=ddGraph&"+r+"&isZoomGraph=true&come_from=insideViewDashboard&graphId="+this.graphId;this.maxChart="FC";}}var t=documentView.getWidth();var o=documentView.getHeight();
b=b+"&screenWidth="+t+"&screenHeight="+o;if(!Ext.isEmpty(Ext.ComponentQuery.query("#showLegend")[0])){var n=Ext.ComponentQuery.query("#showLegend");var g=n.length;g=(g>0)?g-1:0;var s=Ext.ComponentQuery.query("#showLegend")[g].getValue();b=b+"&showLegend="+s;}Ext.Ajax.request({url:b,scope:this,timeout:280000,success:function(u){var w=u.responseText;
if(!Ext.isEmpty(w)){var v=Ext.decode(w);c.createItems(v);c.show();c.center();}},failure:function(){}});},displayBigDDData:function(){},hideResult:function(){},goTo:function(a){if(!Ext.isEmpty(a)&&!Ext.isEmpty(a.clickUrl)){window.location.href=a.clickUrl;}},dialOnclick:function(b){var a=Ext.getCmp(b);
if(!Ext.isEmpty(a)&&!Ext.isEmpty(a.clickUrl)){window.location.href=a.clickUrl;}},goToLayerModel:function(a){if(selectedInfo!=null&&selectedInfo!=""&&selectedInfo.indexOf("\\")>-1){selectedInfo=selectedInfo.replace("\\","\\\\");a=a.replace("\\","\\\\");}qstr=a+"&defaultSelectedTab="+selectedTab+lmUrl+"&info="+escape(selectedInfo);
window.location.href=qstr;},showBigGraph:function(a,b){b="ddGraph";me=this;if(!Ext.isEmpty(b)&&b=="ddGraph"){this.maxChart="FC";}else{this.maxChart="common";}var c=Ext.getCmp(a);me.displayBigGraph(c);},setDDDataURL:function(a){},submitForResult:function(){runningTest=[];var K=this;var s=Ext.getCmp("info_insideViewCombo");
var o=Ext.getCmp("componentName");var g=null;if(requestParams.activeTab=="System"||requestParams.activeTab=="system"){g=Ext.getCmp("subsystemSelect");}else{g=Ext.getCmp("subsystemNSelect");}var v=s.getValue();var D=s.getStore();var y="";var a="";var b=false;for(var x=0;x<D.getCount();x++){var E=D.getAt(x).data.value;
if(E==v){var f=D.getAt(x).data.state;var C=D.getAt(x).data.icon;s.changeselDispField("info_insideViewCombo",f);try{if(isVM){var t=D.getAt(x).data.host;y=t.substring(0,t.lastIndexOf(":"));a=t.substring(t.lastIndexOf(":")+1);b=true;}}catch(J){}break;}}var z=null;z=requestParams.pageUrl;if((z!=null)){var I="";
var H={},G,F,B,w;G=z.split("&");for(B=0;B<G.length;B++){F=G[B].split("=");if(F[0]!=null&&F[0]!=""&&F[0]=="hostName"){if(b){I=I+"&"+F[0]+"="+y;}else{I=I+"&"+F[0]+"="+F[1];}}else{if(F[0]!=null&&F[0]!=""&&F[0]=="compType"){if(b){I=I+"&"+F[0]+"="+a;}else{I=I+"&"+F[0]+"="+F[1];}}else{if(F[0]!=null&&F[0]!=""&&F[0]=="info"){I=I+"&"+F[0]+"="+escape(s.getValue());
}else{if(F[0]!=null&&F[0]!=""){I=I+"&"+F[0]+"="+F[1];}}}}}z=I.substring(1);if(!Ext.isEmpty(z)&&z.indexOf("info")<0){z=z+"&info="+encodeURIComponent(s.getValue());}if(!Ext.isEmpty(Ext.ComponentQuery.query("#showLegend")[0])){var u=Ext.ComponentQuery.query("#showLegend");var n=u.length;n=(n>0)?n-1:0;var c=Ext.ComponentQuery.query("#showLegend")[n].getValue();
z=z+"&showLegend="+c;}}if(!Ext.isEmpty(g)&&!Ext.isEmpty(g.getValue())&&(requestParams.activeTab=="System"||requestParams.activeTab=="Network"||requestParams.activeTab=="system"||requestParams.activeTab=="network")){z=z+"&subsystem="+g.getValue();}else{if(!Ext.isEmpty(requestParams.subSystem)&&(requestParams.activeTab=="System"||requestParams.activeTab=="Network"||requestParams.activeTab=="system"||requestParams.activeTab=="network")){if(requestParams.activeTab=="Network"&&(requestParams.subSystem=="Uptime"||requestParams.subSystem=="CPU"||requestParams.subSystem=="Memory"||requestParams.subSystem=="Disk")){requestParams.subSystem="Overview";
}if(requestParams.activeTab=="System"&&(requestParams.subSystem=="Tcp"||requestParams.subSystem=="Network"||requestParams.subSystem=="Overview")){requestParams.subSystem="Overview";}z=z+"&subsystem="+requestParams.subSystem;}}var e=Ext.getCmp("Measures");var r=Ext.getCmp("System");var d=Ext.getCmp("Network");
if(!Ext.isEmpty(z)&&requestParams.activeTab=="Measures"){var A=new Ext.LoadMask(e,{msg:"Please wait.."});A.show();if(requestParams.insideViewMFlag.toLowerCase()=="true"){K.showNewPanel(v,null,A);A.hide();}else{Ext.Ajax.request({url:z,method:"POST",timeout:280000,success:function(L){if(L.status==200&&!Ext.isEmpty(L.responseText)){var O=L.responseText;
var N=Ext.decode(O);var M=N["RESULTS"];K.showResult(M);A.hide();}}});}}else{if(!Ext.isEmpty(z)&&(requestParams.activeTab=="System"||requestParams.activeTab=="system")){var A=new Ext.LoadMask(r,{msg:"Please wait.."});A.show();Ext.Ajax.request({url:z,method:"POST",timeout:280000,success:function(L){if(L.status==200&&!Ext.isEmpty(L.responseText)){var O=L.responseText;
var M=Ext.decode(O);if(!Ext.isEmpty(M.errMsg)&&M.errMsg!=null&&M.errMsg!=undefined){var N='<div style="text-align:center;margin-top:15%"><div class="iconInformation" style="margin:0px auto"></div><div >'+M.errMsg+"</div></div>";r.removeAll();r.update(N);A.hide();}else{K.showSystemOrNetworkResult(M,s.getValue(),"System");
A.hide();}}}});}else{if(!Ext.isEmpty(z)&&requestParams.activeTab=="Network"){var A=new Ext.LoadMask(d,{msg:"Please wait.."});A.show();Ext.Ajax.request({url:z,method:"POST",timeout:280000,success:function(L){if(L.status==200&&!Ext.isEmpty(L.responseText)){var O=L.responseText;var M=Ext.decode(O);if(!Ext.isEmpty(M.errMsg)&&M.errMsg!=null&&M.errMsg!=undefined){var N='<div style="text-align:center;margin-top:15%"><div class="iconInformation" style="margin:0px auto"></div><div>'+M.errMsg+"</div></div>";
d.removeAll();d.update(N);A.hide();}else{K.showSystemOrNetworkResult(M,s.getValue(),"Network");A.hide();}}}});}}}task.delay(10);},afterMainRender:function(){var s=this;var e=Ext.getCmp("info_insideViewCombo");var n=e.getValue();var t=Ext.getCmp("Measures");var a=Ext.getCmp("System");var b=Ext.getCmp("Network");
var r=e.getStore();if(!Ext.isEmpty(r)&&r.getCount()>0){for(var g=0;g<r.getCount();g++){var d=r.getAt(g).data.value;var f=r.getAt(g).data.name;if(d==n&&f=="Not Applicable"){a.disable();b.disable();break;}else{if(f==n&&f=="Not Applicable"){a.disable();b.disable();break;}}}}if(Ext.isEmpty(this.getAlarmDetails())){Ext.create("insideViewDashboard.view.AlarmDetails");
}if(showBackBtn=="false"||showBackBtn==false){Ext.getCmp("back").hide();}if(!Ext.isEmpty(requestParams.pageUrl)&&requestParams.activeTab=="Measures"){mask=new Ext.LoadMask(t,{msg:"Please wait.."});mask.show();if(requestParams.insideViewMFlag.toLowerCase()=="true"){s.showNewPanel(n,null,mask);mask.hide();
}else{Ext.Ajax.request({url:requestParams.measuresUrl,method:"POST",timeout:280000,success:function(v){if(v.status==200&&!Ext.isEmpty(v.responseText)){var y=v.responseText;var x=Ext.decode(y);var w=x["RESULTS"];s.showResult(w);mask.hide();}}});}}else{if(!Ext.isEmpty(requestParams.pageUrl)&&(requestParams.activeTab=="System"||requestParams.activeTab=="system")){var c=new Ext.LoadMask(a,{msg:"Please wait.."});
c.show();Ext.Ajax.request({url:requestParams.systemUrl,method:"POST",timeout:280000,success:function(v){if(v.status==200&&!Ext.isEmpty(v.responseText)){var y=v.responseText;var w=Ext.decode(y);if(!Ext.isEmpty(w.errMsg)&&w.errMsg!=null&&w.errMsg!=undefined){var x='<div style="text-align:center;margin-top:15%"><div class="iconInformation" style="margin:0px auto"></div><div>'+w.errMsg+"</div></div>";
a.removeAll();a.update(x);c.hide();}else{s.showSystemOrNetworkResult(w,selectedInfo,"System");c.hide();}}}});}else{if(!Ext.isEmpty(requestParams.pageUrl)&&requestParams.activeTab=="Network"){var o=new Ext.LoadMask(b,{msg:"Please wait.."});o.show();Ext.Ajax.request({url:requestParams.networkUrl,method:"POST",timeout:280000,success:function(v){if(v.status==200&&!Ext.isEmpty(v.responseText)){var y=v.responseText;
var w=Ext.decode(y);if(!Ext.isEmpty(w.errMsg)&&w.errMsg!=null&&w.errMsg!=undefined){var x='<div style="text-align:center;margin-top:15%"><div class="iconInformation" style="margin:0px auto"></div><div>'+w.errMsg+"</div></div>";b.removeAll();b.update(x);o.hide();}else{s.showSystemOrNetworkResult(w,selectedInfo,"Network");
o.hide();}}}});}}}var u=Ext.getCmp("back");u.setText(backButtonText);task.delay(10);},callRemoteScript:function(c,e,a,d){var b=this;Ext.Ajax.request({url:a,method:"POST",async:false,timeout:280000,params:d,success:function(f){if(f.status==200&&!Ext.isEmpty(f.responseText)){var n=f.responseText;var g=Ext.decode(n);
c.findField(e).suspendEvents(true);c.findField(e).getStore().loadRawData(g);c.findField(e).setValue(g[0]["valueField"]);if(e=="State"){c.findField(e).getStore().insert(0,{"displayField":otherStates["AllStates"],"valueField":"AllStates"});c.findField(e).getStore().insert(1,{"displayField":otherStates["Abnormal"],"valueField":"Abnormal"});
c.findField(e).setValue("AllStates");}c.findField(e).resumeEvents();}}});},loadScreenLabels:function(c,a){var d="";for(var b in a){d=!Ext.isEmpty(c.findField(b))?c.findField(b):Ext.getCmp(b);if(d.getXType()!="label"){c.findField(b).setFieldLabel(a[b]);}else{Ext.getCmp(b).setText(a[b]);}}},openTestInfoWindow:function(a){var b=this;
Ext.Ajax.request({url:a,timeout:280000,disableCaching:false,success:function(c){var d=Ext.decode(c.responseText);var e=b.getTestInfo();csrfToken=d.strCsrfToken;if(e==null||Ext.isEmpty(e)){e=Ext.widget("testinfo");}e.setTestDetailsData(d);b.getTestInfoTableContainer().removeAll();if(d.isAdminLinkEnabled){b.getTestInfoTableContainer().add(b.createTableViewForThreshold(testStatusInfoT1,testStatusInfoT2,testStatusInfoT3,testStatusInfoT4,testStatusInfoT5,testStatusInfoT6," ",d.jsonArrayValue));
}else{b.getTestInfoTableContainer().add(b.createTableViewForThreshold(testStatusInfoT1,testStatusInfoT2,testStatusInfoT3,testStatusInfoT4,testStatusInfoT5,testStatusInfoT6,d.jsonArrayValue));}if(!Ext.isEmpty(d.measureDescription)){b.getTestInfoTableContainer().add(b.createTableView(testStatusInfoT7,d.measureDescription));
}e.show();},});},configureMainRender:function(v,f,r){var u=this;var a="";if(!Ext.isEmpty(f)&&f!=undefined&&f=="DefaultDescriptor"){var d=v.hiddenObj.strTestName;var w=v.hiddenObj.strDescName;var c=v.hiddenObj.measCount;var n=this.getHiddenFields(v.hiddenDataObj,r.trim());a="/final/admin/DefaultThreshold/data/EgConfigureDescThresholdsJson.jsp?referrerModule=monitor&testName="+d+"&descName="+w+"&measCount="+c+"&com.eg.CSRF_NONCE="+csrfToken;
if(!Ext.isEmpty(n)){a+="&"+n;}}else{if(!Ext.isEmpty(f)&&f!=undefined&&f=="Global"){var n=this.getHiddenFields(v.hiddenDataObj,r.trim());a="/final/admin/DefaultThreshold/data/EgConfigureThresholdsJson.jsp?referrerModule=monitor&";if(!Ext.isEmpty(n)){a+=n;}a=a+"&com.eg.CSRF_NONCE="+csrfToken;}else{if(!Ext.isEmpty(f)&&f!=undefined&&f=="Group"){var t=v.hiddenObj.server;
var b=v.hiddenObj.component;var d=v.hiddenObj.testName;var n=this.getHiddenFieldsForMeasure(v.hiddenDataObj,r.trim());a="/final/admin/GroupThreshold/data/EgConfigureGroupThresholdsJson.jsp?referrerModule=monitor&specthreshpage=yes&testName="+d+"&strServer="+t+"&component="+b+"&comeFrom=admin"+"&com.eg.CSRF_NONCE="+csrfToken;
if(!Ext.isEmpty(n)){a+="&"+n;}}else{params="";var g="";var t=v.hiddenObj.componentType;var b=v.hiddenObj.componentName;var d=v.hiddenObj.testName;var s=v.hiddenObj.descriptorName;var o=v.hiddenObj.isRefine;var e=v.hiddenObj.comeFrom;if(!Ext.isEmpty(t)&&t!=undefined){g="componentType="+t+"&server="+t;
}if(!Ext.isEmpty(b)&&b!=undefined){g+="&componentName="+encodeURIComponent(b);}if(!Ext.isEmpty(d)&&d!=undefined){g+="&testName="+d;}if(!Ext.isEmpty(s)&&s!=undefined){g+="&descriptorName="+encodeURIComponent(s);}if(!Ext.isEmpty(f)&&f!=undefined){if(f=="Specific"||f=="Descriptor"){g+="&from=specificTest";
}else{g+="&from=defaultTest";}}if(!Ext.isEmpty(o)&&o!=undefined){g+="&isRefine="+o;}if(!Ext.isEmpty(e)&&e!=undefined){g+="&comeFrom="+e;}if(g!=null&&g.length>0){params=g;}a="/final/admin/SpecificThreshold/data/EgConfigureSpecificThresholdsJson.jsp?referrerModule=monitor&"+params+"&com.eg.CSRF_NONCE="+csrfToken;
var n=this.getHiddenFields(v.hiddenDataObj,r.trim());if(!Ext.isEmpty(n)){a+="&"+n;}}}}Ext.Ajax.request({url:a,method:"POST",timeout:280000,scope:this,success:function(B){var E=B.responseText;publicJson=Ext.decode(E);var S=u.getConfigureThresholds();if(S==null||Ext.isEmpty(S)){S=Ext.widget("configurethresholds");
S.show();}var z="";if(f=="Specific"||f=="Descriptor"||f=="Default"){z=publicJson["screenLabels"]["disp_title"];}else{z=publicJson["screenLabels"]["test_description"];}u.clearAllThresholdsValues();if(Ext.getCmp("allMeasureContainer").isVisible()){Ext.getCmp("allMeasureContainer").hide();}var J=Ext.getCmp("testDescriptionId");
var x=publicJson["alarmPolicyArr"];var Z=publicJson["minThreshObj"];var N=publicJson["maxThreshObj"];var F=publicJson["selectedAlarmType"];var M=publicJson["selectedAlarmDescription"];var G=publicJson["isNegativeValuesAllowed"];var A=publicJson["isGlobalThresholds"];if(A){Ext.getCmp("minAutoCheck").hide();
Ext.getCmp("minAutoFieldContainer").hide();Ext.getCmp("maxAutoCheck").hide();Ext.getCmp("maxAutoFieldContainer").hide();}var ah=Z.minStaticOption;var T=Z.minStaticBlock;if(ah!=null&&!Ext.isEmpty(ah)&&ah=="selected"){var U=Z.absMinCritical;var ac=Z.absMinMajor;var W=Z.absMinMinor;Ext.getCmp("minStaticCheck").setValue(false);
Ext.getCmp("absMinCritical").setValue(U);Ext.getCmp("absMinMajor").setValue(ac);Ext.getCmp("absMinMinor").setValue(W);}if(!A){if(!G){var I=Z.minAutomaticOption;var ag=Z.minAutomaticBlock;if(I!=null&&!Ext.isEmpty(I)&&I=="selected"){var K=Z.relMinCritical;var af=Z.relMinMajor;var Y=Z.relMinMinor;Ext.getCmp("minAutoCheck").show();
Ext.getCmp("minAutoFieldContainer").show();Ext.getCmp("minAutoCheck").setValue(false);Ext.getCmp("relMinCritical").setValue(K);Ext.getCmp("relMinCriticalText").setValue(K);Ext.getCmp("relMinMajor").setValue(af);Ext.getCmp("relMinMajorText").setValue(af);Ext.getCmp("relMinMinor").setValue(Y);Ext.getCmp("relMinMinorText").setValue(Y);
}}}var C=N.maxStaticOption;var H=N.maxStaticBlock;if(C!=null&&!Ext.isEmpty(C)&&C=="selected"){var D=N.absMaxCritical;var ai=N.absMaxMajor;var ab=N.absMaxMinor;Ext.getCmp("maxStaticCheck").setValue(false);Ext.getCmp("absMaxCritical").setValue(D);Ext.getCmp("absMaxMajor").setValue(ai);Ext.getCmp("absMaxMinor").setValue(ab);
}if(!A){if(!G){var V=N.maxAutomaticOption;var L=N.maxAutomaticBlock;if(V!=null&&!Ext.isEmpty(V)&&V=="selected"){var ae=N.relMaxCritical;var y=N.relMaxMajor;var ad=N.relMaxMinor;Ext.getCmp("maxAutoCheck").show();Ext.getCmp("maxAutoFieldContainer").show();Ext.getCmp("maxAutoCheck").setValue(false);Ext.getCmp("relMaxCritical").setValue(ae);
Ext.getCmp("relMaxCriticalText").setValue(ae);Ext.getCmp("relMaxMajor").setValue(y);Ext.getCmp("relMaxMajorText").setValue(y);Ext.getCmp("relMaxMinor").setValue(ad);Ext.getCmp("relMaxMinorText").setValue(ad);}}}var Q=publicJson["isHostTest"];J.update("<center>"+z+"</center>");var P=Ext.getCmp("alarmDispField");
var aa=Ext.getCmp("alarmPolicyCombo");if(x!=null&&!Ext.isEmpty(x)){P.el.animate({opacity:1});aa.getStore().suspendEvents(true);aa.getStore().removeAll();aa.getStore().loadRawData(x);aa.getStore().resumeEvents();if(F!=null&&!Ext.isEmpty(F)){aa.setValue(F);}else{aa.setValue(x[0].valueField);}if(M!=null&&!Ext.isEmpty(M)){P.setValue(M);
}else{var X=publicJson["alarmPolicyDescriptionObj"][x[0].valueField];P.setValue(X);}}var R=publicJson["applyOtherMeasure_check_box"];if(!Ext.isEmpty(R)&&R!=undefined&&R=="true"){var O=publicJson["allMeasureCheck"];if(O!=null&&O!="undefined"&&(O=="true")){Ext.getCmp("allMeasureContainer").show();}}}});
},createTableView:function(){var g=Array.prototype.slice.call(arguments);var e=g.pop();var d='<div class="x-table"><table width="100%" class="x-grid-table" cellspacing="0" cellpadding="0" border="0"><thead ><tr class="x-grid-row">';for(h=0;h<g.length;h++){d+='<th class=" x-grid-cell"><div class="x-grid-cell-inner" >'+g[h]+"</div></th>";
}d+="</tr></thead>";d+="<tbody>";if(typeof e=="string"){d+='<tr class="x-grid-row"><td class=" x-grid-cell" wrap><div class="x-grid-cell-inner">'+e+"</div></td></tr>";}else{if(!Ext.isEmpty(e)){for(p=0;p<e.length;p++){var f=e[p];var c=[];for(var b in f){c.push(b);}d+='<tr class="x-grid-row">';for(q=0;
q<c.length;q++){d+='<td class=" x-grid-cell"><div class="x-grid-cell-inner">'+f[c[q]]+"</div></td>";}d+="</tr>";}}else{return false;}}d+="</tbody></table></div>";var a={xtype:"panel",cls:"block1",frame:true,border:true,margin:"0 0 10 0",html:d};return a;},autoRefreshUrl:function(){var J=this;var r=Ext.getCmp("info_insideViewCombo");
var n=Ext.getCmp("componentName");var g=null;if(requestParams.activeTab=="System"){g=Ext.getCmp("subsystemSelect");}else{g=Ext.getCmp("subsystemNSelect");}var u=r.getValue();var t=u;var B=r.getStore();var y="";var b="";var c=false;for(var w=0;w<B.getCount();w++){var D=B.getAt(w).data.value;var C=B.getAt(w).data.name;
if(D==u){var f=B.getAt(w).data.state;var A=B.getAt(w).data.icon;r.changeselDispField("info_insideViewCombo",f);try{if(isVM){var s=B.getAt(w).data.host;y=s.substring(0,s.lastIndexOf(":"));b=s.substring(s.lastIndexOf(":")+1);c=true;}}catch(I){}break;}else{if(C==u){t=D;var f=B.getAt(w).data.state;var A=B.getAt(w).data.icon;
r.changeselDispField("info_insideViewCombo",f);try{if(isVM){var s=B.getAt(w).data.host;y=s.substring(0,s.lastIndexOf(":"));b=s.substring(s.lastIndexOf(":")+1);c=true;}}catch(I){}break;}}}var x=null;var a=false;if(!Ext.isEmpty(Ext.ComponentQuery.query("#showLegend")[0])){a=Ext.ComponentQuery.query("#showLegend")[0].getValue();
}x=requestParams.pageUrl;try{if(x!=null&&!Ext.isEmpty(x)){var H="";var G={},F,E,z,v;F=x.split("&");for(z=0;z<F.length;z++){E=F[z].split("=");if(E[0]!=null&&E[0]!=""&&E[0]=="hostName"){if(c){H=H+"&"+E[0]+"="+y;}}else{if(E[0]!=null&&E[0]!=""&&E[0]=="compType"){if(c){H=H+"&"+E[0]+"="+b;}}else{if(E[0]!=null&&E[0]!=""){H=H+"&"+E[0]+"="+E[1];
}}}}x=H.substring(1);}}catch(I){}x=x+"&info="+encodeURIComponent(t);x=x+"&showLegend="+a;if(!Ext.isEmpty(g)&&!Ext.isEmpty(g.getValue())&&(requestParams.activeTab=="System"||requestParams.activeTab=="Network")){x=x+"&subsystem="+g.getValue();}else{if(!Ext.isEmpty(requestParams.subSystem)&&(requestParams.activeTab=="System"||requestParams.activeTab=="Network")){x=x+"&subsystem="+requestParams.subSystem;
}}var e=Ext.getCmp("Measures");var o=Ext.getCmp("System");var d=Ext.getCmp("Network");if(!Ext.isEmpty(x)&&requestParams.activeTab=="Measures"){if(requestParams.insideViewMFlag.toLowerCase()=="true"){J.showNewPanel(u,true,mask);}else{Ext.Ajax.request({url:x,timeout:280000,method:"POST",success:function(K){if(K.status==200&&!Ext.isEmpty(K.responseText)){var N=K.responseText;
var M=Ext.decode(N);var L=M["RESULTS"];J.showResult(L);}}});}}else{if(!Ext.isEmpty(x)&&requestParams.activeTab=="System"){Ext.Ajax.request({url:x,timeout:280000,method:"POST",success:function(K){if(K.status==200&&!Ext.isEmpty(K.responseText)){var N=K.responseText;var L=Ext.decode(N);if(!Ext.isEmpty(L.errMsg)&&L.errMsg!=null&&L.errMsg!=undefined){var M='<div style="text-align:center;margin-top:15%"><div class="iconInformation" style="margin:0px auto"></div><div>'+L.errMsg+"</div></div>";
o.removeAll();o.update(M);}else{J.showSystemOrNetworkResult(L,r.getValue(),"System");}}}});}else{if(!Ext.isEmpty(x)&&requestParams.activeTab=="Network"){Ext.Ajax.request({url:x,method:"POST",timeout:280000,success:function(K){if(K.status==200&&!Ext.isEmpty(K.responseText)){var N=K.responseText;var L=Ext.decode(N);
if(!Ext.isEmpty(L.errMsg)&&L.errMsg!=null&&L.errMsg!=undefined){var M='<div style="text-align:center;margin-top:15%"><div class="iconInformation" style="margin:0px auto"></div><div>'+L.errMsg+"</div></div>";d.removeAll();d.update(M);}else{J.showSystemOrNetworkResult(L,r.getValue(),"Network");}}}});}}}},maxRelCriticalSlider:function(){Ext.getCmp("relMaxCriticalText").setValue(Ext.getCmp("relMaxCritical").getValue());
},maxRelMajorSlider:function(){Ext.getCmp("relMaxMajorText").setValue(Ext.getCmp("relMaxMajor").getValue());},maxRelMinorSlider:function(){Ext.getCmp("relMaxMinorText").setValue(Ext.getCmp("relMaxMinor").getValue());},minRelCriticalSlider:function(){Ext.getCmp("relMinCriticalText").setValue(Ext.getCmp("relMinCritical").getValue());
},minRelMajorSlider:function(){Ext.getCmp("relMinMajorText").setValue(Ext.getCmp("relMinMajor").getValue());},minRelMinorSlider:function(){Ext.getCmp("relMinMinorText").setValue(Ext.getCmp("relMinMinor").getValue());},getHiddenFields:function(a,c){var d=a[c.trim()];var b="";for(key in d){b+=key+"="+encodeURIComponent(d[key])+"&";
}return b;},getHiddenFieldsForMeasure:function(a,c){var d=a[c.trim()];var b="";for(key in d){b+=key+"="+encodeURIComponent(d[key])+"&";}return b;},configureMainRender:function(v,f,r){var u=this;var a="";if(!Ext.isEmpty(f)&&f!=undefined&&f=="DefaultDescriptor"){var d=v.hiddenObj.strTestName;var w=v.hiddenObj.strDescName;
var c=v.hiddenObj.measCount;var n=this.getHiddenFields(v.hiddenDataObj,r.trim());a="/final/admin/DefaultThreshold/data/EgConfigureDescThresholdsJson.jsp?referrerModule=monitor&testName="+d+"&descName="+w+"&measCount="+c+"&com.eg.CSRF_NONCE="+csrfToken;if(!Ext.isEmpty(n)){a+="&"+n;}}else{if(!Ext.isEmpty(f)&&f!=undefined&&f=="Global"){var n=this.getHiddenFields(v.hiddenDataObj,r.trim());
a="/final/admin/DefaultThreshold/data/EgConfigureThresholdsJson.jsp?referrerModule=monitor&";if(!Ext.isEmpty(n)){a+=n;}a=a+"&com.eg.CSRF_NONCE="+csrfToken;}else{if(!Ext.isEmpty(f)&&f!=undefined&&f=="Group"){var t=v.hiddenObj.server;var b=v.hiddenObj.component;var d=v.hiddenObj.testName;var n=this.getHiddenFieldsForMeasure(v.hiddenDataObj,r.trim());
a="/final/admin/GroupThreshold/data/EgConfigureGroupThresholdsJson.jsp?referrerModule=monitor&specthreshpage=yes&testName="+d+"&strServer="+t+"&component="+b+"&comeFrom=admin"+"&com.eg.CSRF_NONCE="+csrfToken;if(!Ext.isEmpty(n)){a+="&"+n;}}else{params="";var g="";var t=v.hiddenObj.componentType;var b=v.hiddenObj.componentName;
var d=v.hiddenObj.testName;var s=v.hiddenObj.descriptorName;var o=v.hiddenObj.isRefine;var e=v.hiddenObj.comeFrom;if(!Ext.isEmpty(t)&&t!=undefined){g="componentType="+t+"&server="+t;}if(!Ext.isEmpty(b)&&b!=undefined){g+="&componentName="+encodeURIComponent(b);}if(!Ext.isEmpty(d)&&d!=undefined){g+="&testName="+d;
}if(!Ext.isEmpty(s)&&s!=undefined){g+="&descriptorName="+encodeURIComponent(s);}if(!Ext.isEmpty(f)&&f!=undefined){if(f=="Specific"||f=="Descriptor"){g+="&from=specificTest";}else{g+="&from=defaultTest";}}if(!Ext.isEmpty(o)&&o!=undefined){g+="&isRefine="+o;}if(!Ext.isEmpty(e)&&e!=undefined){g+="&comeFrom="+e;
}if(g!=null&&g.length>0){params=g;}a="/final/admin/SpecificThreshold/data/EgConfigureSpecificThresholdsJson.jsp?referrerModule=monitor&"+params+"&com.eg.CSRF_NONCE="+csrfToken;var n=this.getHiddenFields(v.hiddenDataObj,r.trim());if(!Ext.isEmpty(n)){a+="&"+n;}}}}Ext.Ajax.request({url:a,method:"POST",scope:this,timeout:280000,success:function(B){var E=B.responseText;
publicJson=Ext.decode(E);var S=u.getConfigureThresholds();if(S==null||Ext.isEmpty(S)){S=Ext.widget("configurethresholds");S.show();}u.getConfigureThresholds().show();var z="";if(f=="Specific"||f=="Descriptor"||f=="Default"){z=publicJson["screenLabels"]["disp_title"];}else{z=publicJson["screenLabels"]["test_description"];
}u.clearAllThresholdsValues();if(Ext.getCmp("allMeasureContainer").isVisible()){Ext.getCmp("allMeasureContainer").hide();}var J=Ext.getCmp("testDescriptionId");var x=publicJson["alarmPolicyArr"];var Z=publicJson["minThreshObj"];var N=publicJson["maxThreshObj"];var F=publicJson["selectedAlarmType"];var M=publicJson["selectedAlarmDescription"];
var G=publicJson["isNegativeValuesAllowed"];var A=publicJson["isGlobalThresholds"];if(A){Ext.getCmp("minAutoCheck").hide();Ext.getCmp("minAutoFieldContainer").hide();Ext.getCmp("maxAutoCheck").hide();Ext.getCmp("maxAutoFieldContainer").hide();}var ah=Z.minStaticOption;var T=Z.minStaticBlock;if(ah!=null&&!Ext.isEmpty(ah)&&ah=="selected"){var U=Z.absMinCritical;
var ac=Z.absMinMajor;var W=Z.absMinMinor;Ext.getCmp("minStaticCheck").setValue(false);Ext.getCmp("absMinCritical").setValue(U);Ext.getCmp("absMinMajor").setValue(ac);Ext.getCmp("absMinMinor").setValue(W);}if(!A){if(!G){var I=Z.minAutomaticOption;var ag=Z.minAutomaticBlock;if(I!=null&&!Ext.isEmpty(I)&&I=="selected"){var K=Z.relMinCritical;
var af=Z.relMinMajor;var Y=Z.relMinMinor;Ext.getCmp("minAutoCheck").show();Ext.getCmp("minAutoFieldContainer").show();Ext.getCmp("minAutoCheck").setValue(false);Ext.getCmp("relMinCritical").setValue(K);Ext.getCmp("relMinCriticalText").setValue(K);Ext.getCmp("relMinMajor").setValue(af);Ext.getCmp("relMinMajorText").setValue(af);
Ext.getCmp("relMinMinor").setValue(Y);Ext.getCmp("relMinMinorText").setValue(Y);}}}var C=N.maxStaticOption;var H=N.maxStaticBlock;if(C!=null&&!Ext.isEmpty(C)&&C=="selected"){var D=N.absMaxCritical;var ai=N.absMaxMajor;var ab=N.absMaxMinor;Ext.getCmp("maxStaticCheck").setValue(false);Ext.getCmp("absMaxCritical").setValue(D);
Ext.getCmp("absMaxMajor").setValue(ai);Ext.getCmp("absMaxMinor").setValue(ab);}if(!A){if(!G){var V=N.maxAutomaticOption;var L=N.maxAutomaticBlock;if(V!=null&&!Ext.isEmpty(V)&&V=="selected"){var ae=N.relMaxCritical;var y=N.relMaxMajor;var ad=N.relMaxMinor;Ext.getCmp("maxAutoCheck").show();Ext.getCmp("maxAutoFieldContainer").show();
Ext.getCmp("maxAutoCheck").setValue(false);Ext.getCmp("relMaxCritical").setValue(ae);Ext.getCmp("relMaxCriticalText").setValue(ae);Ext.getCmp("relMaxMajor").setValue(y);Ext.getCmp("relMaxMajorText").setValue(y);Ext.getCmp("relMaxMinor").setValue(ad);Ext.getCmp("relMaxMinorText").setValue(ad);}}}var Q=publicJson["isHostTest"];
J.update("<center>"+z+"</center>");var P=Ext.getCmp("alarmDispField");var aa=Ext.getCmp("alarmPolicyCombo");if(x!=null&&!Ext.isEmpty(x)){P.el.animate({opacity:1});aa.getStore().suspendEvents(true);aa.getStore().removeAll();aa.getStore().loadRawData(x);aa.getStore().resumeEvents();if(F!=null&&!Ext.isEmpty(F)){aa.setValue(F);
}else{aa.setValue(x[0].valueField);}if(M!=null&&!Ext.isEmpty(M)){P.setValue(M);}else{var X=publicJson["alarmPolicyDescriptionObj"][x[0].valueField];P.setValue(X);}}var R=publicJson["applyOtherMeasure_check_box"];if(!Ext.isEmpty(R)&&R!=undefined&&R=="true"){var O=publicJson["allMeasureCheck"];if(O!=null&&O!="undefined"&&(O=="true")){Ext.getCmp("allMeasureContainer").show();
}}}});},clearAllThresholdsValues:function(){Ext.getCmp("minStaticCheck").setValue(true);Ext.getCmp("absMinCritical").setValue("");Ext.getCmp("absMinMajor").setValue("");Ext.getCmp("absMinMinor").setValue("");Ext.getCmp("minAutoCheck").setValue(true);Ext.getCmp("relMinCritical").setValue("");Ext.getCmp("relMinCriticalText").setValue("");
Ext.getCmp("relMinMajor").setValue("");Ext.getCmp("relMinMajorText").setValue("");Ext.getCmp("relMinMinor").setValue("");Ext.getCmp("relMinMinorText").setValue("");Ext.getCmp("maxStaticCheck").setValue(true);Ext.getCmp("absMaxCritical").setValue("");Ext.getCmp("absMaxMajor").setValue("");Ext.getCmp("absMaxMinor").setValue("");
Ext.getCmp("maxAutoCheck").setValue(true);Ext.getCmp("relMaxCritical").setValue("");Ext.getCmp("relMaxCriticalText").setValue("");Ext.getCmp("relMaxMajor").setValue("");Ext.getCmp("relMaxMajorText").setValue("");Ext.getCmp("relMaxMinor").setValue("");Ext.getCmp("relMaxMinorText").setValue("");},minStaticCheckChange:function(d,n){Ext.getCmp("allMeasureContainer").hide();
var o=d.ownerCt;Ext.Array.forEach(o.query("textfield"),this.minStaticFieldChange,this);Ext.Array.forEach(o.query("textfield"),function(r){r.setDisabled(n);if(!Ext.isIE6){r.el.animate({opacity:n?0.3:1});}});var f=false;var c=publicJson["applyOtherMeasure_check_box"];if(c!=null&&c!="undefined"&&(c=="true")){f=true;
}if(n&&f){var g=Ext.getCmp("minStaticCheck").getValue();var b=Ext.getCmp("minAutoCheck").getValue();var a=Ext.getCmp("maxStaticCheck").getValue();var e=Ext.getCmp("maxAutoCheck").getValue();if(g&&b&&a&&e){Ext.getCmp("allMeasureContainer").show();}else{Ext.getCmp("allMeasureContainer").hide();}}else{Ext.getCmp("absMinCritical").setValue("-");
Ext.getCmp("absMinMajor").setValue("-");Ext.getCmp("absMinMinor").setValue("-");Ext.getCmp("absMaxCritical").setValue("-");Ext.getCmp("absMaxMajor").setValue("-");Ext.getCmp("absMaxMinor").setValue("-");}},minAutoCheckChange:function(d,n){Ext.getCmp("allMeasureContainer").hide();var o=d.ownerCt;Ext.Array.forEach(o.query("slider"),this.minAutoFieldChange,this);
Ext.Array.forEach(o.query("slider"),function(r){r.setDisabled(n);if(!Ext.isIE6){r.el.animate({opacity:n?0.3:1});}});Ext.Array.forEach(o.query("displayfield"),this.minAutoFieldChange,this);Ext.Array.forEach(o.query("displayfield"),function(r){if(r.id=="minThreshDisplayField"){}else{r.setDisabled(n);if(!Ext.isIE6){r.el.animate({opacity:n?0.3:1});
}}});var f=false;var c=publicJson["applyOtherMeasure_check_box"];if(c!=null&&c!="undefined"&&(c=="true")){f=true;}if(n&&f){var g=Ext.getCmp("minStaticCheck").getValue();var b=Ext.getCmp("minAutoCheck").getValue();var a=Ext.getCmp("maxStaticCheck").getValue();var e=Ext.getCmp("maxAutoCheck").getValue();
if(g&&b&&a&&e){Ext.getCmp("allMeasureContainer").show();}else{Ext.getCmp("allMeasureContainer").hide();}}},maxStaticCheckChange:function(d,n){Ext.getCmp("allMeasureContainer").hide();var o=d.ownerCt;Ext.Array.forEach(o.query("textfield"),this.maxStaticFieldChange,this);Ext.Array.forEach(o.query("textfield"),function(r){r.setDisabled(n);
if(!Ext.isIE6){r.el.animate({opacity:n?0.3:1});}});var f=false;var c=publicJson["applyOtherMeasure_check_box"];if(c!=null&&c!="undefined"&&(c=="true")){f=true;}if(n&&f){var g=Ext.getCmp("minStaticCheck").getValue();var b=Ext.getCmp("minAutoCheck").getValue();var a=Ext.getCmp("maxStaticCheck").getValue();
var e=Ext.getCmp("maxAutoCheck").getValue();if(g&&b&&a&&e){Ext.getCmp("allMeasureContainer").show();}else{Ext.getCmp("allMeasureContainer").hide();}}else{Ext.getCmp("absMinCritical").setValue("-");Ext.getCmp("absMinMajor").setValue("-");Ext.getCmp("absMinMinor").setValue("-");Ext.getCmp("absMaxCritical").setValue("-");
Ext.getCmp("absMaxMajor").setValue("-");Ext.getCmp("absMaxMinor").setValue("-");}},maxAutoCheckChange:function(d,n){Ext.getCmp("allMeasureContainer").hide();var o=d.ownerCt;Ext.Array.forEach(o.query("slider"),this.maxAutoFieldChange,this);Ext.Array.forEach(o.query("slider"),function(r){r.setDisabled(n);
if(!Ext.isIE6){r.el.animate({opacity:n?0.3:1});}});Ext.Array.forEach(o.query("displayfield"),this.minAutoFieldChange,this);Ext.Array.forEach(o.query("displayfield"),function(r){if(r.id=="maxThreshDisplayField"){}else{r.setDisabled(n);if(!Ext.isIE6){r.el.animate({opacity:n?0.3:1});}}});var f=false;var c=publicJson["applyOtherMeasure_check_box"];
if(c!=null&&c!="undefined"&&(c=="true")){f=true;}if(n&&f){var g=Ext.getCmp("minStaticCheck").getValue();var b=Ext.getCmp("minAutoCheck").getValue();var a=Ext.getCmp("maxStaticCheck").getValue();var e=Ext.getCmp("maxAutoCheck").getValue();if(g&&b&&a&&e){Ext.getCmp("allMeasureContainer").show();}else{Ext.getCmp("allMeasureContainer").hide();
}}},minStaticFieldChange:function(b){var a=Ext.getCmp("minStaticCheck").getValue();copyField=Ext.getCmp(b.id);if(a){copyField.reset();}else{copyField.clearInvalid();}},maxStaticFieldChange:function(b){var a=Ext.getCmp("maxStaticCheck").getValue();copyField=Ext.getCmp(b.id);if(a){copyField.reset();}else{copyField.clearInvalid();
}},minAutoFieldChange:function(b){var a=Ext.getCmp("minAutoCheck").getValue();copyField=Ext.getCmp(b.id);if(a){copyField.reset();}else{copyField.clearInvalid();}},maxAutoFieldChange:function(b){var a=Ext.getCmp("maxAutoCheck").getValue();copyField=Ext.getCmp(b.id);if(a){copyField.reset();}else{copyField.clearInvalid();
}},alarmPolicyChange:function(){var a=Ext.getCmp("alarmPolicyCombo").getValue();var b=publicJson["alarmPolicyDescriptionObj"][a];Ext.getCmp("alarmDispField").setValue(b);},applyThresholdsData:function(){var W=true;var v=publicJson["hiddenObj"]["testName"];if(v=="null"){W=false;return false;}var ar=publicJson["hiddenObj"]["measure"];
if(ar=="null"){W=false;return false;}var O="mix";var ak="-1";var G="-1";var ac=Ext.getCmp("alarmPolicyCombo").getValue();var ae="HML";var ad="-";var P="-";var A="-";var D=Ext.getCmp("minStaticCheck").getValue();var w=publicJson["isNegativeValuesAllowed"];if(!D){ad=Ext.getCmp("absMinCritical").getValue();
P=Ext.getCmp("absMinMajor").getValue();A=Ext.getCmp("absMinMinor").getValue();if(!w){if(!checkValidValue(ad)){Ext.Msg.show({title:pageName,msg:staticMinCriticalErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();}});W=false;return false;}else{if(ad!="-"){if(!checkNonNegativeFormat(ad)){Ext.Msg.show({title:pageName,msg:staticMinCriticalErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();
}});W=false;return false;}}}if(!checkValidValue(P)){Ext.Msg.show({title:pageName,msg:staticMinMajorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();}});W=false;return false;}else{if(P!="-"){if(!checkNonNegativeFormat(P)){Ext.Msg.show({title:pageName,msg:staticMinMajorErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();
}});W=false;return false;}}}if(!checkValidValue(A)){Ext.Msg.show({title:pageName,msg:staticMinMinorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();}});W=false;return false;}else{if(A!="-"){if(!checkNonNegativeFormat(A)){Ext.Msg.show({title:pageName,msg:staticMinMinorErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();
}});W=false;return false;}}}var U=checkNegativeValue(ad);if(U){Ext.Msg.show({title:pageName,msg:errMsg5+" '"+ar+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();}});W=false;return false;}U=checkNegativeValue(P);if(U){Ext.Msg.show({title:pageName,msg:errMsg5+" '"+ar+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();
}});W=false;return false;}U=checkNegativeValue(A);if(U){Ext.Msg.show({title:pageName,msg:errMsg5+" '"+ar+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();}});W=false;return false;}}else{if(!checkValidValue(ad)){Ext.Msg.show({title:pageName,msg:staticMinCriticalErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();
}});W=false;return false;}else{if(ad!="-"){if(!checkNegativeFormat(ad)){Ext.Msg.show({title:pageName,msg:staticMinCriticalErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();
}});W=false;return false;}}}if(!checkValidValue(P)){Ext.Msg.show({title:pageName,msg:staticMinMajorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();}});W=false;return false;}else{if(P!="-"){if(!checkNegativeFormat(P)){Ext.Msg.show({title:pageName,msg:staticMinMajorErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();
}});W=false;return false;}}}if(!checkValidValue(A)){Ext.Msg.show({title:pageName,msg:staticMinMinorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();}});W=false;return false;}else{if(A!="-"){if(!checkNegativeFormat(A)){Ext.Msg.show({title:pageName,msg:staticMinMinorErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();
}});W=false;return false;}}}}if(ad!="-"&&P!="-"){if(parseFloat(ad)>=parseFloat(P)){Ext.Msg.show({title:pageName,msg:errMsg7,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();}});W=false;return false;}}if(P!="-"&&A!="-"){if(parseFloat(P)>=parseFloat(A)){Ext.Msg.show({title:pageName,msg:errMsg7,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();
}});W=false;return false;}}if(ad!="-"&&A!="-"){if(parseFloat(ad)>=parseFloat(A)){Ext.Msg.show({title:pageName,msg:errMsg7,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();}});W=false;return false;}}}var F="-";var Q="-";var B="-";var c=Ext.getCmp("minAutoCheck").getValue();
if(!c){var t=Ext.getCmp("relMinCriticalText").getValue();if(t!=0){if(t==100){F="sqc";}else{F=(t/100)+"*sqc";}}var r=Ext.getCmp("relMinMajorText").getValue();if(r!=0){if(r==100){Q="sqc";}else{Q=(r/100)+"*sqc";}}var o=Ext.getCmp("relMinMinorText").getValue();if(o!=0){if(o==100){B="sqc";}else{B=(o/100)+"*sqc";
}}var J,al,u;J=F;al=Q;u=B;J=J.replace(/(\*sqc)/gi,"");J=J.replace(/sqc/g,"1");al=al.replace(/(\*sqc)/gi,"");al=al.replace(/sqc/g,"1");u=u.replace(/(\*sqc)/gi,"");u=u.replace(/sqc/g,"1");if(J!="-"&&al!="-"){if(parseFloat(J)>=parseFloat(al)){Ext.Msg.show({title:pageName,msg:errMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation"});
W=false;return false;}}if(al!="-"&&u!="-"){if(parseFloat(al)>=parseFloat(u)){Ext.Msg.show({title:pageName,msg:errMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation"});W=false;return false;}}if(J!="-"&&u!="-"){if(parseFloat(J)>=parseFloat(u)){Ext.Msg.show({title:pageName,msg:errMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation"});
W=false;return false;}}}if(ad.indexOf(".")!=-1){var ai=ad.substring(ad.indexOf(".")+1);if(ai=="00"||ai=="0"){ad=ad.substring(0,ad.indexOf("."));}else{if(ai.length>1){if(ai.charAt(1)=="0"){ad=ad.substring(0,ad.lastIndexOf("0"));}}}}if(P.indexOf(".")!=-1){var R=P.substring(P.indexOf(".")+1);if(R=="00"||R=="0"){P=P.substring(0,P.indexOf("."));
}else{if(R.length>1){if(R.charAt(1)=="0"){P=P.substring(0,P.lastIndexOf("0"));}}}}if(A.indexOf(".")!=-1){var ap=A.substring(A.indexOf(".")+1);if(ap=="00"||ap=="0"){A=A.substring(0,A.indexOf("."));}else{if(ap.length>1){if(ap.charAt(1)=="0"){A=A.substring(0,A.lastIndexOf("0"));}}}}var f="-";if(ad!="-"&&F!="-"){if(ad>-1||ad<0){if(ad.indexOf(".")==0){ad="0"+ad;
}ad=parseFloat(ad);f=ad.toString()+"&"+F;}else{f=F;}}else{if(ad!="-"&&F=="-"){if(ad>-1||ad<0){if(ad.indexOf(".")==0){ad="0"+ad;}ad=parseFloat(ad);f=ad.toString();}else{f="-";}}else{if(ad=="-"&&F!="-"){f=F;}}}var V="-";if(P!="-"&&Q!="-"){if(P>-1||P<0){if(P.indexOf(".")==0){P="0"+P;}P=parseFloat(P);V=P.toString()+"&"+Q;
}else{V=Q;}}else{if(P!="-"&&Q=="-"){if(P>-1||P<0){if(P.indexOf(".")==0){P="0"+P;}P=parseFloat(P);V=P.toString();}else{V="-";}}else{if(P=="-"&&Q!="-"){V=Q;}}}var H="-";if(A!="-"&&B!="-"){if(A>-1||A<0){if(A.indexOf(".")==0){A="0"+A;}A=parseFloat(A);H=A.toString()+"&"+B;}else{H=B;}}else{if(A!="-"&&B=="-"){if(A>-1||A<0){if(A.indexOf(".")==0){A="0"+A;
}A=parseFloat(A);H=A.toString();}else{H="-";}}else{if(A=="-"&&B!="-"){H=B;}}}if(f!="-"||V!="-"||H!="-"){ak=f+"/"+V+"/"+H;}var z="-";var X="-";var M="-";var aa=Ext.getCmp("maxStaticCheck").getValue();if(!aa){z=Ext.getCmp("absMaxCritical").getValue();X=Ext.getCmp("absMaxMajor").getValue();M=Ext.getCmp("absMaxMinor").getValue();
if(!w){if(!checkValidValue(z)){Ext.Msg.show({title:pageName,msg:staticMaxCriticalErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();}});W=false;return false;}else{if(z!="-"){if(!checkNonNegativeFormat(z)){Ext.Msg.show({title:pageName,msg:staticMaxCriticalErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();
}});W=false;return false;}}}if(!checkValidValue(X)){Ext.Msg.show({title:pageName,msg:staticMaxMajorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();}});W=false;return false;}else{if(X!="-"){if(!checkNonNegativeFormat(X)){Ext.Msg.show({title:pageName,msg:staticMaxMajorErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();
}});W=false;return false;}}}if(!checkValidValue(M)){Ext.Msg.show({title:pageName,msg:staticMaxMinorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();}});W=false;return false;}else{if(M!="-"){if(!checkNonNegativeFormat(M)){Ext.Msg.show({title:pageName,msg:staticMaxMinorErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();
}});W=false;return false;}}}var U=checkNegativeValue(z);if(U){Ext.Msg.show({title:pageName,msg:errMsg11+" '"+ar+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();}});W=false;return false;}U=checkNegativeValue(X);if(U){Ext.Msg.show({title:pageName,msg:errMsg11+" '"+ar+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();
}});W=false;return false;}U=checkNegativeValue(M);if(U){Ext.Msg.show({title:pageName,msg:errMsg11+" '"+ar+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();}});W=false;return false;}}else{if(!checkValidValue(z)){Ext.Msg.show({title:pageName,msg:staticMaxCriticalErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();
}});W=false;return false;}else{if(z!="-"){if(!checkNegativeFormat(z)){Ext.Msg.show({title:pageName,msg:staticMaxCriticalErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();
}});W=false;return false;}}}if(!checkValidValue(X)){Ext.Msg.show({title:pageName,msg:staticMaxMajorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();}});W=false;return false;}else{if(X!="-"){if(!checkNegativeFormat(X)){Ext.Msg.show({title:pageName,msg:staticMaxMajorErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();
}});W=false;return false;}}}if(!checkValidValue(M)){Ext.Msg.show({title:pageName,msg:staticMaxMinorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();}});W=false;return false;}else{if(M!="-"){if(!checkNegativeFormat(M)){Ext.Msg.show({title:pageName,msg:staticMaxMinorErrMsg1+".\n"+errMsg1+" : \n"+"1) "+errMsg2+".\n"+"2) "+errMsg3+".\n"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();
}});W=false;return false;}}}}if(z!="-"&&X!="-"){if(parseFloat(z)<=parseFloat(X)){Ext.Msg.show({title:pageName,msg:errMsg9,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();}});W=false;return false;}}if(X!="-"&&M!="-"){if(parseFloat(X)<=parseFloat(M)){Ext.Msg.show({title:pageName,msg:errMsg9,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();
}});W=false;return false;}}if(z!="-"&&M!="-"){if(parseFloat(z)<=parseFloat(M)){Ext.Msg.show({title:pageName,msg:errMsg9,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();}});W=false;return false;}}}var at="-";var Z="-";var N="-";var Y=Ext.getCmp("maxAutoCheck").getValue();
if(!Y){var n=Ext.getCmp("relMaxCriticalText").getValue();if(n!=0){if(n==100){at="sqc";}else{at=(n/100)+"*sqc";}}var g=Ext.getCmp("relMaxMajorText").getValue();if(g!=0){if(g==100){Z="sqc";}else{Z=(g/100)+"*sqc";}}var e=Ext.getCmp("relMaxMinorText").getValue();if(e!=0){if(e==100){N="sqc";}else{N=(e/100)+"*sqc";
}}var J,al,u;J=at;al=Z;u=N;J=J.replace(/(\*sqc)/gi,"");J=J.replace(/sqc/g,"1");al=al.replace(/(\*sqc)/gi,"");al=al.replace(/sqc/g,"1");u=u.replace(/(\*sqc)/gi,"");u=u.replace(/sqc/g,"1");if(J!="-"&&al!="-"){if(parseFloat(J)<=parseFloat(al)){Ext.Msg.show({title:pageName,msg:errMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation"});
W=false;return false;}}if(al!="-"&&u!="-"){if(parseFloat(al)<=parseFloat(u)){Ext.Msg.show({title:pageName,msg:errMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation"});W=false;return false;}}if(J!="-"&&u!="-"){if(parseFloat(J)<=parseFloat(u)){Ext.Msg.show({title:pageName,msg:errMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation"});
W=false;return false;}}}if(z.indexOf(".")!=-1){var b=z.substring(z.indexOf(".")+1);if(b=="00"||b=="0"){z=z.substring(0,z.indexOf("."));}else{if(b.length>1){if(b.charAt(1)=="0"){z=z.substring(0,z.lastIndexOf("0"));}}}}if(X.indexOf(".")!=-1){var ah=X.substring(X.indexOf(".")+1);if(ah=="00"||ah=="0"){X=X.substring(0,X.indexOf("."));
}else{if(ah.length>1){if(ah.charAt(1)=="0"){X=X.substring(0,X.lastIndexOf("0"));}}}}if(M.indexOf(".")!=-1){var d=M.substring(M.indexOf(".")+1);if(d=="00"||d=="0"){M=M.substring(0,M.indexOf("."));}else{if(d.length>1){if(d.charAt(1)=="0"){M=M.substring(0,M.lastIndexOf("0"));}}}}var ab="-";if(z!="-"&&at!="-"){if(z>-1||z<0){if(z.indexOf(".")==0){z="0"+z;
}z=parseFloat(z);ab=z.toString()+"&"+at;}else{ab=at;}}else{if(z!="-"&&at=="-"){if(z>-1||z<0){if(z.indexOf(".")==0){z="0"+z;}z=parseFloat(z);ab=z.toString();}else{ab="-";}}else{if(z=="-"&&at!="-"){ab=at;}}}var ag="-";if(X!="-"&&Z!="-"){if(X>-1||X<0){if(X.indexOf(".")==0){X="0"+X;}X=parseFloat(X);ag=X.toString()+"&"+Z;
}else{ag=Z;}}else{if(X!="-"&&Z=="-"){if(X>-1||+X<0){if(X.indexOf(".")==0){X="0"+X;}X=parseFloat(X);ag=X.toString();}else{ag="-";}}else{if(X=="-"&&Z!="-"){ag=Z;}}}var S="-";if(M!="-"&&N!="-"){if(M>-1||M<0){if(M.indexOf(".")==0){M="0"+M;}M=parseFloat(M);S=M.toString()+"&"+N;}else{S=N;}}else{if(M!="-"&&N=="-"){if(M>-1||M<0){if(M.indexOf(".")==0){M="0"+M;
}M=parseFloat(M);S=M.toString();}else{S="-";}}else{if(M=="-"&&N!="-"){S=N;}}}if(ab!="-"||ag!="-"||S!="-"){G=ab+"/"+ag+"/"+S;}if(W){var C=this;var aq=null;var T=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(T))){aq=new Ext.LoadMask(Ext.get(T),{msg:"Loading...",cls:"maskDash"});aq.show();
}var x=ar+":"+O+":"+ak+":"+G+":"+ac+":"+ae;var a="";var af="";if(!Ext.isEmpty(threshTypeVar)&&threshTypeVar!=undefined&&threshTypeVar=="DefaultDescriptor"){var aj=publicJson["selectedDescriptor"];ao=aj;var K=Ext.getCmp("allMeasureCheck").getValue();var an="";if(K){an="true";}a="testName="+v+"&descName="+encodeURIComponent(aj)+"&threshold="+escape(x)+"&operation=updateThresholds&allMeasure="+an;
af="/final/admin/DefaultThreshold/data/EgApplyDescThresholds.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;}else{if(!Ext.isEmpty(threshTypeVar)&&threshTypeVar!=undefined&&threshTypeVar=="Global"){var L=publicJson["hiddenObj"]["componentType"];a="componentType="+L+"&testName="+v+"&threshold="+escape(x)+"&operation=updateThresholds";
af="/final/admin/DefaultThreshold/data/EgApplyThresholds.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;}else{if(!Ext.isEmpty(threshTypeVar)&&threshTypeVar!=undefined&&threshTypeVar=="Group"){var E=publicJson["hiddenObj"]["strPolicyName"];a="policyName="+E+"&testName="+v+"&threshold="+escape(x)+"&operation=updateThresholds";
af="/final/admin/GroupThreshold/data/EgApplyGroupThresholdsJson.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;}else{var am="";var s="";var I=v;var ao="";var y=publicJson["hiddenObj"]["from"];var au=publicJson["hiddenObj"]["componentType"];if(au!=null&&!Ext.isEmpty(au)){am=au;}tmpCompName=publicJson["hiddenObj"]["componentName"];
if(tmpCompName!=null&&!Ext.isEmpty(tmpCompName)){s=tmpCompName;}tmpTestName=publicJson["hiddenObj"]["testName"];if(tmpTestName!=null&&!Ext.isEmpty(tmpTestName)){I=tmpTestName;}tmpDescName=publicJson["hiddenObj"]["descriptorName"];if(tmpDescName!=null&&!Ext.isEmpty(tmpDescName)){ao=tmpDescName;}a="componentType="+encodeURI(am)+"&componentName="+encodeURI(s)+"&testName="+encodeURIComponent(v)+"&descriptorName="+encodeURIComponent(ao)+"&from="+y+"&threshold="+escape(x)+"&operation=updateThresholds";
af="/final/admin/SpecificThreshold/data/EgApplySpecificThresholds.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;}}}Ext.Ajax.request({url:af,method:"POST",timeout:6000000,scope:this,success:function(av){if(av.status==200&&!Ext.isEmpty(av.responseText)){aq.hide();Ext.Msg.alert(pageName,successAlert1,function(){var ax=null;
var aw=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(aw))){ax=new Ext.LoadMask(Ext.get(aw),{msg:"Loading...",cls:"maskDash"});ax.show();}setTimeout(function(){ax.hide();C.getConfigureThresholds().close();C.getTestInfo().close();C.openTestInfoWindow(testInfoGlobalURL);},5000);});}},failure:function(av){aq.hide();
Ext.Msg.show({title:pageName,msg:"Updating problem in server side...",icon:"iconExclamation",buttons:Ext.Msg.OK});}});}},createTableViewForThreshold:function(){var g=Array.prototype.slice.call(arguments);var e=g.pop();var d='<div class="x-table-outer-border"><div class="x-table" style="margin:0 0 0px 0"><table style="table-layout:auto" class="x-grid-table" cellspacing="0" cellpadding="0" border="0" ><col width="1354"><thead ><tr class="x-grid-row">';
for(h=0;h<g.length;h++){if(!Ext.isEmpty(g[h])){d+='<th class=" x-grid-cell"><div class="x-grid-cell-inner" >'+g[h]+"</div></th>";}}d+="</tr></thead>";d+="<tbody>";if(typeof e=="string"){d+='<tr class="x-grid-row"><td class=" x-grid-cell"><div class="x-grid-cell-inner" style="white-space:nowrap!important">'+e+"</div></td></tr>";
}else{if(!Ext.isEmpty(e)){for(p=0;p<e.length;p++){var f=e[p];var c=[];for(var b in f){c.push(b);}d+='<tr class="x-grid-row">';for(q=0;q<c.length;q++){d+='<td class=" x-grid-cell"><div class="x-grid-cell-inner" style="white-space:nowrap!important">'+f[c[q]]+"</div></td>";}d+="</tr>";}}else{return false;
}}d+="</tbody></table></div></div>";var a={xtype:"container",padding:0,margin:"0 0 10 0",html:d};return a;}});function dateValidation(s,e,u,d,f,g){var t=parseInt(s.substring((s.lastIndexOf("/")+1)));var n=parseInt(s.substring((s.indexOf("/")+1),s.lastIndexOf("/")));var a=parseInt(s.substring(0,s.indexOf("/")));
var o=parseInt(e.substring((e.lastIndexOf("/")+1)));var c=parseInt(e.substring((e.indexOf("/")+1),e.lastIndexOf("/")));var r=parseInt(e.substring(0,e.indexOf("/")));var b=0;if(t>o){b=-1;}else{if(t==o){if(a>r){b=-1;}else{if(a==r){if(n>c){b=-1;}else{if(n==c){if(u>d){b=-1;}else{if(u==d){if(f>=g){b=-1;}}}}}}}}}return b;
}