public static ComboTreeNode ToComboTreeNode(this TaxonomyTrunk taxonomyTrunk) { var key = $"{TaxonomyLevel.Trunk.TaxonomyLevelID}-{taxonomyTrunk.TaxonomyTrunkID}"; var comboTreeNode = new ComboTreeNode(taxonomyTrunk.GetDisplayName(), key) { SubNodes = taxonomyTrunk.TaxonomyBranches.SortByOrderThenName().Select(x => x.ToComboTreeNode()).ToList() }; return(comboTreeNode); }
public MatchmakerTaxonomyTier(TaxonomyTrunk taxonomyTrunk, List <MatchmakerTaxonomyTier> branches) { TaxonomyTierID = taxonomyTrunk.TaxonomyTrunkID; DisplayName = taxonomyTrunk.GetDisplayName(); SortOrder = taxonomyTrunk.TaxonomyTrunkSortOrder; Children = branches; TaxonomyLevel = TaxonomyLevelEnum.Trunk; TaxonomyLeaf = null; TaxonomyBranch = null; TaxonomyTrunk = taxonomyTrunk; MaximumChildrenCount = taxonomyTrunk.TaxonomyBranches.Count; }
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 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 static HtmlString GetDisplayNameAsUrl(this TaxonomyTrunk taxonomyTrunk) { return(UrlTemplate.MakeHrefString(taxonomyTrunk.GetDetailUrl(), taxonomyTrunk.GetDisplayName())); }
public TaxonomyTierSimple(TaxonomyTrunk taxonomyTrunk) : this() { TaxonomyTierID = taxonomyTrunk.TaxonomyTrunkID; DisplayName = taxonomyTrunk.GetDisplayName(); ParentTaxonomyID = null; //trunks don't have parents }