📄 a573e888.js
字号:
if(!window.ComponentArt_NavBar_Kernel_Loaded){window.ComponentArt_NavBar=function(qzvi,qzvh,qqRc){this.ClientControlId=this.NavBarID=qzvi;if(!qzvh){this.ItemStorageArray=new Array();}else{this.ItemStorageArray=qzvh;};this.qzea=new Array();this.LoadItems();this.Height=300;this.Width=200;this.qzad=null;this.qzai=null;this.qzfj=null;this.qzal=null;this.qzfw=0;this.qzap=0;this.qzkj=0;this.FocusedCssClass='';this.ForceHighlightedNodeID='';this.ScrollDownImageUrl='';this.ScrollUpImageUrl='';this.ScrollDownHoverImageUrl='';this.ScrollUpHoverImageUrl='';this.ScrollDownActiveImageUrl='';this.ScrollUpActiveImageUrl='';this.ItemLooks=new ComponentArt_ItemLookCollection(qqRc);this.SelectedItem=null;};ComponentArt_NavBar.prototype.GetProperty=function(propName){return this[propName];};ComponentArt_NavBar.prototype.SetProperty=function(propName,propValue){this[propName]=propValue;};ComponentArt_NavBar.prototype.AddItem=function(item){if(item.ParentNavBar==this){var oldParentItem=item.ParentItem;if(oldParentItem!=null){ComponentArt_RemoveValueFromArray(oldParentItem.ChildItemArray,item);ComponentArt_RemoveValueFromArray(oldParentItem.ChildIndexes,item.StorageIndex);};item.ParentItem=null;item.Data[1]=-1;item.qzcu=0;}else{var newItemStorageIndex=this.ItemStorageArray.length;this.ItemStorageArray[newItemStorageIndex]=[item.Data[0],-1,[],[]];var newItemProperties=this.ItemStorageArray[newItemStorageIndex][3],oldItemProperties=item.Data[3];for(var qzba=0;qzba<oldItemProperties.length;qzba++){newItemProperties[qzba]=[oldItemProperties[qzba][0],oldItemProperties[qzba][1]];};var newItem=this.LoadItem(newItemStorageIndex,null);};};ComponentArt_NavBar.prototype.ArrayToXml=function(arData,bEncode){var oldArrayToString=Array.prototype.toString;Array.prototype.toString=function(){return'<r><c>'+this.join('</c><c>')+'</c></r>';};var sXml=arData.toString();if(bEncode){sXml=escape(sXml);};Array.prototype.toString=oldArrayToString;return sXml;};ComponentArt_NavBar.prototype.CollapseAll=function(){var nodes=this.Items();for(var qzAde=0;qzAde<nodes.length;qzAde++){if(nodes[qzAde].Expanded){nodes[qzAde].SetProperty('Expanded',false);};};this.Render();};ComponentArt_NavBar.prototype.ExpandAll=function(){var nodes=this.Items();for(var qzAde=0;qzAde<nodes.length;qzAde++){if(nodes[qzAde].ChildIndexes.length>0){if(!nodes[qzAde].Expanded){nodes[qzAde].SetProperty('Expanded',true);};};};this.Render();};ComponentArt_NavBar.prototype.FindItemById=function(id,bPostbackId){return bPostbackId?this.FindItemByPostBackId(id):this.FindItemByProperty('ID',id);};ComponentArt_NavBar.prototype.FindItemByPostBackId=function(itemPostBackId){return this.FindItemByProperty('PostBackID',itemPostBackId);};ComponentArt_NavBar.prototype.FindItemByProperty=function(qqGz,qqGy){for(var qzba=0;qzba<this.qzea.length;qzba++){var item=this.qzea[qzba];if(item.GetProperty(qqGz)==qqGy){return item;};};return null;};ComponentArt_NavBar.prototype.GetClientTemplate=function(templateId){if(this.ClientTemplates){for(var qzba=0;qzba<this.ClientTemplates.length;qzba++){if(this.ClientTemplates[qzba][0]==templateId){return this.ClientTemplates[qzba][1];};};};return null;};ComponentArt_NavBar.prototype.GetFirstRootItemIndex=function(){return this.GetRootItemIndexes()[0];};ComponentArt_NavBar.prototype.GetItemByStorageIndex=function(index){return this.qzea[index];};ComponentArt_NavBar.prototype.qzo=function(index){if(index<0){return null;};return this.GetItemByStorageIndex(index).CalculateProperties();};ComponentArt_NavBar.prototype.GetItems=function(param){if(param==null){var qzzf=this.GetRootItemIndexes(),rootItems=new Array();for(var qzba=0;qzba<qzzf.length;qzba++){rootItems[qzba]=this.GetItemByStorageIndex(qzzf[qzba]);};return rootItems;}else{if(typeof(param)=='number'){return this.GetItemByStorageIndex(this.GetRootItemIndexes()[param]);}else{var qzzf=this.GetRootItemIndexes();for(var qzba=0;qzba<qzzf.length;qzba++){if(this.qzea[qzzf[qzba]].GetProperty('ID')==param){return this.GetItemByStorageIndex(qzzf[qzba]);};};return null;};};};ComponentArt_NavBar.prototype.GetLastRootItemIndex=function(){var qzzf=this.GetRootItemIndexes();return qzzf[qzzf.length-1];};ComponentArt_NavBar.prototype.GetRootItemIndices=ComponentArt_NavBar.prototype.GetRootItemIndexes=ComponentArt_NavBar.prototype.qzAgk=function(){var qzzf=new Array();for(var qzba=0;qzba<this.ItemStorageArray.length;qzba++){var itemParentIndex=this.ItemStorageArray[qzba][1];if(itemParentIndex<0&&itemParentIndex!=-33){qzzf[qzzf.length]=qzba;};};return qzzf;};ComponentArt_NavBar.prototype.Initialize=function(){qzbk=this;this.qzAgh=this.NavBarID+'_div';this.Render(true);};ComponentArt_NavBar.prototype.Items=function(param){var items=this.GetItems(param);if(items==null){return null;}else if(items instanceof ComponentArt_NavBarItem){return items.CalculateProperties();}else{for(var qzba=0;qzba<items.length;qzba++){items[qzba].CalculateProperties();};return items;};return null;};ComponentArt_NavBar.prototype.LoadItem=function(itemStorageIndex,parentItem){var item=new ComponentArt_NavBarItem();item.ParentNavBar=this;item.ParentItem=parentItem;item.StorageIndex=itemStorageIndex;this.qzea[itemStorageIndex]=item;item.Data=this.ItemStorageArray[itemStorageIndex];item.ParentIndex=parentItem==null?-1:parentItem.StorageIndex;item.PostBackID=item.Data[0];item.IsSelected=item.IsChildSelected=false;item.Properties=item.Data[3];item.ChildItemArray=new Array();item.ChildIndexes=item.Data[2];item.qzcu=parentItem==null?0:parentItem.qzcu+1;for(var qzba=0;qzba<item.ChildIndexes.length;qzba++){item.ChildItemArray[item.ChildItemArray.length]=this.LoadItem(item.ChildIndexes[qzba],item);};return item;};ComponentArt_NavBar.prototype.LoadItems=function(){var qzzf=this.GetRootItemIndexes();this.ChildItemArray=new Array();for(var qzba=0;qzba<qzzf.length;qzba++){this.ChildItemArray[this.ChildItemArray.length]=this.LoadItem(qzzf[qzba],null);};};ComponentArt_NavBar.prototype.LoadProperties=function(propArray){if(propArray==null){propArray=this.PropertyStorageArray;};for(var qzba=0;qzba<propArray.length;qzba++){this[propArray[qzba][0]]=propArray[qzba][1];};};ComponentArt_NavBar.prototype.RemoveItem=function(){var position,item,itemstorageindex;if(isNaN(arguments[0])){var item=arguments[0],position=ComponentArt_FindInArray(this.qzAgk(),item.StorageIndex),itemstorageindex=item.StorageIndex;}else{var position=arguments[0],itemstorageindex=this.qzAgk()[position],item=this.GetItemByStorageIndex(itemstorageindex);};if(item==null){return false;};if(this.SelectedItem==item){this.SelectedItem=null;};item.ParentItem=null;item.ParentNavBar=null;item.StorageIndex=item.Data[1]=-33;return true;};ComponentArt_NavBar.prototype.Render=function(qzww){this.Rendered=false;ComponentArt_NavBar_ClearPropertyCalculatedFlags(this);var qzn=document.getElementById(this.qzAgh);this.FullExpandHeight=0;if(!qzww&&this.FillContainer){var qzmt;if(qzn.parentNode.style.height.indexOf('px')>0){qzmt=parseInt(qzn.parentNode.style.height);}else{qzmt=qzn.parentNode.offsetHeight;};var qzoz;if(qzn.parentNode.style.width.indexOf('px')>0){qzoz=parseInt(qzn.parentNode.style.width);}else{qzoz=qzn.parentNode.offsetWidth;};if(cart_browser_mozilla){qzoz=ComponentArt_GetAdjustedWidth(qzn,qzoz);qzmt=ComponentArt_GetAdjustedHeight(qzn,qzmt);};qzn.style.width=qzoz+'px';qzn.style.height=qzmt+'px';}else if(qzww){if(qzn.style.width.indexOf('px')>0){var qzoz=parseInt(qzn.style.width);if(cart_browser_mozilla){qzoz=ComponentArt_GetAdjustedWidth(qzn,qzoz);};qzn.style.width=qzoz+'px';};if(qzn.style.height.indexOf('px')>0){var qzmt=parseInt(qzn.style.height);if(cart_browser_mozilla){qzmt=ComponentArt_GetAdjustedHeight(qzn,qzmt);};qzn.style.height=qzmt+'px';};};var qza=new Array(),qzsm=this.Items(),bDoingPreExpansion=false;for(var qzba=0;qzba<qzsm.length;qzba++){if(qzsm[qzba].GetProperty('Visible')){if(qzsm[qzba].Render(qza)){setTimeout("ComponentArt_TimedPreExpand("+this.NavBarID+", "+qzsm[qzba].StorageIndex+")",100);bDoingPreExpansion=true;};};};if(bDoingPreExpansion){qzn.innerHTML='<div style="visibility:hidden;">'+qza.join('')+'</div>';}else{qzn.innerHTML=qza.join('');};setTimeout(this.NavBarID+'.Rendered = true;',50);};ComponentArt_NavBar.prototype.SaveData=function(){var dataObj=document.getElementById(this.ClientControlId+'_Data');if(dataObj){dataObj.value=this.ArrayToXml(this.ItemStorageArray,true);};var propertiesObj=document.getElementById(this.ClientControlId+'_Properties');if(propertiesObj){propertiesObj.value=this.ArrayToXml(this.PropertyStorageArray,true);};};ComponentArt_NavBar.prototype.SelectItemById=function(itemId,qzma){var qzm=this.FindItemById(itemId,qzma);if(!qzm){return;};var qzcd=document.getElementById(this.NavBarID+'_item_'+qzm.StorageIndex);if(!qzcd){var qzee=qzm,qzfk=null,qzdg=null;while(qzee.ParentItem){qzee=qzee.ParentItem;qzdg=qzfk;qzfk=qzee;if(qzdg){qzdg.SetProperty('Expanded',true);};};if(qzfk){ComponentArt_NavBar_ExpandCollapse(qzfk.StorageIndex,this,qzma);};qzcd=document.getElementById(this.NavBarID+'_item_'+qzm.StorageIndex);};qzhx(this,qzm,qzcd,qzma);};window.ComponentArt_NavBarItem=function(){this.StorageIndex=-1;this.ParentStorageIndex=-1;this.qzcu=0;this.ParentNavBar=null;this.ParentItem=null;this.Data=[null,null,[],[]];this.PostBackID=this.Data[0];this.ParentIndex=this.Data[1];this.ChildIndexes=this.Data[2];this.Properties=this.Data[3];this.ChildItemArray=[];};ComponentArt_NavBarItem.prototype.FlatProperties={'ActiveCssClass':0,'ActiveImageUrl':0,'ActiveLeftIconUrl':0,'ActiveRightIconUrl':0,'AutoPostBackOnCollapse':0,'AutoPostBackOnExpand':0,'AutoPostBackOnSelect':0,'ChildIndexes':0,'ClientSideCommand':0,'CssClass':0,'Enabled':0,'Expanded':0,'ExpandedCssClass':0,'ExpandedImageUrl':0,'ExpandedLeftIconUrl':0,'ExpandedRightIconUrl':0,'Height':0,'HoverCssClass':0,'HoverImageUrl':0,'HoverLeftIconUrl':0,'HoverRightIconUrl':0,'ID':0,'ImageHeight':0,'ImageUrl':0,'ImageWidth':0,'LabelPaddingBottom':0,'LabelPaddingLeft':0,'LabelPaddingRight':0,'LabelPaddingTop':0,'LeftIconHeight':0,'LeftIconUrl':0,'LeftIconWidth':0,'LookId':0,'NavigateUrl':0,'Look-CssClass':0,'Look-HoverCssClass':0,'PageViewId':0,'ParentStorageIndex':0,'PostBackID':0,'RightIconHeight':0,'RightIconUrl':0,'RightIconWidth':0,'Selectable':0,'SelectedLook-CssClass':0,'SelectedLook-HoverCssClass':0,'SubGroupCssClass':0,'SubGroupHeight':0,'SubGroupItemSpacing':0,'Target':0,'Text':0,'TextAlign':0,'TextWrap':0,'ToolTip':0};ComponentArt_NavBarItem.prototype.qqGt={'AutoPostBackOnCollapse':0,'0':'AutoPostBackOnCollapse','AutoPostBackOnExpand':1,'1':'AutoPostBackOnExpand','AutoPostBackOnSelect':2,'2':'AutoPostBackOnSelect','CausesValidation':3,'3':'CausesValidation','ChildSelectedLookId':4,'4':'ChildSelectedLookId','ClientSideCommand':5,'5':'ClientSideCommand','ClientTemplateId':6,'6':'ClientTemplateId','DefaultSubGroupCssClass':7,'7':'DefaultSubGroupCssClass','DefaultSubItemChildSelectedLookId':8,'8':'DefaultSubItemChildSelectedLookId','DefaultSubItemDisabledLookId':9,'9':'DefaultSubItemDisabledLookId','DefaultSubItemLookId':10,'10':'DefaultSubItemLookId','DefaultSubItemSelectedLookId':11,'11':'DefaultSubItemSelectedLookId','DefaultSubItemTextAlign':12,'12':'DefaultSubItemTextAlign','DefaultSubItemTextWrap':13,'13':'DefaultSubItemTextWrap','DisabledLookId':14,'14':'DisabledLookId','Enabled':15,'15':'Enabled','Expanded':16,'16':'Expanded','Height':17,'17':'Height','ID':18,'18':'ID','KeyboardShortcut':19,'19':'KeyboardShortcut','LookId':20,'20':'LookId','NavigateUrl':21,'21':'NavigateUrl','PageViewId':22,'22':'PageViewId','Selectable':23,'23':'Selectable','SelectedLookId':24,'24':'SelectedLookId','ServerTemplateId':25,'25':'ServerTemplateId','SiteMapXmlFile':26,'26':'SiteMapXmlFile','SubGroupCssClass':27,'27':'SubGroupCssClass','SubGroupHeight':28,'28':'SubGroupHeight','SubGroupItemSpacing':29,'29':'SubGroupItemSpacing','Target':30,'30':'Target','Text':31,'31':'Text','TextAlign':32,'32':'TextAlign','TextWrap':33,'33':'TextWrap','ToolTip':34,'34':'ToolTip','Value':35,'35':'Value','Visible':36,'36':'Visible'};ComponentArt_NavBarItem.prototype.PropertyInheritance={'AutoPostBackOnCollapse':[,,,false],'AutoPostBackOnExpand':[,,,false],'AutoPostBackOnSelect':[,,'AutoPostBackOnSelect',false],'CausesValidation':[,,,0],'ChildSelectedLookId':[,'DefaultSubItemChildSelectedLookId','DefaultChildSelectedItemLookId',null],'ClientSideCommand':[,,,''],'ClientTemplateId':[,,,''],'DefaultSubGroupCssClass':[,'DefaultSubGroupCssClass','DefaultGroupCssClass',null],'DefaultSubItemChildSelectedLookId':[,'DefaultSubItemChildSelectedLookId','DefaultChildSelectedItemLookId',null],'DefaultSubItemDisabledLookId':[,'DefaultSubItemDisabledLookId','DefaultDisabledItemLookId',null],'DefaultSubItemLookId':[,'DefaultSubItemLookId','DefaultItemLookId',null],'DefaultSubItemSelectedLookId':[,'DefaultSubItemSelectedLookId','DefaultSelectedItemLookId',null],'DefaultSubItemTextAlign':[,'DefaultSubItemTextAlign','DefaultItemTextAlign',0],'DefaultSubItemTextWrap':[,'DefaultSubItemTextWrap','DefaultItemTextWrap',false],'DisabledLookId':[,'DefaultSubItemDisabledLookId','DefaultDisabledItemLookId',null],'Enabled':[,,,true],'Expanded':[,,,false],'Height':[,,'DefaultItemHeight',null],'ID':[,,,''],'KeyboardShortcut':[,,,''],'LookId':[,'DefaultSubItemLookId','DefaultItemLookId',null],'NavigateUrl':[,,,''],'PageViewId':[,,,''],'Selectable':[,,,true],'SelectedLookId':[,'DefaultSubItemSelectedLookId','DefaultSelectedItemLookId',null],'ServerTemplateId':[,,,''],'SiteMapXmlFile':[,,,''],'SubGroupCssClass':['DefaultSubGroupCssClass',,,],'SubGroupHeight':[,,,0],'SubGroupItemSpacing':[,,'DefaultItemSpacing',0],'Target':[,,'DefaultTarget',''],'Text':[,,,''],'TextAlign':[,'DefaultSubItemTextAlign','DefaultItemTextAlign',0],'TextWrap':[,'DefaultSubItemTextWrap','DefaultItemTextWrap',false],'ToolTip':[,,,''],'Value':[,,,''],'Visible':[,,,true]};ComponentArt_NavBarItem.prototype.TopLevelProperties={'ChildIndexes':0,'Depth':0,'ParentItem':0,'ParentNavBar':0,'ParentStorageIndex':0,'PostBackID':0,'StorageIndex':0};ComponentArt_NavBarItem.prototype.AddItem=function(item,position){if(item.ParentNavBar==this.ParentNavBar){var oldParentItem=item.ParentItem;if(oldParentItem!=null){ComponentArt_RemoveValueFromArray(oldParentItem.ChildItemArray,item);ComponentArt_RemoveValueFromArray(oldParentItem.ChildIndexes,item.StorageIndex);};item.ParentItem=this;item.Data[1]=this.StorageIndex;item.qzcu=this.qzcu+1;ComponentArt_AddElementToArray(this.ChildIndexes,item.StorageIndex,position);ComponentArt_AddElementToArray(this.ChildItemArray,item,position);}else if(item.ParentNavBar==null){item.StorageIndex=this.ParentNavBar.ItemStorageArray.length;item.Data=this.ParentNavBar.ItemStorageArray[item.StorageIndex]=[item.Data[0],this.StorageIndex,[],item.Data[3]];item.PostBackID=item.Data[0];item.ParentIndex=item.Data[1];item.ChildIndexes=item.Data[2];item.Properties=item.Data[3];item.ParentNavBar=this.ParentNavBar;item.ParentItem=this;item.ChildItemArray=[];item.qzcu=this.qzcu+1;this.ParentNavBar.qzea[item.StorageIndex]=item;ComponentArt_AddElementToArray(this.ChildIndexes,item.StorageIndex,position);ComponentArt_AddElementToArray(this.ChildItemArray,item,position);}else{var newItemStorageIndex=this.ParentNavBar.ItemStorageArray.length;this.ParentNavBar.ItemStorageArray[newItemStorageIndex]=[item.Data[0],this.StorageIndex,[],[]];var newItemProperties=this.ParentNavBar.ItemStorageArray[newItemStorageIndex][3],oldItemProperties=item.Data[3];for(var qzba=0;qzba<oldItemProperties.length;qzba++){newItemProperties[qzba]=[oldItemProperties[qzba][0],oldItemProperties[qzba][1]];};var newItem=this.ParentNavBar.LoadItem(newItemStorageIndex,this);ComponentArt_AddElementToArray(this.ChildIndexes,newItem.StorageIndex,position);ComponentArt_AddElementToArray(this.ChildItemArray,newItem,position);};};ComponentArt_NavBarItem.prototype.CalculateDepth=function(){return this.qzcu;};ComponentArt_NavBarItem.prototype.CalculateProperties=function(recurse){if(!this.PropertiesCalculated){ComponentArt_CalculateProperties(this,this.FlatProperties);this.PropertiesCalculated=true;};if(recurse){for(var qzba=0;qzba<this.ChildItemArray.length;qzba++){this.ChildItemArray[qzba].CalculateProperties(recurse);};};return this;};ComponentArt_NavBarItem.prototype.Collapse=function(qqZj){if(this.GetProperty('Expanded')&&this.ChildItemArray.length>0){qzlr(this.ParentNavBar,document.getElementById(this.ParentNavBar.NavBarID+'_item_'+this.StorageIndex+'_div'),this,qqZj);};};ComponentArt_NavBarItem.prototype.Expand=function(qqZj){if(!this.GetProperty('Expanded')&&this.ChildIndexes.length>0){qztt(this.ParentNavBar,document.getElementById(this.ParentNavBar.NavBarID+'_item_'+this.StorageIndex+'_div'),this,qqZj);};};ComponentArt_NavBarItem.prototype.qzao=function(bHighlighted,bSelected,qzgu){if(bSelected){if(bHighlighted){if(this['SelectedLook-HoverCssClass']){return this['SelectedLook-HoverCssClass'];};};if(this['SelectedLook-CssClass']){return this['SelectedLook-CssClass'];};};if(bHighlighted){if(this['Look-HoverCssClass']){return this['Look-HoverCssClass'];};if(this.HoverCssClass){return this.HoverCssClass;};};if(this['Look-CssClass']){return this['Look-CssClass'];};return this.CssClass;};ComponentArt_NavBarItem.prototype.GetEffectiveLookTypeArray=function(){var lookTypeArray=new Array();if(this.ParentNavBar.SelectedItem==this){lookTypeArray[lookTypeArray.length]='SelectedLook';};if(!this.GetProperty('Enabled')){lookTypeArray[lookTypeArray.length]='DisabledLook';};if(this.IsChildSelected){lookTypeArray[lookTypeArray.length]='ChildSelectedLook';};lookTypeArray[lookTypeArray.length]='Look';return lookTypeArray;};ComponentArt_NavBarItem.prototype.GetItems=function(param){if(param==null){return this.ChildItemArray;}else{if(typeof(param)=='number'){return this.ParentNavBar.GetItemByStorageIndex(this.ChildIndexes[param]);}else{for(var qzba=0;qzba<this.ChildItemArray.length;qzba++){if(this.ChildItemArray[qzba].GetProperty('ID')==param){return this.ChildItemArray[qzba];};};return null;};};};ComponentArt_NavBarItem.prototype.GetLookProperty=function(lookTypeArray,lookPropertyName){for(var qzba=0;qzba<lookTypeArray.length;qzba++){var lookType=lookTypeArray[qzba],fullLookPropertyName=lookType+'-'+lookPropertyName;for(var qzAde=0;qzAde<this.Properties.length;qzAde++){if(this.Properties[qzAde][0]==fullLookPropertyName){return this.Properties[qzAde][1];};};var lookId=this.GetProperty(lookType+'Id'),look=this.ParentNavBar.ItemLooks[lookId];if(look!=null){return look[lookPropertyName];};};return void 0;};ComponentArt_NavBarItem.prototype.GetParentItem=function(){if(this.ParentItem==null){return null;}else{this.ParentItem.CalculateProperties();return this.ParentItem;};};ComponentArt_NavBarItem.prototype.GetProperty=function(qqGz){if(this.TopLevelProperties[qqGz]!==(void 0)){return this[qqGz];};if(isNaN(qqGz)&&(qqGz.indexOf('-')>=0||ComponentArt_ItemLook.PropertyList[qqGz]!==(void 0))){var nameTokens=qqGz.split('-'),lookPropertyName=nameTokens[nameTokens.length-1],lookTypeArray=(nameTokens.length<2||nameTokens[0]=='EffectiveLook')?this.GetEffectiveLookTypeArray():[nameTokens[0]];return this.GetLookProperty(lookTypeArray,lookPropertyName);};if(isNaN(qqGz)){var propertyNumber=this.qqGt[qqGz]==null?qqGz:this.qqGt[qqGz];};for(var qzba=0;qzba<this.Properties.length;qzba++){if(this.Properties[qzba][0]==propertyNumber){return this.Properties[qzba][1];};};var propertyInheritance=this.PropertyInheritance[qqGz];if(propertyInheritance==null){return void 0;};if(propertyInheritance[0]!=null){return this.GetProperty(propertyInheritance[0]);};if(propertyInheritance[1]!=null){if(this.ParentItem!=null){return this.ParentItem.GetProperty(propertyInheritance[1]);};};if(propertyInheritance[2]!=null){if(this.ParentNavBar!=null){return this.ParentNavBar.GetProperty(propertyInheritance[2]);};};return propertyInheritance[3];};ComponentArt_NavBarItem.prototype.qztl=function(){var qza=new Array(),qzie=this.Items();for(var qzba=0;qzba<qzie.length;qzba++){if(qzie[qzba].GetProperty('Visible')){qzie[qzba].Render(qza);};};return qza.join('');};ComponentArt_NavBarItem.prototype.qzvn=function(){if(this.ParentItem){return(this.ParentItem.ChildIndexes[this.ParentItem.ChildIndexes.length-1]==this.StorageIndex);}else{return(this.ParentNavBar.GetLastRootItemIndex()==this.StorageIndex);};};ComponentArt_NavBarItem.prototype.Items=function(param){var items=this.GetItems(param);if(items==null){return null;}else if(items instanceof ComponentArt_NavBarItem){return items.CalculateProperties();}else{for(var qzba=0;qzba<items.length;qzba++){items[qzba].CalculateProperties();};return items;};return null;};ComponentArt_NavBarItem.prototype.qzAbp=function(){var qzcb=document.getElementById(this.ParentNavBar.NavBarID+'_ExpandedList');if(!qzcb){return;};var qzbd;if(qzcb.value==''){qzbd=new Array();}else{qzbd=qzcb.value.split(',');};var qzmo=-1;for(var qzba=0;qzba<qzbd.length;qzba++){if(qzbd[qzba]==this.PostBackID){qzmo=qzba;break;};};if(this.GetProperty('Expanded')&&this.ChildItemArray.length>0){if(qzmo<0){qzbd[qzbd.length]=this.PostBackID;};}else{if(qzmo>=0){for(var qzba=qzmo;qzba<qzbd.length;qzba++){qzbd[qzba]=qzbd[qzba+1];};qzbd.length--;};};qzcb.value=qzbd.join(',');};ComponentArt_NavBarItem.prototype.Remove=function(){if(this.ParentNavBar.SelectedItem==this){this.ParentNavBar.SelectedItem=null;};if(this.ParentNavBar.KeyboardEnabled){ComponentArt_NavBar_InitKeyboard(this.ParentNavBar);};var qzsi=this.GetParentItem();if(qzsi!=null){return qzsi.RemoveItem(this);}else{if(this.ParentNavBar!=null){return this.ParentNavBar.RemoveItem(this);};return false;};return true;};ComponentArt_NavBarItem.prototype.RemoveItem=function(){var position,item;if(isNaN(arguments[0])){var item=arguments[0],position=ComponentArt_FindInArray(this.ChildItemArray,item);}else{var position=arguments[0],item=this.ChildItemArray[position];};if(item==null||position==null){return false;};if(this.ParentNavBar&&this.ParentNavBar.SelectedItem==item){this.ParentNavBar.SelectedItem=null;};ComponentArt_RemovePositionFromArray(this.ChildItemArray,position);ComponentArt_RemovePositionFromArray(this.ChildIndexes,position);item.ParentItem=null;item.ParentNavBar=null;item.ParentStorageIndex=item.Data[1]=-33;return true;};ComponentArt_NavBarItem.prototype.Render=function(qza){var bNeedsTimedExpansion=false,qzmx=(this.ParentNavBar.SelectedItem==this||(this.GetProperty('ID')&&this.GetProperty('ID')==this.ParentNavBar.ForceHighlightedNodeID)),qzgu=(this.ChildIndexes.length>0);qza[qza.length]="<table cellspacing=\"0\" cellpadding=\"0\" id='"+this.ParentNavBar.NavBarID+'_item_'+this.StorageIndex+"' class='";var qzon=this.qzao(false,qzmx,qzgu),qzmb=this.qzao(true,qzmx,qzgu);qza[qza.length]=qzon;qza[qza.length]="'";var qqZh=(qzmb!=qzon||this.HoverImageUrl||this.HoverLeftIconUrl||this.HoverRightIconUrl),qqZg=(this.ParentNavBar.ClientSideOnItemMouseOut||this.ParentNavBar.ClientSideOnItemMouseOver),sImageUrl=this.ImageUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.ImageUrl,this.ParentNavBar.ApplicationPath):null,sLeftIconUrl=this.LeftIconUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.LeftIconUrl,this.ParentNavBar.ApplicationPath):null,sRightIconUrl=this.RightIconUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.RightIconUrl,this.ParentNavBar.ApplicationPath):null;if(qqZh||qqZg){var sHoverImageUrl=this.HoverImageUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.HoverImageUrl,this.ParentNavBar.ApplicationPath):'',sHoverLeftIconUrl=this.HoverLeftIconUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.HoverLeftIconUrl,this.ParentNavBar.ApplicationPath):'',sHoverRightIconUrl=this.HoverRightIconUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.HoverRightIconUrl,this.ParentNavBar.ApplicationPath):'';if(qqZh||this.ParentNavBar.ClientSideOnItemMouseOut){qza[qza.length]=" onmouseout=\"";if(qqZh){qza[qza.length]="ComponentArt_NavBar_ChangeLook(this,"+ComponentArt_Quote(qzon)+","+ComponentArt_Quote(sImageUrl)+","+ComponentArt_Quote(sLeftIconUrl)+","+ComponentArt_Quote(sRightIconUrl)+");";};if(this.ParentNavBar.ClientSideOnItemMouseOut){qza[qza.length]="ComponentArt_NavBar_ClientSideMouse(false,"+this.StorageIndex+");";};qza[qza.length]="\"";};if(qqZh||this.ParentNavBar.ClientSideOnItemMouseOver){qza[qza.length]=" onmouseover=\"";if(qqZh){qza[qza.length]="ComponentArt_NavBar_ChangeLook(this,"+ComponentArt_Quote(qzmb)+","+ComponentArt_Quote(sHoverImageUrl)+","+ComponentArt_Quote(sHoverLeftIconUrl)+","+ComponentArt_Quote(sHoverRightIconUrl)+",true);";};if(this.ParentNavBar.ClientSideOnItemMouseOver){qza[qza.length]="ComponentArt_NavBar_ClientSideMouse(true,"+this.StorageIndex+");";};qza[qza.length]="\"";};};if(this.ActiveCssClass&&this.ActiveCssClass!=qzon){var sActiveImageUrl=this.ActiveImageUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.ActiveImageUrl,this.ParentNavBar.ApplicationPath):'',sActiveLeftIconUrl=this.ActiveLeftIconUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.ActiveLeftIconUrl,this.ParentNavBar.ApplicationPath):'',sActiveRightIconUrl=this.ActiveRightIconUrl?ComponentArt_ConvertUrl(this.ParentNavBar.ImagesBaseUrl,this.ActiveRightIconUrl,this.ParentNavBar.ApplicationPath):'';qza[qza.length]=" onmousedown=\"ComponentArt_NavBar_ChangeLook(this,"+ComponentArt_Quote(this.ActiveCssClass)+","+ComponentArt_Quote(sActiveImageUrl)+","+ComponentArt_Quote(sActiveLeftIconUrl)+","+ComponentArt_Quote(sActiveRightIconUrl)+");\"";qza[qza.length]=" onmouseup=\"ComponentArt_NavBar_ChangeLook(this,"+ComponentArt_Quote(qzmb)+","+ComponentArt_Quote(sHoverImageUrl)+","+ComponentArt_Quote(sHoverLeftIconUrl)+","+ComponentArt_Quote(sHoverRightIconUrl)+");\"";};qza[qza.length]=" onclick=\"ComponentArt_NavBar_HandleClick("+this.ParentNavBar.NavBarID+","+this.StorageIndex+");\"";qza[qza.length]=" style=\"width:100%;\"";if(this.Height&&this.Height>0){qza[qza.length]=" height=\""+this.Height+"\"";};if(this.ToolTip&&this.ToolTip!=null){qza[qza.length]=" title=\""+this.ToolTip+"\"";};qza[qza.length]="><tr>";var qzmw=null,qzjx=null;if(this.PostBackID){qzmw=document.getElementById(this.ParentNavBar.NavBarID+'_'+this.PostBackID);var qxbiz='template_'+this.PostBackID.replace(/[-\/{}]/g,'_');qzjx=this.ParentNavBar[qxbiz];};if(qzmw){var qzmn=qzmw.innerHTML;qzff(qzmw);this.ParentNavBar[qxbiz]=qzmn;qza[qza.length]="<td>"+qzmn+"</td>";}else if(qzjx){qza[qza.length]="<td>"+unescape(qzjx)+"</td>";}else if(this.GetProperty('ClientTemplateId')){var clientTemplateInstance=this.ParentNavBar.GetClientTemplate(this.GetProperty('ClientTemplateId'));if(clientTemplateInstance){qza[qza.length]=ComponentArt_InstantiateClientTemplate(clientTemplateInstance,this.ParentNavBar,this);};}else{if(sLeftIconUrl){qza[qza.length]="<td style=\"padding-left:0px;padding-right:0px;\"><img alt=\"\" style=\"display:block;\" src='"+sLeftIconUrl+"' id='"+this.ParentNavBar.NavBarID+"_item_"+this.StorageIndex+"_licon'";if(this.LeftIconHeight){qza[qza.length]=' height="'+parseInt(this.LeftIconHeight)+'"';};if(this.LeftIconWidth){qza[qza.length]=' width="'+parseInt(this.LeftIconWidth)+'"';};qza[qza.length]="></td>";};if(sImageUrl){qza[qza.length]="<td style=\"padding-left:0px;padding-right:0px;\"><img alt=\"\" src='"+sImageUrl+"' id='"+this.ParentNavBar.NavBarID+"_item_"+this.StorageIndex+"_img'";if(this.ImageHeight){qza[qza.length]=" height=\""+parseInt(this.ImageHeight)+"\"";};if(this.ImageWidth){qza[qza.length]=" width=\""+parseInt(this.ImageWidth)+"\"";};qza[qza.length]="></td></tr><tr>";};qza[qza.length]="<td style=\"";if(this.LabelPaddingTop)qza[qza.length]="padding-top:"+(isNaN(this.LabelPaddingTop)?this.LabelPaddingTop:this.LabelPaddingTop+'px')+";";if(this.LabelPaddingLeft)qza[qza.length]="padding-left:"+(isNaN(this.LabelPaddingLeft)?this.LabelPaddingLeft:this.LabelPaddingLeft+'px')+";";if(this.LabelPaddingRight)qza[qza.length]="padding-right:"+(isNaN(this.LabelPaddingRight)?this.LabelPaddingRight:this.LabelPaddingRight+'px')+";";if(this.LabelPaddingBottom)qza[qza.length]="padding-bottom:"+(isNaN(this.LabelPaddingBottom)?this.LabelPaddingBottom:this.LabelPaddingBottom+'px')+";";switch(this.TextAlign){case 0:qza[qza.length]="text-align:left;";break;case 1:qza[qza.length]="text-align:right;";break;default:qza[qza.length]="text-align:center;";};qza[qza.length]="\" width=\"100%\" id='"+this.ParentNavBar.NavBarID+"_item_"+this.StorageIndex+"_cell'";if(!this.TextWrap){qza[qza.length]=" nowrap";};qza[qza.length]=">"+this.Text+"</td>";if(sRightIconUrl){qza[qza.length]="<td style=\"padding-left:0px;padding-right:0px;\"><img alt=\"\" style=\"display:block;\" src='"+sRightIconUrl+"' id='"+this.ParentNavBar.NavBarID+"_item_"+this.StorageIndex+"_ricon'";if(this.RightIconHeight){qza[qza.length]=' height="'+parseInt(this.RightIconHeight)+'"';};if(this.RightIconWidth){qza[qza.length]=' width="'+parseInt(this.RightIconWidth)+'"';};qza[qza.length]="></td>";};};qza[qza.length]="</tr></table>";if(this.GetProperty('Expanded')&&this.ChildIndexes.length>0&&!this.ParentNavBar.FullExpand&&this.SubGroupHeight==0){qza[qza.length]="<div style='overflow:hidden;"+(document.all?"":"width:100%;")+"'>";qza[qza.length]="<div id='"+this.ParentNavBar.NavBarID+"_item_"+this.StorageIndex+"_div'";if(this.SubGroupCssClass&&this.SubGroupCssClass!=null){qza[qza.length]=" class=\""+this.SubGroupCssClass+"\"";};qza[qza.length]=">"+this.qztl();setTimeout("ComponentArt_ConsiderExpandedStyle("+this.ParentNavBar.NavBarID+","+this.StorageIndex+")",200);}else{qza[qza.length]="<div style='overflow:hidden;display:none;"+(document.all?"":"width:100%;")+"'>";qza[qza.length]="<div id='"+this.ParentNavBar.NavBarID+"_item_"+this.StorageIndex+"_div'";qza[qza.length]=" class=\""+this.SubGroupCssClass+"\">";if(this.ParentNavBar.PreRenderAllLevels&&this.ChildIndexes.length>0){qza[qza.length]=this.qztl();};if(this.GetProperty('Expanded')&&this.ChildIndexes.length>0&&(this.ParentNavBar.FullExpand&&this.ParentNavBar.ExpandSinglePath||this.SubGroupHeight>0)){this.SetProperty('Expanded',false);bNeedsTimedExpansion=true;};};qza[qza.length]="</div></div>";var itemSpacing=this.ParentItem!=null?this.ParentItem.GetProperty('SubGroupItemSpacing'):this.ParentNavBar.GetProperty('DefaultItemSpacing');if(itemSpacing>0){qza[qza.length]="<div style=\"width:100%;height:"+itemSpacing+"px;overflow:hidden;\"></div>";};return bNeedsTimedExpansion;};ComponentArt_NavBarItem.prototype.SaveState=function(){for(var qqGz in this.FlatProperties){this.SetProperty(qqGz,this[qqGz]);};};ComponentArt_NavBarItem.prototype.SetProperty=function(qqGz,qqGy){if(this.TopLevelProperties[qqGz]!==(void 0)){return;};if(isNaN(qqGz)){var qqGz=this.qqGt[qqGz]==null?qqGz:this.qqGt[qqGz];};for(var qzba=0;qzba<this.Properties.length;qzba++){if(this.Properties[qzba][0]==qqGz){if(qqGy!==void 0){this.Properties[qzba][1]=qqGy;}else{for(var qzAde=qzba;qzAde<this.Properties.length-1;qzAde++){this.Properties[qzAde]=this.Properties[qzAde+1];};this.Properties.length--;};return;};};if(qqGy!==void 0){this.Properties[this.Properties.length]=[qqGz,qqGy];};};window.qzhx=function(navBar,qzm,qzcd,qzma){if(!qzm.Enabled)return;if(qzm.Selectable){if(navBar.SelectedItem){var oSelectedItemDom=document.getElementById(navBar.NavBarID+'_item_'+navBar.SelectedItem.StorageIndex);if(navBar.SelectedItem.Expanded&&navBar.SelectedItem.ChildItemArray.length>0){oSelectedItemDom.cssClassOverride=navBar.SelectedItem.ExpandedCssClass;}else{oSelectedItemDom.cssClassOverride=null;};oSelectedItemDom.cssClassHoverOverride=null;var normalClass=navBar.SelectedItem.qzao(false,false),sImageUrl=navBar.SelectedItem.ImageUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,navBar.SelectedItem.ImageUrl,navBar.ApplicationPath):null,sLeftIconUrl=navBar.SelectedItem.LeftIconUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,navBar.SelectedItem.LeftIconUrl,navBar.ApplicationPath):null,sRightIconUrl=navBar.SelectedItem.RightIconUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,navBar.SelectedItem.RightIconUrl,navBar.ApplicationPath):null;ComponentArt_NavBar_ChangeLook(oSelectedItemDom,normalClass,sImageUrl,sLeftIconUrl,sRightIconUrl);};navBar.SelectedItem=qzm;qzcd.cssClassOverride=qzm.qzao(false,true);qzcd.cssClassHoverOverride=qzm.qzao(true,true);ComponentArt_NavBar_ChangeLook(qzcd);};var qqDa=qqDb(qzm,navBar);if(qzm.ChildIndexes.length>0){if(!qzma&&(qqDa=='')){ComponentArt_NavBar_ExpandCollapse(qzm.StorageIndex,navBar);};};if(qzm.Selectable&&navBar.KeyboardEnabled){ComponentArt_NavBar_KeyboardSetToItem(navBar,qzm);};if(qzma||!qzm.Selectable){return;};var qznx=document.getElementById(navBar.NavBarID+'_SelectedItem');if(qznx){qznx.value=qzm.PostBackID;};if(navBar.ClientSideOnItemSelect){if(!(eval(navBar.ClientSideOnItemSelect))(qzm)){return;};};if(qqDa){eval(qqDa);};};window.ComponentArt_NavBar_ChangeLook=function(qzbc,cssClass,qzAfr,leftIconUrl,rightIconUrl,qzAjq){if(qzbk&&qzbk.qzkj==1){qzbk.qzkj=0;qzar=document.getElementById(qzbk.NavBarID+'_item_'+qzbk.qzad.StorageIndex);if(qzar&&qzar.onmouseout){qzar.onmouseout();};};if(!qzAjq&&qzbc.cssClassOverride){qzbc.className=qzbc.cssClassOverride;}else if(qzAjq&&qzbc.cssClassHoverOverride){qzbc.className=qzbc.cssClassHoverOverride;}else if(cssClass){qzbc.className=cssClass;};if(qzAfr){if(!qzbc.imgObj){qzbc.imgObj=document.getElementById(qzbc.id+'_img');};};if(leftIconUrl){if(!qzbc.liconObj){qzbc.liconObj=document.getElementById(qzbc.id+'_licon');};};if(rightIconUrl){if(!qzbc.riconObj){qzbc.riconObj=document.getElementById(qzbc.id+'_ricon');};};if(qzbc.imgUrlOverride){qzbc.imgObj.src=qzbc.imgUrlOverride;}else if(qzAfr&&qzbc.imgObj){qzbc.imgObj.src=qzAfr;};if(qzbc.leftIconUrlOverride){qzbc.liconObj.src=qzbc.leftIconUrlOverride;}else if(leftIconUrl&&qzbc.liconObj){qzbc.liconObj.src=leftIconUrl;};if(qzbc.rightIconUrlOverride){qzbc.riconObj.src=qzbc.rightIconUrlOverride;}else if(rightIconUrl&&qzbc.riconObj){qzbc.riconObj.src=rightIconUrl;};};window.ComponentArt_NavBar_HandleClick=function(navBar,storageIndex){qzbk=navBar;var qzcd=document.getElementById(navBar.NavBarID+'_item_'+storageIndex);if(navBar){var qzm=navBar.qzo(storageIndex);qzhx(navBar,qzm,qzcd);};return false;};window.ComponentArt_NavBar_ClientSideMouse=function(qzAml,storageIndex){var qzm=qzbk.qzo(storageIndex);if(qzAml){(eval(qzbk.ClientSideOnItemMouseOver))(qzm);}else{(eval(qzbk.ClientSideOnItemMouseOut))(qzm);};return false;};window.ComponentArt_TimedPreExpand=function(navBar,storageIndex){if(navBar.Rendered){var qzm=navBar.qzo(storageIndex);qzm.Expand(true);var qzn=document.getElementById(navBar.NavBarID+"_div");qzn.firstChild.style.visibility='visible';}else{setTimeout("ComponentArt_TimedPreExpand("+navBar.NavBarID+", "+storageIndex+")",50);};};window.ComponentArt_ConsiderExpandedStyle=function(navBar,storageIndex){if(navBar.Rendered){var qzm=navBar.qzo(storageIndex);if(qzm.ExpandedCssClass||qzm.ExpandedImageUrl||qzm.ExpandedLeftIconUrl||qzm.ExpandedRightIconUrl){var qzdy=document.getElementById(navBar.NavBarID+'_item_'+qzm.StorageIndex);qzdy.cssClassOverride=qzm.ExpandedCssClass;qzdy.cssClassHoverOverride=null;qzdy.imgUrlOverride=qzm.ExpandedImageUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,qzm.ExpandedImageUrl,navBar.ApplicationPath):null;qzdy.leftIconUrlOverride=qzm.ExpandedLeftIconUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,qzm.ExpandedLeftIconUrl,navBar.ApplicationPath):null;qzdy.rightIconUrlOverride=qzm.ExpandedRightIconUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,qzm.ExpandedRightIconUrl,navBar.ApplicationPath):null;var sImageUrl=qzm.ImageUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,qzm.ImageUrl,navBar.ApplicationPath):null,sLeftIconUrl=qzm.LeftIconUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,qzm.LeftIconUrl,navBar.ApplicationPath):null,sRightIconUrl=qzm.RightIconUrl?ComponentArt_ConvertUrl(navBar.ImagesBaseUrl,qzm.RightIconUrl,navBar.ApplicationPath):null;ComponentArt_NavBar_ChangeLook(qzdy,qzm.CssClass,sImageUrl,sLeftIconUrl,sRightIconUrl);};}else{setTimeout("ComponentArt_ConsiderExpandedStyle("+navBar.NavBarID+", "+storageIndex+")",100);};};window.qzbk=null;window.ComponentArt_NavBar_Kernel_Loaded=true;};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -