⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a573s388.js

📁 ComponentArt Web.UI 2006.1252 for asp.net2.0
💻 JS
📖 第 1 页 / 共 4 页
字号:
if(!window.ComponentArt_TreeView_Kernel_Loaded){window.ComponentArt_TreeView=function(qzrm,qzvh){this.ClientControlId=this.TreeViewID=qzrm;if(!qzvh){this.Data=new Array();}else{this.Data=qzvh;};this.CollapseImageUrl='';this.ExpandImageUrl='';this.NoExpandImageUrl='';this.LeafNodeImageUrl='';this.ParentNodeImageUrl='';this.ExpandedParentNodeImageUrl='';this.LineImagesFolderUrl='';this.NodeCssClass='';this.HoverNodeCssClass='';this.NodeRowCssClass='';this.HoverNodeRowCssClass='';this.SelectedNodeCssClass='';this.SelectedHoverNodeCssClass='';this.SelectedNodeRowCssClass='';this.SelectedHoverNodeRowCssClass='';this.CollapseTransitionCustomFilter='';this.ExpandTransitionCustomFilter='';this.NodeEditCssClass='';this.FocusedCssClass='';this.ForceHighlightedNodeID='';this.qzfw=0;this.qzap=0;this.qzkj=0;this.Types=new Object();this.Types["AutoPostBackOnSelect"]='B';this.Types["AutoPostBackOnCheckChanged"]='B';this.Types["AutoPostBackOnCollapse"]='B';this.Types["AutoPostBackOnExpand"]='B';this.Types["AutoPostBackOnMove"]='B';this.Types["AutoPostBackOnRename"]='B';this.Types["Checked"]='B';this.Types["DraggingAcrossTreesEnabled"]='B';this.Types["DraggingEnabled"]='B';this.Types["DroppingAcrossTreesEnabled"]='B';this.Types["DroppingEnabled"]='B';this.Types["EditingEnabled"]='B';this.Types["Expanded"]='B';this.Types["ExtendNodeCell"]='B';this.Types["IsMultipleSelected"]='B';this.Types["Selectable"]='B';this.Types["ShowCheckBox"]='B';this.Types["LabelPadding"]='I';this.Inheritance=new Object();this.Inheritance['AutoPostBackOnSelect']='AutoPostBackOnSelect';this.Inheritance['AutoPostBackOnCheckChanged']='AutoPostBackOnCheckChanged';this.Inheritance['AutoPostBackOnCollapse']='AutoPostBackOnCollapse';this.Inheritance['AutoPostBackOnExpand']='AutoPostBackOnExpand';this.Inheritance['AutoPostBackOnMove']='AutoPostBackOnMove';this.Inheritance['AutoPostBackOnRename']='AutoPostBackOnRename';this.Inheritance['ChildSelectedCssClass']='ChildSelectedNodeCssClass';this.Inheritance['ChildSelectedHoverCssClass']='ChildSelectedHoverNodeCssClass';this.Inheritance['ChildSelectedHoverRowCssClass']='ChildSelectedHoverNodeRowCssClass';this.Inheritance['ChildSelectedRowCssClass']='ChildSelectedNodeRowCssClass';this.Inheritance['ClientTemplateId']='NodeClientTemplateId';this.Inheritance['CssClass']='NodeCssClass';this.Inheritance['DraggingAcrossTreesEnabled']='DragAndDropAcrossTreesEnabled';this.Inheritance['DraggingEnabled']='DragAndDropEnabled';this.Inheritance['DroppingAcrossTreesEnabled']='DragAndDropAcrossTreesEnabled';this.Inheritance['DroppingEnabled']='DragAndDropEnabled';this.Inheritance['EditingEnabled']='NodeEditingEnabled';this.Inheritance['ExtendNodeCell']='ExtendNodeCells';this.Inheritance['HoverCssClass']='HoverNodeCssClass';this.Inheritance['HoverRowCssClass']='HoverNodeRowCssClass';this.Inheritance['ImageHeight']='DefaultImageHeight';this.Inheritance['ImageWidth']='DefaultImageWidth';this.Inheritance['Indent']='NodeIndent';this.Inheritance['LabelPadding']='NodeLabelPadding';this.Inheritance['MultipleSelectedCssClass']='MultipleSelectedNodeCssClass';this.Inheritance['MultipleSelectedRowCssClass']='MultipleSelectedNodeRowCssClass';this.Inheritance['RowCssClass']='NodeRowCssClass';this.Inheritance['Selectable']='Enabled';this.Inheritance['SelectedHoverCssClass']='SelectedHoverNodeCssClass';this.Inheritance['SelectedHoverRowCssClass']='SelectedHoverNodeRowCssClass';this.Inheritance['SelectedCssClass']='SelectedNodeCssClass';this.Inheritance['SelectedRowCssClass']='SelectedNodeRowCssClass';this.FlatProperties=['Text','ID','Expanded','AutoPostBackOnSelect','AutoPostBackOnMove','AutoPostBackOnRename','AutoPostBackOnCheckChanged','AutoPostBackOnExpand','AutoPostBackOnCollapse','ChildSelectedCssClass','ChildSelectedHoverCssClass','ChildSelectedHoverRowCssClass','ChildSelectedRowCssClass','ClientSideCommand','NavigateUrl','Target','ImageUrl','ImageHeight','ImageWidth','LabelPadding','Indent','Selectable','ExtendNodeCell','EditingEnabled','DraggingEnabled','DroppingEnabled','ShowCheckBox','Checked','IsMultipleSelected','CssClass','HoverCssClass','RowCssClass','HoverRowCssClass','ContentCallbackUrl','ExpandedImageUrl','SelectedCssClass','SelectedHoverCssClass','SelectedRowCssClass','SelectedHoverRowCssClass','SelectedImageUrl','SelectedExpandedImageUrl','Value','ToolTip','DraggingAcrossTreesEnabled','DroppingAcrossTreesEnabled','MarginImageUrl','MultipleSelectedCssClass','MultipleSelectedRowCssClass','CutCssClass','CutRowCssClass','PageViewId','TemplateId','ClientTemplateId'];};window.ComponentArt_TreeView.prototype.AddNode=function(item){item.StorageIndex=-1;item.ParentStorageIndex=-1;item.ParentTreeView=this;item.qzcu=0;item.SaveState();};window.ComponentArt_TreeView.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;};window.ComponentArt_TreeView.prototype.CheckAll=function(){var nodes=this.Nodes();for(var qzAde=0;qzAde<nodes.length;qzAde++){nodes[qzAde].CheckAll(true);};};window.ComponentArt_TreeView.prototype.ClearMultipleSelected=function(){if(this.MultipleSelectedNodes){for(var qzba=0;qzba<this.MultipleSelectedNodes.length;qzba++){this.MultipleSelectedNodes[qzba].SetProperty('IsMultipleSelected',false,true);};this.MultipleSelectedNodes=null;this.Render();};};window.ComponentArt_TreeView.prototype.CollapseAll=function(){this.CollapseTo(0);this.Render();};window.ComponentArt_TreeView.prototype.CollapseTo=function(qzcu,item){var nodes;if(!item){nodes=this.Nodes();}else{nodes=item.Nodes();};for(var qzAde=0;qzAde<nodes.length;qzAde++){this.CollapseTo(qzcu,nodes[qzAde]);if(nodes[qzAde].Expanded&&nodes[qzAde].ChildIndices.length>0&&nodes[qzAde].CalculateDepth()>=qzcu){nodes[qzAde].SetProperty('Expanded',false);};};};window.ComponentArt_TreeView.prototype.UnCheckAll=function(){var nodes=this.Nodes();for(var qzAde=0;qzAde<nodes.length;qzAde++){nodes[qzAde].UnCheckAll(true);};};window.ComponentArt_TreeView.prototype.Dispose=function(){if(ComponentArt_ClientStateControls){var newStateControls=[];for(var qzba=0;qzba<ComponentArt_ClientStateControls.length;qzba++){if(ComponentArt_ClientStateControls[qzba]!=this){newStateControls[newStateControls.length]=ComponentArt_ClientStateControls[qzba];};};ComponentArt_ClientStateControls=newStateControls;};};window.ComponentArt_TreeView.prototype.EditCancel=function(){if(cart_browser_ie){event.cancelBubble=true;};if(this.EditingNode){this.EditingNode.IsEditing=false;this.EditingNode=null;};this.Render();document.onkeydown=ComponentArt_ProcessKeyPress;if(cart_browser_ie){this.Frame.onselectstart=ComponentArt_CancelEvent;};return false;};window.ComponentArt_TreeView.prototype.EditComplete=function(){ComponentArt_CancelEvent();if(!this.EditingNode||!this.EditingNode.IsEditing){return false;};this.EditingNode.IsEditing=false;var qzfn=document.getElementById(this.TreeViewID+'_item_'+this.EditingNode.StorageIndex+'_cell'),qzAes=qzfn.firstChild.value;qzAes=qzAes.replace(/\+/g,"&#43;").replace(/</g,"&lt;");if(this.ClientSideOnNodeRename){var fFunc=eval(this.ClientSideOnNodeRename);this.EditingNode.ResolveAncestors();if(!fFunc(this.EditingNode,qzAes)){this.EditCancel();return false;};};if(this.EditingNode.GetProperty('AutoPostBackOnRename')){__doPostBack(this.ControlId,'LABEL '+this.EditingNode.PostBackID+' '+escape(qzAes));return false;};this.EditingNode.SetProperty('Text',qzAes);document.onkeydown=ComponentArt_ProcessKeyPress;if(cart_browser_ie){this.Frame.onselectstart=ComponentArt_CancelEvent;};this.Render();return false;};window.ComponentArt_TreeView.prototype.ExpandAll=function(){var nodes=this.Nodes();for(var qzAde=0;qzAde<nodes.length;qzAde++){if(nodes[qzAde].ChildIndices.length>0){if(!nodes[qzAde].Expanded){nodes[qzAde].SetProperty('Expanded',true);};nodes[qzAde].ExpandAll(true);};};this.Render();};window.ComponentArt_TreeView.prototype.GetProperty=function(qqGz){return this[qqGz];};window.ComponentArt_TreeView.prototype.Nodes=function(index,bSkipProperties){var qqSi=1;if(index||index==0){var currentIndex=0;for(var qzba=0;qzba<this.Data.length;qzba++){if(this.Data[qzba][qqSi]==-1){if(currentIndex==index){var qzAer=this.qzo(qzba);if(!bSkipProperties){qzAer.SetFlatProperties();};return qzAer;}else{currentIndex++;};};};}else{var qztn=new Array();for(var qzba=0;qzba<this.Data.length;qzba++){if(this.Data[qzba][qqSi]==-1){var qzAer=this.qzo(qzba);qzAer.SetFlatProperties();qztn[qztn.length]=qzAer;};};return qztn;};return null;};window.ComponentArt_TreeView.prototype.FindNodeById=function(id,bPostbackId){var index_pindex=1,qqSh=0,qzgv=this.Data,length=qzgv.length;for(var qzba=0;qzba<length;qzba++){var qzan=qzgv[qzba];if(qzan[index_pindex]==-33){continue;};if(bPostbackId){if(qzan[qqSh]==id){return this.qzo(qzba);};}else{var arData=qzan[3];for(var qzAde=0;qzAde<arData.length;qzAde++){if(arData[qzAde][0]=='ID'&&arData[qzAde][1]==id){var qzsz=this.qzo(qzba);qzsz.ResolveAncestors();return qzsz;};};};};};window.ComponentArt_TreeView.prototype.Render=function(qzja){var qzww=false;if(qzja){this.qzAgh=qzja;qzww=true;};this.Frame=document.getElementById(this.qzAgh);var qzon=this.GetProperty('CssClass');if(qzon){this.Frame.className=qzon;};if(!qzww&&this.FillContainer){var qzmt;if(this.Frame.parentNode.style.height.indexOf('px')>0){qzmt=parseInt(this.Frame.parentNode.style.height);}else{qzmt=this.Frame.parentNode.offsetHeight;};var qzoz;if(this.Frame.parentNode.style.width.indexOf('px')>0){qzoz=parseInt(this.Frame.parentNode.style.width);}else{qzoz=this.Frame.parentNode.offsetWidth;};qzoz=ComponentArt_GetAdjustedWidth(this.Frame,qzoz);qzmt=ComponentArt_GetAdjustedHeight(this.Frame,qzmt);if(this.Frame.parentNode.childNodes.length>1){var heightAdjustment=0;for(var qzgx=this.Frame.previousSibling;qzgx!=null;qzgx=qzgx.previousSibling){if(qzgx.offsetHeight){if(qzgx.currentStyle){var currentStyle=qzgx.currentStyle;heightAdjustment+=isNaN(parseInt(currentStyle.height))?0:parseInt(currentStyle.height);heightAdjustment+=isNaN(parseInt(currentStyle.borderTopWidth))?0:parseInt(currentStyle.borderTopWidth);heightAdjustment+=isNaN(parseInt(currentStyle.borderBottomWidth))?0:parseInt(currentStyle.borderBottomWidth);}else{heightAdjustment+=qzgx.offsetHeight;};};};for(var qzgx=this.Frame.nextSibling;qzgx!=null;qzgx=qzgx.nextSibling){if(qzgx.offsetHeight){if(qzgx.currentStyle){var currentStyle=qzgx.currentStyle;heightAdjustment+=isNaN(parseInt(currentStyle.height))?0:parseInt(currentStyle.height);heightAdjustment+=isNaN(parseInt(currentStyle.borderTopWidth))?0:parseInt(currentStyle.borderTopWidth);heightAdjustment+=isNaN(parseInt(currentStyle.borderBottomWidth))?0:parseInt(currentStyle.borderBottomWidth);}else{heightAdjustment+=qzgx.offsetHeight;};};};qzmt-=heightAdjustment;};if(qzmt>0){this.Frame.style.height=qzmt+'px';};if(qzoz>0){this.Frame.style.width=qzoz+'px';};};var qza=[],qzsm=this.Nodes();for(var qzba=0;qzba<qzsm.length;qzba++){if(qzsm[qzba].Visible){qza[qza.length]=qzsm[qzba].GetHtml();};};this.Frame.innerHTML=qza.join('');if(qzww){var qzux=document.getElementById(this.TreeViewID+"_ScrollData");if(qzux){var qzAif=qzux.value.split(','),sCommand='if('+this.TreeViewID+'.Frame.scrollLeft==0) '+this.TreeViewID+'.Frame.scrollLeft='+qzAif[0]+';if('+this.TreeViewID+'.Frame.scrollTop==0) '+this.TreeViewID+'.Frame.scrollTop='+qzAif[1]+';';setTimeout(sCommand,100);this.Frame.onscroll=ComponentArt_TreeView_RememberScrollData;};};if(!qzww&&this.KeyboardEnabled){ComponentArt_InitKeyboard(this);};if(cart_browser_ie){this.Frame.onselectstart=ComponentArt_CancelEvent;};if(this.HoverPopupEnabled){setTimeout(this.TreeViewID+'.GenerateHoverPopups()',200);};};window.ComponentArt_TreeView.prototype.SaveData=function(){var dataObj=document.getElementById(this.TreeViewID+'_Data');if(dataObj){dataObj.value=this.ArrayToXml(this.Data,true);};var propertiesObj=document.getElementById(this.TreeViewID+'_Properties');if(propertiesObj){propertiesObj.value=this.ArrayToXml(this.Properties,true);};};window.ComponentArt_TreeView.prototype.SelectNode=function(qzm,qzcd,qzgo,qzma){var qqDa=qqDb(qzm,this);if(!qzcd){qzcd=document.getElementById(this.TreeViewID+'_item_'+qzm.StorageIndex);};if(!qzgo){qzgo=document.getElementById(this.TreeViewID+'_item_'+qzm.StorageIndex+'_cell');};if(!qzma&&(qzm.ChildIndices.length>0||qzm.ContentCallbackUrl)&&!qqDa&&((qzm.Expanded&&this.CollapseNodeOnSelect)||(!qzm.Expanded&&this.ExpandNodeOnSelect))){this.ToggleExpand(qzm.StorageIndex,qzm.CalculateDepth());};if(!qzm.GetProperty('Selectable')){return;};if(this.HasChildSelected||this.ChildSelectedNodeCssClass||this.ChildSelectedHoverNodeCssClass){this.SelectedNode=qzm;this.Render();}else{if(this.SelectedNode){var qg26=document.getElementById(this.TreeViewID+'_item_'+this.SelectedNode.StorageIndex),qg25=document.getElementById(this.TreeViewID+'_item_'+this.SelectedNode.StorageIndex+'_cell');if(qg26&&qg25){qg26.className=this.SelectedNode.qzao(false,false,true,this.SelectedNode.IsMultipleSelected);qg25.className=this.SelectedNode.qzao(false,false,false,this.SelectedNode.IsMultipleSelected);qg26.classOver=this.SelectedNode.qzao(true,false,true,this.SelectedNode.IsMultipleSelected);qg26.classNormal=qg26.className;qg25.classOver=this.SelectedNode.qzao(true,false,false,this.SelectedNode.IsMultipleSelected);qg25.classNormal=qg25.className;};};this.SelectedNode=qzm;qzcd.className=qzm.qzao(false,true,true,false);qzgo.className=qzm.qzao(false,true,false,false);qzcd.classOver=qzm.qzao(true,true,true,false);qzcd.classNormal=qzcd.className;qzgo.classOver=qzm.qzao(true,true,false,false);qzgo.classNormal=qzgo.className;if(this.KeyboardEnabled){qzAex(this,qzm,qzcd);};};if(qzma){return;};var qznx=document.getElementById(this.TreeViewID+'_SelectedNode');if(qznx){qznx.value=qzm.PostBackID;};if(this.ClientSideOnNodeSelect){var fFunc=eval(this.ClientSideOnNodeSelect);qzm.ResolveAncestors();fFunc(qzm);};if(qqDa){eval(qqDa);};};window.ComponentArt_TreeView.prototype.SelectNodeById=function(itemId,qzma){var qzm=this.FindNodeById(itemId,qzma);if(!qzm||!qzm.GetProperty('Selectable')){return;};var qzcd=document.getElementById(this.TreeViewID+'_item_'+qzm.StorageIndex);if(!qzcd&&this.ExpandSelectedPath){qzm.ExpandAncestors(true);qzcd=document.getElementById(this.TreeViewID+'_item_'+qzm.StorageIndex);};if(!qzcd){this.SelectedNode=qzm;}else{var qzgo=document.getElementById(this.TreeViewID+'_item_'+qzm.StorageIndex+'_cell');this.SelectNode(qzm,qzcd,qzgo,qzma);qzAgv(qzcd,qzma);};};window.ComponentArt_TreeView.prototype.SetProperty=function(qqGz,qqGy){this[qqGz]=qqGy;for(var qzba=0;qzba<this.Properties.length;qzba++){var oProperty=this.Properties[qzba];if(oProperty&&oProperty[0]==qqGz){oProperty[1]=qqGy;return;};};this.Properties[this.Properties.length]=[qqGz,qqGy];};window.ComponentArt_TreeView.prototype.ToggleExpand=function(qzea,qzcu){var qzm=this.qzo(qzea);qzm.qzcu=qzcu;var qzAgf=this.TreeViewID+'_item_'+qzea+'_div',qzxz=document.getElementById(qzAgf);if(!qzm.Expanded){qzzn(this,qzxz,qzm,qzcu);}else{qzqp(this,qzxz,qzm);};if(this.qzad&&this.qzad.StorageIndex==qzm.StorageIndex){this.qzad.Expanded=qzm.Expanded;};};window.ComponentArt_TreeView.prototype.HandleCheck=function(qzAiy,postbackId,storageIndex){var qzm=this.qzo(storageIndex);qzm.SetProperty('Checked',qzAiy.checked,true);if(this.ClientSideOnNodeCheckChanged){var fFunc=eval(this.ClientSideOnNodeCheckChanged);qzm.ResolveAncestors();fFunc(qzm);};if(qzm.GetProperty('AutoPostBackOnCheckChanged')){__doPostBack(this.ControlId,'CHECK '+qzm.PostBackID+' '+qzm.Checked);return;};};window.ComponentArt_TreeView.prototype.HandleClick=function(qzim,storageIndex){var ctrlKey=qzim.ctrlKey;qze=this;if(this.EditingNode&&this.EditingNode.StorageIndex!=storageIndex){this.EditComplete();};ctrlKey=ctrlKey&&this.MultipleSelectEnabled;var qzcd=document.getElementById(this.TreeViewID+'_item_'+storageIndex),qzgo=document.getElementById(this.TreeViewID+'_item_'+storageIndex+'_cell'),qzm=qze.qzo(storageIndex);if(qzm.GetProperty('EditingEnabled')&&this.SelectedNode&&this.SelectedNode.StorageIndex==qzm.StorageIndex&&!qzm.IsEditing){this.SelectedNode.Edit();return;};if(ctrlKey){if(this.SelectedNode){this.SelectedNode.MultipleSelect();};qzm.MultipleSelect();};this.SelectNode(qzm,qzcd,qzgo);if(!ctrlKey&&this.MultipleSelectedNodes){this.ClearMultipleSelected();};return false;};window.ComponentArt_TreeView.prototype.HandleDoubleClick=function(qzim,storageIndex){if(this.ClientSideOnNodeMouseDoubleClick){var fFunc=eval(this.ClientSideOnNodeMouseDoubleClick),qzm=this.qzo(storageIndex);fFunc(qzm);};return false;};window.ComponentArt_TreeView.prototype.HandleHover=function(qzbc,qzAml,qzAcb,qzAef){qze=this;if(qzbc.IsEditing||qzbc==qzdt){return true;};if(qzAml&&qzdt&&qqQl&&qqQl.DropChildCssClass){qzbc.className=qqQl.DropChildCssClass;return true;};if(this&&this.qzkj==1){this.qzkj=0;if(this.qzai&&this.qzai.onmouseout){this.qzai.onmouseout()};if(this.qzfj&&this.qzfj.onmouseout){this.qzfj.onmouseout();};};if(!qzbc.classNormal){qzbc.classNormal=qzAcb;};if(!qzbc.classOver){qzbc.classOver=qzAef;};if(qzAml){qzbc.className=qzbc.classOver;}else{qzbc.className=qzbc.classNormal;};if(qzbc.HoverPopup){if(qzAml&&qzbc.HoverPopup.Threshold>this.Frame.scrollLeft){qzbc.HoverPopup.style.left=qzbc.HoverPopup.BaseX-this.Frame.scrollLeft+'px';qzbc.HoverPopup.style.top=qzbc.HoverPopup.BaseY-this.Frame.scrollTop+'px';qzbc.HoverPopup.style.display='';}else{qzbc.HoverPopup.style.display='none';};};return true;};window.ComponentArt_TreeView.prototype.HandleHoverEvents=function(qzAml,storageIndex){qze=this;var qzsz=this.qzo(storageIndex);if(qzAml){if(this.ClientSideOnNodeMouseOver){var fFunc=eval(this.ClientSideOnNodeMouseOver);fFunc(qzsz);};}else{if(this.ClientSideOnNodeMouseOut){var fFunc=eval(this.ClientSideOnNodeMouseOut);fFunc(qzsz);};};return false;};window.ComponentArt_TreeView.prototype.HandleRightClick=function(qzim,storageIndex){if(document.all){if(qzim.button!=2){return true;};}else{if(qzim.which!=3){return true;};};var qzm=this.qzo(storageIndex);qzm.ResolveAncestors();var fFunc=eval(this.OnContextMenu);fFunc(qzm,qzim);ComponentArt_CancelEvent(qzim);return false;};window.ComponentArt_TreeView.prototype.GenerateHoverPopups=function(domObj){this.HoverPopupContainer.style.display='none';this.HoverPopupContainer.innerHTML='';if(!domObj){domObj=this.Frame;};var frameEndX=qzAfx(this.Frame)+this.Frame.offsetWidth;if(this.Frame.scrollHeight>this.Frame.offsetHeight){frameEndX-=16;};var arElements=domObj.getElementsByTagName('div');for(var qzba=0;qzba<arElements.length;qzba++){var oElement=arElements[qzba];if(oElement.id&&oElement.id.indexOf(this.TreeViewID+'_item_')==0&&oElement.id.indexOf('_cell')>0){var elementEndX=qzAfx(oElement)+oElement.offsetWidth;if(oElement.HoverPopup){qzff(oElement.HoverPopup);oElement.HoverPopup=null;};if(elementEndX>frameEndX){var qzea=oElement.id.substring((this.TreeViewID+'_item_').length,oElement.id.indexOf('_cell')),popup=document.createElement('DIV');popup.style.position='absolute';popup.style.display='none';popup.style.cursor='default';popup.innerHTML='<div onmouseover="this.parentNode.style.display=\'\';" onmouseout="this.parentNode.style.display=\'none\';" onclick="'+this.TreeViewID+'.HandleClick(event,'+qzea+');">'+oElement.innerHTML+'</div>';if(this.HoverPopupNodeCssClass){popup.firstChild.className=this.HoverPopupNodeCssClass;}else{popup.firstChild.className=oElement.className;popup.firstChild.style.border='1px solid black';popup.firstChild.style.backgroundColor='white';popup.firstChild.style.color='black';popup.firstChild.style.zIndex='11001';};this.HoverPopupContainer.appendChild(popup);oElement.HoverPopup=popup;oElement.HoverPopup.BaseX=qzAfx(oElement);oElement.HoverPopup.BaseY=qzAfw(oElement);oElement.HoverPopup.Threshold=elementEndX-frameEndX;};};};if(this.HoverPopupContainer.childNodes.length>0){this.HoverPopupContainer.style.display='inline';}else{this.HoverPopupContainer.style.display='none';};};window.ComponentArt_TreeView.prototype.GetClientTemplate=function(qzAky){if(this.ClientTemplates){for(var qzba=0;qzba<this.ClientTemplates.length;qzba++){if(this.ClientTemplates[qzba][0]==qzAky){return this.ClientTemplates[qzba][1];};};};return null;};window.ComponentArt_TreeView.prototype.GetFirstRootNodeIndex=function(){var qqSi=1;for(var qzba=0;qzba<this.Data.length;qzba++){if(this.Data[qzba][qqSi]==-1){return qzba;};};return 0;};window.ComponentArt_TreeView.prototype.GetLastRootNodeIndex=function(){var qqSi=1;for(var qzba=this.Data.length-1;qzba>=0;qzba--){if(this.Data[qzba][qqSi]==-1){return qzba;};};return 0;};window.ComponentArt_TreeView.prototype.qzo=function(index,parentitem){if(index<0){return null;};var qzan=this.Data[index],qzm=new ComponentArt_TreeViewNode();qzm.PostBackID=qzan[0];qzm.ParentStorageIndex=qzan[1];qzm.ChildIndices=qzan[2];qzm.Data=qzan[3];for(var qzba=0;qzba<qzm.Data.length;qzba++){qzm[qzm.Data[qzba][0]]=qzm.Data[qzba][1];};if(!qzm.Text){qzm.Text='';};if(parentitem){qzm.ParentNode=parentitem;qzm.qzcu=parentitem.qzcu+1;};qzm.ParentTreeView=this;qzm.StorageIndex=index;return qzm;};window.ComponentArt_TreeView.prototype.Initialize=function(qzja){ComponentArt_SetProperties(this,this.Properties);if(this.HoverPopupEnabled){if(!cart_browser_ie){this.HoverPopupEnabled=false;}else{var domObj=document.createElement('div');domObj.style.height='0px';domObj.style.display='none';setTimeout('document.body.insertBefore('+this.TreeViewID+'.HoverPopupContainer,document.body.firstChild)',1000);this.HoverPopupContainer=domObj;};};this.Render(qzja);if(this.EnableViewState){ComponentArt_ClientStateControls[ComponentArt_ClientStateControls.length]=this;};ComponentArt_TreeRegisterCoords(this);ComponentArt_SetActiveTree(this);if(this.KeyboardEnabled){ComponentArt_InitKeyboard(this);if(this.KeyboardCutCopyPasteEnabled){ComponentArt_RegisterKeyHandler(this,'Ctrl+C','ComponentArt_TreeCopy();');ComponentArt_RegisterKeyHandler(this,'Ctrl+X','ComponentArt_TreeCut();');ComponentArt_RegisterKeyHandler(this,'Ctrl+V','ComponentArt_TreePaste();');};};this.InitMultipleSelected();};window.ComponentArt_TreeView.prototype.InitMultipleSelected=function(){var qzcb=document.getElementById(this.TreeViewID+'_MultipleSelectedList');if(!qzcb){return;};if(qzcb.value){var qqWa=qzcb.value.split(',');for(var qzba=0;qzba<qqWa.length;qzba++){var qzm=this.FindNodeById(qqWa[qzba],true);qzm.MultipleSelect(true);};};};window.ComponentArt_TreeViewNode=function(){this.PostBackID='';this.ID='';this.Text='';this.Value='';this.Visible=true;this.ParentTreeView=null;this.ParentNode=null;this.qzcu=0;this.StorageIndex=-1;this.ParentStorageIndex=-1;this.ChildIndices=[];this.Data=[];};window.ComponentArt_TreeViewNode.prototype.AddNode=function(item,index){var oldParentTree=item.ParentTreeView;item.ParentStorageIndex=this.StorageIndex;item.ParentTreeView=this.ParentTreeView;item.qzcu=this.qzcu+1;var bFromDifferentTree=oldParentTree&&oldParentTree!=item.ParentTreeView,oldData=item.Data.length>0&&bFromDifferentTree?item.Data.concat([]):null;item.SaveState();if(bFromDifferentTree){if(oldData){item.ParentTreeView.Data[item.StorageIndex][3]=oldData;};if(item.ChildIndices.length>0){var oldChildIndices=item.ChildIndices;item.ParentTreeView.Data[item.StorageIndex][2]=item.ChildIndices=[];for(var qzba=0;qzba<oldChildIndices.length;qzba++){var childNode=oldParentTree.qzo(oldChildIndices[qzba]);if(childNode){childNode.StorageIndex=-1;item.AddNode(childNode);};};};};this.ChildIndices[this.ChildIndices.length]=item.StorageIndex;if((index||index==0)&&index<this.ChildIndices.length-1){for(var qzba=this.ChildIndices.length-1;qzba>index;qzba--){this.ChildIndices[qzba]=this.ChildIndices[qzba-1];};this.ChildIndices[qzba]=item.StorageIndex;};};window.ComponentArt_TreeViewNode.prototype.CalculateDepth=function(){var qzcu=0;for(var item=this;item.ParentStorageIndex>=0;item=item.ParentNode?item.ParentNode:item.GetParentNode()){qzcu++;};this.qzcu=qzcu;return qzcu;};window.ComponentArt_TreeViewNode.prototype.ClearChildren=function(){while(this.ChildIndices.length>0){this.RemoveNodeByStorageIndex(this.ChildIndices[0]);};};window.ComponentArt_TreeViewNode.prototype.CheckAll=function(bDontSave){if(this.ShowCheckBox&&!this.Checked){this.SetProperty('Checked',true);};var nodes=this.Nodes();for(var qzAde=0;qzAde<nodes.length;qzAde++){nodes[qzAde].CheckAll(true);};};window.ComponentArt_TreeViewNode.prototype.UnCheckAll=function(bDontSave){if(this.ShowCheckBox&&this.Checked){this.SetProperty('Checked',false);};var nodes=this.Nodes();for(var qzAde=0;qzAde<nodes.length;qzAde++){nodes[qzAde].UnCheckAll(true);};};window.ComponentArt_TreeViewNode.prototype.Collapse=function(qqZj){if(this.Expanded){qzqp(this.ParentTreeView,document.getElementById(this.ParentTreeView.TreeViewID+'_item_'+this.StorageIndex+'_div'),this,qqZj);};};window.ComponentArt_TreeViewNode.prototype.CollapseAll=function(bDontRender){var nodes=this.Nodes();for(var qzAde=0;qzAde<nodes.length;qzAde++){if(nodes[qzAde].ChildIndices.length>0){if(nodes[qzAde].Expanded){nodes[qzAde].SetProperty('Expanded',false);};nodes[qzAde].CollapseAll(true);};};if(!bDontRender){this.ParentTreeView.Render();};};window.ComponentArt_TreeViewNode.prototype.Edit=function(){this.IsEditing=true;this.ParentTreeView.EditingNode=this;var qzgo=document.getElementById(this.ParentTreeView.TreeViewID+'_item_'+this.StorageIndex+'_cell'),qzAgw=this.GetProperty('Text');qzgo.innerHTML="<input size=\""+Math.max(7,qzAgw.length+3)+"\" maxlength=\"256\" value=\""+qzAgw+"\" type=\"text\" onblur=\""+this.ParentTreeView.TreeViewID+".EditComplete();\" onsubmit=\"return false;\" onchange=\""+this.ParentTreeView.TreeViewID+".EditComplete();\" onkeypress=\"ComponentArt_TreeView_CheckEnterPress(event, "+this.ParentTreeView.TreeViewID+");\">";qzgo.className=this.qzao();qzgo.lastChild.className=qze.NodeEditCssClass;qzgo.IsEditing=true;qzgo.lastChild.focus();qzgo.lastChild.select();qzgo.lastChild.onclick=ComponentArt_CancelEvent;document.onkeydown=null;if(cart_browser_ie){this.ParentTreeView.Frame.onselectstart=null;};};window.ComponentArt_TreeViewNode.prototype.Expand=function(qqZj){if(!this.Expanded&&(this.ChildIndices.length>0||this.ContentCallbackUrl)){qzzn(this.ParentTreeView,document.getElementById(this.ParentTreeView.TreeViewID+'_item_'+this.StorageIndex+'_div'),this,this.CalculateDepth(),qqZj);};};window.ComponentArt_TreeViewNode.prototype.ExpandAll=function(bDontRender){var nodes=this.Nodes();for(var qzAde=0;qzAde<nodes.length;qzAde++){if(nodes[qzAde].ChildIndices.length>0){if(!nodes[qzAde].Expanded){nodes[qzAde].SetProperty('Expanded',true);};nodes[qzAde].ExpandAll(true);};};if(!bDontRender){this.ParentTreeView.Render();};};window.ComponentArt_TreeViewNode.prototype.ExpandAncestors=function(qqZj){var qzee=this,qzfk=null,qzdg=null;while(qzee.ParentStorageIndex>=0){qzee=qzee.GetParentNode();if(!qzee.Expanded){qzdg=qzfk;qzfk=qzee;if(qzdg){qzdg.SetProperty('Expanded',true);};};};if(qzfk){qzfk.Expand(qqZj);};};window.ComponentArt_TreeViewNode.prototype.GetCurrentIndex=function(){if(this.ParentStorageIndex>=0){if(!this.ParentNode)this.ParentNode=this.GetParentNode();for(var index=0;index<this.ParentNode.ChildIndices.length;index++){if(this.ParentNode.ChildIndices[index]==this.StorageIndex){return index;};};}else{if(this.ParentTreeView){var qzsm=this.ParentTreeView.Nodes();for(var index=0;index<qzsm.length;index++){if(qzsm[index].StorageIndex==this.StorageIndex){return index;};};};};return-1;};window.ComponentArt_TreeViewNode.prototype.GetParentNode=function(){if(this.ParentStorageIndex<0){return null;}else{this.ParentNode=this.ParentTreeView.qzo(this.ParentStorageIndex);return this.ParentNode;};};window.ComponentArt_TreeViewNode.prototype.GetProperty=function(property,defaultValue){for(var qzba=0;qzba<this.Data.length;qzba++){if(this.Data[qzba][0]==property){return this.Data[qzba][1];};};var sInheritProperty=this.ParentTreeView?this.ParentTreeView.Inheritance[property]:null;if(sInheritProperty){return this.ParentTreeView[sInheritProperty];};return defaultValue;};window.ComponentArt_TreeViewNode.prototype.MultipleSelect=function(bSkipProperty){if(this.ParentTreeView){if(!this.ParentTreeView.MultipleSelectedNodes){this.ParentTreeView.MultipleSelectedNodes=new Array();};if(!this.IsMultipleSelected||bSkipProperty){if(!bSkipProperty){this.SetProperty('IsMultipleSelected',true);};this.ParentTreeView.MultipleSelectedNodes[this.ParentTreeView.MultipleSelectedNodes.length]=this;};};};window.ComponentArt_TreeViewNode.prototype.Nodes=function(index){if(index||index==0){var qzAer=this.ParentTreeView.qzo(this.ChildIndices[index],this);qzAer.SetFlatProperties();return qzAer;}else{var qzie=new Array(),length=this.ChildIndices.length;for(var qzba=0;qzba<length;qzba++){var qzAer=this.ParentTreeView.qzo(this.ChildIndices[qzba],this);qzAer.SetFlatProperties();qzie[qzie.length]=qzAer;};return qzie;};};window.ComponentArt_TreeViewNode.prototype.Remove=function(){if(this.ParentTreeView.SelectedNode!=null&&this.ParentTreeView.SelectedNode.StorageIndex==this.StorageIndex){this.ParentTreeView.SelectedNode=null;};if(this.ParentTreeView.KeyboardEnabled){ComponentArt_InitKeyboard(this.ParentTreeView);};var qzsi=this.GetParentNode();if(qzsi!=null){qzsi.RemoveNodeByStorageIndex(this.StorageIndex);}else{var qqSi=1;this.ParentTreeView.Data[this.StorageIndex][qqSi]=-33;};};window.ComponentArt_TreeViewNode.prototype.RemoveNode=function(index){if(index>=0&&index<this.ChildIndices.length){this.RemoveNodeByStorageIndex(this.ChildIndices[index]);};};window.ComponentArt_TreeViewNode.prototype.RemoveNodeByStorageIndex=function(index){var qzba;for(qzba=0;qzba<this.ChildIndices.length;qzba++){if(this.ChildIndices[qzba]==index){break;};};for(;qzba<this.ChildIndices.length-1;qzba++){this.ChildIndices[qzba]=this.ChildIndices[qzba+1];};this.ChildIndices.length--;};window.ComponentArt_TreeViewNode.prototype.ResolveAncestors=function(){var qzAer=this;while(qzAer.ParentStorageIndex>=0){qzAer.ParentNode=qzAer.GetParentNode();qzAer=qzAer.ParentNode;};};window.ComponentArt_TreeViewNode.prototype.SaveState=function(){if(this.Data.length==0){for(var qzba=0;qzba<this.ParentTreeView.FlatProperties.length;qzba++){if(this[this.ParentTreeView.FlatProperties[qzba]]!==void 0){this.Data[this.Data.length]=[this.ParentTreeView.FlatProperties[qzba],this[this.ParentTreeView.FlatProperties[qzba]]];};};};if(this.ParentTreeView){var qzgv=this.ParentTreeView.Data;if(this.StorageIndex<0){this.StorageIndex=qzgv.length;};};qzgv[this.StorageIndex]=[this.PostBackID,this.ParentStorageIndex,this.ChildIndices,this.Data];};window.ComponentArt_TreeViewNode.prototype.SetFlatProperties=function(){if(this.ParentTreeView){for(var qzba=qzba;qzba<this.ParentTreeView.FlatProperties.length;qzba++){this[this.ParentTreeView.FlatProperties[qzba]]=this.GetProperty(this.ParentTreeView.FlatProperties[qzba]);};};};window.ComponentArt_TreeViewNode.prototype.SetProperty=function(qztk,value,bSaveData){var bSet=false;for(var qzba=0;qzba<this.Data.length;qzba++){if(this.Data[qzba][0]==qztk){this.Data[qzba][1]=value;bSet=true;break;};};if(!bSet){this.Data[this.Data.length]=[qztk,value];};this[qztk]=value;};window.ComponentArt_TreeViewNode.prototype.FetchContent=function(){if(!this.ContentCallbackUrl){return false;};var xmlHttpRequest=false,qzzc,qzsz=this,qzdy=document.getElementById(this.ParentTreeView.TreeViewID+'_item_'+this.StorageIndex+'_cell');function qzAjj(){if(qzsz.OldExpCol0Src){var qzAeb=qzsz.ParentTreeView.TreeViewID+'_item_'+qzsz.StorageIndex+'_expcol',qzsr=document.getElementById(qzAeb);if(qzsr){qzsr.childNodes[0].src=qzsz.OldExpCol0Src;};qzsz.OldExpCol0Src=null;};qzdy.innerHTML=qzsz.qzll();qzsz.ParentTreeView.LoadingOnDemand=false;};function qzzs(){if(qzzc.readyState&&qzzc.readyState!=4&&qzzc.readyState!='complete'){return;};var xmlDoc=xmlHttpRequest?qzzc.responseXML:qzzc;if(xmlDoc&&xmlDoc.documentElement){qzsz.LoadNodesFromXml(xmlDoc.documentElement.childNodes);}else{if(qzzc.status&&qzzc.status!=200&&qzzc.responseText){document.body.innerHTML=qzzc.responseText;}else{alert('Error loading callback data.');};};qzAjj();if(qzsz.ChildIndices.length>0){var qzn=document.getElementById(qzsz.ParentTreeView.TreeViewID+'_item_'+qzsz.StorageIndex+'_div');qzzn(qzsz.ParentTreeView,qzn,qzsz,qzsz.CalculateDepth());}else{qzsz.SetProperty('ContentCallbackUrl',null);qzsz.ParentTreeView.Render();};if(qzsz.ParentTreeView.ClientSideOnCallbackComplete){var fFunc=eval(qzsz.ParentTreeView.ClientSideOnCallbackComplete);fFunc(qzsz);};};this.ParentTreeView.LoadingOnDemand=true;if(window.XMLHttpRequest){xmlHttpRequest=true;var qzzc=new XMLHttpRequest();qzzc.onreadystatechange=qzzs;qzzc.open("GET",this.ContentCallbackUrl,true);qzzc.send(null);}else if(document.implementation&&document.implementation.createDocument){qzzc=document.implementation.createDocument("","",null);qzzc.onload=qzzs;}else if(cart_browser_ie){var qzac=this.ParentTreeView.TreeViewID+'_island',qzv=document.getElementById(qzac);if(!qzv){qzv=document.createElement('xml');qzv.id=qzac;document.body.appendChild(qzv);};if(qzv.XMLDocument){qzzc=qzv.XMLDocument;qzzc.onreadystatechange=qzzs;}else{return false;};}else{return false;};if(this.ParentTreeView.ContentLoadingImageUrl){var sContentLoadingImageUrl=this.ParentTreeView.ContentLoadingImageUrl;if(this.ParentTreeView.ImagesBaseUrl){sContentLoadingImageUrl=this.ParentTreeView.ImagesBaseUrl+sContentLoadingImageUrl;};var qzAeb=this.ParentTreeView.TreeViewID+'_item_'+this.StorageIndex+'_expcol',qzsr=document.getElementById(qzAeb);if(qzsr){this.OldExpCol0Src=qzsr.childNodes[0].src;qzsr.childNodes[0].src=sContentLoadingImageUrl;};}else{var qza=new Array();qza[qza.length]="<span ";if(this.ParentTreeView.LoadingFeedbackCssClass){qza[qza.length]="class=\""+this.ParentTreeView.LoadingFeedbackCssClass;}else{qza[qza.length]="style=\"";qza[qza.length]="color: #000000;";qza[qza.length]="font-family: tahoma, arial, verdana, sans-serif;";qza[qza.length]="font-size: 11px;";qza[qza.length]="border-top: 1px solid #999999;";qza[qza.length]="border-left: 1px solid #999999;";qza[qza.length]="border-bottom: 1px solid #3f3f3f;";qza[qza.length]="border-right: 1px solid #3f3f3f;";qza[qza.length]="padding-left: 5px;";qza[qza.length]="padding-right: 5px;";qza[qza.length]="padding-bottom: 2px;";qza[qza.length]="background-color: #ffffff;";qza[qza.length]="z-index: 90210;";qza[qza.length]="height: 100%;";};qza[qza.length]="\">"+this.ParentTreeView.LoadingFeedbackText+"</span>";qzdy.innerHTML=qza.join('');};if(!xmlHttpRequest){qzzc.async=true;try{qzzc.load(this.ContentCallbackUrl);}catch(ex){qzAjj();alert("Data not loaded: "+(ex.message?ex.message:ex));};};return true;};window.ComponentArt_TreeViewNode.prototype.qzao=function(bHover,bSelected,bRow,bMultipleSelected,bChildSelected){var qg29=bRow?(this.CutRowCssClass?this.CutRowCssClass:this.ParentTreeView.CutNodeRowCssClass):(this.CutCssClass?this.CutCssClass:this.ParentTreeView.CutNodeCssClass);if(qg29&&!qqWy){for(var qzba=0;qzba<qqWv.length;qzba++){if(this.StorageIndex==qqWv[qzba].StorageIndex&&this.ParentTreeView==qqWv[qzba].ParentTreeView){return qg29;};};};if(bSelected){if(bHover){if(bRow){var qzon=this.GetProperty('SelectedHoverRowCssClass');if(qzon){return qzon;};}else{var qzon=this.GetProperty('SelectedHoverCssClass');if(qzon){return qzon;};};};if(bRow){var qzon=this.GetProperty('SelectedRowCssClass');if(qzon){return qzon;};}else{var qzon=this.GetProperty('SelectedCssClass');if(qzon){return qzon;};};}else if(bMultipleSelected){if(bRow){var qzon=this.GetProperty('MultipleSelectedRowCssClass');if(qzon){return qzon;};}else{var qzon=this.GetProperty('MultipleSelectedCssClass');if(qzon){return qzon;};};}else if(bChildSelected){if(bHover){if(bRow){var qzon=this.GetProperty('ChildSelectedHoverRowCssClass');if(qzon){return qzon;};}else{var qzon=this.GetProperty('ChildSelectedHoverCssClass');if(qzon){return qzon;};};};if(bRow){var qzon=this.GetProperty('ChildSelectedRowCssClass');if(qzon){return qzon;};}else{var qzon=this.GetProperty('ChildSelectedCssClass');if(qzon){return qzon;};};}else if(bHover){if(bRow){var qzon=this.GetProperty('HoverRowCssClass');if(qzon){return qzon;};}else{var qzon=this.GetProperty('HoverCssClass');if(qzon){return qzon;};};};if(bRow){return this.GetProperty('RowCssClass');}else{return this.GetProperty('CssClass');};};window.ComponentArt_TreeViewNode.prototype.GetHtml=function(){var qzmx=((this.ParentTreeView.SelectedNode&&this.ParentTreeView.SelectedNode.StorageIndex==this.StorageIndex)||(this.ID&&this.ID==this.ParentTreeView.ForceHighlightedNodeID)),bIsChildSelected=this.ParentTreeView.SelectedNode&&(this.GetProperty('ChildSelectedCssClass')||this.GetProperty('ChildSelectedRowCssClass'))&&qzyq(this,this.ParentTreeView.SelectedNode);this.ParentTreeView.HasChildSelected=this.ParentTreeView.HasChildSelected||bIsChildSelected;var qzhb=this.qzvn(),qzgu=(this.ChildIndices.length>0||this.ContentCallbackUrl),qzru=false,qza=new Array();qza[qza.length]="<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\""+this.ParentTreeView.TreeViewID+'_item_'+this.StorageIndex+"\" class=\"";var qzdm=this.qzao(false,qzmx,true,this.IsMultipleSelected,bIsChildSelected),qzos=this.qzao(true,qzmx,true,this.IsMultipleSelected,bIsChildSelected);qza[qza.length]=qzdm;qza[qza.length]="\"";if(this.ParentTreeView.ClientSideOnNodeMouseDoubleClick){qza[qza.length]=" ondblclick=\""+this.ParentTreeView.TreeViewID+".HandleDoubleClick(event,"+this.StorageIndex+");\"";};var qqZh=(qzos!=qzdm),qqZg=(this.ParentTreeView.ClientSideOnNodeMouseOver||this.ParentTreeView.ClientSideOnNodeMouseOut);if(qqZh||qqZg){if(qqZh||this.ParentTreeView.ClientSideOnNodeMouseOver){qza[qza.length]=" onmouseover=\"";if(qqZh){qza[qza.length]=this.ParentTreeView.TreeViewID+".HandleHover(this,true,'"+qzdm+"','"+qzos+"');";};if(this.ParentTreeView.ClientSideOnNodeMouseOver){qza[qza.length]=this.ParentTreeView.TreeViewID+".HandleHoverEvents(true,"+this.StorageIndex+");";};qza[qza.length]="\"";};if(qqZh||this.ParentTreeView.ClientSideOnNodeMouseOut){qza[qza.length]=" onmouseout=\"";if(qqZh){qza[qza.length]=this.ParentTreeView.TreeViewID+".HandleHover(this,false,'"+qzdm+"','"+qzos+"');";};if(this.ParentTreeView.ClientSideOnNodeMouseOut){qza[qza.length]=this.ParentTreeView.TreeViewID+".HandleHoverEvents(false,"+this.StorageIndex+");";};qza[qza.length]="\"";};};if(this.ParentTreeView.OnContextMenu){qza[qza.length]=" onmouseup=\""+this.ParentTreeView.TreeViewID+".HandleRightClick(event,"+this.StorageIndex+");\"";};if(qzdm||qzos){qza[qza.length]=" onclick=\""+this.ParentTreeView.TreeViewID+".HandleClick(event,"+this.StorageIndex+");\"";qzru=true;};if(this.ToolTip){qza[qza.length]=" title=\""+this.ToolTip+"\"";};qza[qza.length]="><tr>";if(this.ParentTreeView.DisplayMargin){qza[qza.length]=this.GetMarginHtml();};if(!this.ParentTreeView.ExpandCollapseInFront&&(this.GetProperty('Indent')>0||this.ParentTreeView.ShowLines)){for(var qzba=0;qzba<this.qzcu;qzba++){qza[qza.length]=this.qzvm(qzba);};};qza[qza.length]=this.qzzp(qzgu,qzhb);if(this.ParentTreeView.ExpandCollapseInFront&&this.GetProperty('Indent')>0){for(var qzba=0;qzba<this.qzcu;qzba++){if(this.ParentTreeView.ShowLines){qza[qza.length]="<td><img alt=\"\" style=\"display:none;\" src=\""+this.ParentTreeView.LineImagesFolderUrl+"noexpand.gif\"></td>";}else{qza[qza.length]=this.qzvm(qzba);};};};var qzsy=this.qzAey();if(qzsy){qza[qza.length]="<td align=center valign=center>";qza[qza.length]="<img style=\"display:block;\" src='"+qzsy+"' id='"+this.ParentTreeView.TreeViewID+"_item_"+this.StorageIndex+"_icon'";if(this.ToolTip){qza[qza.length]=" alt=\""+this.ToolTip+"\"";}else{qza[qza.length]=" alt=\"\"";};var iImageHeight=this.GetProperty('ImageHeight');if(iImageHeight>0){qza[qza.length]=" height='"+iImageHeight+"'";};var iImageWidth=this.GetProperty('ImageWidth');if(iImageWidth>0){qza[qza.length]=" width='"+iImageWidth+"'";};if(!qzru){qza[qza.length]=" onclick=\""+this.ParentTreeView.TreeViewID+".HandleClick(event,"+this.StorageIndex+");\"";};if(this.GetProperty('DraggingEnabled')){qza[qza.length]=" onmousedown=\"ComponentArt_StartNodeDrag(event,this,"+this.ParentTreeView.TreeViewID+","+this.StorageIndex+");\"";};qza[qza.length]="></td>";};if(this.ShowCheckBox){qza[qza.length]="<td align=center valign=center><input type=\"checkbox\" onclick=\""+this.ParentTreeView.TreeViewID+".HandleCheck(this,'"+this.PostBackID+"',"+this.StorageIndex+");\"";if(this.Checked){qza[qza.length]=" checked";};qza[qza.length]=" name='checker_"+this.PostBackID+"'/></td>";};qza[qza.length]="<td style=\"padding-left: "+this.GetProperty('LabelPadding')+"px;\"";if(this.GetProperty('ExtendNodeCell')){qza[qza.length]=" width=\"100%\"";};qza[qza.length]="><div id='"+this.ParentTreeView.TreeViewID+"_item_"+this.StorageIndex+"_cell' class='";var qzon=this.qzao(false,qzmx,false,this.IsMultipleSelected,bIsChildSelected),qzmb=this.qzao(true,qzmx,false,this.IsMultipleSelected,bIsChildSelected);qza[qza.length]=qzon+"'";qza[qza.length]=" onmouseover=\"";qza[qza.length]=this.ParentTreeView.TreeViewID+".HandleHover(this,true,'"+qzon+"','"+qzmb+"');\"";qza[qza.length]=" onmouseout=\""+this.ParentTreeView.TreeViewID+".HandleHover(this,false,'"+qzon+"','"+qzmb+"');\"";if(!qzru){qza[qza.length]=" onclick=\""+this.ParentTreeView.TreeViewID+".HandleClick(event,"+this.StorageIndex+");\"";qzru=true;};if(this.GetProperty('DraggingEnabled')){qza[qza.length]=" onmousedown=\"ComponentArt_StartNodeDrag(event,this,"+this.ParentTreeView.TreeViewID+","+this.StorageIndex+");\"";};qza[qza.length]=">"+this.qzll()+"</div></td>";if(!this.ExtendNodeCell){qza[qza.length]="<td width='100%'></td>";};qza[qza.length]="</tr></table>";if(this.ParentTreeView.ItemSpacing>0){qza[qza.length]="<div style=\"width:100%;height:"+this.ParentTreeView.ItemSpacing+"px;overflow:hidden;\"></div>";};if(this.Expanded&&this.ChildIndices.length>0){qza[qza.length]="<div id='"+this.ParentTreeView.TreeViewID+"_item_"+this.StorageIndex+"_div'>";qza[qza.length]=this.qzuc();}else{qza[qza.length]="<div id='"+this.ParentTreeView.TreeViewID+"_item_"+this.StorageIndex+"_div' style=\"display: none;\">";if(this.ParentTreeView.PreRenderAllLevels){qza[qza.length]=this.qzuc();};};qza[qza.length]="</div>";return qza.join('');};window.ComponentArt_TreeViewNode.prototype.GetMarginHtml=function(){var qza=new Array();qza[qza.length]="<td";if(this.ParentTreeView.MarginCssClass){qza[qza.length]=" class=\""+this.ParentTreeView.MarginCssClass+"\"";};qza[qza.length]="><div style=\"width:"+this.ParentTreeView.MarginWidth+"px;\">";if(this.MarginImageUrl){var sMarginImageUrl=this.MarginImageUrl;if(this.ParentTreeView.ImagesBaseUrl){sMarginImageUrl=this.ParentTreeView.ImagesBaseUrl+sMarginImageUrl;};qza[qza.length]="<img alt=\"\" style=\"display:block;\"";if(this.ParentTreeView.MarginImageWidth&&this.ParentTreeView.MarginImageWidth>0){qza[qza.length]=" width=\""+this.ParentTreeView.MarginImageWidth+"\"";};if(this.ParentTreeView.MarginImageHeight&&this.ParentTreeView.MarginImageHeight>0){qza[qza.length]=" height=\""+this.ParentTreeView.MarginImageHeight+"\"";};qza[qza.length]=" src=\""+sMarginImageUrl+"\">";};qza[qza.length]="</div></td>";return qza.join('');};window.ComponentArt_TreeViewNode.prototype.qzAey=function(){var qzgu=(this.ChildIndices.length>0||this.ContentCallbackUrl),qzsy;if(this.SelectedImageUrl&&this.ParentTreeView.SelectedNode&&this.ParentTreeView.SelectedNode.StorageIndex==this.StorageIndex){qzsy=this.SelectedImageUrl;}else{qzsy=this.ImageUrl;};if(!qzsy){if(qzgu){if(this.Expanded){if(this.SelectedExpandedImageUrl&&this.ParentTreeView.SelectedNode&&this.ParentTreeView.SelectedNode.StorageIndex==this.StorageIndex){qzsy=this.SelectedExpandedImageUrl;}else if(this.ExpandedImageUrl){qzsy=this.ExpandedImageUrl;}else if(this.ParentTreeView.ExpandedParentNodeImageUrl){qzsy=this.ParentTreeView.ExpandedParentNodeImageUrl;};};if(!qzsy){qzsy=this.ParentTreeView.ParentNodeImageUrl;};}else{qzsy=this.ParentTreeView.LeafNodeImageUrl;};}else{if(qzgu){if(this.Expanded){if(this.SelectedExpandedImageUrl&&this.ParentTreeView.SelectedNode&&this.ParentTreeView.SelectedNode.StorageIndex==this.StorageIndex){qzsy=this.SelectedExpandedImageUrl;}else if(this.ExpandedImageUrl){qzsy=this.ExpandedImageUrl;};};};};if(qzsy){qzsy=ComponentArt_ConvertUrl(this.ParentTreeView.ImagesBaseUrl,qzsy,this.ParentTreeView.ApplicationPath);};return qzsy;};window.ComponentArt_TreeViewNode.prototype.qzll=function(){var qzmw=document.getElementById(this.ParentTreeView.TreeViewID+'_'+this.PostBackID),qxbiz='template_'+this.PostBackID.replace(/[-\/{}]/g,'_'),qzjx=this.ParentTreeView[qxbiz],qzAda="";if(qzmw){var qzmn=qzmw.innerHTML;qzff(qzmw);this.ParentTreeView[qxbiz]=qzmn;qzAda=qzmn;}else if(qzjx){qzAda=qzjx;}else if(this.ClientTemplateId||this.ParentTreeView.NodeClientTemplateId){var qg34=this.ParentTreeView.GetClientTemplate(this.GetProperty('ClientTemplateId'));if(qg34){qzAda=ComponentArt_InstantiateClientTemplate(qg34,this.ParentTreeView,this);if(qzAda==''){qzAda='&nbsp;';};};}else{qzAda=this.Text;};return"<nobr>"+qzAda+"</nobr>";};window.ComponentArt_TreeViewNode.prototype.qzzp=function(qzgu,qzhb,bInnerOnly){var qqZi=false,qza=new Array();if(!bInnerOnly)qza[qza.length]="<td id='"+this.ParentTreeView.TreeViewID+'_item_'+this.StorageIndex+"_expcol' align='center'>";if(qzgu){var qzoi="",qzoh="",qzzu=-1,qzxa=-1;if(this.ParentTreeView.ShowLines){qqZi=true;if(this.ParentTreeView.LineImageHeight>0)qzxa=this.ParentTreeView.LineImageHeight;if(this.ParentTreeView.LineImageWidth>0)qzzu=this.ParentTreeView.LineImageWidth;if(this.qzcu==0){if(this.StorageIndex==this.ParentTreeView.GetFirstRootNodeIndex()){if(qzhb){qzoh=this.ParentTreeView.LineImagesFolderUrl+"dashminus.gif";qzoi=this.ParentTreeView.LineImagesFolderUrl+"dashplus.gif";}else{qzoh=this.ParentTreeView.LineImagesFolderUrl+"rminus.gif";qzoi=this.ParentTreeView.LineImagesFolderUrl+"rplus.gif";};}else if(qzhb){qzoh=this.ParentTreeView.LineImagesFolderUrl+"lminus.gif";qzoi=this.ParentTreeView.LineImagesFolderUrl+"lplus.gif";}else{qzoh=this.ParentTreeView.LineImagesFolderUrl+"tminus.gif";qzoi=this.ParentTreeView.LineImagesFolderUrl+"tplus.gif";};}else{if(qzhb){qzoh=this.ParentTreeView.LineImagesFolderUrl+"lminus.gif";qzoi=this.ParentTreeView.LineImagesFolderUrl+"lplus.gif";}else{qzoh=this.ParentTreeView.LineImagesFolderUrl+"tminus.gif";qzoi=this.ParentTreeView.LineImagesFolderUrl+"tplus.gif";};};}else{if(this.ParentTreeView.ExpandCollapseImageHeight>0)qzxa=this.ParentTreeView.ExpandCollapseImageHeight;if(this.ParentTreeView.ExpandCollapseImageWidth>0)qzzu=this.ParentTreeView.ExpandCollapseImageWidth;qzoh=this.ParentTreeView.CollapseImageUrl;qzoi=this.ParentTreeView.ExpandImageUrl;if(qzoh&&this.ParentTreeView.ImagesBaseUrl){qzoh=this.ParentTreeView.ImagesBaseUrl+qzoh;};if(qzoi&&this.ParentTreeView.ImagesBaseUrl){qzoi=this.ParentTreeView.ImagesBaseUrl+qzoi;};};if(qzoh&&qzoi){qqZi=true;};qza[qza.length]="<img alt=\"\" onclick=\"ComponentArt_CancelEvent(event);"+this.ParentTreeView.TreeViewID+".ToggleExpand("+this.StorageIndex+","+this.qzcu+")\"";if(qzxa>0){qza[qza.length]=" height=\""+qzxa+"\"";};if(qzzu>0){qza[qza.length]=" width=\""+qzzu+"\"";};if(this.Expanded){qza[qza.length]=" style=\"display:none;\"";}else{qza[qza.length]=" style=\"display:block;\"";};qza[qza.length]=" src=\""+qzoi+"\" />";qza[qza.length]="<img alt=\"\" onclick=\"ComponentArt_CancelEvent(event);"+this.ParentTreeView.TreeViewID+".ToggleExpand("+this.StorageIndex+","+this.qzcu+")\"";if(qzxa>0){qza[qza.length]=" height=\""+qzxa+"\"";};if(qzzu>0){qza[qza.length]=" width=\""+qzzu+"\"";};if(!this.Expanded){qza[qza.length]=" style=\"display:none;\"";}else{qza[qza.length]=" style=\"display:block;\"";};qza[qza.length]=" src=\""+qzoh+"\" />";}else{qza[qza.length]="<img alt=\"\" style=\"display:block;\"";if(this.ParentTreeView.ShowLines){qqZi=true;if(this.ParentTreeView.LineImageHeight>0)qza[qza.length]=" height='"+this.ParentTreeView.LineImageHeight+"'";if(this.ParentTreeView.LineImageWidth>0)qza[qza.length]=" width='"+this.ParentTreeView.LineImageWidth+"'";if(this.qzcu==0){if(this.StorageIndex==this.ParentTreeView.GetFirstRootNodeIndex()){if(qzhb){qza[qza.length]=" src=\""+this.ParentTreeView.LineImagesFolderUrl+"dash.gif\"";}else{qza[qza.length]=" src=\""+this.ParentTreeView.LineImagesFolderUrl+"r.gif\"";};}else if(qzhb){qza[qza.length]=" src=\""+this.ParentTreeView.LineImagesFolderUrl+"l.gif\"";}else{qza[qza.length]=" src=\""+this.ParentTreeView.LineImagesFolderUrl+"t.gif\"";};}else{if(qzhb){qza[qza.length]=" src=\""+this.ParentTreeView.LineImagesFolderUrl+"l.gif\"";}else{qza[qza.length]=" src=\""+this.ParentTreeView.LineImagesFolderUrl+"t.gif\"";};};}else{if(this.ParentTreeView.NoExpandImageUrl){var sNoExpandImageUrl=this.ParentTreeView.NoExpandImageUrl;if(this.ParentTreeView.ImagesBaseUrl){sNoExpandImageUrl=this.ParentTreeView.ImagesBaseUrl+sNoExpandImageUrl;};if(this.ParentTreeView.ExpandCollapseImageHeight>0)qza[qza.length]=" height=\""+this.ParentTreeView.ExpandCollapseImageHeight+"\"";if(this.ParentTreeView.ExpandCollapseImageWidth>0)qza[qza.length]=" width=\""+this.ParentTreeView.ExpandCollapseImageWidth+"\"";qza[qza.length]=" src=\""+sNoExpandImageUrl+"\"";qqZi=true;}else{if(this.ParentTreeView.CollapseImageUrl&&this.ParentTreeView.ExpandImageUrl){return this.qzvm();}else{qqZi=false;};};};qza[qza.length]=">";};if(!qqZi){return'';};if(!bInnerOnly){qza[qza.length]="</td>";};return qza.join('');};window.ComponentArt_TreeViewNode.prototype.qzvm=function(iDepth){var qza=new Array();qza[qza.length]="<td";if(this.ParentTreeView.ShowLines){var qzsi=this;for(var qzba=this.qzcu;qzba>iDepth;qzba--){if(!qzsi.ParentNode)qzsi.ParentNode=qzsi.GetParentNode();qzsi=qzsi.ParentNode;};if(this.ParentTreeView.LineImageHeight>0)qza[qza.length]=" height=\""+this.ParentTreeView.LineImageHeight+"\"";if(this.ParentTreeView.LineImageWidth>0)qza[qza.length]=" width=\""+this.ParentTreeView.LineImageWidth+"\"";qza[qza.length]="><img alt=\"\" style=\"display:block;\"";if(this.ParentTreeView.LineImageHeight>0)qza[qza.length]=" height=\""+this.ParentTreeView.LineImageHeight+"\"";if(this.ParentTreeView.LineImageWidth>0)qza[qza.length]=" width=\""+this.ParentTreeView.LineImageWidth+"\"";if(qzsi.qzvn()){qza[qza.length]=" src=\""+this.ParentTreeView.LineImagesFolderUrl+"noexpand.gif\">";}else{qza[qza.length]=" src=\""+this.ParentTreeView.LineImagesFolderUrl+"i.gif\">";};}else{var iIndent=this.GetProperty('Indent');qza[qza.length]=" width=\""+iIndent+"\"";qza[qza.length]="><div style=\"height:1px;width:"+iIndent+"px;\">";};qza[qza.length]="</td>";return qza.join('');};window.ComponentArt_TreeViewNode.prototype.qzuc=function(){var qza=new Array(),qzie=this.Nodes();for(var qzba=0;qzba<qzie.length;qzba++){if(qzie[qzba].Visible){qza[qza.length]=qzie[qzba].GetHtml();};};return qza.join('');};window.ComponentArt_TreeViewNode.prototype.qzvn=function(){if(this.ParentNode){return(this.ParentNode.ChildIndices[this.ParentNode.ChildIndices.length-1]==this.StorageIndex);}else{if(this.ParentStorageIndex>=0){this.ParentNode=this.GetParentNode();return(this.ParentNode.ChildIndices[this.ParentNode.ChildIndices.length-1]==this.StorageIndex);}else{return(this.ParentTreeView.GetLastRootNodeIndex()==this.StorageIndex);};};};window.ComponentArt_TreeViewNode.prototype.LoadNodesFromXml=function(qzAie){for(var qzba=0;qzba<qzAie.length;qzba++){var qzau=qzAie[qzba],qzbt=new ComponentArt_TreeViewNode();if(!cart_browser_ie&&!qzau.getAttribute){continue;};for(var attr=0;attr<qzau.attributes.length;attr++){var sName=qzau.attributes[attr].name,oValue=qzau.attributes[attr].value;if(this.ParentTreeView.Types[sName]=='B'){oValue=(oValue.toLowerCase()=='true');}else if(this.ParentTreeView.Types[sName]=='I'){oValue=parseInt(oValue);};qzbt.SetProperty(sName,oValue);};if(qzbt.ID){qzbt.PostBackID='p_'+qzbt.ID;};this.AddNode(qzbt);if(qzau.childNodes.length>0){qzbt.LoadNodesFromXml(qzau.childNodes);};};};window.ComponentArt_TreeView_RememberScrollData=function(){if(qze){var qzux=document.getElementById(qze.TreeViewID+"_ScrollData");if(qzux){qzux.value=qze.Frame.scrollLeft+','+qze.Frame.scrollTop;};};};window.ComponentArt_SetActiveTree=function(qzwz){qze=qzwz;};window.qzdu=function(qzAky){return parseInt(qzAky.substring(qzAky.lastIndexOf('_')+1));};window.qze=null;window.ComponentArt_TreeView_Kernel_Loaded=true;};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -