var hiddenTbseparator=false;var colorForHeader="";var borderForHeader="";var gridPadding="";var gridMargin="";var uxPanelMargin="";var headerMargin="";var hideClientIp=false;var strSkinBg=(strSkin=="Dark")?"#333333":"#f5f5f5";var strSkinBorder=(strSkin=="Dark")?"#333333":"#cdcdcd";if(fromctx!=null&&fromctx!="null"&&fromctx!=""&&fromctx!="undefined"){hiddenTbseparator=true;
colorForHeader="none !important";borderForHeader="none !important";}if(!csv_pdf_hide){hiddenTbseparator=true;}if(fromMetricView!=null&&fromMetricView!="undefined"&&fromMetricView!="null"&&fromMetricView!=""){gridPadding="0 0 0 0";gridMargin="8 0 0 0";colorForHeader="background:"+strSkinBg;borderForHeader="border:1px solid "+strSkinBorder+" !important";
uxPanelMargin="0 0 0 8";headerMargin="0px 0px 0px 8px";}else{gridPadding="8 0 0 0";gridMargin="0 0 8 0";uxPanelMargin="0 8 0 8";headerMargin="0px 0px 0px 0px";}var comboHeaderMargin="8 8 8 8";if(isFromXenVdi){uxPanelMargin=0;comboHeaderMargin="8 0 8 0";}var searchStringText="";try{searchStringText=parent.filterDecode(searchString);
}catch(e){try{searchStringText=parent.parent.filterDecode(searchString);}catch(ee){searchStringText="";}}Ext.define("endUserDashboard.view.MainGrid",{extend:"Ext.panel.Panel",alias:"widget.maingrid",title:"",bodyPadding:gridPadding,scroll:false,margin:gridMargin,cls:"outerpanel",autoScroll:false,padding:"0 0 0 0",id:"endUserView",header:{style:{margin:headerMargin,background:colorForHeader,border:borderForHeader,padding:"3px 3px 3px 3px",}},layout:{type:"vbox",align:"stretch"},hidden:desktopNameHideFlag,border:true,requires:["utilities.OuterPanel","utilities.CommonBackButton","utilities.CommonPanel","utilities.ScrollCombo","utilities.Print","utilities.Settings","utilities.Utilities","utilities.EmptyPanel","endUserDashboard.view.SettingsForm","endUserDashboard.view.HostPanel","endUserDashboard.view.Paging","Ext.ux.form.MultiSelect","endUserDashboard.view.EgComponent","utilities.ErUtils","utilities.Multiselector","endUserDashboard.view.AssociateUsersSettingsForm","utilities.CustomGrid","Ext.selection.CheckboxModel"],view:["endUserDashboard.view.HostPanel","endUserDashboard.view.Paging","endUserDashboard.view.AssociateUsersSettingsForm"],tools:[{xtype:"combo",emptyText:vdiComboEmptyText,fieldLabel:vdiComboLabel,labelAlign:"right",cls:"dropdown uxComboLabel",width:200,labelWidth:35,labelSeparator:"",labelStyle:{"font-size":"20px !important"},name:"vdiTypeCombo",hidden:showVdiHostCombo,id:"vdiTypeCombo",margin:"2 5 5 0",editable:false,displayField:"name",valueField:"value",userTypeField:"usertype",queryMode:"local",value:defaultVdiType2,store:Ext.create("Ext.data.Store",{fields:["name","value","usertype","isLocOverviewSupport"],data:vdiComboListJSON})},{xtype:"trigger",width:160,emptyText:searchEmptyText,labelAlign:"right",labelWidth:40,minWidth:80,labelSeparator:"",maxWidth:240,margin:"0 10 0 0",enableKeyEvents:true,id:"searchString",cls:"whitedropdown_search",value:searchStringText,onTriggerClick:function(){thisApp.getController("Main").onSearchVdi();
}},{xtype:"trigger",width:195,emptyText:adtnlSearchEmptyText,hidden:!addtionalSearchFlag,labelAlign:"right",labelWidth:40,minWidth:80,labelSeparator:"",maxWidth:240,margin:"0 10 0 0",enableKeyEvents:true,id:"adtnlSearchString",cls:"whitedropdown_search",value:adtnlSearchStr,onTriggerClick:function(){thisApp.getController("Main").onSearchVdi();
}},{xtype:"combo",emptyText:limitComboEmptyText,fieldLabel:limitComboLabel,labelAlign:"right",cls:"dropdown uxComboLabel",labelWidth:40,labelSeparator:"",labelStyle:{"white-space":"nowrap"},name:"limitCombo",id:"limitCombo",width:150,editable:false,margin:"0 10 0 0",displayField:"name",valueField:"value",queryMode:"local",value:defaultDispLimit,store:Ext.create("Ext.data.Store",{fields:["name","value"],data:limtsComboJson})},{xtype:"splitter",height:20,margin:"2 0 0 0",draggable:false,width:2,style:{"cursor":"default"},},{xtype:"button",name:"Drag",id:"Drag",margin:"3 0 5 0",iconCls:"iconMoreOptions",style:{background:"none",border:"0px"},hidden:!isMoreOptionsGrid,listeners:{"afterrender":function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"More Options"});
},"mouseover":function(){Ext.destroy(Ext.getCmp("moreOptionsWindowNew"));},"click":function(f){thisApp.getController("Main").loadMoreOptionsGrid();var g=f.el.getX()-290;var d=f.el.getY()+27;var h=this;var b=new Ext.XTemplate('<div style="float:left;margin:0px 0px 0px 0px;text-transform:capitalize !important" class="emdSettingsfont">More Options</div><div style="text-align:right;float:right;"><div class="iconClose3" id="close" ></div></div>');
if(Ext.getCmp("moreOptionsWindowNew")){Ext.destroy(Ext.getCmp("moreOptionsWindowNew"));}if(!Ext.isEmpty(Ext.getCmp("moreOptionsWindowNew"))){Ext.getCmp("moreOptionsWindowNew").destroy();}var c=false;var j=new Ext.selection.CheckboxModel({mode:"SIMPLE",checkOnly:true,width:45,injectCheckbox:0,showHeaderCheckbox:false,pruneRemoved:false,listeners:{"beforedeselect":function(k,a,l){if(l==0||l==1){return false;
}},}});Ext.create("Ext.tip.ToolTip",{title:"More Options",target:"moreOptions",cls:"uxTooltip",id:"moreOptionsWindowNew",width:320,anchor:"top",trackMouse:false,anchorOffset:285,constrainPosition:true,renderTo:Ext.getBody(),autoHide:false,autoShow:false,maxWidth:400,closable:true,items:[{xtype:"panel",id:"chkPanel",padding:"4 5 5 3",width:310,border:true,items:[{xtype:"customgrid",id:"mainGrid",ui:"newGridPanel removeTableBg",autoDestroy:true,autoScroll:true,border:true,scroll:true,store:new Ext.data.Store({fields:["disableVal","checkVal","measName","orgName"],data:[]}),selModel:j,flex:1,height:340,viewConfig:{deferEmptyText:false,plugins:{ptype:"gridviewdragdrop",dragText:"Drag and drop to reorganize",onViewRender:function(a){var l=this,k,n;
var m=new Array();if(l.enableDrag){if(l.containerScroll){n=a.getEl();}l.dragZone=new Ext.view.DragZone({view:a,ddGroup:l.dragGroup||l.ddGroup,dragText:l.dragText,containerScroll:l.containerScroll,scrollEl:n,onBeforeDrag:function(q,t){var u=this,v=q.view,p=v.getSelectionModel(),r=v.getRecord(q.item);store=v.getStore(),k=store.indexOf(r);
var s=p.getSelection();if(!Ext.isEmpty(s)&&s!=undefined){for(var w=0;w<s.length;w++){var o=s[w].raw.measName;if(!Ext.isEmpty(o)&&!Ext.Array.contains(m,o)){m.push(o);}}}if(k==0||k==1){return false;}if(!p.isSelected(r)){q.rowSelected=false;}return true;},onInitDrag:function(p,u){var s=this,t=s.dragData,r=t.view,o=r.getSelectionModel(),q=r.getRecord(t.item);
store=r.getStore(),k=store.indexOf(q);if(o.isSelected(q)&&t.rowSelected==false){o.deselect(q,true);}t.records=[q];s.ddel.update(s.getDragText());s.proxy.update(s.ddel.dom);s.onStartDrag(p,u);return true;},onNodeOver:function(s,o,r,q){var p=q.records;if(k==0||k==1){return Ext.dd.DragZone.prototype.dragNotAllowed;
}else{return Ext.dd.DragZone.prototype.dragAllowed;}}});}if(l.enableDrop){l.dropZone=new Ext.grid.ViewDropZone({view:a,ddGroup:l.dropGroup||l.ddGroup,handleNodeDrop:function(p,r,s){var v=this.view,w=v.getStore(),u,o,q,t;if(p.copy){o=p.records;p.records=[];for(q=0,t=o.length;q<t;q++){p.records.push(o[q].copy());
}}else{p.view.store.remove(p.records,p.view===v);}if(r&&s){u=w.indexOf(r);if(s!=="before"){u++;}if(u==0||u==1){w.insert(k,p.records);}else{w.insert(u,p.records);}}else{w.add(p.records);}if(v!=p.view){v.getSelectionModel().select(p.records);}}});}}},getRowClass:function(a,k){if(a.raw.measName=="Host"||a.raw.measName=="User/Desktops"){return"disableCheckbox";
}}},columns:{defaults:{sortable:false,},items:[{text:"Measures",width:"91%",dataIndex:"measName"}]}}]}]}).showAt([g,d]);}}},{xtype:"tbseparator",cls:"uxSeparator",hidden:hiddenTbseparator||isMoreOptionsGrid,},{xtype:"button",name:"moreOptions",id:"moreOptions",margin:"3 0 5 0",hidden:csv_pdf_hide||isMoreOptionsGrid,iconCls:"iconMoreOptions",style:{background:"none",border:"0px"},listeners:{"afterrender":function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"More Options"});
},"mouseover":function(){Ext.destroy(Ext.getCmp("moreOptionsWindowNew"));},"click":function(f){thisApp.getController("Main").loadMoreOptions();if(Ext.getCmp("moreOptionsWindowNew")!=null&&Ext.getCmp("moreOptionsWindowNew")!=undefined){Ext.destroy(Ext.getCmp("moreOptionsWindowNew"));}try{hidVal=Ext.getCmp("hostMetricsPanel").hidden;
}catch(c){hidVal=true;}if(hidVal){var g=f.el.getX()-270;var d=f.el.getY()+27;hight=300;}else{var g=f.el.getX()-270;var d=f.el.getY()+27;hight=250;}var h=this;var b=new Ext.XTemplate('<div style="float:left;margin:0px 0px 0px 0px;text-transform:capitalize !important" class="emdSettingsfont">More Options</div><div style="text-align:right;float:right;"><div class="iconClose3" id="close" ></div></div>');
Ext.create("Ext.tip.ToolTip",{title:"More Options",target:"moreOptions",cls:"uxTooltip",id:"moreOptionsWindowNew",width:320,anchor:"top",trackMouse:false,anchorOffset:265,constrainPosition:true,renderTo:Ext.getBody(),autoHide:false,autoShow:false,maxWidth:400,closable:true,items:[{xtype:"container",id:"chkPanel",padding:"3 2 3 2",layout:{type:"vbox",align:"center"},items:[{xtype:"panel",autoScroll:true,scroll:true,id:"pnl",height:hight,width:306,autoHeight:true,style:{"overflow-x":"hidden"},items:[]},{xtype:"button",text:"Update",id:"updateBtn",itemId:"Update",margin:"5 0 0 5",cls:"button20",listeners:{"click":function(){thisApp.getController("Main").updateMoreOptions();
Ext.getCmp("moreOptionsWindowNew").destroy();}}}]}]}).showAt([g,d]);}}},{xtype:"tbseparator",margin:"7 5 0 4",hidden:csv_pdf_hide},{xtype:"settings",name:"configWindow",margin:"3 0 5 0",hidden:true},{xtype:"container",margin:"4 0 0 0",id:"saveTool",cls:"iconBg",hidden:csv_pdf_hide,id:"id_pdf",layout:"hbox",items:[{xtype:"button",iconCls:"iconPdf",margin:"3 0 5 0",listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:savePdfLabel});
}},style:{background:"none",border:"0px"},action:"Save PDF",},{xtype:"tbseparator",margin:"7 5 0 4"},{xtype:"button",action:"csv",margin:"3 0 5 0",id:"id_csv",hidden:csv_pdf_hide,iconCls:"iconCsv",style:{background:"none",border:"0px"},listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:saveExcelLabel});
}}},{xtype:"tbseparator",margin:"7 5 0 4",hidden:(!showKeyUser),},{xtype:"button",action:"keyuser",id:"keyuser",margin:"3 0 5 0",iconCls:"iconAddUser",hidden:(!showKeyUser),style:{background:"none",border:"0px"},listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"High Profile Users"});
}}}]},{xtype:"tbseparator",margin:"7 5 0 4",id:"backbtnSep",hidden:true},{xtype:"commonbackbutton",id:"backbtn",name:"backbtn",hidden:true,margin:"0 10 0 0",}],listeners:{"afterrender":function(b){var a=Ext.getCmp("groupCombo");var c=Ext.getCmp("adgroup");if(aduserFilter!=undefined&&aduserFilter!=null&&aduserFilter!=""){if(a!=undefined&&a!=null&&c!=undefined&&c!=null){a.setVisible(true);
if(!Ext.isEmpty(advalue)&&advalue=="user"){c.setVisible(false);}else{c.setVisible(true);}}}this.showConfigDropdown();},"resizex":{fn:function(){var b=Ext.getBody().getViewSize().width-32;var a=Ext.getBody().getViewSize().height;if(Ext.getCmp("formPanel").isVisible()){a=a-120;}else{a=a-55;}if(fromctx!=null&&fromctx!="null"&&fromctx!=""&&fromctx!="undefined"){a=a-215;
}}}},showConfigDropdown:function(){var c=this;var b=new Ext.XTemplate('<div style="float:left;margin:4px 0px 0px 4px;" class="settingsfont">'+defaultSettings+'</div><div style="text-align:right;float:right;"><div class="iconClose3" id="close"></div></div>');Ext.create("Ext.container.Container",{padding:5,margin:"2 0 0 0",id:"configMod",cls:"configMode_popup",style:{"background":"none !important"},items:[{xtype:"container",html:'<div class="configMode_popupArrow" style="top:-14px;left:415px"></div>',},{xtype:"container",html:b.apply(),style:{"top":"0px","margin":"2px"}},{xtype:"settingsForm",parent:c}],renderTo:"endUserView-body",listeners:{render:function(){Ext.get("close").on("click",function(){Ext.get("configMod").animate({duration:500,to:{y:-350},listeners:{"afteranimate":function(){refreshAfterUpdate();
}}});});}}});},items:[{xtype:"container",width:"100%",cls:"uxTool",id:"formPanel",hidden:true,margin:comboHeaderMargin,padding:"0 10 0 10",items:[{xtype:"container",id:"zoneCombo",hidden:true,margin:"10 0 0 0",layout:"hbox",items:[{xtype:"container",id:"filtersConId",width:"95%",hidden:true,layout:"column",defaults:{margin:"5 10 15 10",},items:[{xtype:"combo",editable:false,name:"detailCombo",labelAlign:"left",cls:"dropdown",labelWidth:35,labelSeparator:"",width:175,hidden:showFilter,id:"detailCombo",fieldLabel:"",value:"componentType",displayField:"displayField",valueField:"valueField",queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["displayField","valueField"],}),listeners:{"select":function(){var f=this.getValue();
var b=Ext.getCmp("filterBy");var d=Ext.getCmp("compCombo");var c=Ext.getCmp("compmultipane");var a=Ext.getCmp("formPanel");if(f=="componentType"||f=="componenttype"){if(showComFilter){if(!Ext.isEmpty(this.getJson[f])){b.getStore().loadRawData(this.getJson[f]);var g=b.getStore().getAt(0).get("valueField");
b.setValue(g);}b.hide();if(!Ext.isEmpty(thisApp.compRawData)){d.getStore().loadRawData(thisApp.compRawData);var g=d.getStore().getAt(0).get("valueField");d.setValue(g);}c.show();}else{b.getStore().loadRawData(this.getJson[f]);var g=b.getStore().getAt(0).get("valueField");b.setValue(g);b.show();d.setValue("All");
c.hide();}}else{b.getStore().loadRawData(this.getJson[f]);var g=b.getStore().getAt(0).get("valueField");b.setValue(g);b.show();d.setValue("All");c.hide();}}}},{xtype:"combo",editable:false,name:"filterByCombo",labelAlign:"left",cls:"dropdown",labelWidth:35,labelSeparator:"",width:175,hidden:showFilter,id:"filterBy",value:"All",displayField:"displayField",valueField:"valueField",queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["displayField","valueField"],}),listeners:{"select":function(){var d=this.getValue();
var g=Ext.getCmp("detailCombo");var c=Ext.getCmp("compCombo");var b=Ext.getCmp("compmultipane");var a=Ext.getCmp("formPanel");if(d!="All"){if(g.getValue()=="componentType"){if(!Ext.isEmpty(g.getJson[d])){c.getStore().loadRawData(g.getJson[d]);var f=c.getStore().getAt(0).get("valueField");c.setValue(f);
b.show();if(isFromGeo&&!Ext.isEmpty(compComboValues)&&compComboValues!=null&&compComboValues!=undefined&&compComboValues=="All"){this.setValue("All");}}}else{c.setValue("All");b.hide();}}else{c.setValue("All");b.hide();}}}},{xtype:"egcomponent",},{xtype:"combo",labelAlign:"left",cls:"dropdown uxComboLabel",labelWidth:50,labelSeparator:"",editable:false,name:"searchFilterCombo",width:175,hidden:showFilter,id:"searchFilter",fieldLabel:filterLabel,displayField:"displayField",valueField:"valueField",value:searchFilterGl,queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["displayField","valueField"],}),listeners:{"select":function(c,b){var a=Ext.getCmp("formPanel");
thisApp.getController("Main").loadRelatedInfos(c,c.getValue());}}},{xtype:"combo",labelAlign:"left",cls:"dropdown uxComboLabel",labelWidth:40,labelSeparator:"",editable:false,name:"nextSearchFilterCombo",width:175,hidden:true,id:"nextSearch",fieldLabel:subFilLbl1,displayField:"displayField",valueField:"valueField",value:"All",queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["displayField","valueField"],}),listeners:{"select":function(c,a){var b=Ext.getCmp("searchFilter").getValue();
thisApp.getController("Main").loadRelatedInfos(c,b,c.getValue());}}},{xtype:"combo",labelAlign:"left",cls:"dropdown uxComboLabel",labelWidth:30,labelSeparator:"",editable:false,name:"nextSearch2FilterCombo",width:170,hidden:true,id:"nextSubSearch",fieldLabel:subFilLbl2,displayField:"displayField",valueField:"valueField",value:"All",queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["displayField","valueField"],}),listeners:{"select":function(d,b){var c=Ext.getCmp("searchFilter").getValue();
var a=Ext.getCmp("nextSearch").getValue();thisApp.getController("Main").loadRelatedInfos(d,c,a,d.getValue());}}},{xtype:"combo",editable:false,name:"priorityCombo",labelAlign:"left",cls:"dropdown uxComboLabel",labelWidth:50,labelSeparator:"",width:160,hidden:false,id:"priorityFilter",fieldLabel:priority,value:"All",displayField:"displayField",valueField:"valueField",queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["displayField","valueField"],})},{xtype:"combo",editable:false,labelAlign:"left",cls:"dropdown uxComboLabel",labelWidth:50,labelSeparator:"",editable:false,name:"gatewayFilter",width:130,hidden:(!isGateway),id:"gatewayFilter",fieldLabel:gateway,displayField:"displayField",valueField:"valueField",value:"All",queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["displayField","valueField"],})},{xtype:"combo",width:185,editable:false,name:"groupCombo",labelAlign:"right",cls:"dropdown uxComboLabel",labelWidth:55,labelSeparator:"",id:"groupCombo",hidden:showgroupInfo,fieldLabel:"View By",displayField:"name",valueField:"value",userTypeField:"usertype",queryMode:"local",value:advalue,store:Ext.create("Ext.data.Store",{fields:["name","value","usertype"],data:groupInfo})},{xtype:"combo",labelAlign:"right",cls:"dropdown uxComboLabel",labelWidth:70,labelSeparator:"",editable:false,name:"adgroup",width:165,hidden:true,id:"adgroup",fieldLabel:"",displayField:"displayField",valueField:"valueField",value:aduserFilter,queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["displayField","valueField"],})},{xtype:"button",name:"configWindow",id:"submitFilter",action:"submitFilter",labelWidth:30,width:65,text:submit,cls:"button20",align:"center",height:20,handler:function(){if(!Ext.isEmpty(userUrl)){var a;
var k=Ext.getCmp("detailCombo");detailComboValue=k.getValue();var f=Ext.getCmp("compCombo");var n=f.getValue();var l="";if(!Ext.isEmpty(n)){for(i=0;i<n.length;i++){l+=n[i]+",";}l=l.slice(0,-1);}if(l==undefined||l==null||l==""){l="All";}var o=Ext.getCmp("filterBy");filterByValue=o.getValue();var c=Ext.getCmp("searchFilter");
var h=Ext.getCmp("nextSearch");var j=Ext.getCmp("nextSubSearch");var d=Ext.getCmp("priorityFilter");var m=Ext.getCmp("gatewayFilter");if(isOnlyVMAssigned&&userType=="VDI"){a=userUrl;if(!Ext.isEmpty(d)&&d!=null&&d!=undefined&&d.getValue()!="All"){a+="&filterFlag=true&detail=componentType&compCombo=All&filterBy=Virtual_Machine&priorityFilter="+d.getValue();
}}else{a="&filterFlag=true";a+="&detail="+detailComboValue;a+="&compCombo="+l;a+="&filterBy="+encodeURI(filterByValue);if(c!=undefined&&!c.hidden){a+="&searchFilter="+encodeURI(c.getValue());}a+="&nextSearch="+encodeURI(h.getValue());a+="&nextSubSearch="+encodeURI(j.getValue());if(!Ext.isEmpty(d)&&d!=null&&d!=undefined){a+="&priorityFilter="+d.getValue();
}if(isGateway&&!Ext.isEmpty(m)&&m!=null&&m!=undefined){a+="&gatewayFilter="+m.getValue();}filterParam="";filterParam=a;if(userUrl.indexOf("&filterFlag")!=-1){userUrl=userUrl.substring(0,userUrl.indexOf("&filterFlag"));}if(userUrl.indexOf("&aduserFilter")!=-1){userUrl=userUrl.substring(0,userUrl.indexOf("&aduserFilter"));
}if(!userUrl.endsWith("&")&&!a.startsWith("&")){a=userUrl+"&"+a;}else{if(userUrl.endsWith("&")&&!a.startsWith("&")){a=userUrl+a;}else{if(!userUrl.endsWith("&")&&a.startsWith("&")){a=userUrl+a;}}}var b=Ext.getCmp("adgroup");if(b!=undefined&&b!=null&&b.isVisible()){var g=b.getValue();if(g!=undefined&&g!=null&&g!=""){g=g.replace(/=/g,"|eq|");
g=g.replace(/,/g,"|comma|");a=a+"&aduserFilter="+encodeURIComponent(g);}}if(a!=undefined&&a!=""){userUrl=a;}}if(a.indexOf("fromf5")==-1){a+="&fromf5=true";}if(!Ext.isEmpty(a)){thisApp.getController("Main").updateUserInfo(a);}else{if(!Ext.isEmpty(userUrl)){thisApp.getController("Main").updateUserInfo(userUrl);
}}}}}]},{xtype:"tbfill"},{xtype:"button",cls:"iconPanelUpArrow",margin:"0 0 0 0",style:{"border":"0px","top":"0px !important"},addGrid:function(a){Ext.getCmp("vdiListGrid").add(tempSearchPanel);Ext.getCmp("vdiListGrid").doLayout();},listeners:{"click":function(){maskForGrid=new Ext.LoadMask(Ext.getCmp("vdiListGrid"),{id:"maskForGrid",msg:"Please wait..."});
maskForGrid.show();if(!isHidePaging){var f=Ext.getCmp("afterTextColumn");if(!Ext.isEmpty(f)){pageVal=Ext.getCmp("afterTextColumn").getValue();}}Ext.getCmp("vdiListGrid").removeAll();Ext.suspendLayouts();var j=Ext.getCmp("formPanel");Ext.getCmp("zoneCombo").hide();Ext.getCmp("filtersConId").hide();var g=Ext.getCmp("zoneLabel");
var w=Ext.getCmp("detailCombo");var x=Ext.getCmp("compCombo");var y=Ext.getCmp("filterBy");var m=Ext.getCmp("searchFilter");var v=Ext.getCmp("nextSearch");var q=Ext.getCmp("nextSubSearch");var A=Ext.getCmp("priorityFilter");var h=Ext.getCmp("gatewayFilter");var b=Ext.getCmp("groupCombo");var r=Ext.getCmp("adgroup");
var u=Ext.getCmp("htmlVal");var C="";var c=x.getValue();var k="";var o="";var t=[];u.removeAll(true);if(c!=null&&c!=undefined&&c!="All"){if(c.length==1){var d=c[0];if(!Ext.isEmpty(d)&&d.indexOf(":")>-1){d=d.substring(d.indexOf(":")+1);}var z=false;if(d!=null&&d!=undefined&&d.indexOf(":")>-1){var p=d.substring(d.indexOf(":")+1);
if(p!=null&&p.toLowerCase()!="null"&&p!=undefined&&p!="undefined"){z=true;}}if(d!=null&&d!=undefined&&d.indexOf(":")>-1&&!z){d=d.substring(0,d.indexOf(":"));}k=d;}else{var d=c[0];if(d!=null&&d!=undefined&&d.indexOf(":")>-1){d=d.substring(d.indexOf(":")+1);}for(var a=0;a<c.length;a++){var B=c[a];if(B!=null&&B!=undefined&&B.indexOf(":")>-1){B=B.substring(B.indexOf(":")+1);
}o+=", "+B;}k=o.substring(1);}}if(Ext.isEmpty(k)){k=c;}if(y.isVisible()&&y.getValue()!=undefined&&(!showKeyUser)){if(w.getValue()=="componentType"){if(showComFilter){C+="Component Type - "+y.getRawValue()+"&";}else{if(!Ext.isEmpty(y.getRawValue())){if(y.getValue()=="All"){C+="Component Type - "+y.getRawValue()+"&";
}else{if(!Ext.isEmpty(k)&&k!="All"){C+="Component(s) - "+y.getRawValue()+" - "+k+"&";}else{C+="Component Type - "+y.getRawValue()+"&";}}}}}else{C+=w.getRawValue()+" - "+y.getRawValue()+"&";}}else{if(w.getValue()=="componentType"&&(!showKeyUser)){if(showComFilter){if(!Ext.isEmpty(k)){if(k.indexOf(",")>-1){C+="Component(s) - "+k+"&";
}else{if(w.getValue().toLowerCase()=="componenttype"){C+="Component - "+k+"&";}else{C+=w.getValue()+" - "+k+"&";}}}}else{if(y.getValue()=="All"){C+=w.getRawValue()+" - "+y.getRawValue()+"&";}else{C+=w.getRawValue()+" - "+y.getRawValue()+" - "+k+"&";}}}}if(m.isVisible()&&m.getValue()!=undefined&&(!showKeyUser)){var n=m.getFieldLabel();
if(!Ext.isEmpty(n)&&n!=null&&n!=undefined&&n!="null"&&n!="undefined"){C+=n+" - "+m.getRawValue()+"&";}else{C+="Filter By - "+m.getRawValue()+"&";}}if(v.isVisible()&&m.isVisible()&&v.getRawValue()!=undefined&&(!showKeyUser)){var n=v.getFieldLabel();n=(n!=null&&n.indexOf(">")>0)?n.substring(n.indexOf(">")+1,n.indexOf("</")):n;
if(v.getValue()==""){v.setValue("All");}if(!Ext.isEmpty(n)&&n!=null&&n!=undefined&&n!="null"&&n!="undefined"){if(m.getValue()!="All"){C+=n+" - "+v.getValue()+"&";}}else{C+=m.getRawValue()+" - "+v.getValue()+"&";}}if(q.isVisible()&&v.isVisible()&&q.getRawValue()!=undefined&&(!showKeyUser)){var n=q.getFieldLabel();
n=(n!=null&&n.indexOf(">")>0)?n.substring(n.indexOf(">")+1,n.indexOf("</")):n;if(q.getValue()==""){q.setValue("All");}if(!Ext.isEmpty(n)&&n!=null&&n!=undefined&&n!="null"&&n!="undefined"){if(v.getValue()!="All"){C+=n+" - "+q.getValue()+"&";}}else{C+=v.getRawValue()+" - "+q.getValue()+"&";}}if(!Ext.isEmpty(A)&&A!=undefined&&A!=null&&A.isVisible()){if(A.getValue()==""){A.setValue("All");
}C+=priority+" - "+A.getRawValue()+"&";}if(isGateway&&!Ext.isEmpty(h)&&h!=undefined&&h!=null&&h.isVisible()){if(h.getValue()==""){h.setValue("All");}C+=gateway+" - "+h.getRawValue()+"&";}if(b.isVisible()&&b.getValue()!=undefined&&(!showKeyUser)){C+="View By - "+b.getRawValue()+"&";}if(r.isVisible()&&r.getValue()!=undefined&&(!showKeyUser)){C+="AD Group - "+r.getRawValue()+"&";
}var l=C.split("&");for(var s=0;s<l.length;s++){if(!Ext.isEmpty(l[s])){t.push({xtype:"box",html:l[s]});}}u.add(t);g.show();this.addGrid();Ext.resumeLayouts(true);}}}]},{xtype:"container",id:"zoneLabel",layout:"hbox",margin:"10 0 10 0",items:[{xtype:"container",cls:"uxLabel",width:"95%",id:"htmlVal",layout:"column",defaults:{margin:"3 10 3 10",},html:""},{xtype:"tbfill"},{xtype:"button",cls:"iconTreeDownArrow",margin:"0 0 0 0",style:{"border":"0px","top":"0px !important"},addGrid:function(){try{Ext.getCmp("vdiListGrid").add(tempSearchPanel);
Ext.getCmp("vdiListGrid").doLayout();tempSearchPanel.someFun=function(){if(!Ext.isEmpty(Ext.ComponentQuery.query("#generalMeasuresGrid")[0])){Ext.ComponentQuery.query("#generalMeasuresGrid")[0].someFun=function(){if(!isHidePaging){var b=Ext.getCmp("afterTextColumn");if(!Ext.isEmpty(b)){if(pageVal!=null&&pageVal!=b.getValue()){b.setValue(pageVal);
var c={RETURN:13,getKey:function(){return 13;}};Ext.getCmp("pagingtoolbarCustom").onPagingKeyDown("",c);Ext.getCmp("vdiListGrid").el.unmask();}}}if(!Ext.isEmpty(Ext.getCmp("maskForGrid"))){Ext.getCmp("maskForGrid").destroy();}};}else{if(!Ext.isEmpty(Ext.getCmp("maskForGrid"))){Ext.getCmp("maskForGrid").destroy();
}}};}catch(a){}},listeners:{"click":function(){maskForGrid=new Ext.LoadMask(Ext.getCmp("vdiListGrid"),{id:"maskForGrid",msg:"Please wait..."});maskForGrid.show();if(!isHidePaging){var h=Ext.getCmp("afterTextColumn");if(!Ext.isEmpty(h)){pageVal=Ext.getCmp("afterTextColumn").getValue();}}Ext.getCmp("vdiListGrid").removeAll();
Ext.suspendLayouts();var m=Ext.getCmp("searchFilter");var g=m.getValue();var c=Ext.getCmp("nextSearch").getValue();var f=Ext.getCmp("nextSubSearch").getValue();var k=Ext.getCmp("detailCombo").getValue();var b=Ext.getCmp("filterBy").getValue();var a=Ext.getCmp("compmultipane");var d=Ext.getCmp("formPanel");
var j=Ext.getCmp("compCombo");if(k!=null&&k=="componentType"){if(b!=null&&b=="All"){if(showComFilter){Ext.getCmp("compmultipane").show();}else{Ext.getCmp("compmultipane").hide();}}else{var l=j.getValue();if(l!=null&&l!=undefined&&l!=""){Ext.getCmp("compmultipane").show();}else{Ext.getCmp("compmultipane").hide();
}}}thisApp.getController("Main").loadRelatedInfos(m,g,c,f);Ext.getCmp("zoneCombo").show();Ext.getCmp("filtersConId").show();Ext.getCmp("zoneLabel").hide();this.addGrid();Ext.resumeLayouts(true);}}}]}],listeners:{afterrender:function(){if(!hideClientIp){Ext.getCmp("adtnlSearchString").hide();}if(fromctx!=null&&fromctx!="null"&&fromctx!=""&&fromctx!="undefined"){return;
}else{if(endUserOverviewFlag||!isDetailsFromADOnly){return;}else{thisApp.getController("Main").loadFilterOptions();}}}}},{xtype:"container",padding:headerPadding,width:"100%",flex:1,border:false,margin:uxPanelMargin,layout:{type:"vbox",align:"stretch"},padding:0,id:"vdiListGrid",}],initComponent:function(){var u=this;
this.html="";var o=requestParams.treeFlag_SBD;var b=requestParams.outsideService_SBD;var s=requestParams.titleText_SBD;var r=requestParams.selectNode_SBD;var n=requestParams.isEmulTrans_SBD;var w=requestParams.serviceState_SBD;var m=requestParams.serviceName;var l=requestParams.serviceState;var f=requestParams.isServiceBusiDash;
var g="/final/monitor/endUserDashboardData.jsp?user="+user;if(userName!=null&&userName!=""){g+="&username="+userName;}var q=defaultDispLimit;var j=defaultVdiType;g=g+"&userType="+userType;if(searchString!=null&&searchString!="null"&&searchString!=""&&searchString!="undefined"){g=g+"&searchString="+encodeURI(searchString);
}if(q!=null&&q!="null"&&q!=""&&q!="undefined"){g=g+"&priority="+q;}if(j!=null&&j!="null"&&j!=""&&j!="undefined"){g=g+"&vdiType="+j;}if(orderByColumn!=null&&orderByColumn!="null"&&orderByColumn!=""&&orderByColumn!="undefined"){g=g+"&orderByColumn="+orderByColumn;}if(orderBy!=null&&orderBy!="null"&&orderBy!=""&&orderBy!="undefined"){g=g+"&orderBy="+orderBy;
}if(currColumnType!=null&&currColumnType!="null"&&currColumnType!=""&&currColumnType!="undefined"){g=g+"&columnType="+currColumnType;}if(fromctx!=null&&fromctx!="null"&&fromctx!=""&&fromctx!="undefined"){g=g+"&fromctx="+fromctx;}if(fromMetricView!=null&&fromMetricView!="null"&&fromMetricView!=""&&fromMetricView!="undefined"){g=g+"&fromMetricView="+fromMetricView;
}if(isFromXenVdi!=null&&isFromXenVdi!=undefined){g=g+"&isFromXenVdi="+isFromXenVdi;}if(isFromMenu){g=g+"&fromMenu=true";}if(showKeyUser){g=g+"&showKeyUser=true";}if(updateUserAssociateFlag){g=g+"&updateUserAssociate=true";}if(isFromGeo){g=g+"&fromGeo=true&iniName="+iniName+"&user_name="+user_name+"&isUserBased="+isUserBased+"&dashboard_name="+dashboard_name+"&view_name="+view_name+"&dashboard_mapping="+dashboard_mapping+"&time_line="+time_line+"&ginfo="+geoInfo+"&usercountval="+usercountval+"&fromServiceHomePage="+fromServiceHomePage+"&fromZonePage="+fromZonePage+"&selectedTest="+encodeURIComponent(selectedTest)+"&selectedMeasure="+selectedMeasure;
if(!Ext.isEmpty(backObject)&&!Ext.isEmpty(backObject.overviewType)&&(backObject.overviewType=="OverviewAppXenApp7"||backObject.overviewType=="OverviewAppVDI")){g=g+"&overviewType="+backObject.overviewType;}}if(aduserFilter!=undefined&&aduserFilter!=null&&aduserFilter!=""){aduserFilter=aduserFilter.replace(/=/g,"|eq|");
aduserFilter=aduserFilter.replace(/,/g,"|comma|");g=g+"&aduserFilter="+encodeURIComponent(aduserFilter);}if(endUserOverviewFlag){g=g+"&endUserDashOverview="+endUserOverviewFlag;}if(!Ext.isEmpty(enableBackButton)&&enableBackButton!=null&&enableBackButton!=undefined&&(enableBackButton=="true"||enableBackButton==true)){g=g+"&enableBackButton="+enableBackButton;
}if(!Ext.isEmpty(isFromUEDOverview)&&isFromUEDOverview!=null&&isFromUEDOverview!=undefined&&(isFromUEDOverview=="true"||isFromUEDOverview==true)){g=g+"&isfromuedoverview="+isFromUEDOverview;}if(!Ext.isEmpty(overviewSearchStr)&&overviewSearchStr!=null&&overviewSearchStr!=undefined&&(overviewSearchStr=="true"||overviewSearchStr==true)){g=g+"&overviewsearchstr="+overviewSearchStr;
}if(!Ext.isEmpty(isfromuedsort)&&isfromuedsort!=null&&isfromuedsort!=undefined&&(isfromuedsort=="true"||isfromuedsort==true)){g=g+"&isfromuedsort="+isfromuedsort;}if(!Ext.isEmpty(g)&&g!=null&&g!=undefined){endUserOverviewParams=g.substring(g.indexOf("?")+1);}if(filterParam!=null&&filterParam!="null"&&filterParam!=""&&filterParam!="undefined"&&filterParam!=undefined){var d="";
if(filterParam!=null&&!Ext.isEmpty(filterParam)){filterParam=filterParam.substring(1,filterParam.length);var c=filterParam.split("&");var k="";for(i=0;i<c.length;i++){if(c[i]!=null&&!Ext.isEmpty(c[i])){k=c[i].split("=");if(k[0]!=null&&!Ext.isEmpty(k[0])&&k[1]!="undefined"&&k[1]!=undefined){if(k[0]=="selectNode"){d+="&"+k[0]+"="+k[1];
}else{d+="&"+k[0]+"="+encodeURIComponent(k[1]);}}}}}g=g+d;}if(!Ext.isEmpty(isServiceBusiViewMetrics)&&isServiceBusiViewMetrics!=null&&isServiceBusiViewMetrics!=undefined&&(isServiceBusiViewMetrics=="true"||isServiceBusiViewMetrics==true)){g=g+"&isServiceBusiViewMetrics="+isServiceBusiViewMetrics+"&treeFlag_SBD="+o+"&outsideService_SBD="+b+"&titleText_SBD="+s+"&selectNode_SBD="+r+"&serviceFromZone="+m+"&isEmulTrans_SBD="+n+"&serviceName="+m+"&serviceState_SBD="+w+"&isServiceBusiDash="+f;
if(!Ext.isEmpty(filterByGl)&&filterByGl!=null&&filterByGl!=undefined){g=g+"&filterBy="+filterByGl+"&subFilter="+subFilterGl;}}if((!Ext.isEmpty(isfromCitrix)&&isfromCitrix!=null&&isfromCitrix!=undefined&&(isfromCitrix=="true"||isfromCitrix==true))||(!Ext.isEmpty(isfromRum)&&isfromRum!=null&&isfromRum!=undefined&&(isfromRum=="true"||isfromRum==true))){if(isfromRum!=null&&isfromRum!="null"&&isfromRum!=""&&isfromRum!="undefined"){if((serviceComponent!=null&&serviceComponent!="null"&&serviceComponent!=""&&serviceComponent!="undefined"&&serviceComponent=="true")||(fromHostPanel!=null&&fromHostPanel!="null"&&fromHostPanel!=""&&fromHostPanel!="undefined"&&fromHostPanel=="true")){g=g+"&iniName=eg_rumdashboard&isfromRum=true&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+appliesTo+"&isBackFromRUM=false&filter=Service&filterBy="+subFilterGl+"&view_name="+view_name+"&subFilter="+subFilterGl;
}else{g=g+"&iniName=eg_rumdashboard&isfromCitrix=true&isfromRum=true&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+appliesTo+"&isBackFromRUM=false&filter=Service&filterBy="+subFilterGl+"&view_name="+view_name+"&subFilter="+subFilterGl;}}else{if(g!=""&&g!=null){g=g+"&fromMetricView=true&isfromCitrix="+isfromCitrix+"&iniName="+iniName+"&action=loadViewData&user_name="+user_name+"&fromMenu=true&showConfig=true&fromUED=true&dashboard_name="+dashboard_name+"&dashboard_mapping="+dashboard_mapping+"&view_name="+view_name+"&selectedTest="+encodeURIComponent(selectedTest)+"&selectedMeasure="+selectedMeasure+"&fromSerComboChange="+fromSerComboChange+"&fromServiceHomePage="+fromServiceHomePage;
}}if((serviceComponent!=null&&serviceComponent!="null"&&serviceComponent!=""&&serviceComponent!="undefined"&&serviceComponent=="true")||(fromHostPanel!=null&&fromHostPanel!="null"&&fromHostPanel!=""&&fromHostPanel!="undefined"&&fromHostPanel=="true")){g=g+"&selectedRum="+selectedRum+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&isUserBased="+isUserBased+"&fromZonePage="+fromZonePage+"&comptype="+backObject.comptype+"&fromHostPanel=true";
}g=g+"&isFromZone="+isFromZone+"&iszoneName="+iszoneName+"&parentZone="+parentZone;}if((segmentComponent!=null&&segmentComponent!="null"&&segmentComponent!=""&&segmentComponent!="undefined"&&segmentComponent=="true")||(fromHostPanel!=null&&fromHostPanel!="null"&&fromHostPanel!=""&&fromHostPanel!="undefined"&&fromHostPanel=="true")){g=g+"&fromHostPanel=true&segmentComponent=true&fromHomepage="+backObject.fromHomepage+"&isFromZone="+isFromZone+"&iszoneName="+iszoneName+"&parentZone="+parentZone;
}else{if((zoneComponent!=null&&zoneComponent!="null"&&zoneComponent!=""&&zoneComponent!="undefined"&&zoneComponent=="true")||(fromHostPanel!=null&&fromHostPanel!="null"&&fromHostPanel!=""&&fromHostPanel!="undefined"&&fromHostPanel=="true")){g=g+"&fromHostPanel=true&zoneComponent=true&fromHomepage="+backObject.fromHomepage+"&isFromZone="+isFromZone+"&iszoneName="+iszoneName+"&parentZone="+parentZone;
}}var v=Ext.getCmp("priorityFilter");if(!Ext.isEmpty(v)&&v!=undefined&&v!=null){g=g+"&priorityFilter="+v.getRawValue();}var h=Ext.getCmp("gatewayFilter");if(isGateway&&!Ext.isEmpty(h)&&h!=undefined&&h!=null){g=g+"&gatewayFilter="+h.getRawValue();}if(!Ext.isEmpty(adtnlSearchStr)&&adtnlSearchStr!=null&&adtnlSearchStr!="null"&&adtnlSearchStr!=""&&adtnlSearchStr!="undefined"){g=g+"&adtnlSearchStr="+adtnlSearchStr;
}var p=u.id;if(!Ext.isEmpty(p)){var a=new Ext.LoadMask(Ext.getBody(),{msg:"Please wait..."});a.show();try{this.setVisible(false);}catch(t){}}userUrl=g;if(!Ext.isEmpty(endUserOverviewParams)&&!Ext.isEmpty(overviewSearchStr)&&overviewSearchStr!=null&&overviewSearchStr!=undefined&&overviewSearchStr!="null"&&overviewSearchStr!="undefined"){endUserOverviewParams=endUserOverviewParams+"&searchString="+overviewSearchStr;
}Ext.Ajax.request({url:g,method:"POST",scope:this,timeout:280000,success:function(z,F){var G=z.responseText;var C=Ext.decode(G);var J=Ext.get("vdiListGrid");var P=C["FIlTER"];thisApp.getController("Main").checkFilterSession(P);if(J!=null&&J!=undefined){J.fil_json=C["fil_json"];}var E=Ext.getCmp("adtnlSearchString");
hideClientIp=C.addtionalSearchFlag;if(!Ext.isEmpty(C.addtionalSearchFlag)&&C.addtionalSearchFlag!=undefined&&(C.addtionalSearchFlag==false||C.addtionalSearchFlag=="false")&&(!Ext.isEmpty(E)&&E!=undefined)&&!Ext.isEmpty(C.isFromHost)&&C.isFromHost!=undefined&&(C.isFromHost==true||C.addtionalSearchFlag=="true")){E.value="";
E.hide();}else{if((addtionalSearchFlag)&&(!Ext.isEmpty(E)&&E!=undefined)&&!Ext.isEmpty(C.addtionalSearchFlag)&&C.addtionalSearchFlag!=undefined&&(C.addtionalSearchFlag==true||C.addtionalSearchFlag=="true")){E.show();E.emptyText=C.addSearchEmptyText;E.reset();adtnlSearchEmptyText=C.addSearchEmptyText;
}}if(!Ext.isEmpty(C["header_display"])){this.setTitle(C["header_display"]);this.setIconCls(C["header_display_icon"]);}else{if(Ext.isEmpty(C["header_display"])){if(endUserOverviewFlag){if(!Ext.isEmpty(userType)&&userType!=null&&userType!=undefined&&(userType=="XenApp"||userType=="XenApp7")){Ext.getCmp("endUserView").setTitle("Citrix User Experience By Location for "+userType);
}else{Ext.getCmp("endUserView").setTitle("User Experience By Location for "+userType);}}else{if(showKeyUser){Ext.getCmp("endUserView").setTitle("User Experience Overview for High Profile "+userType+" Users");}else{Ext.getCmp("endUserView").setTitle("User Experience Overview for "+userType);}}}}if(!Ext.isEmpty(C["inner_header"])){Ext.getCmp("hostMetricsPanel").setTitle(C["inner_header"]);
}if(!Ext.isEmpty(C["GRID_DATA"])){}else{if(!Ext.isEmpty(C["REDIRECT"])&&C["REDIRECT"]){window.document.location=C["REDIRECT_URL"];}}if(!Ext.isEmpty(C["isDataAvail"])){isDataAva=C["isDataAvail"];}var H=C["enableBackButton"];var O=C["isShowLocColumn"];var B=C["error"];var M=Ext.getCmp("backbtn");var A=Ext.getCmp("backbtnSep");
var I=Ext.getCmp("moreOptions");var L=false;if(!Ext.isEmpty(B)&&B!=null&&B!=undefined){L=true;}if((!Ext.isEmpty(H)&&H!=null&&H!=undefined&&(H=="true"||H==true))&&(!Ext.isEmpty(M)&&M!=null&&M!=undefined)){M.setVisible(true);A.setVisible(true);if(!Ext.isEmpty(Ext.getCmp("backseparator"))&&Ext.getCmp("backseparator")!=null&&Ext.getCmp("backseparator")!=undefined){Ext.getCmp("backseparator").setVisible(true);
}}if(!endUserOverviewFlag&&!isDetailsFromADOnly&&(fromMetricView==null||fromMetricView=="null"||fromMetricView==""||fromMetricView=="undefined"||fromMetricView==undefined)){thisApp.getController("Main").loadFilterOptions();}if(endUserOverviewFlag||L){if(!Ext.isEmpty(I)&&I!=null&&I!=undefined){I.setVisible(false);
if(!Ext.isEmpty(E)&&E!=null&&E!=undefined){E.value="";E.hide();}}}if((!Ext.isEmpty(O)&&O!=null&&O!=undefined&&(O=="false"||O==false))){Ext.getCmp("formPanel").setVisible(false);}if(!Ext.isEmpty(C["isFromHost"])){Ext.getCmp("hostMetricsPanel").setVisible(true);Ext.getCmp("hostDetailsId").renderHostData(C["HostMetrics"]);
}var D=Ext.getCmp("vdiListGrid");if(D!=null&&D!=undefined&&D.items!=null&&D.items!=undefined){var y=D.items.items;for(var K=y.length-1;K>-1;K--){y[K].destroy();}}var x={xtype:"generalMeasuresGridPanel",plugins:Ext.create("Ext.ux.AutoColumnWithLockingPlugin"),ui:"newGridPanel removeTableBg",itemId:"userExperience",margin:0,padding:0,frame:false,border:false,flex:1,border:0,autoScroll:true,url:g,someFun:Ext.emptyFn,listeners:{"afterrender":function(U){var R="empty";
var V="empty";var Q="empty";try{R=Ext.getCmp("filterBy").getValue();V=Ext.getCmp("detailCombo").getValue();Q=Ext.getCmp("compmultipane").getValue();}catch(T){}var S=R+""+V+""+Q;if(userType=="OverviewAppXenApp7"||userType=="OverviewAppVDI"||(isOnlyVMAssigned&&userType=="VDI")){this.loadTabJson(C,U.url,"true","endUserDashboard-"+userType,S);
}else{this.loadTabJson(C,U.url,fromMetricView,"endUserDashboard-"+userType,S);}a.hide();x.someFun();}}};if(Ext.getCmp("vdiListGrid")!=null&&Ext.getCmp("vdiListGrid")!=undefined){if(!Ext.isEmpty(C)&&C.hasOwnProperty("countJson")&&C.countJson.hasOwnProperty("isHidePaging")){isHidePaging=C.countJson.isHidePaging;
}else{isHidePaging=true;}tempSearchPanel=x;Ext.getCmp("vdiListGrid").add(x);Ext.getCmp("vdiListGrid").doLayout();}try{this.setVisible(true);}catch(N){}},failure:function(){}});this.callParent();}});