Example #1
0
        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);
        }
Example #2
0
 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;
 }
Example #3
0
 public static HtmlString GetDisplayNameAsUrl(this TaxonomyTrunk taxonomyTrunk)
 {
     return(UrlTemplate.MakeHrefString(taxonomyTrunk.GetDetailUrl(), taxonomyTrunk.GetDisplayName()));
 }