var DlhSoft;"undefined"===typeof DlhSoft&&(DlhSoft={assemblies:[],buildReleaseDate:new Date(1,0,1)});DlhSoft.assemblies.push({assembly:"DlhSoft.HierarchicalData.HTML.Controls",company:"DlhSoft",product:"Hierarchical Data Modern Library",version:"5.3.6.0",copyright:"Copyright \u00a9 2012-2015 DlhSoft",title:"Hierarchical Data HTML Controls",description:"Hierarchical Data related HTML client components"}); DlhSoft.buildReleaseDate=function(y,u,A){y=new Date(y,u-1,A);return y>DlhSoft.buildReleaseDate?y:DlhSoft.buildReleaseDate}(2015,9,22);var _0x5c25="Licensing{undefined{string{DlhSoft.Controls: DlhSoft internal usage only. Customers may purchase standard product usage licenses from http://DlhSoft.com/Purchase.{.{length{license{push{type{content{:{lastIndexOf{substr{buildReleaseDate{charCodeAt{pow{toUpperCase{DlhSoft Component Licensing Warning{http://DlhSoft.com/Purchase.aspx{?Assemblies={,{http://www.componentsource.com/features/dlhsoft{ (version {){This component is currently licensed to be used for testing purposes only{The component is part of this assembly{To purchase a standard license for a product that includes this assembly you can use the Purchase page{ownerDocument{div{createElement{style{position: absolute; left: 24px; top: 24px; width: 480px; display: block; z-index: 1; color: Black; background-color: #ffffc0; border: solid 1px Blue; overflow: auto{setAttribute{padding: 6px; padding-top: 8px; font-family: Arial; font-size: small{font-weight: bold; margin-bottom: 4px{appendChild{createTextNode{color: Red; margin-top: 2px; margin-bottom: 2px{margin-top: 4px{a{color: Blue; text-decoration: underline{href{target{_blank{Purchase license{margin-left: 4px; color: Blue; text-decoration: underline{javascript://{Continue trial{click{removeChild{addEventListener{\n\n{: {:\n".split("{"); void 0==DlhSoft[_0x5c25[0]]&&(DlhSoft[_0x5c25[0]]=function(){var y=_0x5c25[1],u=_0x5c25[2],A=[],K=[],E=_0x5c25[3],G=function(x,s){if(typeof x!==u||typeof s!==u)return!1;if(s==E)return!0;var B=s[_0x5c25[11]](_0x5c25[10]);if(0<=B){var q=s[_0x5c25[12]](0,B),n,t=q[_0x5c25[11]](_0x5c25[10]);if(0<=t)try{n=new Date(parseInt(q[_0x5c25[12]](t+1)))}catch(p){}typeof n===y&&(n=new Date(2013,11,31));if(DlhSoft[_0x5c25[13]]>n)return!1;q=q+_0x5c25[10]+x;for(i=n=0;in&&(n=Math[_0x5c25[15]](2,32)-n);q=n.toString(16)[_0x5c25[16]]();B=s[_0x5c25[12]](B+1);if(q==B)return!0}return!1},H=function(x,s,u,q,n){var t=_0x5c25[17],p=_0x5c25[18],z=typeof ComponentSource===y||!ComponentSource?p+_0x5c25[19]+q+_0x5c25[20]+n:_0x5c25[21],A=q+_0x5c25[22]+n+_0x5c25[23],E=_0x5c25[24],G=_0x5c25[25],H=_0x5c25[26];setTimeout(function(){var n=x[_0x5c25[27]],p=n[_0x5c25[29]](_0x5c25[28]);p[_0x5c25[32]](_0x5c25[30],_0x5c25[31]);var q=n[_0x5c25[29]](_0x5c25[28]);q[_0x5c25[32]](_0x5c25[30], _0x5c25[33]);var r=n[_0x5c25[29]](_0x5c25[28]);r[_0x5c25[32]](_0x5c25[30],_0x5c25[34]);q[_0x5c25[35]](r);r[_0x5c25[35]](n[_0x5c25[36]](t));q[_0x5c25[35]](n[_0x5c25[36]](E+_0x5c25[10]));r=n[_0x5c25[29]](_0x5c25[28]);r[_0x5c25[32]](_0x5c25[30],_0x5c25[37]);r[_0x5c25[35]](n[_0x5c25[36]](s));q[_0x5c25[35]](r);q[_0x5c25[35]](n[_0x5c25[36]](G+_0x5c25[10]));r=n[_0x5c25[29]](_0x5c25[28]);r[_0x5c25[32]](_0x5c25[30],_0x5c25[37]);r[_0x5c25[35]](n[_0x5c25[36]](A));q[_0x5c25[35]](r);q[_0x5c25[35]](n[_0x5c25[36]](H+ _0x5c25[10]));r=n[_0x5c25[29]](_0x5c25[28]);r[_0x5c25[32]](_0x5c25[30],_0x5c25[38]);var w=n[_0x5c25[29]](_0x5c25[39]);w[_0x5c25[32]](_0x5c25[30],_0x5c25[40]);w[_0x5c25[32]](_0x5c25[41],z);w[_0x5c25[32]](_0x5c25[42],_0x5c25[43]);w[_0x5c25[35]](n[_0x5c25[36]](_0x5c25[44]));r[_0x5c25[35]](w);w=n[_0x5c25[29]](_0x5c25[39]);w[_0x5c25[32]](_0x5c25[30],_0x5c25[45]);w[_0x5c25[32]](_0x5c25[41],_0x5c25[46]);w[_0x5c25[35]](n[_0x5c25[36]](_0x5c25[47]));w[_0x5c25[50]](_0x5c25[48],function(){x[_0x5c25[49]](p);K[_0x5c25[7]](u)}, !1);r[_0x5c25[35]](w);q[_0x5c25[35]](r);p[_0x5c25[35]](q);x[_0x5c25[35]](p)},0);setTimeout(function(){alert(t+_0x5c25[51]+E+_0x5c25[52]+s+_0x5c25[51]+G+_0x5c25[53]+A+_0x5c25[51]+H+_0x5c25[4])},6E5)};return{setLicense:function(u,s){A[_0x5c25[7]]({type:u,content:s})},validate:function(x,s,B,q,n,t,p){for(var s=s+_0x5c25[4]+B,z=0;z0?"auto":c.itemHeight+"px";else{var e=a.clientHeight- c.headerHeight-2;e<0&&(e=0);d=e+"px";if(e0?"auto":c.itemHeight+"px"}a.isContentHeightInitialized=true}return d},H=function(a,b){if(typeof b.toggleButtonAreaWidth!=="undefined")return b.toggleButtonAreaWidth;for(var c=0,d=0;d0){c=16;break}return b.toggleButtonAreaWidth=c},x=function(a,b){var c=a.createElement("span");c.innerHTML=b;return c},s=function(a,b){var c=a.ownerDocument,d= c.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("style","width: 12px; height: 12px");d.setAttribute("focusable","false");c=c.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("id","PART_Border");c.setAttribute("width","12");c.setAttribute("height","12");c.setAttribute("style","fill: White; fill-opacity: 0");d.appendChild(c);a.setAttribute("id","PART_Button");typeof b.toggleButtonClass!=="undefined"&&a.setAttribute("class",b.toggleButtonClass);typeof b.toggleButtonStyle!== "undefined"&&a.setAttribute("style",b.toggleButtonStyle);d.appendChild(a);return d},B=function(a,b){typeof b!=="object"&&(b={});A(b);var c=[{header:"",width:32,isSelection:true},{header:"Item",width:280,isTreeView:true}];c[0].cellTemplate=q(b,c[0],a);c[1].cellTemplate=z(b,c[1],a);c[1].exportCellTemplate=z(b,c[1],a,false);b.selectionMode!="Single"&&(b.selectionMode!="Extended"&&b.selectionMode!="ExtendedFocus")&&c.splice(0,1);return c},q=function(a,b,c){return function(d){return!b.isReadOnly?n(d,a, c):getBooleanNode(d.treeGrid.ownerDocument,d.isSelected)}},n=function(a,b){var c=a.treeGrid.ownerDocument,d;if(typeof a.selectionInput==="undefined"){d=c.createElement("input");a.selectionInput=d;d.type="checkbox";d.setAttribute("style","margin: 0px")}else d=a.selectionInput;if(a.isSelected){d.setAttribute("checked","checked");if(!d.checked)d.checked=true}else if(d.checked)d.checked=false;var e=function(){d.checked?t(a,true,b.selectionMode):t(a,false,b.selectionMode)};typeof d.changeEventListener!== "undefined"&&d.removeEventListener("change",d.changeEventListener,true);d.addEventListener("change",e,true);d.changeEventListener=e;c=function(a){if(a.keyCode==13){a.preventDefault();a.stopPropagation();e(a)}};typeof d.keyPressEventListener!=="undefined"&&d.removeEventListener("keypress",d.keyPressEventListener,true);d.addEventListener("keypress",c,true);d.keyPressEventListener=c;return d},t=function(a,b,c){a.isSelected=b;v(a,"isSelected",true,true);aa(a);if(typeof a.treeGrid!=null){a.treeGrid.selectedItem= a;if(c!="Extended"&&c!="ExtendedFocus")a.treeGrid.selectedItems=[a];var d;if(c!="Extended"&&c!="ExtendedFocus")for(d=0;d=1&&(typeof c.allowUserToResizeColumns=== "undefined"||c.allowUserToResizeColumns)&&(typeof b.allowUserToResize==="undefined"||b.allowUserToResize)){d.isGripperVisible=false;var h=b.treeGrid,g=function(a){d.isGripperVisible=a;d.style.cursor=a?"e-resize":"default";d.style.borderRight=a?"solid 1px "+c.border:"";e.style.width=b.width-(a?1:0)+"px"},j=c.splitterWidth;d.addEventListener("mouseover",function(a){if(!DlhSoft.Controls.TreeGrid.isGripperDragging&&!(d.isGripperDragging||typeof a.offsetX==="undefined"&&a.currentTarget!=d))g((typeof a.offsetX!== "undefined"?a.offsetX:a.layerX-a.currentTarget.offsetLeft)>=b.width-j)},true);d.addEventListener("mousemove",function(a){if(!DlhSoft.Controls.TreeGrid.isGripperDragging&&!(d.isGripperDragging||typeof a.offsetX==="undefined"&&a.currentTarget!=d))g((typeof a.offsetX!=="undefined"?a.offsetX:a.layerX-a.currentTarget.offsetLeft)>=b.width-j)},true);e.addEventListener("mouseover",function(a){!DlhSoft.Controls.TreeGrid.isGripperDragging&&(!d.isGripperDragging&&!(typeof a.offsetX!=="undefined"||a.currentTarget!= e))&&g(a.layerX-a.currentTarget.offsetLeft>=b.width-j)},false);e.addEventListener("mousemove",function(a){!DlhSoft.Controls.TreeGrid.isGripperDragging&&(!d.isGripperDragging&&!(typeof a.offsetX!=="undefined"||a.currentTarget!=e))&&g(a.layerX-a.currentTarget.offsetLeft>=b.width-j)},false);d.addEventListener("mousedown",function(a){if(!(a.button!=0||!d.isGripperVisible||DlhSoft.Controls.TreeGrid.isGripperDragging)){DlhSoft.Controls.TreeGrid.isGripperDragging=true;d.isGripperDragging=true;d.initialGripperDraggingX= a.clientX;d.initialColumnWidth=b.width}},true);a.addEventListener("mousemove",function(a){if(d.isGripperDragging){b.width=Math.max(b.minWidth,d.initialColumnWidth+(a.clientX-d.initialGripperDraggingX));if(typeof b.maxWidth!=="undefined"&&b.width>b.maxWidth)b.width=b.maxWidth;e.style.width=b.width-1+"px";typeof c.columnWidthChangeHandler!=="undefined"&&setTimeout(function(){c.columnWidthChangeHandler(b,b.width)},0);if(!h.isWaitingToRefreshColumns){h.isWaitingToRefreshColumns=true;setTimeout(function(){var a= U(c.columns);h.gridHeader.style.width=a+"px";h.gridContent.style.width=a+"px";delete h.isWaitingToRefreshColumns;h.refreshGridItems()},0)}}},true);a.addEventListener("mouseup",function(){if(d.isGripperDragging){delete d.isGripperDragging;delete d.initialGripperDraggingX;delete d.initialColumnWidth;g(false);delete DlhSoft.Controls.TreeGrid.isGripperDragging}},true);d.addEventListener("mouseout",function(){d.isGripperDragging||g(false)},false)}return d},N=function(a,b){for(var c=-1,d=null,e=null,f= [],h=0;hj){g.indentation=j;v(g,"indentation",false,true)}d.hasChildren=g.indentation>d.indentation;if(d.hasChildren&&typeof d.isMilestone!=="undefined"&& d.isMilestone){d.isMilestone=false;v(d,"isMilestone",false,true)}}g.isVisible=c<0||g.indentation<=c;if(g.isVisible&&!g.isExpanded)c=g.indentation;g.isExpanded&&g.indentation==c&&(c=-1);d=g}if(d!=null)d.hasChildren=false;b.selectedItem=e;b.selectedItems=f},O=function(a,b,c){c.isHierarchicalInformationInitialized=false;var b=[],d,e;for(e=0;e0&&(f=b[b.length-1]);f!=null&&d.indentation<=f.indentation;){b.pop();f=b[b.length-1]}d.parent=f;d.children= [];f!=null&&f.children.push(d);(f==null||d.indentation>f.indentation)&&b.push(d)}c.isHierarchicalInformationInitialized=true},r=function(a,b,c,d,e){for(var f=0,h=0;h0;)if(g.indexOf(a.childNodes[m])>=0){o=m;break}for(m=a.childNodes.length;m-- > 0;)a.removeChild(a.childNodes[m]);for(m=0;m=0&&setTimeout(function(){try{for(var b=a.childNodes[o];b.nodeName!="input"&&b.nodeName!="textarea"&&b.nodeName!="label"&&b.nodeName!="select"&&b.nodeName!="button"&&b.childNodes.length>0;)b=b.childNodes[0];b&&b.dontAutoFocus?delete b.dontAutoFocus:setTimeout(function(){try{b.focus()}catch(a){}},0)}catch(c){}},0)};if(b.wasGridItemContentLoaded)setTimeout(g,0);else{g(); b.wasGridItemContentLoaded=true}}},W=function(a){if(typeof a.isWaitingToRefreshGridItem==="undefined"){a.isWaitingToRefreshGridItem=true;setTimeout(function(){typeof a.gridItem!=="undefined"&&Q(a.gridItem,a,a.treeGrid.items,a.treeGrid.settings.columns,a.treeGrid.settings.toggleButtonAreaWidth,a.treeGrid.settings);V(a,a.treeGrid.items,a.treeGrid.settings);delete a.isWaitingToRefreshGridItem},0)}},ta=function(a,b,c,d,e,f){var h=b.treeGrid.ownerDocument;(!f.isVirtualizing||typeof b.isVirtuallyVisible!== "undefined"&&b.isVirtuallyVisible)&&setTimeout(function(){if(typeof b.gridItemSelectionContainer!=="undefined"){var g=b.gridItemSelectionContainer;typeof f.selectedItemClass!=="undefined"&&g.setAttribute("class",b.isSelected?f.selectedItemClass:null);typeof f.selectedItemStyle!=="undefined"&&g.setAttribute("style",b.isSelected?f.selectedItemStyle:null)}var g=[],j=null;try{j=h.activeElement}catch(m){}for(;j!=null&&j!=b.gridItem;){g.push(j);j=j.parentNode}for(var k=-1,j=a.childNodes.length;j-- >0;)if(a.childNodes[j].isSelection&& g.indexOf(a.childNodes[j])>=0){k=j;break}for(j=a.childNodes.length;j-- >0;)a.childNodes[j].isSelection&&a.removeChild(a.childNodes[j]);for(j=0;j=0&&setTimeout(function(){try{for(var b=a.childNodes[k];b.nodeName!="input"&&b.nodeName!="textarea"&&b.nodeName!="label"&&b.nodeName!="select"&&b.nodeName!="button"&&b.childNodes.length>0;)b=b.childNodes[0]; b&&b.dontAutoFocus?delete b.dontAutoFocus:setTimeout(function(){try{b.focus()}catch(a){}},0)}catch(c){}},0)},0)},aa=function(a){typeof a.gridItem!=="undefined"&&ta(a.gridItem,a,a.treeGrid.items,a.treeGrid.settings.columns,a.treeGrid.settings.toggleButtonAreaWidth,a.treeGrid.settings)},ca=function(a,b,c,d,e){var f=a.treeGrid.ownerDocument,h=f.createElement("div"),g=0;c.isTreeView==true&&(g=e.indentationLevelWidth*a.indentation);h.setAttribute("style","overflow: hidden; vertical-align: middle; display: table-cell; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing; margin: 0px; padding: 0px; width: "+ c.width+"px; height: "+e.itemHeight+"px; padding-left: "+g+"px");var j=f.createElement("div");typeof c.cellClass!=="undefined"?j.setAttribute("class",c.cellClass):typeof e.cellClass!=="undefined"&&j.setAttribute("class",e.cellClass);typeof c.cellStyle!=="undefined"?j.setAttribute("style",c.cellStyle):typeof e.cellStyle!=="undefined"&&j.setAttribute("style",e.cellStyle);var m=f.createElement("div");m.setAttribute("style","white-space: nowrap; overflow: hidden; margin: 0px; padding: 0px; width: "+(c.width- g-16)+"px");if(c.isTreeView==true){g=f.createElement("div");g.setAttribute("style","display: inline-block; width: "+d+"px");if(a.hasChildren){d=f.createElement("div");d.setAttribute("style","cursor: default; padding-left: 1px; font-size: 12px; display: inline-block");f=e.collapsedToggleButtonTemplate;if(a.isExpanded)f=e.expandedToggleButtonTemplate;f=f();d.appendChild(f);da(d,a,b,f,null,null,e);g.appendChild(d)}m.appendChild(g)}a=c.cellTemplate(a);m.appendChild(a);j.appendChild(m);h.appendChild(j); h.isSelection=c.isSelection;return h},Z=function(a,b){return function(){var c=a.ownerDocument.createElementNS("http://www.w3.org/2000/svg","polygon");c.setAttribute("points","3.5,2.5 3.5,11.5 10.5,6.5");return s(c,b)}},$=function(a,b){return function(){var c=a.ownerDocument.createElementNS("http://www.w3.org/2000/svg","polygon");c.setAttribute("points","2.5,3.5 11.5,3.5 6.5,10.5");return s(c,b)}},da=function(a,b,c,d,e,f,h){if(typeof e==="undefined"||e==null)e=d.querySelector("#PART_Button");e!=null&& ea(e,e,h);if(typeof f==="undefined"||f==null)f=d.querySelector("#PART_Border");f!=null&&ea(f,e,h);c={toggleButton:a,item:b,items:c,content:d,settings:h};if(e!=null){e.tag=c;(typeof h.isExport==="undefined"||!h.isExport)&&e.addEventListener("mouseup",X,true)}if(f!=null){f.tag=c;(typeof h.isExport==="undefined"||!h.isExport)&&f.addEventListener("mouseup",X,true)}a.tag=c;e==null&&(f==null&&(typeof h.isExport==="undefined"||!h.isExport))&&a.addEventListener("mouseup",X,true);d.addEventListener("keypress", function(a){if(a.keyCode==32){a.preventDefault();a.stopPropagation();C(b,!b.isExpanded,true)}},true);b.toggleButton=a},ea=function(a,b,c){if(!(typeof c.isExport!=="undefined"&&c.isExport)){a.addEventListener("mouseover",function(){typeof c.toggleButtonHoveringClass!=="undefined"&&b.setAttribute("class",c.toggleButtonHoveringClass);typeof c.toggleButtonHoveringStyle!=="undefined"&&b.setAttribute("style",c.toggleButtonHoveringStyle)},true);a.addEventListener("mouseout",function(){b.setAttribute("class", c.toggleButtonClass);b.setAttribute("style",c.toggleButtonStyle)},true)}},X=function(a){a.stopPropagation();a=a.target.tag.item;C(a,!a.isExpanded,true)},C=function(a,b,c,d){if(a.isExpanded!=b){a.isExpanded=b;(typeof d==="undefined"||d)&&v(a,"isExpanded",c,true);fa(a)}},fa=function(a,b){if(typeof a.toggleButton==="undefined")(typeof b==="undefined"||b)&&setTimeout(function(){fa(a,false)},0);else{var c=a.toggleButton,d=c.tag,e=d.settings,f=e.expandedToggleButtonTemplate,h=e.collapsedToggleButtonTemplate; a.isExpanded&&(h=f);var f=h(),h=f.querySelector("#PART_Button"),g=f.querySelector("#PART_Border");c.replaceChild(f,d.content);d.content=f;d=d.items;da(c,a,d,f,h,g,e);a.isVisible&&!(typeof a.isHidden!=="undefined"&&a.isHidden)&&ua(d,a,e);P(d,e)}},ua=function(a,b,c){var d=-1,e=false,f=false,h=false,g=0,j,m,k;for(m=0;m=0&&R(b[c]);R(a);c=a.index+ 1;c=b.gridHeaderContainer.clientHeight+b.gridContentContainer.clientHeight-24){c=b.gridContentContainer.scrollTop;b.gridContentContainer.scrollTop=b.gridContentContainer.scrollTop+20;if(typeof b.isDuringVerticalScrolling=== "undefined"){b.isDuringVerticalScrolling=true;setTimeout(function(){d=b.gridContentContainer.scrollTop-c;b.draggingInitialThumbPosition=b.draggingInitialThumbPosition+d;delete b.isDuringVerticalScrolling},0)}}}},ga=function(a){var b=a.itemTop-a.treeGrid.gridContentContainer.scrollTop;if(b<0)a.treeGrid.gridContentContainer.scrollTop=a.itemTop;else if(b>a.treeGrid.gridContentContainer.clientHeight-a.treeGrid.settings.itemHeight)a.treeGrid.gridContentContainer.scrollTop=a.itemTop-(a.treeGrid.gridContentContainer.clientHeight- a.treeGrid.settings.itemHeight)},sa=function(a,b,c,d,e,f,h,g){b.addEventListener("scroll",function(){if(d.scrollLeft!=b.scrollLeft)d.scrollLeft=b.scrollLeft;I(h,b,g)},true);ha(b,c,e,g);typeof a.updateGridHeaderTimer!=="undefined"&&clearInterval(a.updateGridHeaderTimer);a.updateGridHeaderTimer=setInterval(function(){try{ha(b,c,e,g)}catch(d){try{clearInterval(a.updateGridHeaderTimer)}catch(f){}}},100);window.addEventListener("mousewheel",function(){try{a.cancelDrag=true}catch(b){}},true)},ha=function(a, b,c,d){setTimeout(function(){try{var e=b.clientWidth-a.clientWidth;e<0&&(e=0);var f=e+"px";if(c.style.width!=f){c.style.width=f;if(e>0){c.style.boxSizing="border-box";c.style.MozBoxSizing="border-box";c.style.border="solid 1px "+d.border;c.style.borderTop="none";c.style.borderRight="none"}else{c.style.border="";c.style.borderTop="";c.style.borderRight="";c.style.boxSizing="";c.style.MozBoxSizing=""}}}catch(h){}},0)},I=function(a,b,c){if(c.isVirtualizing)for(var d=b.scrollTop-c.itemHeight,b=d+b.clientHeight+ 2*c.itemHeight,e=0;e=d&&f.itemTop=b))&&delete f.isVirtuallyVisible}},ra=function(a,b){for(var c=a.childNodes.length;c-- >0;)a.removeChild(a.childNodes[c]);a.appendChild(b)},Y=function(a,b,c,d){var e=d.indexOf(a);if(!(e<0||b<0||b==e||b>=d.length)){d.splice(e,1);d.splice(b,0,a);ia(d);u(c);typeof c.settings.itemMoveHandler!=="undefined"&&c.settings.itemMoveHandler(a,e,b)}},T=function(a,b,c,d,e){if(!(a<0||c<0||c==a||c>e.length-b)){var f=[],h;for(h=a;h< a+b;h++)f.push(e[h]);e.splice(a,b);for(h=0;hb){d.indentation=b;v(d,"indentation",false,true)}b=d.indentation+1}},xa=function(a,b,c,d,e,f,h,g,j,m){a.addEventListener("mousedown",function(c){if(c.button==0){delete d.cancelDrag;d.draggingItem=b;d.dragType="Ordering"; d.style.cursor=a.style.cursor;d.draggingInitialY=c.clientY;d.draggingInitialThumbPosition=0;c.preventDefault()}},true);if(typeof d.draggableOrderingItems==="undefined")d.draggableOrderingItems=[];for(var k=false,o=0;oe+1)){n={content:f.content,indentation:f.indentation,"class":f["class"],style:f.style,isSummaryEnabled:f.isSummaryEnabled,isHidden:f.isHidden,isExported:true,tag:f};ya(n,f);a.push(n);f.exportItem=n}}var s=D.createElement("p");s.innerHTML=typeof b!=="undefined"? b:"";D.body.appendChild(s);var r=D.createElement("div");r.setAttribute("style","width: "+q+"px");try{DlhSoft.Controls.TreeGrid.initialize(r,a,k,"DlhSoft.Controls: DlhSoft internal usage only. Customers may purchase standard product usage licenses from http://DlhSoft.com/Purchase.")}catch(u){}setTimeout(function(){t&&D.body.setAttribute("style","margin: 0px");var a=D.createElement("div");a.appendChild(r);D.body.replaceChild(a,s);if(g){a.setAttribute("style","width: "+r.offsetHeight+"px; height: "+ q+"px; overflow: hidden");a=Math.round((r.offsetWidth-r.offsetHeight)/2);r.setAttribute("style","width: "+q+"px; transform: rotate(90deg) translateX("+a+"px) translateY("+a+"px); -webkit-transform: rotate(90deg) translateX("+a+"px) translateY("+a+"px)")}D.close();if(typeof p!==void 0){p.focus();if(typeof h!=="undefined"&&h){p.print();(typeof j==="undefined"||j)&&p.close()}}},0)},ka=function(a,b,c){typeof c==="undefined"&&(c=false);var d=a.parent,e=a.index;if(d==null){for(d=0;e-- >0;){a=b[e];a.indentation== 0&&d++}return d+(!c?1:0)}return ka(d,b)+"."+(d.children.indexOf(a)+(!c?1:0))},pa=function(a,b,c){var d;for(d=0;d0?b[e-1]:null;h=h!=null?h.indentation+1:0;if(d.indentation>h)d.indentation=h}else if(typeof d.indentation==="undefined"||d.indentationh.indentation)d.indentation=h.indentation;E([d],c);b.splice(e,0,d);N(b,a);O(b,c,a);var g,j=null;if(e0){for(g=b[f-1];g.parent!=null;)g=g.parent;j=g.isExpanded;d.hasChildren&&C(g,d.isExpanded,false,true);g.indentation>=d.indentation&&(g=null)}else b[0].isExpanded||C(b[0],true,false,true);var m=f+1d.indentation)&&C(m,true,false,true);var k=m!=null?m.indentation:null;b.splice(f,1);N(b,a);O(b,c,a);typeof d.gridItemContainer!=="undefined"&&a.gridContent.removeChild(d.gridItemContainer); m=f=b.length&&(f=b.length-1);f>=0&&M(b[f],b,a,c);I(b,a.gridContentContainer,c)};a.removeItems=function(b){for(var c=0;c0?a.items[d.index-1]:null;if(!(f==null||d.indentation>f.indentation)){C(d,true,false,true);d.indentation++;v(d,"indentation",true,true);S(b,c)&&L(b);for(M(d,b,a,c);d!=null;){d.isExpanded||C(d,true,false);d=d.parent}}};a.decreaseItemIndentation=function(d){var f=d.index=b.length-1||Y(c,d+1,a,b)};a.moveItemHierarchy= function(c,d){for(var h=b.indexOf(c),g=h+1;g0;){if(b[g].indentation100&&(a=100);d(a)},e,f,h)},timeSpanInputColumnTemplateBase:function(a,b,c,d,e,f,h,g){typeof e==="undefined"&& (e=1);return DlhSoft.Controls.TreeGrid.numberInputColumnTemplateBase(a,b,function(){var a=c()/(hourDuration*e);return Math.round(a*100)/100},function(a){a=parseFloat(a);a<0&&(a=0);d(a*hourDuration*e)},f,h,g)},datePickerInputColumnTemplateBase:function(a,b,c,d,e,f,h,g,j,m,k,o,n){k||(k=["Su","Mo","Tu","We","Th","Fr","Sa"]);o||(o=function(a){return a.toString()});n||(n=function(a){return new Date(a)});var l=a.createElement("input");l.setAttribute("type","text");c=c();typeof c==="undefined"?c="":c!=null&& (c=o(c));l.setAttribute("value",c);DlhSoft.Controls.DatePicker&&l.addEventListener("focus",function(){var b=DlhSoft.Controls.DatePicker.get(l);if(!b||!b.isOpen){var c=0,d=0;try{c=l.selectionStart;d=l.selectionEnd}catch(e){}b=DlhSoft.Controls.DatePicker.initialize(l,void 0,{inputStyle:null,defaultTimeOfDay:g,isDropDownButtonVisible:false,popupStyle:"margin-top: 1px; background-color: White; border: 1px solid #e0e0e0",calendarSelectorLevels:j,months:m,daysOfWeek:getAbbreviations(k),dateTimeFormatter:o, dateTimeParser:n},"DlhSoft.Controls: DlhSoft internal usage only. Customers may purchase standard product usage licenses from http://DlhSoft.com/Purchase.");b.openDropDown();setTimeout(function(){try{l.selectionStart=c;l.selectionEnd=d}catch(a){}},100);navigator.userAgent.match(/(Android)|(IPad)|(IPhone)/i)==null?setTimeout(function(){try{l.focus()}catch(a){}},100):a.createEvent&&setTimeout(function(){var b=a.createEvent("MouseEvents");b.initEvent("blur",true,false);l.dispatchEvent(b)})}},true);c= "";typeof f!=="undefined"&&!f()&&(c="; display: none");f="";typeof h!=="undefined"&&h()&&(f="; font-weight: bold");l.setAttribute("style","background-color: Transparent; width: "+b+"px; border-width: 0px; padding: 0px"+c+f);typeof e!=="undefined"&&!e()&&l.setAttribute("disabled","true");var p=function(){var a=l.value,a=a!=""?n(a):null;d(a)};l.addEventListener("change",function(){p()},true);l.addEventListener("keypress",function(a){if(a.keyCode==13){a.preventDefault();a.stopPropagation();p()}},true); l.addEventListener("focus",function(){l.style.backgroundColor="White"},true);l.addEventListener("blur",function(){l.style.backgroundColor="Transparent"},true);return l},dateTimePickerInputColumnTemplateBase:function(a,b,c,d,e,f,h,g,j,m,k,o,n){k||(k=["Su","Mo","Tu","We","Th","Fr","Sa"]);o||(o=function(a){return a.toString()});n||(n=function(a){return new Date(a)});var l=a.createElement("input");l.setAttribute("type","text");c=c();typeof c==="undefined"?c="":c!=null&&(c=o(c));l.setAttribute("value", c);(DlhSoft.Controls.DateTimePicker||DlhSoft.Controls.DatePicker)&&l.addEventListener("focus",function(){var b=(DlhSoft.Controls.DateTimePicker?DlhSoft.Controls.DateTimePicker:DlhSoft.Controls.DatePicker).get(l);if(!b||!b.isOpen){var c=0,d=0;try{c=l.selectionStart;d=l.selectionEnd}catch(e){}b=(DlhSoft.Controls.DateTimePicker?DlhSoft.Controls.DateTimePicker:DlhSoft.Controls.DatePicker).initialize(l,void 0,{inputStyle:null,defaultTimeOfDay:g,isDropDownButtonVisible:false,popupStyle:"margin-top: 1px; background-color: White; border: 1px solid #e0e0e0", calendarSelectorLevels:j,months:m,daysOfWeek:getAbbreviations(k),dateTimeFormatter:o,dateTimeParser:n},"DlhSoft.Controls: DlhSoft internal usage only. Customers may purchase standard product usage licenses from http://DlhSoft.com/Purchase.");b.openDropDown();setTimeout(function(){try{l.selectionStart=c;l.selectionEnd=d}catch(a){}},100);navigator.userAgent.match(/(Android)|(IPad)|(IPhone)/i)==null?setTimeout(function(){try{l.focus()}catch(a){}},100):a.createEvent&&setTimeout(function(){var b=a.createEvent("MouseEvents"); b.initEvent("blur",true,false);l.dispatchEvent(b)})}},true);c="";typeof f!=="undefined"&&!f()&&(c="; display: none");f="";typeof h!=="undefined"&&h()&&(f="; font-weight: bold");l.setAttribute("style","background-color: Transparent; width: "+b+"px; border-width: 0px; padding: 0px"+c+f);typeof e!=="undefined"&&!e()&&l.setAttribute("disabled","true");var p=function(){var a=l.value,a=a!=""?n(a):null;d(a)};l.addEventListener("change",function(){p()},true);l.addEventListener("keypress",function(a){if(a.keyCode== 13){a.preventDefault();a.stopPropagation();p()}},true);l.addEventListener("focus",function(){l.style.backgroundColor="White"},true);l.addEventListener("blur",function(){l.style.backgroundColor="Transparent"},true);return l},multiSelectorComboBoxInputColumnTemplateBase:function(a,b,c,d,e,f,h,g){var j=a.createElement("input");j.setAttribute("type","text");d=d();typeof d==="undefined"&&(d="");j.setAttribute("value",d);DlhSoft.Controls.MultiSelectorComboBox&&j.addEventListener("focus",function(){var b= DlhSoft.Controls.MultiSelectorComboBox.get(j);if(!b||!b.isOpen&&b.availableChoices.length>0){var b=c(),d=0,e=0;try{d=j.selectionStart;e=j.selectionEnd}catch(f){}b=DlhSoft.Controls.MultiSelectorComboBox.initialize(j,b,void 0,{inputStyle:null,autoAppendAvailableChoices:false,isDropDownButtonVisible:false,popupStyle:"margin-top: 1px; background-color: White; border: 1px solid #e0e0e0; color: Black; font-size: small; max-height: 188px; overflow-y: auto"},"DlhSoft.Controls: DlhSoft internal usage only. Customers may purchase standard product usage licenses from http://DlhSoft.com/Purchase."); b.openDropDown();setTimeout(function(){try{j.selectionStart=d;j.selectionEnd=e}catch(a){}},100);navigator.userAgent.match(/(Android)|(IPad)|(IPhone)/i)==null?setTimeout(function(){try{j.focus()}catch(a){}},100):a.createEvent&&setTimeout(function(){var b=a.createEvent("MouseEvents");b.initEvent("blur",true,false);j.dispatchEvent(b)})}},true);d="";typeof h!=="undefined"&&!h()&&(d="; display: none");h="";typeof g!=="undefined"&&g()&&(h="; font-weight: bold");j.setAttribute("style","background-color: Transparent; width: "+ b+"px; border-width: 0px; padding: 0px"+d+h);typeof f!=="undefined"&&!f()&&j.setAttribute("disabled","true");j.addEventListener("change",function(){e(j.value)},true);j.addEventListener("keypress",function(a){if(a.keyCode==13){a.preventDefault();a.stopPropagation();e(j.value)}},true);j.addEventListener("focus",function(){j.style.backgroundColor="White"},true);j.addEventListener("blur",function(){j.style.backgroundColor="Transparent"},true);return j},dateTimeInputColumnTemplateBase:function(a,b,c,d, e,f,h){return DlhSoft.Controls.TreeGrid.textInputColumnTemplateBase(a,b,function(){var a=c();return a!=null?a.toString():""},function(a){a=a!=""?new Date(a):null;d(a)},e,f,h)},getIndexColumnTemplate:function(){return function(a){var b=a.treeGrid;return DlhSoft.Controls.TreeGrid.textColumnTemplateBase(b.ownerDocument,function(){return b.getItemIndexString(a)})}},getWbsColumnTemplate:function(a){return function(b){var c=b.treeGrid;return DlhSoft.Controls.TreeGrid.textColumnTemplateBase(c.ownerDocument, function(){return c.getItemWbsIndexString(b,a)})}},getIconColumnTemplate:function(a,b,c,d,e,f,h,g,j){if(typeof a==="string")var m=a,a=function(){return m};typeof d==="undefined"||d==false?d=function(){return false}:d==true&&(d=function(){return true});return function(k){var m=k.treeGrid,n=m.ownerDocument.createElement("img");n.setAttribute("src",a(k));typeof b!=="undefined"&&n.setAttribute("class",b);typeof c!=="undefined"&&n.setAttribute("style",c);if(!m.settings.isReadOnly&&d(k)){n.style.cursor= "move";xa(n,k,m.items,m,m.settings,e,f,h,g,j)}return n}}}}());