Ext.define("HotfixAvailability.view.Main",{extend:"utilities.OuterPanel",alias:"widget.main",requires:["HotfixAvailability.view.FormItems","HotfixAvailability.view.ErrorContainer","configutilities.Tools","Ext.ux.data.PagingMemoryProxy"],id:"main",title:config.title.mainPageTitle,layout:{align:"stretch",type:"vbox"},margin:"8 8 0 8",tools:[{xtype:"button",text:config.title.backTitle,cls:"backbutton",id:"backBtnMain",iconCls:"iconBack",hidden:true},{xtype:"tbseparator",id:"bkSeperator",hidden:true},{xtype:"tools"}],items:[{xtype:"formitems",margin:"8 8 0 8"},{xtype:"panel",id:"hiddenPanel",cls:"containerShadow config_containerShadow",hidden:true,flex:1,scroll:true,autoScroll:true,margin:8,items:[{xtype:"hotfixavailabilitychart",id:"chartPlaceHolder",margin:"10 10 0 10"},{xtype:"grid",cls:"gridSkin",id:"HotfixNameCountGrid",margin:"0 10 10 10",store:new Ext.data.Store({fields:["HotfixName","availableCount","unavailableCount"],data:[],}),dockedItems:[{xtype:"toolbar",padding:"5 0",items:[{xtype:"pagingtoolbar",id:"pagingtoolbartopid",store:this.store,cls:"pagingtoolbar",displayInfo:true,width:"98%",hidden:true},{xtype:"tbfill"},{xtype:"tbseparator",id:"tbseparatorId",hidden:true},{xtype:"button",id:"tc",name:"tc",iconCls:"iconCollapseAll",pressedCls:"iconExpandAll",enableToggle:true,style:{background:"none",border:"0px"},}]},{xtype:"pagingtoolbar",id:"pagingtoolbarbottomid",store:this.store,dock:"bottom",cls:"pagingtoolbar",displayInfo:true,hidden:true}],queryMode:"local",viewConfig:{deferEmptyText:true,cls:"gridSkin",},emptyText:"<table border='0' height='350px' width='100%'><tr><td align=center vlaign=top><img src='/final/admin/eg_images/exclamation-icon.gif'><div>Software not available in systems of the selected OS</div></td></tr></table>",columns:{defaults:{sortable:true,hideable:false,menuDisabled:true,draggable:false,resizable:false,flex:1},items:[{text:config.title.htfxNm,dataIndex:"HotfixName",width:280,height:40,renderer:function(a){sftwrNm=a;
if(a!=""){return a;}}},{text:config.title.nmbrOfCmpntsHvngHtfxs,dataIndex:"availableCount",width:280,height:40,menuDisabled:true,renderer:function(f,c,b,g,e,d,a){if(f==0){return f;}else{return'<a id="mouse" style="vertical-align:text-bottom" href='+config.urls.configServletURL+"?cmd=FilterBySftwrHtfx&ec_criteria="+encodeURIComponent(publicJSON.selectedEcOpt)+"&viewBy="+encodeURIComponent(publicJSON.selectedEcOpt)+"&ec_userOption="+encodeURIComponent(publicJSON.selectedUserOption)+"&softwareOrHotfix=Hotfix&filterBy="+encodeURIComponent("Available Components")+"&osName="+encodeURIComponent(publicJSON.selectedOS)+"&filterByReqFrom=AvailabilityUnAvailability&info="+encodeURIComponent(filterEncode(d.data.items[g].raw.HotfixName))+"&cmpntType=All&showBackButton=true&reqFromPage=AvailabilityUnAvailabilityPage&softwareName="+encodeURIComponent(filterEncode(publicJSON.selectedHotfixName))+"&com.eg.CSRF_NONCE="+publicJSON.CSRF_NONCE+">"+f+"</a>";
}}},{text:config.title.nmbrOfCmpntsNotHvngHtfxs,dataIndex:"unavailableCount",width:280,height:40,renderer:function(f,c,b,g,e,d,a){if(f==0){return f;}else{return'<a id="mouse" style="vertical-align:text-bottom" href='+config.urls.configServletURL+"?cmd=FilterBySftwrHtfx&ec_criteria="+encodeURIComponent(publicJSON.selectedEcOpt)+"&viewBy="+encodeURIComponent(publicJSON.selectedEcOpt)+"&ec_userOption="+encodeURIComponent(publicJSON.selectedUserOption)+"&softwareOrHotfix=Hotfix&filterBy="+encodeURIComponent("Unavailable Components")+"&osName="+encodeURIComponent(publicJSON.selectedOS)+"&filterByReqFrom=AvailabilityUnAvailability&info="+encodeURIComponent(filterEncode(d.data.items[g].raw.HotfixName))+"&cmpntType=All&showBackButton=true&reqFromPage=AvailabilityUnAvailabilityPage&softwareName="+encodeURIComponent(filterEncode(publicJSON.selectedHotfixName))+"&com.eg.CSRF_NONCE="+publicJSON.CSRF_NONCE+">"+f+"</a>";
}}},]}},]},{xtype:"errorcontainer",hidden:true}]});