var isShowCheckBox=false;var getDiv=0;var test_height=0;var grid_row=null;var row_height=null;function mouseDivPop(f,h){var g=publicJson.gridJson.mouseDivGridData;var d=publicJson.gridJson["gridColumns"]["COLUMN_6"];var c=false;if(!Ext.isEmpty(d)&&d!=null&&d!=undefined&&d=="Unknown Details"){c=true;}if(!h){h=window.event;
}disablerefresh=true;var b=Ext.getCmp("currentAlarmsGrid").getStore().data.length;var j=Ext.getCmp("currentAlarmsGrid").getStore().realData.length;if(!Ext.isEmpty(j)&&j!=undefined&&j!=null&&!Ext.isEmpty(b)&&b!=undefined&&b!=null){if(b<j){b=j;}}var a=Ext.get("alarmpopupArrow"+f);if(Ext.get("alarmpopupArrow"+f)){var e="70px";
if(c&&isAlarmViewer){e="50px";}else{if(c&&!isAlarmViewer){e="25px";}}a.setStyle("marginRight",e);}if(!Ext.isEmpty(Ext.get("mouseDivRow"+f))&&Ext.get("mouseDivRow"+f).isVisible()){Ext.get("mouseDivRow"+f).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("mouseDivRow"+f).hide();if(Ext.get("configRow"+f).isVisible()){Ext.get("configRow"+f).setVisibilityMode(Ext.Element.DISPLAY);
Ext.get("configRow"+f).show();}}else{for(i=0;i<b;i++){if(i!=f){if(!Ext.isEmpty(Ext.get("mouseDivRow"+i))){Ext.get("mouseDivRow"+i).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("mouseDivRow"+i).hide();}if(!Ext.isEmpty(Ext.get("configRow"+i))){Ext.get("configRow"+i).setVisibilityMode(Ext.Element.DISPLAY);
Ext.get("configRow"+i).hide();}}else{if(!Ext.isEmpty(Ext.get("mouseDivRow"+f))){Ext.get("mouseDivRow"+f).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("mouseDivRow"+f).show();}if(!Ext.isEmpty(Ext.get("configRow"+i))){Ext.get("configRow"+i).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("configRow"+i).hide();
}}}if(document.getElementById("mouseDivDataRow"+f)!=null&&document.getElementById("mouseDivDataRow"+f)!=undefined){document.getElementById("mouseDivDataRow"+f).innerHTML=g[f].mouseOverDiv;}if(h.clientY>=330){Ext.getCmp("currentAlarmsGrid").getEl().down(".x-grid-view").scrollTo("top",h.clientY-100);Ext.getCmp("currentAlarmsGrid").doLayout();
}}if(!Ext.isEmpty(Ext.get("mouseDivRow"+f))&&Ext.get("mouseDivRow"+f)!=null&&Ext.get("mouseDivRow"+f)!=undefined){Ext.get("mouseDivRow"+f).select(".iconClose3").on("click",function(){disablerefresh=false;Ext.get("mouseDivRow"+f).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("mouseDivRow"+f).hide();},this);
Ext.get("mouseDivRow"+f).select(".iconClose3").on("click",function(){disablerefresh=false;Ext.get("mouseDivRow"+f).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("mouseDivRow"+f).hide();},this);}if(!Ext.isEmpty(Ext.get("mouseDivRow"+f))&&Ext.get("mouseDivRow"+f)!=null&&Ext.get("mouseDivRow"+f)!=undefined){Ext.get("mouseDivRow"+f).scrollIntoView(Ext.get("currentAlarmsGrid-body"),true);
}}function configPop(m,b,l){if(!isAlarmsDetailsInToolTip){var d=Ext.get("configpopupArrow"+b);if(Ext.get("configpopupArrow"+b)){d.setStyle("marginRight","50px");}}if(!l){l=window.event;}disablerefresh=true;var j=true;var h="";if(m!=null&&m!=""&&m!="empty"){var k=decodeURIComponent(m);var f=k.substring(k.indexOf("?")+1,k.length);
var c=f.split("&");for(var g=0;g<c.length;g++){var o=c[g];if(o.indexOf("componentName")>-1){h=o.substring(o.indexOf("=")+1);}}}var a="/final/servlet/com.eg.EcConfigurationServletNew?ec_rtype=ChangeNew&ec_option1=Component Name&ec_timeline=1+day&ec_prevtimeline=1+day&ec_option2="+encodeURIComponent(h)+"&ec_changetype=Latest&ec_viewchange=byInformation&fromPage=configChange&ec_criteria=Component&fromMonitor="+j;
var e=Ext.getCmp("currentAlarmsGrid").getStore().data.length;var n=Ext.getCmp("currentAlarmsGrid").getStore().realData.length;if(!Ext.isEmpty(n)&&n!=undefined&&n!=null&&!Ext.isEmpty(e)&&e!=undefined&&e!=null){if(e<n){e=n;}}if(Ext.get("configRow"+b).isVisible()){Ext.get("configRow"+b).setVisibilityMode(Ext.Element.DISPLAY);
Ext.get("configRow"+b).hide();if(!isAlarmsDetailsInToolTip){if(Ext.get("mouseDivRow"+b).isVisible()){Ext.get("mouseDivRow"+b).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("mouseDivRow"+b).show();}}configOpnWinCnt++;}else{if(isAlarmsDetailsInToolTip){Ext.get("configRow"+b).setVisibilityMode(Ext.Element.DISPLAY);
Ext.get("configRow"+b).show();}else{for(g=0;g<e;g++){if(!Ext.isEmpty(Ext.get("configRow"+g))&&Ext.get("configRow"+g)!=undefined&&!Ext.isEmpty(Ext.get("mouseDivRow"+g))&&Ext.get("mouseDivRow"+g)!=undefined){if(g!=b){Ext.get("configRow"+g).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("configRow"+g).hide();
Ext.get("mouseDivRow"+g).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("mouseDivRow"+g).hide();}else{Ext.get("configRow"+b).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("configRow"+b).show();Ext.get("mouseDivRow"+g).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("mouseDivRow"+g).hide();}}}}configOpnWinCnt--;
document.getElementById("iframeId_"+b).src=a;document.getElementById("configLink"+b).href=m;if(l.clientY>=330){Ext.getCmp("currentAlarmsGrid").getEl().down(".x-grid-view").scrollTo("top",l.clientY-100);Ext.getCmp("currentAlarmsGrid").doLayout();}}if(isAlarmsDetailsInToolTip){Ext.select(".iconClose3").on("click",function(){disablerefresh=false;
Ext.get("configRow"+b).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("configRow"+b).hide();},this);}else{Ext.get("configRow"+b).select(".iconClose3").on("click",function(){disablerefresh=false;Ext.get("configRow"+b).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("configRow"+b).hide();},this);Ext.get("configRow"+b).select(".iconClose3").on("click",function(){disablerefresh=false;
Ext.get("configRow"+b).setVisibilityMode(Ext.Element.DISPLAY);Ext.get("configRow"+b).hide();},this);if(!Ext.isEmpty(Ext.get("configRow"+b))&&Ext.get("configRow"+b)!=null&&Ext.get("configRow"+b)!=undefined){Ext.get("configRow"+b).scrollIntoView(Ext.get("currentAlarmsGrid-body"),true);}}}function createTooltip(b,a){b.tip=Ext.create("Ext.tip.ToolTip",{target:b.el,width:"85%",maintainFlex:true,cls:"alarmTip x-table",shadowOffset:50,delegate:".egShowTip",id:"tipID",constrainPosition:true,autoScroll:true,scroll:false,padding:5,margin:0,bodyStyle:{"background-color":"#e6e6e6"},elt:null,listeners:{beforeshow:function(d){var c=b.getGridColumns();
var e="";if(d!=null&&d.triggerElement.cellIndex==acknowledgeIconCellIdx){e=b.getRecord(d.triggerElement.parentNode).get("mouseOverAckDiv");}else{if(sampleflag==false){e=b.getRecord(d.triggerElement.parentNode).get("mouseOverDiv");}}if(e!=undefined&&e!=null&&e.trim().length>0){d.update(e);}else{return false;
}},"afterrender":function(d){this.mon(this.el,"mouseover",function(){var c=d.body.id;this.clearTimer("hide");this.clearTimer("dismiss");},this);this.mon(this.el,"mouseout",function(){this.clearTimer("show");if(this.autoHide!==false){this.delayHide();}},this);}},createPopupGrid:function(g){var e=g["popupGridColumns"];
var d=g["popupGridData"];var k=new Array();var c=new Array();for(var h in e){var j=gridCols[h];c.push({name:h,type:"string"});if(j=="empty"){k.push({hideable:false,sortable:false,resizable:false,enableColumnHide:true,filter:false,menuDisabled:true,flex:1,dataIndex:h,header:"&nbsp;"});}else{k.push({header:j,sortable:true,flex:1,align:"left",dataIndex:h});
}}var f=Ext.create("Ext.data.Store",{fields:c,data:d,realData:d});var l=Ext.create("CustomGrid",{width:"100%",border:false,cls:"gridSkin",store:f,columns:k,forceFit:true});return l;}});}Ext.QuickTips.init();Ext.define("PagingMemoryProxy",{extend:"Ext.data.proxy.Memory",alias:"proxy.pagingmemory",alternateClassName:"Ext.data.PagingMemoryProxy",read:function(c,h,j){var g=c.page;
if(g>1){disablerefresh=true;}else{disablerefresh=false;}var d=this.getReader(),k=d.read(this.data),f,a,e,b;j=j||this;a=c.filters;if(a.length>0){b=[];Ext.each(k.records,function(l){var q=true,r=a.length,m;for(m=0;m<r;m++){var p=a[m],o=p.filterFn,n=p.scope;q=q&&o.call(n,l);}if(q){b.push(l);}},this);k.records=b;
k.totalRecords=k.total=b.length;}f=c.sorters;if(f.length>0){e=function(n,m){var l=f[0].sort(n,m),p=f.length,o;for(o=1;o<p;o++){l=l||f[o].sort.call(this,n,m);}return l;};k.records.sort(e);}if(c.start!==undefined&&c.limit!==undefined){k.records=k.records.slice(c.start,c.start+c.limit);k.count=k.records.length;
}Ext.apply(c,{resultSet:k});c.setCompleted();c.setSuccessful();Ext.Function.defer(function(){Ext.callback(h,j,[c]);},10);}});Ext.override(Ext.selection.CheckboxModel,{onRowMouseDown:function(b,a,g,d,h){var f=this,c=h.getTarget("."+Ext.baseCSSPrefix+"grid-row-checker"),j;if(!f.allowRightMouseSelection(h)){return;
}if(f.checkOnly&&!c){return;}if(c){j=f.getSelectionMode();if(j!=="SINGLE"){f.setSelectionMode("SIMPLE");}f.selectWithEvent(a,h);f.setSelectionMode(j);}else{f.selectWithEvent(a,h);}}});function doFitAlarmDetailsTable(){try{$(function(){var b=[];$(".alarmTable th").each(function(c,d){var e=$(d).width();
if(e>0){b.push($(d).width());}});$(".alarmTableBodyBg").each(function(c,d){$(this).find("td").not(".alarmHighlight3").each(function(f,e){$(e).width(b[(f%b.length)]);});});});}catch(a){}}Ext.define("currentAlarms.view.CurrentAlarmsSummary",{extend:"utilities.CustomGrid",requires:["Ext.ux.grid.FiltersFeature","Ext.ux.RowExpander"],alias:"widget.currentalarmssummary",border:false,forceFit:false,bodyStyle:"border-radius:0px",layout:"auto",flex:1,scroll:false,autoScroll:true,margin:"10 10 5 10",style:{"overflow-x":"hidden !important"},meGridObj:null,screenLabels:null,id:"currentAlarmsGrid",name:"currentAlarmsGrid",cls:"gridSkin ligtboxgrid",listeners:{"resize":function(a){doFitAlarmDetailsTable();
},"validateedit":function(a){return false;},"columnresize":function(h,f,e,j){try{var n=(Ext.decode(Ext.util.Cookies.get("cAstempColumnDataIndex")));var b=(Ext.decode(Ext.util.Cookies.get("cAstempColumnObj")));if(n==undefined||n==null){n=[];}if(b==undefined||b==null){b=[];}}catch(m){var n=[];var b=[];
}if(n!=null&&n.indexOf(f.dataIndex)!=-1){var l=[];for(var k=0;k<n.length;k++){if(n[k]==f.dataIndex){l.push(k);}}var d=publicJson["pageParams"].selectedShowOption;try{for(var a=0;a<l.length;a++){if(b[l[a]].dataIndex==f.dataIndex&&b[l[a]].compType==d){n.splice(l[a],1);b.splice(l[a],1);}}n.push(f.dataIndex);
b.push({"dataIndex":f.dataIndex,"measureOrgName":f.text,"dashboardName":"currentAlarmsSummary","compType":d,"width":e});}catch(g){}}else{try{var d=publicJson["pageParams"].selectedShowOption;n.push(f.dataIndex);b.push({"dataIndex":f.dataIndex,"measureOrgName":f.text,"dashboardName":"currentAlarmsSummary","compType":d,"width":e});
}catch(g){}}Ext.util.Cookies.set("cAstempColumnObj",Ext.encode(b));Ext.util.Cookies.set("cAstempColumnDataIndex",Ext.encode(n));},"render":function(){this.on("reconfigure",function(){var a=Ext.getCmp("showCombo");if(a.getValue()=="CurrentUnknown"&&!Ext.isEmpty(Ext.getCmp("ackOptionsid"))){this.headerCt.gridDataColumns[0].hide();
}else{if(a.getValue()=="CurrentAlarms"){this.headerCt.gridDataColumns[0].show();}}});},"viewready":function(){Ext.defer(function(){if(!Ext.isEmpty(window.parent.isTvMode)){$.fn.hasScrollBar=function(){return this.get(0).scrollHeight-20>this.height();};if(window.parent.isTvMode){var p=window.parent.Ext.getCmp("tvmode").sliderAction;
window.parent.Ext.getCmp("playBtn").ifScroll=false;var n=$("#currentAlarmsGrid").hasScrollBar();var g=0;var c=false;var e=function(){var q=window.parent.Ext.getCmp("tvmode").sliderAction;if(q=="pause"){Ext.get("currentAlarmsGrid").getActiveAnimation().paused=false;c=true;}else{clearTimeout(l);Ext.get("currentAlarmsGrid").getActiveAnimation().paused=true;
window.parent.Ext.getCmp("tvmode").sliderObj.pause();c=false;}};var o=new Ext.util.TaskRunner();var d=o.start({run:e,interval:1000});var m=Ext.get("currentAlarmsGrid").dom.scrollHeight-Ext.get("currentAlarmsGrid").dom.offsetHeight;var k=m*100;var f=m*70;if(n){var j=Ext.get("currentAlarmsGrid").getActiveAnimation().paused=true;
window.parent.Ext.getCmp("tvmode").sliderObj.pause();var h=window.parent.Ext.getCmp("playBtn").ifScroll=true;Ext.get("currentAlarmsGrid").scroll("b",k,{duration:f,listeners:{beforeanimate:function(r,q){},afteranimate:function(s,r,q){Ext.get("currentAlarmsGrid").stopAnimation();Ext.defer(function(){window.parent.Ext.getCmp("tvmode").sliderObj.play();
o.destroy();},1000);window.parent.Ext.getCmp("playBtn").ifScroll=false;}}},{scope:Ext.get("currentAlarmsGrid")});}else{window.parent.Ext.getCmp("playBtn").ifScroll=false;window.parent.Ext.getCmp("tvmode").sliderObj.pause();if(c==true){clearTimeout(l);window.parent.Ext.getCmp("tvmode").sliderObj.pause();
}else{var l=Ext.defer(function(){window.parent.Ext.getCmp("tvmode").sliderObj.play();},window.parent.Ext.getCmp("tvmode").getTimeFrequency);}}}}},500);var b=publicJson["pageParams"]["alarmType"];if(b=="CurrentUnknown"){this.headerCt.gridDataColumns[0].hide();}this.view.getEl().on("scroll",function(g,d){var c=Ext.getCmp("currentAlarmsGrid");
var f=c.getEl().down(".x-grid-view").getScroll();test_height=f.top;});grid_row=document.getElementsByClassName("x-grid-row");row_height=Math.round(grid_row.length*$(".x-grid-row").height());if(row_height>$("#currentAlarmsGrid-body").height()){Ext.getCmp("removeLineForTvMode").show();}else{if(!isUED&&!isCitrix){Ext.getCmp("iconAutomaticScrollRun").hide();
Ext.getCmp("removeLineForTvMode").hide();Ext.getCmp("iconAutomaticScrollJumpToTop").hide();}}if(isShowCheckBox==true){var a=Ext.get(this.id);a.on("click",function(d,c){sortbyalarm="empty";currentAlmsApp.getController("Main").loadAlarms();},this,{delegate:".x-column-header-first"});}}},emptyText:"",handler:function(){var a=Ext.widget("window",{title:"",width:400,height:"auto",closeAction:"destory",contentEl:"gridTooltip"}).show();
},viewConfig:{enableTextSelection:true,deferEmptyText:false,listeners:{render:createTooltip}},initComponent:function(){meGridObj=this;this.generateAlarmGrid();this.callParent();this.initConfig();this.addDocked({xtype:"pagingtoolbar",id:"pagingtoolbarid",cls:"pagingtoolbar",store:this.store,dock:"bottom",displayInfo:true,displayMsg:"Displaying {0} - {1} of {2} &nbsp;records ",emptyMsg:"No records to display&nbsp;",listeners:{afterrender:function(){this.child("#refresh").hide();
}}});if(dynamicPaginationFlag){this.view.on("viewready",function(a){this.store.pageSize=Math.round($("#currentAlarmsGrid-body").height()/$(".x-grid-row").height());this.store.loadPage(1);});Ext.EventManager.onWindowResize(function(a,b){Ext.defer(function(){meGridObj.store.pageSize=Math.round($("#currentAlarmsGrid-body").height()/$(".x-grid-row").height());
meGridObj.store.loadPage(1);},250);});}},loadData:function(){if(isCitrix){var e=publicJson["screenLabels"];var g=publicJson["pageParams"];var j=Ext.getCmp("showCombo");j.getStore().loadRawData(publicJson["showOptionsJson"]);j.setValue(g["selectedShowOption"]);j.setFieldLabel(e["monitor.common.Show"]);
j.hide();var b=Ext.getCmp("filterCombo");b.getStore().loadRawData(publicJson["filterOptions"]);b.setValue(g["selectedFilterOption"]);b.setFieldLabel(e["monitor.currentAlarms.Filter by"]);b.hide();var a=Ext.getCmp("subFilterCombo");a.getStore().loadRawData(publicJson["optionsForFilterSelection"]);a.setValue(g["selectedSubFilterOption"]);
a.setFieldLabel(g["subFilterLabel"]);}else{if(!isUED){var e=publicJson["screenLabels"];var g=publicJson["pageParams"];var j=Ext.getCmp("showCombo");j.getStore().loadRawData(publicJson["showOptionsJson"]);j.setValue(g["selectedShowOption"]);j.setFieldLabel(e["monitor.common.Show"]);var b=Ext.getCmp("filterCombo");
b.getStore().loadRawData(publicJson["filterOptions"]);b.setValue(g["selectedFilterOption"]);b.setFieldLabel(e["monitor.currentAlarms.Filter by"]);var a=Ext.getCmp("subFilterCombo");a.getStore().loadRawData(publicJson["optionsForFilterSelection"]);a.setValue(g["selectedSubFilterOption"]);a.setFieldLabel(g["subFilterLabel"]);
var f=publicJson["hiddenParams"]["zoneName"];var h=false;if(!Ext.isEmpty(f)&&f!=null&&f!=undefined&&f!="null"&&f!="undefined"){h=true;}if(publicJson["pageParams"]["alarmType"]=="longestAlarms"){if(!Ext.isEmpty(b)&&b!=null&&b!=undefined){Ext.getCmp("filterCombo").hide();}if(!Ext.isEmpty(a)&&a!=null&&a!=undefined){Ext.getCmp("subFilterCombo").hide();
}if(!Ext.isEmpty(Ext.getCmp("searchTextBox"))&&Ext.getCmp("searchTextBox")!=null&&Ext.getCmp("searchTextBox")!=undefined){Ext.getCmp("searchTextBox").hide();}}else{if(publicJson["pageParams"]["alarmType"]!="longestAlarms"){if(!h){if(!Ext.isEmpty(b)&&b!=null&&b!=undefined){Ext.getCmp("filterCombo").show();
}if(!Ext.isEmpty(a)&&a!=null&&a!=undefined){Ext.getCmp("subFilterCombo").show();}if(!Ext.isEmpty(Ext.getCmp("searchTextBox"))&&Ext.getCmp("searchTextBox")!=null&&Ext.getCmp("searchTextBox")!=undefined){Ext.getCmp("searchTextBox").show();}}else{if(!Ext.isEmpty(b)&&b!=null&&b!=undefined){Ext.getCmp("filterCombo").hide();
}if(!Ext.isEmpty(a)&&a!=null&&a!=undefined){Ext.getCmp("subFilterCombo").hide();}if(!Ext.isEmpty(Ext.getCmp("searchTextBox"))&&Ext.getCmp("searchTextBox")!=null&&Ext.getCmp("searchTextBox")!=undefined){Ext.getCmp("searchTextBox").hide();}}}}var k=publicJson["dataAvailable"];if(k!=null&&k=="true"){var c=g["showDeleteBtn"];
var d=g["showAcknowledgeBtn"];if(c!=null&&c=="true"){Ext.getCmp("AlarmDeleteBtn").show();}if(d!=null&&d=="true"){Ext.getCmp("AlarmAcknowledgeBtn").show();}}}}},generateAlarmGrid:function(){var o="";var J="";if(!Ext.isEmpty(publicJson["arrangeoption"])&&!Ext.isEmpty(publicJson["arrangeorder"])){o=publicJson["arrangeoption"];
var v=publicJson["arrangeorder"];J=v.toUpperCase();}var G="";if(publicJson["pageParams"]["alarmType"]!=null&&publicJson["pageParams"]["alarmType"]!=undefined){var R=publicJson["pageParams"]["alarmType"];if(R!=null&&(R=="CurrentAlarms"||R=="longestAlarms")){G='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconNoalarms" style="margin:0px auto"></div><div style="text-align:center">No alarms found</div></div></div>';
}else{if(R!=null&&R=="unAcknowledged"){G='<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">No UnAcknowledged alarms found</div></div></div>';
}else{if(R!=null&&R=="Acknowledged"){G='<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">No Acknowledged alarms found</div></div></div>';}else{G='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconNoalarms" style="margin:0px auto"></div><div style="text-align:center">No unknowns found</div></div></div>';
}}}}if(!Ext.isEmpty(publicJson)&&!Ext.isEmpty(publicJson["gridJson"])&&Ext.isEmpty(publicJson["gridJson"]["gridData"])){$(".x-grid-view").css("height","100%");}else{$(".x-grid-view").css("height","auto");}var g=publicJson["dataAvailable"];if(!Ext.isEmpty(publicJson["refreshFreq"])){refreshFreq=publicJson["refreshFreq"];
}if(g!=null&&g=="true"){if(isAlarmsDetailsInToolTip){var Q=publicJson["gridJson"];var a=publicJson["DefaultPageSize"];if(dynamicPaginationFlag){a=Math.round($("#currentAlarmsGrid-body").height()/$(".x-grid-row").height());}var y=Q["gridColumns"];var V=Q["gridData"];var s=Q["mouseDivGridData"];var R=publicJson["pageParams"]["alarmType"];
var K="-1";if(Q["isSuperManager"]&&!Q["showManagerId"]){if(Q["mgrId_idx"]!=-1){K="COLUMN_"+Q["mgrId_idx"];}}var F="&fromPages="+fromPages+"&showAlarms="+showAlarms+"&arrangeAlarms="+arrangeAlarms+"&selectedSubFilterOption="+selectedSubFilterOption+"&FromDashBoard="+FromDashBoard;var q=this;var C=new Array();
var r=new Array();var u=new Array();C.push({name:"mouseOverDiv",type:"string"});C.push({name:"mouseOverUrl",type:"string"});var L="Nounknowns";if(R!=null&&(R=="CurrentAlarms"||R=="longestAlarms"||R=="Acknowledged"||R=="unAcknowledged")){L="No alarms found";acknowledgeIconCellIdx=1;var f=publicJson["pageParams"]["showCheckBox"];
var b=publicJson["pageParams"]["showAckMsg"];if(f!=null&&f=="true"){isShowCheckBox=true;}var n=publicJson["pageParams"]["isAVUser"];var S=false;var x=false;if(b!=null&&b!=undefined&&b=="true"){x=true;}if(n!=null&&n=="true"){S=true;}if(isShowCheckBox){acknowledgeIconCellIdx=1;}else{acknowledgeIconCellIdx=0;
}for(var t in y){if(t=="COLUMN_1"){if(isShowCheckBox||x){C.push({name:"mouseOverAckDiv",type:"string"});C.push({name:t+"_ChkBoxVal",type:"string"});}continue;}var j=y[t];C.push({name:t,type:"string"});u.push({dataIndex:t,type:"string"});if(o!=null&&(o=="comp_type"||o.toLowerCase()=="type")){o="COLUMN_2";
}else{if(o!=null&&(o=="comp_name"||o.toLowerCase()=="component name/vm name")){o="COLUMN_3";}else{if(o!=null&&(o=="problem_desc"||o.toLowerCase()=="description")){o="COLUMN_4";}else{if(o!=null&&(o=="layer_name"||o.toLowerCase()=="layer")){o="COLUMN_5";}else{if(o!=null&&(o=="msmt_time"||o.toLowerCase()=="start time")){o="COLUMN_6";
}}}}}coloumns.add(t,j);if(j=="empty"){if(t=="COLUMN_0"){r.push({hideable:false,sortable:false,resizable:false,enableColumnHide:true,filter:false,cls:"alarmackrow",menuDisabled:true,width:33,dataIndex:t,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
sortbyalarm=coloumns.get(l);}var e=c.sortState;currentAlmsApp.getController("Main").loadAlarms();}},renderer:function(X,l,W,aa,p,Y,c){var Z=W.get("mouseOverAckDiv");if(Z!=null&&(Z!="-"&&Z!="")){l.tdCls="egShowTip";}if((X=="alarmMinorAck")||(X=="alarmMajorAck")||(X=="alarmCriticalAck")){X='<div class="'+X+'" style="padding:0px;cursor:pointer;margin-left: -4px;margin-top:-1px"></div>';
}else{X='<div class="'+X+'" style="border:0px solid red;padding:0px;cursor:pointer;margin-left:-4px;margin-top:1px;margin-bottom:2px;"></div>';}var e=W.get("mouseOverUrl");if(e!=null&&e!="-"){e=e+F;X="<a href=\"javascript:wayToLayerModel('"+e+"')\">"+X+"</a>";}return X;}});}else{r.push({hideable:false,sortable:false,resizable:false,enableColumnHide:true,filter:false,menuDisabled:true,width:35,align:"left",dataIndex:t,hidden:(K!="-1"&&t==K)?true:false,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
sortbyalarm=coloumns.get(l);}var e=c.sortState;}},renderer:function(X,e,c,Z,W,p,Y){var l=c.get("mouseOverUrl");if(l!=null&&l!="-"){l=l+F;X="<a href=\"javascript:wayToLayerModel('"+l+"')\">"+X+"</a>";}return X;}});}}else{if(j=="Links"){C.push({name:"COLUMN_SS_name",type:"string"});C.push({name:"COLUMN_MeasGraph_url",type:"string"});
C.push({name:"COLUMN_Config_url",type:"string"});C.push({name:"COLUMN_DD_url",type:"string"});C.push({name:"COLUMN_AssetMgmt_url",type:"string"});var M=170;if(!Ext.isChrome){M=180;}r.push({xtype:"actioncolumn",width:M,layout:{type:"table",columns:4,tdAttrs:{align:"left",valign:"middle",padding:"0 10 0 0",}},items:[{icon:"",itemId:"ddID_"+N,tooltip:ddTooltipLbl,getClass:function(l,e,c){var p=c.get("COLUMN_DD_url");
if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer actionIcon mouseOverRemove";}else{return"iconDiagnosis actionIcon";}},handler:function(l,aa,p,W,X,c,Z){var Y=c.get("COLUMN_DD_url");if(!Ext.isEmpty(Y)&&Y!=null&&Y!="-"){this.fireEvent("itemClick",loadPopup(Y));}}},{icon:"",tooltip:"Graph",id:"grpahID_"+t,getClass:function(l,e,c){var p=c.get("COLUMN_MeasGraph_url");
if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer mouseOverRemove";}else{return"iconLineChart actionIcon";}},handler:function(l,aa,p,X,Y,c,Z){var W=c.get("COLUMN_MeasGraph_url");if(!Ext.isEmpty(W)&&W!=null&&W!="-"){}this.fireEvent("itemClick",loadPopup(W));}},{icon:"",tooltip:"Fix History",id:"fxHistoryID_"+N,getClass:function(l,e,c){return"iconHistory actionIcon";
},handler:function(l,aa,p,X,Y,c,Z){var W=c.get("COLUMN_MeasGraph_url");if(!Ext.isEmpty(W)&&W!=null&&W!="-"){W=W.replace("&clicked=graph","&clicked=history");W+="&directClick=true";this.fireEvent("itemClick",loadPopup(W));}}},{icon:"",tooltip:"Configuration",itemId:"configID_"+N,getClass:function(l,e,c){var p=c.get("COLUMN_Config_url");
if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer actionIcon mouseOverRemove";}else{return"iconConfigure actionIcon";}},handler:function(Y,X,Z,aa,p,l,ab){var W=l.get("COLUMN_Config_url");if(!Ext.isEmpty(W)&&W!=null&&W!="-"){var c=l.get("rowIndexValue");if(Ext.isEmpty(c)||c==undefined||c==null){c=X;
}this.fireEvent("itemClick",configPop(W,c,p));}}},{icon:"",itemId:"ssID_"+N,tooltip:"Screenshot",getClass:function(l,e,c){var p=c.get("COLUMN_SS_name");if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer actionIcon mouseOverRemove";}else{return"iconScreenshot actionIcon";}},handler:function(l,aa,p,W,Y,c,Z){var X=c.get("COLUMN_SS_name");
if(!Ext.isEmpty(X)&&X!=null&&X!="-"){openScreenShot(X);}}},{icon:"",tooltip:"Asset",id:"assestID_"+N,getClass:function(p,l,e){var c=e.get("COLUMN_AssetMgmt_url");if(Ext.isEmpty(c)||c==null||c=="-"){return"iconSpacer mouseOverRemove";}else{return"iconAssetConfiguration actionIcon";}},handler:function(p,aa,W,X,Y,l,Z){var c=l.get("COLUMN_AssetMgmt_url");
if(!Ext.isEmpty(c)&&c!=null&&c!="-"){c=decodeURIComponent(c);this.fireEvent("itemClick",loadPopup(c));}}}],listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();}}});}else{if(!S){if(t=="COLUMN_6"){r.push({header:j,sortable:true,width:130,align:"left",menuDisabled:true,dataIndex:t,hidden:(K!="-1"&&t==K)?true:false,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
sortbyalarm="msmt_time";}var e=c.sortState;orderbyalarm=e.toLowerCase();}},doSort:function(e){var c=this.up("grid").store;var l=this.getSortParam();c.sort({property:l,direction:e,sorterFn:function(Z,Y){Z=Z.get(l);Y=Y.get(l);if(Z.indexOf(".")>-1&&Z.indexOf(" ")>-1){var W=Z.substring(0,Z.lastIndexOf(" "));
var X=new Date(Ext.Date.parse(W,mgrDateFormat));var p=Ext.Date.dateFormat(X,getExtjsDateFormat("MMM-dd-yyyy"));Z=p+Z.substring(Z.lastIndexOf(" "),Z.length);}if(Y.indexOf(".")>-1&&Y.indexOf(" ")>-1){var W=Y.substring(0,Y.lastIndexOf(" "));var X=new Date(Ext.Date.parse(W,mgrDateFormat));var p=Ext.Date.dateFormat(X,getExtjsDateFormat("MMM-dd-yyyy"));
Y=p+Y.substring(Y.lastIndexOf(" "),Y.length);}if(!isNaN(new Date(Z))&&!isNaN(new Date(Y))){Y=new Date(Y).getTime();Z=new Date(Z).getTime();}return Z>Y?1:(Z<Y?-1:0);}});},renderer:function(X,e,c,Z,W,p,Y){e.tdCls="egShowTip";var l=c.get("mouseOverUrl");if(l!=null&&l!="-"){l=l+F;X="<a href=\"javascript:wayToLayerModel('"+l+"')\">"+X+"</a>";
}return X;}});}else{var d=1.5;if(t=="COLUMN_2"||t=="COLUMN_5"){d=0.6;}else{if(t=="COLUMN_3"){d=0.7;}}r.push({header:j,sortable:true,flex:d,align:"left",menuDisabled:true,dataIndex:t,hidden:(K!="-1"&&t==K)?true:false,listeners:{"headerclick":function(p,c,X){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
var W="";W=coloumns.get(l);if(W=="Type"){W="comp_type";}else{if(W=="Component Name"){W="comp_name";}else{if(W=="Description"){W="problem_desc";}else{if(W=="Layer"){W="layer_name";}}}}sortbyalarm=W;}var e=c.sortState;orderbyalarm=e.toLowerCase();}},renderer:function(X,e,c,Z,W,p,Y){e.tdCls="egShowTip";
var l=c.get("mouseOverUrl");if(l!=null&&l!="-"){l=l+F;X="<a href=\"javascript:wayToLayerModel('"+l+"')\">"+X+"</a>";}return X;}});}}else{var d=1.5;if(t=="COLUMN_2"||t=="COLUMN_5"){d=0.6;}else{if(t=="COLUMN_3"){d=0.7;}}if(t=="COLUMN_6"){d=1;r.push({header:j,sortable:true,width:110,align:"left",menuDisabled:true,dataIndex:t,flex:d,resizable:false,hidden:(K!="-1"&&t==K)?true:false,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();}},doSort:function(e){var c=this.up("grid").store;var l=this.getSortParam();c.sort({property:l,direction:e,sorterFn:function(Z,Y){Z=Z.get(l);Y=Y.get(l);if(Z.indexOf(".")>-1&&Z.indexOf(" ")>-1){var W=Z.substring(0,Z.lastIndexOf(" "));
var X=new Date(Ext.Date.parse(W,mgrDateFormat));var p=Ext.Date.dateFormat(X,getExtjsDateFormat("MMM-dd-yyyy"));Z=p+Z.substring(Z.lastIndexOf(" "),Z.length);}if(Y.indexOf(".")>-1&&Y.indexOf(" ")>-1){var W=Y.substring(0,Y.lastIndexOf(" "));var X=new Date(Ext.Date.parse(W,mgrDateFormat));var p=Ext.Date.dateFormat(X,getExtjsDateFormat("MMM-dd-yyyy"));
Y=p+Y.substring(Y.lastIndexOf(" "),Y.length);}if(!isNaN(new Date(Z))&&!isNaN(new Date(Y))){Y=new Date(Y).getTime();Z=new Date(Z).getTime();}return Z>Y?1:(Z<Y?-1:0);}});},renderer:function(X,e,c,Z,W,p,Y){e.tdCls="egShowTip";var l=c.get("mouseOverUrl");if(l!=null&&l!="-"){l=l+F;X="<a href=\"javascript:wayToLayerModel('"+l+"')\">"+X+"</a>";
}return X;}});}else{r.push({header:j,sortable:true,flex:d,align:"left",menuDisabled:true,dataIndex:t,hidden:(K!="-1"&&t==K)?true:false,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();
}},renderer:function(X,e,c,Z,W,p,Y){e.tdCls="egShowTip";var l=c.get("mouseOverUrl");if(l!=null&&l!="-"){l=l+F;X="<a href=\"javascript:wayToLayerModel('"+l+"')\">"+X+"</a>";}return X;}});}}}}}if(isShowCheckBox){if(this.selModel==null||Ext.isEmpty(this.selModel)){this.selModel=new Ext.selection.CheckboxModel({checkOnly:true,width:45,injectCheckbox:0,showHeaderCheckbox:false});
}}}else{L="No unknowns found";acknowledgeIconCellIdx=0;var N=0;for(var t in y){var j=y[t];C.push({name:t+"_mouseOverUrl",type:"string"});C.push({name:t,type:"string"});u.push({dataIndex:t,type:"string"});if(t=="COLUMN_0"){r.push({hideable:false,sortable:false,resizable:false,enableColumnHide:true,filter:false,menuDisabled:true,width:30,dataIndex:t,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();}},renderer:function(X,l,W,aa,p,Y,c){var Z=W.get("mouseOverAckDiv");if(!Ext.isEmpty(Z)&&Z!="-"){l.tdCls="egShowTip";}else{l.tdAttr="data-qtip='"+publicJson["screenLabels"]["monitor.currentAlarms.Unknown"]+"' data-qclass=yellowTip";
}X='<div class="'+X+'" style="margin:0px;width:20;padding:0px;cursor:pointer;margin-top: -2px;margin-bottom: 3px;"></div>';var e=W.get("mouseOverUrl");if(e!=null&&e!="-"){e=e+F;X="<a href=\"javascript:wayToLayerModel('"+e+"')\">"+X+"</a>";}return X;}});}else{if(t=="COLUMN_6"&&j=="Unknown Details"){r.push({xtype:"actioncolumn",width:100,layout:{type:"table",columns:1,tdAttrs:{align:"center",valign:"middle",padding:"0 10 0 0",}},items:[{icon:"",tooltip:"Unknown Details",id:"mouseDivID_"+N,getClass:function(l,e,c){var p=c.get("mouseOverUrl");
if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer mouseOverRemove";}else{return"iconAlarmDetails actionIcon";}},handler:function(Y,X,Z,aa,W,p,ab){var l=p.get("mouseOverUrl");var c=p.get("rowIndexValue");if(Ext.isEmpty(c)||c==undefined||c==null){c=X;}if(!Ext.isEmpty(l)&&l!=null&&l!="-"){this.fireEvent("itemClick",mouseDivPop(c,W));
}}}],});N++;}else{r.push({header:j,sortable:true,flex:1,align:"left",menuDisabled:true,dataIndex:t,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();}},renderer:function(X,e,c,Z,W,p,Y){e.tdCls="egShowTip";
var l=c.get("mouseOverUrl");if(l!=null&&l!="-"){l=l+F;X="<a href=\"javascript:wayToLayerModel('"+l+"')\">"+X+"</a>";}return X;}});}}}if(this.selModel==null||Ext.isEmpty(this.selModel)){this.selModel=new Ext.selection.CheckboxModel({checkOnly:true,width:45,injectCheckbox:0,showHeaderCheckbox:false});}}this.columns=r;
if(Ext.isEmpty(this.store)||this.store==null){this.store=new Ext.create("Ext.data.Store",{fields:C,data:V,realData:V,sortOnLoad:true,remoteSort:true,pageSize:a,proxy:{type:"pagingmemory"}});}else{var I={property:o,direction:J};if(o==""&&J==""){I=null;}if(!Ext.isEmpty(I)&&o=="COLUMN_6"){var I={property:o,direction:J,sorterFn:function(W,p){if(!Ext.isEmpty(o)){W=W.get(o);
p=p.get(o);if(W.indexOf(".")>-1&&W.indexOf(" ")>-1){var e=W.substring(0,W.lastIndexOf(" "));var l=new Date(Ext.Date.parse(e,mgrDateFormat));var c=Ext.Date.dateFormat(l,getExtjsDateFormat("MMM-dd-yyyy"));W=c+W.substring(W.lastIndexOf(" "),W.length);}if(p.indexOf(".")>-1&&p.indexOf(" ")>-1){var e=p.substring(0,p.lastIndexOf(" "));
var l=new Date(Ext.Date.parse(e,mgrDateFormat));var c=Ext.Date.dateFormat(l,getExtjsDateFormat("MMM-dd-yyyy"));p=c+p.substring(p.lastIndexOf(" "),p.length);}if(!isNaN(new Date(W))&&!isNaN(new Date(p))){p=new Date(p).getTime();W=new Date(W).getTime();}return W>p?1:(W<p?-1:0);}}};}sampleflag=false;this.store=new Ext.data.Store({fields:C,data:V,realData:V,sortOnLoad:true,remoteSort:true,pageSize:a,proxy:{type:"pagingmemory"},sorters:I});
this.reconfigure(this.store,this.columns);this.store.loadPage(1);}if(!Ext.isEmpty(Ext.getCmp("pagingtoolbarid"))){Ext.getCmp("pagingtoolbarid").bindStore(this.store);}var B={ftype:"rowbody",disabled:false,id:"configFilter",getAdditionalData:function(l,Z,c,Y){var W=this.view.headerCt,X=W.getColumnCount();
var e="ALARM DETAILS";if(!Ext.isEmpty(l["COLUMN_0"])&&l["COLUMN_0"]!=undefined&&l["COLUMN_0"]=="state_UNKNOWN"){e="UNKNOWN DETAILS";}var p=c.get("rowIndexValue");if(Ext.isEmpty(p)||p==undefined||p==null){p=Z;}return{rowBody:'<div class="currAlmGridCellBtmBorder" id="mouseDivRow'+p+'" style="position: relative;display: none;padding: 0px 10px 10px 10px;"><div class="alarmTooltipArrow" id="alarmpopupArrow'+p+'" style="position:relative !important;float:right;margin-right:95px;top:-6px"></div><div class="alarmTooltipHeaderBg alarmTooltipBorder" style="margin-top:7px;width:100%;height:auto" id="configTable1" ><table cellspacing="0" cellpadding="0" border="0" style="width:100%"><tr><td style="width:100%;" class="alarmTooltipHeaderfont">'+e+'</td><td style="padding-top:6px;text-align:right;display:block" ></td><td class="alarmTooltipHeaderfont" style="width:37px"><div class="iconClose3 mouse" style="position:relative;left:0px;"></div></td></tr><tr> <td colspan="3" class="alarmTooltipBodyBg" > <div id="mouseDivDataRow'+p+'" style="height:auto;width:100%;" class="alarmTipBg"></div> </td> </tr></table></div></div><div id="configRow'+p+'" style="position: relative;display: none;padding: 0px 10px 10px 10px;"><div class="popupArrow" id="configpopupArrow'+p+'" style="position:relative !important;float:right;margin-right:48px;margin-top:-5px"></div><div class="configHeaderBg configPopBorder" style="margin-top:7px;width:100%;height:auto" id="configTable1" ><table cellspacing="0" cellpadding="0" border="0" width="100%" style="width:100%"><tr><td class="configPopfont" style="width:100%;padding-left:10px" >CONFIGURATION CHANGES FOR '+l.COLUMN_3+'  DURING LAST 24 hrs</td><td style="padding-top:12px;width:88px;text-align:right;display:block" ><div style="float:left;"><a class="configLink" href="javascript:void(0)" id="configLink'+p+'">More Details</a></div><div class="configSeparator" style="margin-right:5px;margin-top:-1px;"></div></td><td style="padding: 5px 0px 5px 2px;" class="configPopfont"><div class="iconClose3 mouse" style="margin-right:10px"></div></td></tr><tr><td colspan="3" class="configPopBg"><div style="height:auto;width:100%;"><iframe id="iframeId_'+p+'" width="100%" height="100%" border="0" scrolling="yes" marginwidth="0px" marginheight="0px" frameborder="0" > </iframe></div></td></tr></table></div></div>',rowBodyCls:"my-body-class"+Z,rowBodyColspan:X};
}};this.features=[B];if(this.hasOwnProperty("view")){sampleflag=false;var h=this.getView();if(!Ext.isEmpty(h)){if(Ext.isEmpty(V)||(!Ext.isEmpty(V)&&V.length==0)){h.emptyText=G;}else{h.emptyText="";}h.refresh();}}else{if(Ext.isEmpty(V)||(!Ext.isEmpty(V)&&V.length==0)){this.emptyText=G;}else{this.emptyText="";
}}}else{var Q=publicJson["gridJson"];var a=publicJson["DefaultPageSize"];if(dynamicPaginationFlag){a=Math.round($("#currentAlarmsGrid-body").height()/$(".x-grid-row").height());}var y=Q["gridColumns"];var V=Q["gridData"];var s=Q["mouseDivGridData"];var R=publicJson["pageParams"]["alarmType"];var F="&fromPages="+fromPages+"&showAlarms="+showAlarms+"&arrangeAlarms="+arrangeAlarms+"&selectedSubFilterOption="+selectedSubFilterOption+"&FromDashBoard="+FromDashBoard;
var q=this;var C=new Array();var r=new Array();var u=new Array();C.push({name:"mouseOverDiv",type:"string"});C.push({name:"mouseOverUrl",type:"string"});C.push({name:"rowIndexValue",type:"int"});var L="Nounknowns";if(R!=null&&(R=="CurrentAlarms"||R=="Acknowledged"||R=="unAcknowledged"||R=="longestAlarms")){L="No alarms found";
acknowledgeIconCellIdx=1;var f=publicJson["pageParams"]["showCheckBox"];var b=publicJson["pageParams"]["showAckMsg"];if(f!=null&&f=="true"){isShowCheckBox=true;}var n=publicJson["pageParams"]["isAVUser"];var S=false;var x=false;if(b!=null&&b!=undefined&&b=="true"){x=true;}if(n!=null&&n=="true"){S=true;
}if(isShowCheckBox){acknowledgeIconCellIdx=1;}else{acknowledgeIconCellIdx=0;}var N=0;var A=0;for(var t in y){if(t=="COLUMN_1"){if(isShowCheckBox||x){C.push({name:"mouseOverAckDiv",type:"string"});C.push({name:t+"_ChkBoxVal",type:"string"});}continue;}var j=y[t];C.push({name:t,type:"string"});u.push({dataIndex:t,type:"string"});
if(o!=null&&(o=="comp_type"||o.toLowerCase()=="type")){o="COLUMN_2";}else{if(o!=null&&(o=="comp_name"||o.toLowerCase()=="component name/vm name")){o="COLUMN_3";}else{if(o!=null&&(o=="problem_desc"||o.toLowerCase()=="description")){o="COLUMN_4";}else{if(o!=null&&(o=="layer_name"||o.toLowerCase()=="layer")){o="COLUMN_5";
}else{if(o!=null&&(o=="msmt_time"||o.toLowerCase()=="start time")){o="COLUMN_6";}}}}}coloumns.add(t,j);if(j=="empty"){if(t=="COLUMN_0"){r.push({xtype:"actioncolumn",hideable:false,sortable:false,resizable:false,enableColumnHide:true,align:"center",width:46,layout:"hbox",dataIndex:t,items:[{icon:"",style:{"display":"block !important"},id:"stateID_"+A,getClass:function(p,l,e){var c=e.get("COLUMN_0");
if(Ext.isEmpty(c)||c==null||c=="-"){return"x-hide-visibility";}else{return c;}}}],renderer:function(W,e,c,Z,p,l,Y){var X=c.get("mouseOverAckDiv");if(X!=null&&(X!="-"&&X!="")){e.tdCls="egShowTip";}},listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;sortbyalarm=coloumns.get(l);
}var e=c.sortState;currentAlmsApp.getController("Main").loadAlarms();},"click":function(p,Z,l,X,W,c,Y){var e=c.get("mouseOverUrl");if(e!=null&&e!="-"){e=e+F;}if(!Ext.isEmpty(e)&&e!=null&&e!="-"){wayToLayerModel(e);}return;}}});}else{r.push({hideable:false,sortable:false,resizable:false,enableColumnHide:true,filter:false,menuDisabled:true,width:35,align:"left",dataIndex:t,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
sortbyalarm=coloumns.get(l);}var e=c.sortState;},"click":function(p,Z,l,X,W,c,Y){var e=c.get("mouseOverUrl");if(e!=null&&e!="-"){e=e+F;}if(!Ext.isEmpty(e)&&e!=null&&e!="-"){wayToLayerModel(e);}return;}},renderer:function(W,e,c,Y,p,l,X){e.tdCls="egHover";return W;}});}}else{if(j=="Links"&&!S){N++;C.push({name:"COLUMN_SS_name",type:"string"});
C.push({name:"COLUMN_MeasGraph_url",type:"string"});C.push({name:"COLUMN_Config_url",type:"string"});C.push({name:"mouseOverUrl",type:"string"});C.push({name:"rowIndexValue",type:"int"});C.push({name:"COLUMN_DD_url",type:"string"});C.push({name:"COLUMN_AssetMgmt_url",type:"string"});var M=170;if(!Ext.isChrome){M=180;
}r.push({xtype:"actioncolumn",width:M,layout:{type:"table",columns:5,tdAttrs:{align:"left",valign:"middle",padding:"0 10 0 0",}},items:[{icon:"",itemId:"ddID_"+N,tooltip:ddTooltipLbl,getClass:function(l,e,c){var p=c.get("COLUMN_DD_url");if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer actionIcon mouseOverRemove";
}else{return"iconDiagnosis actionIcon";}},handler:function(l,aa,p,W,X,c,Z){var Y=c.get("COLUMN_DD_url");if(!Ext.isEmpty(Y)&&Y!=null&&Y!="-"){this.fireEvent("itemClick",loadPopup(Y));}}},{icon:"",tooltip:"Graph",id:"grpahID_"+t,getClass:function(l,e,c){var p=c.get("COLUMN_MeasGraph_url");if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer mouseOverRemove";
}else{return"iconLineChart actionIcon";}},handler:function(l,aa,p,X,Y,c,Z){var W=c.get("COLUMN_MeasGraph_url");if(!Ext.isEmpty(W)&&W!=null&&W!="-"){}this.fireEvent("itemClick",loadPopup(W));}},{icon:"",tooltip:"Fix History",id:"fxHistoryID_"+N,getClass:function(l,e,c){return"iconHistory actionIcon";},handler:function(l,aa,p,X,Y,c,Z){var W=c.get("COLUMN_MeasGraph_url");
if(!Ext.isEmpty(W)&&W!=null&&W!="-"){W=W.replace("&clicked=graph","&clicked=history");W+="&directClick=true";this.fireEvent("itemClick",loadPopup(W));}}},{icon:"",tooltip:"Alarm Details",id:"mouseDivID_"+N,getClass:function(l,e,c){var p=c.get("mouseOverUrl");if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer mouseOverRemove";
}else{if(!isCitrix){return"iconAlarmDetails actionIcon";}}},handler:function(Y,X,Z,aa,W,p,ab){var l=p.get("mouseOverUrl");var c=p.get("rowIndexValue");if(Ext.isEmpty(c)||c==undefined||c==null){c=X;}if(!Ext.isEmpty(l)&&l!=null&&l!="-"){this.fireEvent("itemClick",mouseDivPop(c,W));}doFitAlarmDetailsTable();
}},{icon:"",tooltip:"Configuration",itemId:"configID_"+N,getClass:function(l,e,c){var p=c.get("COLUMN_Config_url");if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer actionIcon mouseOverRemove";}else{return"iconConfigure actionIcon";}},handler:function(Y,X,Z,aa,p,l,ab){var W=l.get("COLUMN_Config_url");
if(!Ext.isEmpty(W)&&W!=null&&W!="-"){var c=l.get("rowIndexValue");if(Ext.isEmpty(c)||c==undefined||c==null){c=X;}this.fireEvent("itemClick",configPop(W,c,p));}}},{icon:"",itemId:"ssID_"+N,tooltip:"Screenshot",getClass:function(l,e,c){var p=c.get("COLUMN_SS_name");if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer actionIcon mouseOverRemove";
}else{return"iconScreenshot actionIcon";}},handler:function(l,aa,p,W,Y,c,Z){var X=c.get("COLUMN_SS_name");if(!Ext.isEmpty(X)&&X!=null&&X!="-"){openScreenShot(X);}}},{icon:"",tooltip:"Asset",id:"assestID_"+N,getClass:function(p,l,e){var c=e.get("COLUMN_AssetMgmt_url");if(Ext.isEmpty(c)||c==null||c=="-"){return"iconSpacer mouseOverRemove";
}else{return"iconAssetConfiguration actionIcon";}},handler:function(p,aa,W,X,Y,l,Z){var c=l.get("COLUMN_AssetMgmt_url");if(!Ext.isEmpty(c)&&c!=null&&c!="-"){c=decodeURIComponent(c);this.fireEvent("itemClick",loadPopup(c));}}}],listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();}}});}else{if(!S){if(t=="COLUMN_6"){r.push({header:j,sortable:true,width:130,align:"left",menuDisabled:true,dataIndex:t,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;sortbyalarm="msmt_time";
}var e=c.sortState;orderbyalarm=e.toLowerCase();},"click":function(p,Z,l,X,W,c,Y){var e=c.get("mouseOverUrl");if(e!=null&&e!="-"){e=e+F;}if(!Ext.isEmpty(e)&&e!=null&&e!="-"){wayToLayerModel(e);}return;}},doSort:function(e){var c=this.up("grid").store;var l=this.getSortParam();c.sort({property:l,direction:e,sorterFn:function(Z,Y){Z=Z.get(l);
Y=Y.get(l);if(Z.indexOf(".")>-1&&Z.indexOf(" ")>-1){var W=Z.substring(0,Z.lastIndexOf(" "));var X=new Date(Ext.Date.parse(W,mgrDateFormat));var p=Ext.Date.dateFormat(X,getExtjsDateFormat("MMM-dd-yyyy"));Z=p+Z.substring(Z.lastIndexOf(" "),Z.length);}if(Y.indexOf(".")>-1&&Y.indexOf(" ")>-1){var W=Y.substring(0,Y.lastIndexOf(" "));
var X=new Date(Ext.Date.parse(W,mgrDateFormat));var p=Ext.Date.dateFormat(X,getExtjsDateFormat("MMM-dd-yyyy"));Y=p+Y.substring(Y.lastIndexOf(" "),Y.length);}if(!isNaN(new Date(Z))&&!isNaN(new Date(Y))){Y=new Date(Y).getTime();Z=new Date(Z).getTime();}return Z>Y?1:(Z<Y?-1:0);}});},renderer:function(W,e,c,Y,p,l,X){e.tdCls="mouse";
e.tdAttr='data-qtip="'+W+'" data-qclass=yellowTip ';return W;}});}else{var d=0.7;if(t=="COLUMN_2"||t=="COLUMN_5"){d=0.7;}else{if((t=="COLUMN_3"&&j=="Description")||j=="Description"){d=1.5;}else{if((t=="COLUMN_4"&&j=="Start Time")||j=="Start Time"){d=0.5;}else{if(t=="COLUMN_3"){d=0.7;}}}}if(t=="COLUMN_7"&&j=="Manager ID"){d=0.6;
}r.push({header:j,sortable:true,flex:d,align:"left",menuDisabled:true,dataIndex:t,listeners:{"headerclick":function(p,c,X){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;var W="";W=coloumns.get(l);if(W=="Type"){W="comp_type";}else{if(W=="Component Name"){W="comp_name";}else{if(W=="Description"){W="problem_desc";
}else{if(W=="Layer"){W="layer_name";}}}}sortbyalarm=W;}var e=c.sortState;orderbyalarm=e.toLowerCase();},"click":function(p,Z,l,X,W,c,Y){var e=c.get("mouseOverUrl");if(e!=null&&e!="-"){e=e+F;}if(!Ext.isEmpty(e)&&e!=null&&e!="-"){wayToLayerModel(e);}return;}},renderer:function(W,e,c,Y,p,l,X){e.tdCls="mouse";
e.tdAttr='data-qtip="'+W+'" data-qclass=yellowTip ';return W;}});}}else{var d=1.5;if(t=="COLUMN_2"||t=="COLUMN_5"){d=0.6;}else{if(t=="COLUMN_3"){d=0.7;}}if(t=="COLUMN_7"&&j=="Manager ID"){d=0.6;}d=1;r.push({header:j,sortable:true,width:110,align:"left",menuDisabled:true,dataIndex:t,flex:d,resizable:false,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;
sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();},"click":function(l,Y,e,W,p,c,X){}},renderer:function(W,e,c,Y,p,l,X){e.tdCls="mouse";e.tdAttr='data-qtip="'+W+'" data-qclass=yellowTip ';return W;}});}}}}if(isShowCheckBox){if(this.selModel==null||Ext.isEmpty(this.selModel)){this.selModel=new Ext.selection.CheckboxModel({checkOnly:true,width:45,injectCheckbox:0,showHeaderCheckbox:false});
}}}else{L="No unknowns found";acknowledgeIconCellIdx=0;var H=0;for(var t in y){var j=y[t];C.push({name:t,type:"string"});u.push({dataIndex:t,type:"string"});if(t=="COLUMN_0"){r.push({xtype:"actioncolumn",hideable:false,sortable:false,resizable:false,enableColumnHide:true,align:"center",width:40,dataIndex:t,items:[{icon:"",id:"unknowStateID_"+H,getClass:function(p,l,e){var c=e.get("COLUMN_0");
if(Ext.isEmpty(c)||c==null||c=="-"){return"x-hide-visibility";}else{return c;}}}],listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();},"click":function(p,Z,l,X,W,c,Y){var e=c.get("mouseOverUrl");
if(e!=null&&e!="-"){e=e+F;}if(!Ext.isEmpty(e)&&e!=null&&e!="-"){wayToLayerModel(e);}return;}},renderer:function(W,e,c,Y,p,l,X){e.tdCls="mouse";}});}else{if(t=="COLUMN_6"&&j=="Unknown Details"){r.push({xtype:"actioncolumn",width:70,layout:{type:"table",columns:1,tdAttrs:{align:"center",valign:"middle",padding:"0 10 0 0",}},items:[{icon:"",tooltip:"Unknown Details",id:"mouseDivID_"+N,getClass:function(l,e,c){var p=c.get("mouseOverUrl");
if(Ext.isEmpty(p)||p==null||p=="-"){return"iconSpacer mouseOverRemove";}else{return"iconAlarmDetails actionIcon";}},handler:function(Y,X,Z,aa,W,p,ab){var l=p.get("mouseOverUrl");var c=p.get("rowIndexValue");if(Ext.isEmpty(c)||c==undefined||c==null){c=X;}if(!Ext.isEmpty(l)&&l!=null&&l!="-"){this.fireEvent("itemClick",mouseDivPop(c,W));
}}}],});}else{r.push({header:j,sortable:true,flex:1,align:"left",menuDisabled:true,dataIndex:t,listeners:{"headerclick":function(p,c,W){if(coloumns!=null&&coloumns!=undefined){var l=c.dataIndex;sortbyalarm=coloumns.get(l);}var e=c.sortState;orderbyalarm=e.toLowerCase();},"click":function(p,Z,l,X,W,c,Y){var e=c.get("mouseOverUrl");
if(e!=null&&e!="-"){e=e+F;}if(!Ext.isEmpty(e)&&e!=null&&e!="-"){wayToLayerModel(e);}return;}},renderer:function(W,e,c,Y,p,l,X){e.tdCls="mouse";e.tdAttr='data-qtip="'+W+'" data-qclass=yellowTip ';return W;}});}}}if(this.selModel==null||Ext.isEmpty(this.selModel)){this.selModel=new Ext.selection.CheckboxModel({checkOnly:true,width:45,injectCheckbox:0,showHeaderCheckbox:false});
}}try{var k=(Ext.decode(Ext.util.Cookies.get("cAstempColumnDataIndex")));var E=(Ext.decode(Ext.util.Cookies.get("cAstempColumnObj")));if(k==undefined||k==null){k=[];}if(E==undefined||E==null){E=[];}}catch(D){var k=[];var E=[];}if(E.length!=r.length){k=[];E=[];}for(var O=0;O<r.length;O++){if(k!=null&&k.indexOf(r[O].dataIndex)!=-1){var z=[];
for(var U=0;U<k.length;U++){if(k[U]==r[O].dataIndex){z.push(U);}}try{for(var P=0;P<z.length;P++){var w=publicJson["pageParams"].selectedShowOption;var m=r[O].header;if(m=="VM Name"){if(E[z[P]].measureOrgName=="Component Name"){m="Component Name";}else{if(E[z[P]].measureOrgName=="Component Name/VM Name"){m="Component Name/VM Name";
}}}if(m=="Component Name"){if(E[z[P]].measureOrgName=="VM Name"){m="VM Name";}else{if(E[z[P]].measureOrgName=="Component Name/VM Name"){m="Component Name/VM Name";}}}if(m=="Component Name/VM Name"){if(E[z[P]].measureOrgName=="Component Name"){m="Component Name";}}if(E[z[P]].measureOrgName==m&&E[z[P]].compType==w){r[O].flex=E[z[P]].width;
r[O].width=E[z[P]].width;}}}catch(T){}}}this.columns=r;if(Ext.isEmpty(this.store)||this.store==null){this.store=new Ext.create("Ext.data.Store",{fields:C,data:V,realData:V,sortOnLoad:true,remoteSort:true,pageSize:a,proxy:{type:"pagingmemory"}});}else{var I={property:o,direction:J};if(o==""&&J==""){I=null;
}if(!Ext.isEmpty(I)&&o=="COLUMN_6"){var I={property:o,direction:J,sorterFn:function(W,p){if(!Ext.isEmpty(o)){W=W.get(o);p=p.get(o);if(W.indexOf(".")>-1&&W.indexOf(" ")>-1){var e=W.substring(0,W.lastIndexOf(" "));var l=new Date(Ext.Date.parse(e,mgrDateFormat));var c=Ext.Date.dateFormat(l,getExtjsDateFormat("MMM-dd-yyyy"));
W=c+W.substring(W.lastIndexOf(" "),W.length);}if(p.indexOf(".")>-1&&p.indexOf(" ")>-1){var e=p.substring(0,p.lastIndexOf(" "));var l=new Date(Ext.Date.parse(e,mgrDateFormat));var c=Ext.Date.dateFormat(l,getExtjsDateFormat("MMM-dd-yyyy"));p=c+p.substring(p.lastIndexOf(" "),p.length);}if(!isNaN(new Date(W))&&!isNaN(new Date(p))){p=new Date(p).getTime();
W=new Date(W).getTime();}return W>p?1:(W<p?-1:0);}}};}sampleflag=false;this.store=new Ext.data.Store({fields:C,data:V,realData:V,sortOnLoad:true,remoteSort:true,pageSize:a,proxy:{type:"pagingmemory"},sorters:I});this.reconfigure(this.store,this.columns);this.store.loadPage(1);}if(!Ext.isEmpty(Ext.getCmp("pagingtoolbarid"))){Ext.getCmp("pagingtoolbarid").bindStore(this.store);
}var B={ftype:"rowbody",disabled:false,id:"configFilter",getAdditionalData:function(l,Z,c,Y){var W=this.view.headerCt,X=W.getColumnCount();var e="ALARM DETAILS";if(!Ext.isEmpty(l["COLUMN_0"])&&l["COLUMN_0"]!=undefined&&l["COLUMN_0"]=="state_UNKNOWN"){e="UNKNOWN DETAILS";}var p=c.get("rowIndexValue");
if(Ext.isEmpty(p)||p==undefined||p==null){p=Z;}return{rowBody:'<div class="currAlmGridCellBtmBorder" id="mouseDivRow'+p+'" style="position: relative;display: none;padding: 0px 10px 10px 10px;"><div class="alarmTooltipArrow" id="alarmpopupArrow'+p+'" style="position:relative !important;float:right;margin-right:95px;top:-6px"></div><div class="alarmTooltipHeaderBg alarmTooltipBorder" style=margin-top:7px;width:100%;height:auto" id="configTable1" ><table cellspacing="0" cellpadding="0" border="0" style="width:100%"><tr><td style="width:100%;" class="alarmTooltipHeaderfont">'+e+'</td><td style="padding-top:6px;text-align:right;display:block" ></td><td class="alarmTooltipHeaderfont" style="width:37px"><div class="iconClose3 mouse" style="position:relative;left:0px;"></div></td></tr><tr> <td colspan="3" class="alarmTooltipBodyBg" > <div id="mouseDivDataRow'+p+'" style="height:auto;width:100%;" class="alarmTipBg"></div> </td> </tr></table></div></div><div id="configRow'+p+'" style="position: relative;display: none;padding: 0px 10px 10px 10px;"><div class="popupArrow" id="configpopupArrow'+p+'" style="position:relative !important;float:right;margin-right:48px;margin-top:-5px"></div><div class="configHeaderBg configPopBorder" style="margin-top:7px;width:100%;height:auto" id="configTable1" ><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td class="configPopfont" style="width:100%;padding-left:10px" >CONFIGURATION CHANGES FOR '+l.COLUMN_3+'  DURING LAST 24 hrs</td><td style="padding-top:12px;width:88px;text-align:right;display:block" ><div style="float:left;"><a class="configLink" href="javascript:void(0)" id="configLink'+p+'">More Details</a></div><div class="configSeparator" style="margin-right:5px;margin-top:-1px;"></div></td><td style="padding: 5px 0px 5px 2px;" class="configPopfont"><div class="iconClose3 mouse" style="margin-right:10px;position:relative;top:5px"></div></td></tr><tr><td colspan="3" class="configPopBg"><div style="height:auto;width:98.5%;" class="configPopInnerBg"><iframe id="iframeId_'+p+'" width="100%" height="100%" border="0" scrolling="yes" marginwidth="0px" marginheight="0px" frameborder="0" > </iframe></div></td></tr></table></div></div>',rowBodyCls:"my-body-class"+p,rowBodyColspan:X};
}};this.features=[B];if(this.hasOwnProperty("view")){sampleflag=false;var h=this.getView();if(!Ext.isEmpty(h)){if(Ext.isEmpty(V)||(!Ext.isEmpty(V)&&V.length==0)){h.emptyText=G;}else{h.emptyText="";}h.refresh();}}else{if(Ext.isEmpty(V)||(!Ext.isEmpty(V)&&V.length==0)){this.emptyText=G;}else{this.emptyText="";
}}}}else{sampleflag=true;this.columns=[{dataIndex:"COLUMN_0",header:"",flex:1,hidden:true}];this.selModel=new Ext.selection.CheckboxModel({checkOnly:true,width:45,injectCheckbox:0,showHeaderCheckbox:false});if(Ext.isEmpty(this.store)||this.store==null){this.store=Ext.create("Ext.data.Store",{fields:[{name:"COLUMN_0",type:"string"}],data:[],realData:[]});
}else{this.store.fields=[{name:"COLUMN_0",type:"string"}];this.reconfigure(this.store);this.getStore().getProxy().data=[];this.getStore().getProxy().realData=[];this.getStore().load();}if(!Ext.isEmpty(meGridObj)&&meGridObj.hasOwnProperty("view")){var h=meGridObj.getView();if(!Ext.isEmpty(h)){h.emptyText=G;
h.refresh();}if(!Ext.isEmpty(Ext.getCmp("AlarmDeleteBtn"))&&Ext.getCmp("AlarmDeleteBtn")!=null&&Ext.getCmp("AlarmDeleteBtn")!=undefined){Ext.getCmp("AlarmDeleteBtn").hide();}if(!Ext.isEmpty(Ext.getCmp("AlarmAcknowledgeBtn"))&&Ext.getCmp("AlarmAcknowledgeBtn")!=null&&Ext.getCmp("AlarmAcknowledgeBtn")!=undefined){Ext.getCmp("AlarmAcknowledgeBtn").hide();
}if(!Ext.isEmpty(Ext.getCmp("ackOptionsid"))&&Ext.getCmp("ackOptionsid")!=null&&Ext.getCmp("ackOptionsid")!=undefined){Ext.getCmp("ackOptionsid").hide();}}}}});var divCount=1;var gettingComponentDivId=0;var scrolldelay;var get_grid;var ini_top;var page_height=0;var scroll_Animate=0;var scroll_pos;var pane;
var cont_height=0;function pageScroll(){get_grid=document.getElementsByClassName("x-grid-row");ini_top=Math.round(get_grid.length*$(".x-grid-row").height());pane=Ext.getCmp("currentAlarmsGrid");page_height+=scroll_Animate;scroll_Animate=Math.round($(".x-grid-row").height()*10);pane.getEl().down(".x-grid-view").scroll("bottom",scroll_Animate,true);
scrolldelay=setTimeout("pageScroll()",3000);cont_height=$("#currentalarmsmain").height();if(window.parent.tvModePlayAction!=undefined&&window.parent.tvModePlayAction=="pause"){if(Math.round(test_height+cont_height)>=ini_top){stopScroll();setTimeout("startTvModePlayAction()",3000);}}else{if(Math.round(test_height+cont_height)>ini_top){clearTimeout(scrolldelay);
scrolldelay=setTimeout("beforeContinueScroll()",3000);}}}function startTvModePlayAction(){jumpScroll();window.parent.startTvModePlayAction();}function beforeContinueScroll(){pane.getEl().down(".x-grid-view").scroll("top",ini_top,true);scrolldelay=setTimeout("pageScroll()",3000);}function stopScroll(){clearTimeout(scrolldelay);
pane.getEl().down(".x-grid-view").scroll("top",0,true);}function jumpScroll(){pane.getEl().down(".x-grid-view").scroll("top",ini_top,true);clearTimeout(scrolldelay);}scrolldelay=null;delete scrolldelay;function openScreenShot(a){if(Ext.isEmpty(a)||a==null||a==undefined){return;}var d="-";if(a.indexOf("|")>0){d=a.substring(a.indexOf("|")+1);
a=a.substring(0,a.indexOf("|"));}var b="Failure Screenshot";try{Ext.create("Ext.window.Window",{title:b,height:"80%",cls:"logonWindowShadow",modal:true,shadow:"sides",shadowOffset:50,padding:"0 10 10 10",header:{padding:"5 10 3 10",margin:5},resizable:false,width:"80%",items:[{xtype:"component",style:{"align":"center"},listeners:{"render":function(e){Ext.EventManager.onWindowResize(function(f,g){e.doComponentLayout();
});}},autoEl:{tag:"iframe",frameborder:false,width:"100%",height:"100%",style:{"align":"center"},src:"/final/monitor/screenshotDisplay.jsp?managerId="+encodeURI(d)+"&imageID="+encodeURI(a)+".jpg"}}]}).show();}catch(c){}}