public static FancyTreeNode ToFancyTreeNode(this TaxonomyTrunk taxonomyTrunk, FirmaSession currentFirmaSession) { var fancyTreeNode = new FancyTreeNode($"{UrlTemplate.MakeHrefString(taxonomyTrunk.GetDetailUrl(), taxonomyTrunk.GetDisplayName())}", taxonomyTrunk.TaxonomyTrunkID.ToString(), true) { ThemeColor = taxonomyTrunk.ThemeColor, MapUrl = taxonomyTrunk.GetCustomizedMapUrl(), Children = taxonomyTrunk.TaxonomyBranches.ToList().SortByOrderThenName().Select(x => x.ToFancyTreeNode(currentFirmaSession)) .ToList() }; return(fancyTreeNode); }
public TaxonomyTier(TaxonomyTrunk taxonomyTrunk) { TaxonomyTierID = taxonomyTrunk.TaxonomyTrunkID; ThemeColor = taxonomyTrunk.ThemeColor; DisplayName = taxonomyTrunk.GetDisplayName(); DisplayNameAsUrl = taxonomyTrunk.GetDisplayNameAsUrl(); DetailUrl = taxonomyTrunk.GetDetailUrl(); TaxonomyTierPerformanceMeasures = taxonomyTrunk.GetTaxonomyTierPerformanceMeasures(); SortOrder = taxonomyTrunk.TaxonomyTrunkSortOrder; TaxonomyLevel = TaxonomyLevelEnum.Trunk; TaxonomyLeaf = null; TaxonomyBranch = null; TaxonomyTrunk = taxonomyTrunk; }
public static HtmlString GetDisplayNameAsUrl(this TaxonomyTrunk taxonomyTrunk) { return(UrlTemplate.MakeHrefString(taxonomyTrunk.GetDetailUrl(), taxonomyTrunk.GetDisplayName())); }