📄 a573c488.js
字号:
if(!window.cart_tabstrip_kernel_loaded){window.ComponentArt_TabStrip=function(tabStripId,tabStorageArray,qqRc,scrollLookStorageArray,propStorageArray){this.ClientControlId=this.TabStripId=tabStripId;if(tabStorageArray==null){this.TabStorageArray=new Array();}else{this.TabStorageArray=tabStorageArray;};if(propStorageArray==null){this.PropertyStorageArray=new Array();}else{this.PropertyStorageArray=propStorageArray;};this.qzea=this.TabIndex=new Array();this.LoadTabs();this.ItemLooks=new ComponentArt_ItemLookCollection(qqRc);this.ScrollDownLook=qqGp(ComponentArt_ItemLook,scrollLookStorageArray[0]);var scrollDownOriginalLook=this.ItemLooks[this.ScrollDownLook.LookId];if(scrollDownOriginalLook){scrollDownOriginalLook.ApplyTo(this.ScrollDownLook);};this.ScrollLeftLook=qqGp(ComponentArt_ItemLook,scrollLookStorageArray[1]);var scrollLeftOriginalLook=this.ItemLooks[this.ScrollLeftLook.LookId];if(scrollLeftOriginalLook){scrollLeftOriginalLook.ApplyTo(this.ScrollLeftLook);};this.ScrollRightLook=qqGp(ComponentArt_ItemLook,scrollLookStorageArray[2]);var scrollRightOriginalLook=this.ItemLooks[this.ScrollRightLook.LookId];if(scrollRightOriginalLook){scrollRightOriginalLook.ApplyTo(this.ScrollRightLook);};this.ScrollUpLook=qqGp(ComponentArt_ItemLook,scrollLookStorageArray[3]);var scrollUpOriginalLook=this.ItemLooks[this.ScrollUpLook.LookId];if(scrollUpOriginalLook){scrollUpOriginalLook.ApplyTo(this.ScrollUpLook);};this.ScrollContainer=new ComponentArt_ElementContainer();};ComponentArt_TabStrip.prototype.GetProperty=function(propName){return this[propName];};ComponentArt_TabStrip.prototype.SetProperty=function(propName,propValue){this[propName]=propValue;};ComponentArt_TabStrip.prototype.AddTab=function(tab){if(tab.ParentTabStrip==this){var oldParentTab=tab.ParentTab;if(oldParentTab!=null){ComponentArt_RemoveValueFromArray(oldParentTab.ChildTabArray,tab);ComponentArt_RemoveValueFromArray(oldParentTab.ChildIndexes,tab.StorageIndex);};tab.ParentTab=null;tab.Data[1]=-1;}else{var newTabStorageIndex=this.TabStorageArray.length;this.TabStorageArray[newTabStorageIndex]=[tab.Data[0],-1,[],[]];var newTabProperties=this.TabStorageArray[newTabStorageIndex][3],oldTabProperties=tab.Data[3];for(var qzba=0;qzba<oldTabProperties.length;qzba++){newTabProperties[qzba]=[oldTabProperties[qzba][0],oldTabProperties[qzba][1]];};var newTab=this.LoadTab(newTabStorageIndex,null);};};ComponentArt_TabStrip.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_TabStrip.prototype.CalculateTabProperties=function(tabIndexArray,recurse){var tabObjectArray;if(tabIndexArray==null){tabObjectArray=this.ChildTabArray;}else{tabObjectArray=new Array();for(var qzba=0;qzba<tabIndexArray.length;qzba++){tabObjectArray[qzba]=this.GetTabByStorageIndex(tabIndexArray[qzba]);};};for(var qzba=0;qzba<tabObjectArray.length;qzba++){tabObjectArray[qzba].CalculateProperties(recurse==null?true:recurse);};};ComponentArt_TabStrip.prototype.Clear=function(){this.TabStorageArray=[];};ComponentArt_TabStrip.prototype.Destroy=function(){if(this.ScrollContainer){var elementContainerNode=this.ScrollContainer.ParentElement;elementContainerNode.parentNode.removeChild(elementContainerNode);};var placeHolderNode=document.getElementById(this.PlaceHolderId);placeHolderNode.parentNode.removeChild(placeHolderNode);};ComponentArt_TabStrip.prototype.FindTabById=function(tabId){return this.FindTabByProperty('ID',tabId);};ComponentArt_TabStrip.prototype.FindTabByPostBackId=function(tabPostBackId){return this.FindTabByProperty('PostBackID',tabPostBackId);};ComponentArt_TabStrip.prototype.FindTabByProperty=function(qqGz,qqGy){for(var qzba=0;qzba<this.TabIndex.length;qzba++){var tab=this.TabIndex[qzba];if(tab.GetProperty(qqGz)==qqGy){return tab;};};return null;};ComponentArt_TabStrip.prototype.FindTabsByProperty=function(qqGz,qqGy){var qzAan=new Array();for(var qzba=0;qzba<this.TabIndex.length;qzba++){var tab=this.TabIndex[qzba];if(tab.GetProperty(qqGz)==qqGy){qzAan[qzAan.length]=tab;};};return qzAan;};ComponentArt_TabStrip.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_TabStrip.prototype.GetRootItemIndexes=ComponentArt_TabStrip.prototype.GetRootTabIndexes=ComponentArt_TabStrip.prototype.qzAgk=function(){var qzzf=new Array();for(var qzba=0;qzba<this.TabStorageArray.length;qzba++){var tabParentIndex=this.TabStorageArray[qzba][1];if(tabParentIndex<0&&tabParentIndex!=-33){qzzf[qzzf.length]=qzba;};};return qzzf;};ComponentArt_TabStrip.prototype.GetRootTab=function(){var rootTab=new ComponentArt_TabStripTab();rootTab.ParentTabStrip=this;rootTab.StorageIndex=-1;rootTab.ChildIndexes=this.qzAgk();rootTab.ChildTabArray=new Array();for(var qzba=0;qzba<rootTab.ChildIndexes.length;qzba++){rootTab.ChildTabArray[rootTab.ChildTabArray.length]=this.GetTabByStorageIndex(rootTab.ChildIndexes[qzba]);};rootTab.SubGroupAlign=this.TopGroupAlign;rootTab.SubGroupCssClass=this.TopGroupCssClass;rootTab.SubGroupExpandDirection=0;rootTab.SubGroupExpandOffsetX=0;rootTab.SubGroupExpandOffsetY=0;rootTab.SubGroupFirstSeparatorHeight=this.TopGroupFirstSeparatorHeight;rootTab.SubGroupFirstSeparatorWidth=this.TopGroupFirstSeparatorWidth;rootTab.SubGroupFullExpand=this.TopGroupFullExpand;rootTab.SubGroupHeight=this.TopGroupHeight;rootTab.SubGroupLastSeparatorHeight=this.TopGroupLastSeparatorHeight;rootTab.SubGroupLastSeparatorWidth=this.TopGroupLastSeparatorWidth;rootTab.SubGroupSeparatorHeight=this.TopGroupSeparatorHeight;rootTab.SubGroupSeparatorImagesFolderUrl=this.TopGroupSeparatorImagesFolderUrl;rootTab.SubGroupSeparatorWidth=this.TopGroupSeparatorWidth;rootTab.SubGroupShowSeparators=this.TopGroupShowSeparators;rootTab.SubGroupTabSpacing=this.TopGroupTabSpacing;rootTab.SubGroupWidth=this.TopGroupWidth;rootTab.SubGroupOrientation=this.Orientation;return rootTab;};ComponentArt_TabStrip.prototype.GetSelectedTab=function(){return this.FindTabByPostBackId(this.SelectedTabPostBackID);};ComponentArt_TabStrip.prototype.GetTabByStorageIndex=function(index){return this.TabIndex[index];};ComponentArt_TabStrip.prototype.GetTabFromStorage=function(index){if(index==-1){return this.GetRootTab();};return this.GetTabByStorageIndex(index).CalculateProperties();};ComponentArt_TabStrip.prototype.GetTabs=function(param){if(param==null){var qzzf=this.GetRootTabIndexes(),rootTabs=new Array();for(var qzba=0;qzba<qzzf.length;qzba++){rootTabs[qzba]=this.GetTabByStorageIndex(qzzf[qzba]);};return rootTabs;}else{if(typeof(param)=='number'){return this.GetTabByStorageIndex(this.GetRootTabIndexes()[param]);}else{var qzzf=this.GetRootTabIndexes();for(var qzba=0;qzba<qzzf.length;qzba++){if(this.TabIndex[qzzf[qzba]].GetProperty('ID')==param){return this.GetTabByStorageIndex(qzzf[qzba]);};};return null;};};};ComponentArt_TabStrip.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_TabStrip.prototype.LoadTab=function(tabStorageIndex,parentTab){var tab=new ComponentArt_TabStripTab();tab.ParentTabStrip=this;tab.ParentTab=parentTab;tab.StorageIndex=tabStorageIndex;this.TabIndex[tabStorageIndex]=tab;tab.Data=this.TabStorageArray[tabStorageIndex];tab.ParentIndex=parentTab==null?-1:parentTab.StorageIndex;tab.PostBackID=tab.Data[0];tab.Properties=tab.Data[3];tab.ChildTabArray=new Array();tab.ChildIndexes=tab.Data[2];for(var qzba=0;qzba<tab.ChildIndexes.length;qzba++){tab.ChildTabArray[tab.ChildTabArray.length]=this.LoadTab(tab.ChildIndexes[qzba],tab);};return tab;};ComponentArt_TabStrip.prototype.LoadTabs=function(){var qzzf=this.qzAgk();this.ChildTabArray=new Array();for(var qzba=0;qzba<qzzf.length;qzba++){this.ChildTabArray[this.ChildTabArray.length]=this.LoadTab(qzzf[qzba],null);};};ComponentArt_TabStrip.prototype.RemoveTab=function(){var position,tab;if(isNaN(arguments[0])){var tab=arguments[0],position=ComponentArt_FindInArray(this.qzAgk(),tab.StorageIndex);}else{var position=arguments[0],tab=this.qzAgk()[position];};if(tab==null||position==null){return false;};if(this.SelectedTab==tab){this.SelectedTab=null;};tab.ParentTab=null;tab.ParentTabStrip=null;tab.StorageIndex=tab.Data[1]=-33;return true;};ComponentArt_TabStrip.prototype.Render=function(){ComponentArt_TabStrip_ClearPropertyCalculatedFlags(this);var tabStripIsVertical=(this.Orientation==cart_tabstrip_tabstriporientation_verticallefttoright||this.Orientation==cart_tabstrip_tabstriporientation_verticalrighttoleft),qzAdz=document.getElementById(this.PlaceHolderId);this.ScrollContainer.Clear();if(tabStripIsVertical){this.offsetHeight=!this.ScrollingEnabled?null:(this.Height?qzAdz.offsetHeight:null);qzAdz.innerHTML=ComponentArt_TabStrip_VerticalTabStripHtml(this);if(this.ScrollingEnabled){ComponentArt_TabStrip_ConsiderVerticalScrolls(this);};}else{this.offsetWidth=!this.ScrollingEnabled?null:(this.Width?qzAdz.offsetWidth:null);qzAdz.innerHTML=ComponentArt_TabStrip_HorizontalTabStripHtml(this);if(this.ScrollingEnabled){ComponentArt_TabStrip_ConsiderHorizontalScrolls(this);this.OldWindowOnResize=window.onresize;window.onresize=new Function(this.ClientControlId+'.OldWindowOnResize; ComponentArt_TabStrip_RepositionHorizontalScrolls('+this.ClientControlId+');');};};};ComponentArt_TabStrip.prototype.SaveData=function(){var dataObj=document.getElementById(this.ClientControlId+'_Data');if(dataObj){dataObj.value=this.ArrayToXml(this.TabStorageArray,true);};var propertiesObj=document.getElementById(this.ClientControlId+'_Properties');if(propertiesObj){propertiesObj.value=this.ArrayToXml(this.PropertyStorageArray,true);};};ComponentArt_TabStrip.prototype.SelectTabById=function(tabId){var tab=this.FindTabById(tabId);if(tab!=null){tab.Select();};};ComponentArt_TabStrip.prototype.SelectTabByPostBackId=function(tabPostBackId){var tab=this.FindTabByPostBackId(tabPostBackId);if(tab!=null){tab.Select();};};ComponentArt_TabStrip.prototype.SetSelectedTab=function(tab){var selectedNodeInput=document.getElementById(this.SelectedNodeInput);if(selectedNodeInput!=null){selectedNodeInput.value=tab==null?null:tab.PostBackID;};if(tab==null){this.SelectedTabPostBackID=null;this.ChildSelectedTabPostBackIDs=[];}else{this.SelectedTabPostBackID=tab.PostBackID;this.ChildSelectedTabPostBackIDs=[];var currentTab=tab.ParentTab;while(currentTab!=null){this.ChildSelectedTabPostBackIDs[this.ChildSelectedTabPostBackIDs.length]=currentTab.PostBackID;currentTab=currentTab.ParentTab;};};};ComponentArt_TabStrip.prototype.Tabs=function(param){return this.GetRootTab().Tabs(param);};window.ComponentArt_TabStripTab=function(){this.ParentTabStrip=null;this.ParentTab=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.ChildTabArray=[];};ComponentArt_TabStripTab.prototype.FlatProperties={'AutoPostBackOnSelect':0,'ActiveCssClass':0,'ActiveImageUrl':0,'ActiveLeftIconUrl':0,'ActiveRightIconUrl':0,'ClientSideCommand':0,'CssClass':0,'Enabled':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,'NavigateUrl':0,'RightIconHeight':0,'RightIconUrl':0,'RightIconWidth':0,'ServerTemplateId':0,'SubGroupAlign':0,'SubGroupCssClass':0,'SubGroupFullExpand':0,'SubGroupHeight':0,'SubGroupTabSpacing':0,'SubGroupWidth':0,'Text':0,'TextAlign':0,'TextWrap':0,'ToolTip':0,'Value':0,'Visible':0,'Width':0};ComponentArt_TabStripTab.prototype.qqGt={'AutoPostBackOnSelect':0,'0':'AutoPostBackOnSelect','CausesValidation':1,'1':'CausesValidation','ChildSelectedLookId':2,'2':'ChildSelectedLookId','ClientSideCommand':3,'3':'ClientSideCommand','ClientTemplateId':4,'4':'ClientTemplateId','DefaultSubGroupAlign':5,'5':'DefaultSubGroupAlign','DefaultSubGroupCssClass':6,'6':'DefaultSubGroupCssClass','DefaultSubGroupExpandDirection':7,'7':'DefaultSubGroupExpandDirection','DefaultSubGroupExpandOffsetX':8,'8':'DefaultSubGroupExpandOffsetX','DefaultSubGroupExpandOffsetY':9,'9':'DefaultSubGroupExpandOffsetY','DefaultSubGroupFirstSeparatorHeight':10,'10':'DefaultSubGroupFirstSeparatorHeight','DefaultSubGroupFirstSeparatorWidth':11,'11':'DefaultSubGroupFirstSeparatorWidth','DefaultSubGroupFullExpand':12,'12':'DefaultSubGroupFullExpand','DefaultSubGroupHeight':13,'13':'DefaultSubGroupHeight','DefaultSubGroupLastSeparatorHeight':14,'14':'DefaultSubGroupLastSeparatorHeight','DefaultSubGroupLastSeparatorWidth':15,'15':'DefaultSubGroupLastSeparatorWidth','DefaultSubGroupSeparatorHeight':16,'16':'DefaultSubGroupSeparatorHeight','DefaultSubGroupSeparatorImagesFolderUrl':17,'17':'DefaultSubGroupSeparatorImagesFolderUrl','DefaultSubGroupSeparatorWidth':18,'18':'DefaultSubGroupSeparatorWidth','DefaultSubGroupShowSeparators':19,'19':'DefaultSubGroupShowSeparators','DefaultSubGroupTabSpacing':20,'20':'DefaultSubGroupTabSpacing','DefaultSubGroupWidth':21,'21':'DefaultSubGroupWidth','DefaultSubItemChildSelectedLookId':22,'22':'DefaultSubItemChildSelectedLookId','DefaultSubItemDisabledLookId':23,'23':'DefaultSubItemDisabledLookId','DefaultSubItemLookId':24,'24':'DefaultSubItemLookId','DefaultSubItemSelectedLookId':25,'25':'DefaultSubItemSelectedLookId','DefaultSubItemTextAlign':26,'26':'DefaultSubItemTextAlign','DefaultSubItemTextWrap':27,'27':'DefaultSubItemTextWrap','DisabledLookId':28,'28':'DisabledLookId','Enabled':29,'29':'Enabled','Height':30,'30':'Height','ID':31,'31':'ID','KeyboardShortcut':32,'32':'KeyboardShortcut','LookId':33,'33':'LookId','NavigateUrl':34,'34':'NavigateUrl','PageViewId':35,'35':'PageViewId','SelectedLookId':36,'36':'SelectedLookId','ServerTemplateId':37,'37':'ServerTemplateId','SiteMapXmlFile':38,'38':'SiteMapXmlFile','SubGroupAlign':39,'39':'SubGroupAlign','SubGroupCssClass':40,'40':'SubGroupCssClass','SubGroupExpandDirection':41,'41':'SubGroupExpandDirection','SubGroupExpandOffsetX':42,'42':'SubGroupExpandOffsetX','SubGroupExpandOffsetY':43,'43':'SubGroupExpandOffsetY','SubGroupFirstSeparatorHeight':44,'44':'SubGroupFirstSeparatorHeight','SubGroupFirstSeparatorWidth':45,'45':'SubGroupFirstSeparatorWidth','SubGroupFullExpand':46,'46':'SubGroupFullExpand','SubGroupHeight':47,'47':'SubGroupHeight','SubGroupLastSeparatorHeight':48,'48':'SubGroupLastSeparatorHeight','SubGroupLastSeparatorWidth':49,'49':'SubGroupLastSeparatorWidth','SubGroupSeparatorHeight':50,'50':'SubGroupSeparatorHeight','SubGroupSeparatorImagesFolderUrl':51,'51':'SubGroupSeparatorImagesFolderUrl','SubGroupSeparatorWidth':52,'52':'SubGroupSeparatorWidth','SubGroupShowSeparators':53,'53':'SubGroupShowSeparators','SubGroupTabSpacing':54,'54':'SubGroupTabSpacing','SubGroupWidth':55,'55':'SubGroupWidth','Target':56,'56':'Target','Text':57,'57':'Text','TextAlign':58,'58':'TextAlign','TextWrap':59,'59':'TextWrap','ToolTip':60,'60':'ToolTip','Value':61,'61':'Value','Visible':62,'62':'Visible','Width':63,'63':'Width'};ComponentArt_TabStripTab.prototype.PropertyInheritance={'AutoPostBackOnSelect':[,,'AutoPostBackOnSelect',false],'CausesValidation':[,,,0],'ChildSelectedLookId':[,'DefaultSubItemChildSelectedLookId','DefaultChildSelectedItemLookId',null],'ClientSideCommand':[,,,''],'ClientTemplateId':[,,,''],'DefaultSubGroupAlign':[,'DefaultSubGroupAlign','DefaultGroupAlign',0],'DefaultSubGroupCssClass':[,'DefaultSubGroupCssClass','DefaultGroupCssClass',null],'DefaultSubGroupExpandDirection':[,'DefaultSubGroupExpandDirection','DefaultGroupExpandDirection',0],'DefaultSubGroupExpandOffsetX':[,'DefaultSubGroupExpandOffsetX','DefaultGroupExpandOffsetX',0],'DefaultSubGroupExpandOffsetY':[,'DefaultSubGroupExpandOffsetY','DefaultGroupExpandOffsetY',0],'DefaultSubGroupFirstSeparatorHeight':[,'DefaultSubGroupFirstSeparatorHeight','DefaultGroupFirstSeparatorHeight',null],'DefaultSubGroupFirstSeparatorWidth':[,'DefaultSubGroupFirstSeparatorWidth','DefaultGroupFirstSeparatorWidth',null],'DefaultSubGroupFullExpand':[,'DefaultSubGroupFullExpand','DefaultGroupFullExpand',true],'DefaultSubGroupHeight':[,'DefaultSubGroupHeight','DefaultGroupHeight',null],'DefaultSubGroupLastSeparatorHeight':[,'DefaultSubGroupLastSeparatorHeight','DefaultGroupLastSeparatorHeight',null],'DefaultSubGroupLastSeparatorWidth':[,'DefaultSubGroupLastSeparatorWidth','DefaultGroupLastSeparatorWidth',null],'DefaultSubGroupSeparatorHeight':[,'DefaultSubGroupSeparatorHeight','DefaultGroupSeparatorHeight',null],'DefaultSubGroupSeparatorImagesFolderUrl':[,'DefaultSubGroupSeparatorImagesFolderUrl','DefaultGroupSeparatorImagesFolderUrl',null],'DefaultSubGroupSeparatorWidth':[,'DefaultSubGroupSeparatorWidth','DefaultGroupSeparatorWidth',null],'DefaultSubGroupShowSeparators':[,'DefaultSubGroupShowSeparators','DefaultGroupShowSeparators',false],'DefaultSubGroupTabSpacing':[,'DefaultSubGroupTabSpacing','DefaultGroupTabSpacing',null],'DefaultSubGroupWidth':[,'DefaultSubGroupWidth','DefaultGroupWidth',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],'Height':[,,,null],'ID':[,,,''],'KeyboardShortcut':[,,,''],'LookId':[,'DefaultSubItemLookId','DefaultItemLookId',null],'NavigateUrl':[,,,''],'PageViewId':[,,,''],'SelectedLookId':[,'DefaultSubItemSelectedLookId','DefaultSelectedItemLookId',null],'ServerTemplateId':[,,,''],'SiteMapXmlFile':[,,,''],'SubGroupAlign':['DefaultSubGroupAlign',,,],'SubGroupCssClass':['DefaultSubGroupCssClass',,,],'SubGroupExpandDirection':['DefaultSubGroupExpandDirection',,,],'SubGroupExpandOffsetX':['DefaultSubGroupExpandOffsetX',,,],'SubGroupExpandOffsetY':['DefaultSubGroupExpandOffsetY',,,],'SubGroupFirstSeparatorHeight':['DefaultSubGroupFirstSeparatorHeight',,,],'SubGroupFirstSeparatorWidth':['DefaultSubGroupFirstSeparatorWidth',,,],'SubGroupFullExpand':['DefaultSubGroupFullExpand',,,],'SubGroupHeight':['DefaultSubGroupHeight',,,],'SubGroupLastSeparatorHeight':['DefaultSubGroupLastSeparatorHeight',,,],'SubGroupLastSeparatorWidth':['DefaultSubGroupLastSeparatorWidth',,,],'SubGroupSeparatorHeight':['DefaultSubGroupSeparatorHeight',,,],'SubGroupSeparatorImagesFolderUrl':['DefaultSubGroupSeparatorImagesFolderUrl',,,],'SubGroupSeparatorWidth':['DefaultSubGroupSeparatorWidth',,,],'SubGroupShowSeparators':['DefaultSubGroupShowSeparators',,,],'SubGroupTabSpacing':['DefaultSubGroupTabSpacing',,,],'SubGroupWidth':['DefaultSubGroupWidth',,,],'Target':[,,'DefaultTarget',''],'Text':[,,,''],'TextAlign':[,'DefaultSubItemTextAlign','DefaultItemTextAlign',0],'TextWrap':[,'DefaultSubItemTextWrap','DefaultItemTextWrap',false],'ToolTip':[,,,''],'Value':[,,,''],'Visible':[,,,true],'Width':[,,,null]};ComponentArt_TabStripTab.prototype.TopLevelProperties={'ChildIndexes':0,'ParentTab':0,'ParentTabStrip':0,'ParentStorageIndex':0,'PostBackID':0,'StorageIndex':0};ComponentArt_TabStripTab.prototype.AddTab=function(tab,position){if(tab.ParentTabStrip==this.ParentTabStrip){var oldParentTab=tab.ParentTab;if(oldParentTab!=null){ComponentArt_RemoveValueFromArray(oldParentTab.ChildTabArray,tab);ComponentArt_RemoveValueFromArray(oldParentTab.ChildIndexes,tab.StorageIndex);};tab.ParentTab=this;tab.Data[1]=this.StorageIndex;ComponentArt_AddElementToArray(this.ChildIndexes,tab.StorageIndex,position);ComponentArt_AddElementToArray(this.ChildTabArray,tab,position);}else if(tab.ParentTabStrip==null){tab.StorageIndex=this.ParentTabStrip.TabStorageArray.length;tab.Data=this.ParentTabStrip.TabStorageArray[tab.StorageIndex]=[tab.Data[0],this.StorageIndex,[],tab.Data[3]];tab.PostBackID=tab.Data[0];tab.ParentIndex=tab.Data[1];tab.ChildIndexes=tab.Data[2];tab.Properties=tab.Data[3];tab.ParentTabStrip=this.ParentTabStrip;tab.ParentTab=this;tab.ChildTabArray=[];this.ParentTabStrip.TabIndex[tab.StorageIndex]=tab;ComponentArt_AddElementToArray(this.ChildIndexes,tab.StorageIndex,position);ComponentArt_AddElementToArray(this.ChildTabArray,tab,position);}else{var newTabStorageIndex=this.ParentTabStrip.TabStorageArray.length;this.ParentTabStrip.TabStorageArray[newTabStorageIndex]=[tab.Data[0],this.StorageIndex,[],[]];var newTabProperties=this.ParentTabStrip.TabStorageArray[newTabStorageIndex][3],oldTabProperties=tab.Data[3];for(var qzba=0;qzba<oldTabProperties.length;qzba++){newTabProperties[qzba]=[oldTabProperties[qzba][0],oldTabProperties[qzba][1]];};var newTab=this.ParentTabStrip.LoadTab(newTabStorageIndex,this);ComponentArt_AddElementToArray(this.ChildIndexes,newTab.StorageIndex,position);ComponentArt_AddElementToArray(this.ChildTabArray,newTab,position);};};ComponentArt_TabStripTab.prototype.CalculateProperties=function(recurse){if(!this.PropertiesCalculated){ComponentArt_CalculateProperties(this,this.FlatProperties);this.PropertiesCalculated=true;};if(recurse){for(var qzba=0;qzba<this.ChildTabArray.length;qzba++){this.ChildTabArray[qzba].CalculateProperties(recurse);};};return this;};ComponentArt_TabStripTab.prototype.GetEffectiveLookTypeArray=function(){var lookTypeArray=new Array();if(this.IsSelected()){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_TabStripTab.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.ParentTabStrip.ItemLooks[lookId];if(look!=null){return look[lookPropertyName];};};return void 0;};ComponentArt_TabStripTab.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.ParentTab!=null){return this.ParentTab.GetProperty(propertyInheritance[1]);};};if(propertyInheritance[2]!=null){if(this.ParentTabStrip!=null){return this.ParentTabStrip.GetProperty(propertyInheritance[2]);};};return propertyInheritance[3];};ComponentArt_TabStripTab.prototype.GetTabs=function(param){if(param==null){return this.ChildTabArray;}else{if(typeof(param)=='number'){return this.ParentTabStrip.GetTabByStorageIndex(this.ChildIndexes[param]);}else{for(var qzba=0;qzba<this.ChildTabArray.length;qzba++){if(this.ChildTabArray[qzba].ID==param){return this.ChildTabArray[qzba];};};return null;};};};ComponentArt_TabStripTab.prototype.IsChildSelected=function(){var childSelectedTabs=this.ParentTabStrip.ChildSelectedTabPostBackIDs;for(var qzba=0;qzba<childSelectedTabs.length;qzba++){if(this.PostBackID==childSelectedTabs[qzba]){return true;};};return false;};ComponentArt_TabStripTab.prototype.IsSelected=function(){return this.PostBackID==this.ParentTabStrip.SelectedTabPostBackID;};ComponentArt_TabStripTab.prototype.RemoveTab=function(){var position,tab;if(isNaN(arguments[0])){var tab=arguments[0],position=ComponentArt_FindInArray(this.ChildTabArray,tab);}else{var position=arguments[0],tab=this.ChildTabArray[position];};if(tab==null||position==null){return false;};if(this.ParentTabStrip&&this.ParentTabStrip.SelectedTab==tab){this.ParentTabStrip.SelectedTab=null;};ComponentArt_RemovePositionFromArray(this.ChildTabArray,position);ComponentArt_RemovePositionFromArray(this.ChildIndexes,position);tab.ParentTab=null;tab.ParentTabStrip=null;tab.StorageIndex=tab.Data[1]=-33;return true;};ComponentArt_TabStripTab.prototype.SaveState=function(){for(var qqGz in this.FlatProperties){this.SetProperty(qqGz,this[qqGz]);};};ComponentArt_TabStripTab.prototype.Select=function(){this.ParentTabStrip.SetSelectedTab(this);var commandJS=qqDb(this,this.ParentTabStrip);if(!ComponentArt_CommandNavigatesAway(commandJS)){this.ParentTabStrip.Render();};eval(commandJS);};ComponentArt_TabStripTab.prototype.SetProperty=function(qqGz,qqGy){if(qqGz=='ID'){this.ID=qqGy;this.Data[0]=this.PostBackID='p_'+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];};};ComponentArt_TabStripTab.prototype.Tabs=function(param){if(param==null){for(var qzba=0;qzba<this.ChildTabArray.length;qzba++){this.ChildTabArray[qzba].CalculateProperties();};return this.ChildTabArray;}else{if(typeof(param)=='number'){return this.ParentTabStrip.GetTabFromStorage(this.ChildIndexes[param]);}else{for(var qzba=0;qzba<this.ChildTabArray.length;qzba++){if(this.ChildTabArray[qzba].ID==param){return this.ChildTabArray[qzba].CalculateProperties();};};return null;};};};window.cart_tabstrip_kernel_loaded=true;};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -