/// <summary> /// Handles the loading the Assigned Community Groups for a provided locale taxonmomy. /// </summary> private void GetAssignedCommunityGroups() { if (Page.IsPostBack) { DirectoryGroupRequest cReq = new DirectoryGroupRequest(); cReq.CurrentPage = this.m_intCurrentPage; cReq.PageSize = m_refCommonApi.RequestInformationRef.PagingSize; cReq.DirectoryId = TaxonomyId; cReq.DirectoryLanguage = TaxonomyLanguage; cReq.GetItems = true; cReq.SortDirection = string.Empty; groupData = m_refCommonApi.CommunityGroupRef.LoadDirectory(ref cReq); } }
private void PopulateCommunityGroupGridData(DirectoryAdvancedGroupData cgDirectory) { TaxonomyItemList.Columns.Add(_StyleHelper.CreateBoundField("CHECK", "<input type=\"checkbox\" name=\"checkall\" onclick=\"checkAll(\'selected_items\',false);\">", "title-header", HorizontalAlign.Center, HorizontalAlign.Center, Unit.Percentage(3), Unit.Percentage(2), false, false)); TaxonomyItemList.Columns.Add(_StyleHelper.CreateBoundField("ID", _MessageHelper.GetMessage("generic id"), "title-header", HorizontalAlign.Left, HorizontalAlign.NotSet, Unit.Percentage(5), Unit.Percentage(5), false, false)); TaxonomyItemList.Columns.Add(_StyleHelper.CreateBoundField("COMMUNITYGROUP", _MessageHelper.GetMessage("lbl community group"), "title-header", HorizontalAlign.Left, HorizontalAlign.NotSet, Unit.Percentage(30), Unit.Percentage(41), false, true)); TaxonomyItemList.Columns.Add(_StyleHelper.CreateBoundField("INFORMATION", " ", "title-header", HorizontalAlign.Left, HorizontalAlign.NotSet, Unit.Percentage(30), Unit.Percentage(41), false, false)); TaxonomyItemList.Columns[2].ItemStyle.VerticalAlign = VerticalAlign.Top; TaxonomyItemList.Columns[3].ItemStyle.VerticalAlign = VerticalAlign.Top; DataTable dt = new DataTable(); DataRow dr; dt.Columns.Add(new DataColumn("CHECK", typeof(string))); dt.Columns.Add(new DataColumn("ID", typeof(string))); dt.Columns.Add(new DataColumn("COMMUNITYGROUP", typeof(string))); dt.Columns.Add(new DataColumn("INFORMATION", typeof(string))); PageSettings(); if ((cgDirectory != null)&& (cgDirectory.DirectoryItems != null)&& cgDirectory.DirectoryItems.Length > 0) { AddDeleteIcon = true; foreach (CommunityGroupData item in cgDirectory.DirectoryItems) { TaxonomyItemCount++; dr = dt.NewRow(); dr["CHECK"] = "<input type=\"checkbox\" name=\"selected_items\" id=\"selected_items\" value=\"" + item.GroupId + "\" onclick=\"checkAll(\'selected_items\',true);\">"; string groupurl; groupurl = (string) ("Community/groups.aspx?action=viewgroup&id=" + item.GroupId); dr["COMMUNITYGROUP"] = "<img src=\"" + (item.GroupImage != "" ? item.GroupImage : this._Common.AppImgPath + "member_default.gif") + "\" align=\"left\" width=\"55\" height=\"55\" />"; dr["COMMUNITYGROUP"] += "<a href=\"" + groupurl + "\">"; dr["COMMUNITYGROUP"] += item.GroupName; dr["COMMUNITYGROUP"] += "</a>"; dr["COMMUNITYGROUP"] += " (" + (item.GroupEnroll ? (this._MessageHelper.GetMessage("lbl enrollment open")) : (this._MessageHelper.GetMessage("lbl enrollment restricted"))) + ")"; dr["COMMUNITYGROUP"] += "<br/>"; dr["COMMUNITYGROUP"] += item.GroupShortDescription; dr["ID"] = item.GroupId; dr["INFORMATION"] = this._MessageHelper.GetMessage("content dc label") + " " + item.GroupCreatedDate.ToShortDateString(); dr["INFORMATION"] += "<br/>"; dr["INFORMATION"] += this._MessageHelper.GetMessage("lbl members") + ": " + item.TotalMember.ToString(); dt.Rows.Add(dr); } } else { dr = dt.NewRow(); dt.Rows.Add(dr); TaxonomyItemList.GridLines = GridLines.None; } DataView dv = new DataView(dt); TaxonomyItemList.DataSource = dv; TaxonomyItemList.DataBind(); }
private void DisplayPage() { switch (m_strViewItem.ToLower()) { case "user": DirectoryUserRequest uReq = new DirectoryUserRequest(); DirectoryAdvancedUserData uDirectory = new DirectoryAdvancedUserData(); uReq.GetItems = true; uReq.DirectoryId = TaxonomyId; uReq.DirectoryLanguage = TaxonomyLanguage; uReq.PageSize = m_refCommon.RequestInformationRef.PagingSize; uReq.CurrentPage = m_intCurrentPage; uDirectory = this.m_refContent.LoadDirectory(ref uReq); if (uDirectory != null) { TaxonomyParentId = uDirectory.DirectoryParentId; m_strTaxonomyName = uDirectory.DirectoryName; m_intTotalPages = uReq.TotalPages; } PopulateUserGridData(uDirectory); TaxonomyToolBar(); break; case "cgroup": DirectoryAdvancedGroupData dagdRet = new DirectoryAdvancedGroupData(); DirectoryGroupRequest cReq = new DirectoryGroupRequest(); cReq.CurrentPage = m_intCurrentPage; cReq.PageSize = m_refCommon.RequestInformationRef.PagingSize; cReq.DirectoryId = TaxonomyId; cReq.DirectoryLanguage = TaxonomyLanguage; cReq.GetItems = true; cReq.SortDirection = ""; dagdRet = this.m_refCommon.CommunityGroupRef.LoadDirectory(ref cReq); if (dagdRet != null) { TaxonomyParentId = dagdRet.DirectoryParentId; m_strTaxonomyName = dagdRet.DirectoryName; m_intTotalPages = cReq.TotalPages; } m_intTotalPages = cReq.TotalPages; PopulateCommunityGroupGridData(dagdRet); TaxonomyToolBar(); break; default: // Content taxonomy_request.IncludeItems = true; taxonomy_request.PageSize = m_refCommon.RequestInformationRef.PagingSize; taxonomy_request.CurrentPage = m_intCurrentPage; taxonomy_data = m_refContent.ReadTaxonomy(ref taxonomy_request); if (taxonomy_data != null) { TaxonomyParentId = taxonomy_data.TaxonomyParentId; m_strTaxonomyName = taxonomy_data.TaxonomyName; m_intTotalPages = taxonomy_request.TotalPages; } PopulateContentGridData(); TaxonomyToolBar(); break; } }
private void DisplayPage() { switch (_ViewItem.ToLower()) { case "user": DirectoryUserRequest uReq = new DirectoryUserRequest(); DirectoryAdvancedUserData uDirectory = new DirectoryAdvancedUserData(); uReq.GetItems = true; uReq.DirectoryId = TaxonomyId; uReq.DirectoryLanguage = TaxonomyLanguage; uReq.PageSize = _Common.RequestInformationRef.PagingSize; uReq.CurrentPage = m_intCurrentPage; uDirectory = this._Content.LoadDirectory(ref uReq); if (uDirectory != null) { TaxonomyParentId = uDirectory.DirectoryParentId; lbltaxonomyid.Text = uDirectory.DirectoryId.ToString(); lbltaxonomyid.ToolTip = lbltaxonomyid.Text; taxonomytitle.Text = uDirectory.DirectoryName; taxonomytitle.ToolTip = taxonomytitle.Text; _TaxonomyName = uDirectory.DirectoryName; taxonomydescription.Text = uDirectory.DirectoryDescription; taxonomydescription.ToolTip = taxonomydescription.Text; taxonomy_image_thumb.ImageUrl = _Common.AppImgPath + "spacer.gif"; m_strCurrentBreadcrumb = (string) (uDirectory.DirectoryPath.Remove(0, 1).Replace("\\", " > ")); if (m_strCurrentBreadcrumb == "") { m_strCurrentBreadcrumb = "Root"; } else { if (uDirectory.DirectoryParentId == 0) { parentTaxonomyPath = uDirectory.DirectoryPath.Replace("\\" + uDirectory.DirectoryName, "\\"); } else { parentTaxonomyPath = uDirectory.DirectoryPath.Replace("\\" + uDirectory.DirectoryName, ""); } hdn_parentTaxonomyPath.Value = parentTaxonomyPath; } if (uDirectory.TemplateName == "") { lblTemplate.Text = "[None]"; lblTemplate.ToolTip = lblTemplate.Text; } else { lblTemplate.Text = uDirectory.TemplateName; lblTemplate.ToolTip = lblTemplate.Text; } if (uDirectory.InheritTemplate) { lblTemplateInherit.Text = "Yes"; lblTemplateInherit.ToolTip = lblTemplateInherit.Text; } else { lblTemplateInherit.Text = "No"; lblTemplateInherit.ToolTip = lblTemplateInherit.Text; } m_intTotalPages = uReq.TotalPages; } PopulateUserGridData(uDirectory); TaxonomyToolBar(); break; case "cgroup": DirectoryAdvancedGroupData dagdRet = new DirectoryAdvancedGroupData(); DirectoryGroupRequest cReq = new DirectoryGroupRequest(); cReq.CurrentPage = m_intCurrentPage; cReq.PageSize = _Common.RequestInformationRef.PagingSize; cReq.DirectoryId = TaxonomyId; cReq.DirectoryLanguage = TaxonomyLanguage; cReq.GetItems = true; cReq.SortDirection = ""; dagdRet = this._Common.CommunityGroupRef.LoadDirectory(ref cReq); if (dagdRet != null) { TaxonomyParentId = dagdRet.DirectoryParentId; lbltaxonomyid.Text = dagdRet.DirectoryId.ToString(); lbltaxonomyid.ToolTip = lbltaxonomyid.Text; taxonomytitle.Text = dagdRet.DirectoryName; taxonomytitle.ToolTip = taxonomytitle.Text; _TaxonomyName = dagdRet.DirectoryName; taxonomydescription.Text = dagdRet.DirectoryDescription; taxonomydescription.ToolTip = taxonomydescription.Text; taxonomy_image_thumb.ImageUrl = _Common.AppImgPath + "spacer.gif"; m_strCurrentBreadcrumb = (string) (dagdRet.DirectoryPath.Remove(0, 1).Replace("\\", " > ")); if (m_strCurrentBreadcrumb == "") { m_strCurrentBreadcrumb = "Root"; } else { if (dagdRet.DirectoryParentId == 0) { parentTaxonomyPath = dagdRet.DirectoryPath.Replace("\\" + dagdRet.DirectoryName, "\\"); } else { parentTaxonomyPath = dagdRet.DirectoryPath.Replace("\\" + dagdRet.DirectoryName, ""); } hdn_parentTaxonomyPath.Value = parentTaxonomyPath; } if (dagdRet.TemplateName == "") { lblTemplate.Text = "[None]"; lblTemplate.ToolTip = lblTemplate.Text; } else { lblTemplate.Text = dagdRet.TemplateName; lblTemplate.ToolTip = lblTemplate.Text; } if (dagdRet.InheritTemplate) { lblTemplateInherit.Text = "Yes"; lblTemplateInherit.ToolTip = lblTemplateInherit.Text; } else { lblTemplateInherit.Text = "No"; lblTemplateInherit.ToolTip = lblTemplateInherit.Text; } m_intTotalPages = cReq.TotalPages; } PopulateCommunityGroupGridData(dagdRet); TaxonomyToolBar(); break; default: // Content taxonomy_request.IncludeItems = true; taxonomy_request.PageSize = _Common.RequestInformationRef.PagingSize; taxonomy_request.CurrentPage = m_intCurrentPage; taxonomy_data = _Content.ReadTaxonomy(ref taxonomy_request); if (taxonomy_data != null) { TaxonomyParentId = taxonomy_data.TaxonomyParentId; lbltaxonomyid.Text = taxonomy_data.TaxonomyId.ToString(); lbltaxonomyid.ToolTip = lbltaxonomyid.Text; taxonomytitle.Text = taxonomy_data.TaxonomyName; taxonomytitle.ToolTip = taxonomytitle.Text; _TaxonomyName = taxonomy_data.TaxonomyName; if (taxonomy_data.TaxonomyDescription == "") { taxonomydescription.Text = "[None]"; taxonomydescription.ToolTip = taxonomydescription.Text; } else { taxonomydescription.Text = Server.HtmlEncode(taxonomy_data.TaxonomyDescription); taxonomydescription.ToolTip = taxonomydescription.Text; } if (taxonomy_data.TaxonomyImage == "") { taxonomy_image.Text = "[None]"; } else { taxonomy_image.Text = taxonomy_data.TaxonomyImage; } taxonomy_image_thumb.ImageUrl = taxonomy_data.TaxonomyImage; if (taxonomy_data.CategoryUrl == "") { catLink.Text = "[None]"; catLink.ToolTip = catLink.Text; } else { catLink.Text = taxonomy_data.CategoryUrl; catLink.ToolTip = catLink.Text; } if (_Content.IsSynchronizedTaxonomy(TaxonomyId, TaxonomyLanguage)) { ltrTaxSynch.Text = _MessageHelper.GetMessage("enabled"); } else { ltrTaxSynch.Text = _MessageHelper.GetMessage("disabled"); } if (taxonomy_data.Visible == true) { ltrStatus.Text = "Enabled"; } else { ltrStatus.Text = "Disabled"; } if (taxonomy_data.TaxonomyImage.Trim() != "") { taxonomy_image_thumb.ImageUrl = (taxonomy_data.TaxonomyImage.IndexOf("/") == 0) ? taxonomy_data.TaxonomyImage : _Common.SitePath + taxonomy_data.TaxonomyImage; } else { taxonomy_image_thumb.ImageUrl = _Common.AppImgPath + "spacer.gif"; } m_strCurrentBreadcrumb = (string) (taxonomy_data.TaxonomyPath.Remove(0, 1).Replace("\\", " > ")); if (m_strCurrentBreadcrumb == "") { m_strCurrentBreadcrumb = "Root"; } else { if (taxonomy_data.TaxonomyParentId == 0) { parentTaxonomyPath = taxonomy_data.TaxonomyPath.Replace("\\" + taxonomy_data.TaxonomyName, "\\"); } else { parentTaxonomyPath = taxonomy_data.TaxonomyPath.Replace("\\" + taxonomy_data.TaxonomyName, ""); } hdn_parentTaxonomyPath.Value = parentTaxonomyPath; } if (taxonomy_data.TemplateName == "") { lblTemplate.Text = "[None]"; lblTemplate.ToolTip = lblTemplate.Text; } else { lblTemplate.Text = taxonomy_data.TemplateName; lblTemplate.ToolTip = lblTemplate.Text; } if (taxonomy_data.TemplateInherited) { lblTemplateInherit.Text = "Yes"; lblTemplateInherit.ToolTip = lblTemplateInherit.Text; } else { lblTemplateInherit.Text = "No"; lblTemplateInherit.ToolTip = lblTemplateInherit.Text; } m_intTotalPages = taxonomy_request.TotalPages; } if (reloadTree) { ReloadClientScript(taxonomy_data.IdPath); } PopulateContentGridData(); TaxonomyToolBar(); break; } DisplayTaxonomyMetadata(); if (TaxonomyParentId == 0) { tr_config.Visible = true; List<int> config_list = _Content.GetAllConfigIdListByTaxonomy(TaxonomyId, TaxonomyLanguage); configlist.Text = ""; configlist.ToolTip = configlist.Text; for (int i = 0; i <= config_list.Count - 1; i++) { if (configlist.Text == "") { configlist.Text = ConfigName(System.Convert.ToInt32(config_list[i])); configlist.ToolTip = configlist.Text; } else { configlist.Text = configlist.Text + ";" + ConfigName(System.Convert.ToInt32(config_list[i])); configlist.ToolTip = configlist.Text; } } if (configlist.Text == "") { configlist.Text = "None"; configlist.ToolTip = configlist.Text; } } else { tr_config.Visible = false; } // display counts ltrCatCount.Text = TaxonomyCategoryCount.ToString(); ltrItemCount.Text = taxonomy_request.RecordsAffected.ToString(); }
private void DisplayPage() { List<int> langList = new List<int>(); List<int> parenttaxonomyLanguageList = new List<int>(); switch (_ViewItem.ToLower()) { case "user": DirectoryUserRequest uReq = new DirectoryUserRequest(); DirectoryAdvancedUserData uDirectory = new DirectoryAdvancedUserData(); uReq.GetItems = true; uReq.DirectoryId = TaxonomyId; uReq.DirectoryLanguage = TaxonomyLanguage; uReq.PageSize = _Common.RequestInformationRef.PagingSize; uReq.CurrentPage = m_intCurrentPage; uDirectory = this._Content.LoadDirectory(ref uReq); if ((uDirectory != null)) { TaxonomyParentId = uDirectory.DirectoryParentId; lbltaxonomyid.Text = uDirectory.DirectoryId.ToString(); taxonomytitle.Text = uDirectory.DirectoryName; _TaxonomyName = uDirectory.DirectoryName; taxonomydescription.Text = uDirectory.DirectoryDescription; ////taxonomy_image_thumb.ImageUrl = _Common.AppImgPath + "spacer.gif"; string[] taxonomyPathArray = new string[] { }; string[] taxonomyIdPathArray = new string[] { }; string taxonomyBreadCrumbWithLinks = string.Empty; if (uDirectory.DirectoryPath != string.Empty) { taxonomyPathArray = uDirectory.DirectoryPath.Split('\\'); } if (uDirectory.DirectoryIDPath != string.Empty) { taxonomyIdPathArray = uDirectory.DirectoryIDPath.Split('/'); } //form the taxonomy Bread Crumb Links. for (int k = 1; k < taxonomyPathArray.Length; k++) { int taxonomyIdForBreadCrumb =0; int.TryParse(taxonomyIdPathArray[k],out taxonomyIdForBreadCrumb); if (taxonomyIdForBreadCrumb == TaxonomyId) { if (taxonomyBreadCrumbWithLinks == string.Empty) { taxonomyBreadCrumbWithLinks = taxonomyPathArray[k]; } else { taxonomyBreadCrumbWithLinks += " > " + taxonomyPathArray[k]; } } else { if (taxonomyBreadCrumbWithLinks == string.Empty) { taxonomyBreadCrumbWithLinks = "<a id=" + taxonomyIdPathArray[k] + " href=\"localeTaxonomy.aspx?action=view&view=locale&taxonomyid=" + taxonomyIdPathArray[k] + "&treeViewId=-1&LangType=" + TaxonomyLanguage + "\" class=\"linkStyle\">" + taxonomyPathArray[k] + " </a>"; } else { taxonomyBreadCrumbWithLinks += " > <a id=" + taxonomyIdPathArray[k] + " href=\"localeTaxonomy.aspx?action=view&view=locale&taxonomyid=" + taxonomyIdPathArray[k] + "&treeViewId=-1&LangType=" + TaxonomyLanguage + "\" class=\"linkStyle\">" + taxonomyPathArray[k] + " </a>"; } } } if (taxonomyBreadCrumbWithLinks != string.Empty) { m_strCurrentBreadcrumb = mainTranslationPackageLink + " > " + taxonomyBreadCrumbWithLinks; } else { m_strCurrentBreadcrumb = mainTranslationPackageLink; } if (uDirectory.DirectoryParentId == 0) { parentTaxonomyPath = uDirectory.DirectoryPath.Replace("\\" + uDirectory.DirectoryName, "\\"); } else { parentTaxonomyPath = uDirectory.DirectoryPath.Replace("\\" + uDirectory.DirectoryName, ""); } hdn_parentTaxonomyPath.Value = parentTaxonomyPath; //if ((string.IsNullOrEmpty(uDirectory.TemplateName))) //{ // lblTemplate.Text = "[None]"; //} //else //{ // lblTemplate.Text = uDirectory.TemplateName; //} //if ((uDirectory.InheritTemplate)) //{ // lblTemplateInherit.Text = "Yes"; //} //else //{ // lblTemplateInherit.Text = "No"; //} m_intTotalPages = uReq.TotalPages; } PopulateUserGridData(uDirectory); TaxonomyToolBar(); //ltrItemCount.Text = uDirectory.DirectoryItems.Length.ToString(); break; case "cgroup": DirectoryAdvancedGroupData dagdRet = new DirectoryAdvancedGroupData(); DirectoryGroupRequest cReq = new DirectoryGroupRequest(); cReq.CurrentPage = m_intCurrentPage; cReq.PageSize = _Common.RequestInformationRef.PagingSize; cReq.DirectoryId = TaxonomyId; cReq.DirectoryLanguage = TaxonomyLanguage; cReq.GetItems = true; cReq.SortDirection = ""; dagdRet = this._Common.CommunityGroupRef.LoadDirectory(ref cReq); if ((dagdRet != null)) { TaxonomyParentId = dagdRet.DirectoryParentId; lbltaxonomyid.Text = dagdRet.DirectoryId.ToString(); taxonomytitle.Text = dagdRet.DirectoryName; _TaxonomyName = dagdRet.DirectoryName; taxonomydescription.Text = dagdRet.DirectoryDescription; //taxonomy_image_thumb.ImageUrl = _Common.AppImgPath + "spacer.gif"; //form the BreadCrumb Link. string[] taxonomyPathArray = new string[] { }; string[] taxonomyIdPathArray = new string[] { }; string taxonomyBreadCrumbWithLinks = string.Empty; if (dagdRet.DirectoryPath != string.Empty) { taxonomyPathArray = dagdRet.DirectoryPath.Split('\\'); } if (dagdRet.DirectoryIDPath != string.Empty) { taxonomyIdPathArray = dagdRet.DirectoryIDPath.Split('/'); } //form the taxonomy Bread Crumb Links. for (int k = 1; k < taxonomyPathArray.Length; k++) { int taxonomyIdForBreadCrumb =0; int.TryParse(taxonomyIdPathArray[k],out taxonomyIdForBreadCrumb); if (taxonomyIdForBreadCrumb == TaxonomyId) { if (taxonomyBreadCrumbWithLinks == string.Empty) { taxonomyBreadCrumbWithLinks = taxonomyPathArray[k]; } else { taxonomyBreadCrumbWithLinks += " > " + taxonomyPathArray[k]; } } else { if (taxonomyBreadCrumbWithLinks == string.Empty) { taxonomyBreadCrumbWithLinks = "<a id=" + taxonomyIdPathArray[k] + " href=\"localeTaxonomy.aspx?action=view&view=locale&taxonomyid=" + taxonomyIdPathArray[k] + "&treeViewId=-1&LangType=" + TaxonomyLanguage + "\" class=\"linkStyle\">" + taxonomyPathArray[k] + " </a>"; } else { taxonomyBreadCrumbWithLinks += " > <a id=" + taxonomyIdPathArray[k] + " href=\"localeTaxonomy.aspx?action=view&view=locale&taxonomyid=" + taxonomyIdPathArray[k] + "&treeViewId=-1&LangType=" + TaxonomyLanguage + "\" class=\"linkStyle\">" + taxonomyPathArray[k] + " </a>"; } } } // <a id="136" href="localeTaxonomy.aspx?action=view&view=locale&taxonomyid=136&treeViewId=-1&LangType=1033" class="linkStyle">chanduila </a> // m_strCurrentBreadcrumb = mainTranslationPackageLink + taxonomy_data.TaxonomyPath.Remove(0, 1).Replace("\\", " > "); if (taxonomyBreadCrumbWithLinks != string.Empty) { m_strCurrentBreadcrumb = mainTranslationPackageLink + " > " + taxonomyBreadCrumbWithLinks; } else { m_strCurrentBreadcrumb = mainTranslationPackageLink; } if ((string.IsNullOrEmpty(m_strCurrentBreadcrumb))) { m_strCurrentBreadcrumb = mainTranslationPackageLink; } if (dagdRet.DirectoryParentId == 0) { parentTaxonomyPath = dagdRet.DirectoryPath.Replace("\\" + dagdRet.DirectoryName, "\\"); } else { parentTaxonomyPath = dagdRet.DirectoryPath.Replace("\\" + dagdRet.DirectoryName, ""); } hdn_parentTaxonomyPath.Value = parentTaxonomyPath; //if ((string.IsNullOrEmpty(dagdRet.TemplateName))) //{ // lblTemplate.Text = "[None]"; //} //else //{ // lblTemplate.Text = dagdRet.TemplateName; //} //if ((dagdRet.InheritTemplate)) //{ // lblTemplateInherit.Text = "Yes"; //} //else //{ // lblTemplateInherit.Text = "No"; //} m_intTotalPages = cReq.TotalPages; } PopulateCommunityGroupGridData(dagdRet); TaxonomyToolBar(); //ltrItemCount.Text = cReq.RecordsAffected.ToString(); break; case "locale": taxonomy_request.TaxonomyItemType = EkEnumeration.TaxonomyItemType.Locale; taxonomy_request.TaxonomyType = EkEnumeration.TaxonomyType.Locale; taxonomy_request.IncludeItems = true; taxonomy_request.PageSize = _Common.RequestInformationRef.PagingSize; taxonomy_request.CurrentPage = m_intCurrentPage; taxonomy_data = _Content.ReadTaxonomy(ref taxonomy_request); if ((taxonomy_data != null)) { TaxonomyParentId = taxonomy_data.TaxonomyParentId; lbltaxonomyid.Text = taxonomy_data.TaxonomyId.ToString(); taxonomytitle.Text = taxonomy_data.TaxonomyName; _TaxonomyName = taxonomy_data.TaxonomyName; if (string.IsNullOrEmpty(taxonomy_data.TaxonomyDescription)) { taxonomydescription.Text = "[None]"; } else { taxonomydescription.Text = Server.HtmlEncode(taxonomy_data.TaxonomyDescription); } //if (string.IsNullOrEmpty(taxonomy_data.TaxonomyImage)) //{ // taxonomy_image.Text = "[None]"; //} //else //{ // taxonomy_image.Text = taxonomy_data.TaxonomyImage; //} //taxonomy_image_thumb.ImageUrl = taxonomy_data.TaxonomyImage; //if (string.IsNullOrEmpty(taxonomy_data.CategoryUrl)) //{ // catLink.Text = "[None]"; //} //else //{ // catLink.Text = taxonomy_data.CategoryUrl; //} //if (taxonomy_data.Visible == true) //{ // ltrStatus.Text = "Enabled"; //} //else //{ // ltrStatus.Text = "Disabled"; //} //if (!string.IsNullOrEmpty(taxonomy_data.TaxonomyImage.Trim())) //{ // taxonomy_image_thumb.ImageUrl = (taxonomy_data.TaxonomyImage.IndexOf("/") == 0 ? taxonomy_data.TaxonomyImage : _Common.SitePath + taxonomy_data.TaxonomyImage); //} //else //{ // taxonomy_image_thumb.ImageUrl = _Common.AppImgPath + "spacer.gif"; //} //form the BreadCrumb Link. FormBreadCrumb(taxonomy_data); //if ((string.IsNullOrEmpty(taxonomy_data.TemplateName))) //{ // lblTemplate.Text = "[None]"; //} //else //{ // lblTemplate.Text = taxonomy_data.TemplateName; //} //if ((taxonomy_data.TemplateInherited)) //{ // lblTemplateInherit.Text = "Yes"; //} //else //{ // lblTemplateInherit.Text = "No"; //} m_intTotalPages = taxonomy_request.TotalPages; } Ektron.Cms.BusinessObjects.Localization.LocaleTaxonomy localeTaxonomyApi = new Ektron.Cms.BusinessObjects.Localization.LocaleTaxonomy(_Common.RequestInformationRef); //API = New Ektron.Cms.BusinessObjects.Localization.LocaleTaxonomy(_Common.RequestInformationRef) langList = localeTaxonomyApi.GetLocaleIdList(TaxonomyId, _Common.ContentLanguage, false); parenttaxonomyLanguageList = localeTaxonomyApi.GetLocaleIdList(TaxonomyParentId, _Common.ContentLanguage, true); PopulateLocaleContentGridData(langList, parenttaxonomyLanguageList); TaxonomyToolBar(); //ltrItemCount.Text = langList.Count.ToString(); break; default: // Content taxonomy_request.IncludeItems = true; taxonomy_request.PageSize = _Common.RequestInformationRef.PagingSize; taxonomy_request.CurrentPage = m_intCurrentPage; taxonomy_data = _Content.ReadTaxonomy(ref taxonomy_request); if ((taxonomy_data != null)) { TaxonomyParentId = taxonomy_data.TaxonomyParentId; lbltaxonomyid.Text = taxonomy_data.TaxonomyId.ToString(); taxonomytitle.Text = taxonomy_data.TaxonomyName; _TaxonomyName = taxonomy_data.TaxonomyName; if (string.IsNullOrEmpty(taxonomy_data.TaxonomyDescription)) { taxonomydescription.Text = "[None]"; } else { taxonomydescription.Text = Server.HtmlEncode(taxonomy_data.TaxonomyDescription); } //if (string.IsNullOrEmpty(taxonomy_data.TaxonomyImage)) //{ // taxonomy_image.Text = "[None]"; //} //else //{ // taxonomy_image.Text = taxonomy_data.TaxonomyImage; //} //taxonomy_image_thumb.ImageUrl = taxonomy_data.TaxonomyImage; //if (string.IsNullOrEmpty(taxonomy_data.CategoryUrl)) //{ // catLink.Text = "[None]"; //} //else //{ // catLink.Text = taxonomy_data.CategoryUrl; //} //if (taxonomy_data.Visible == true) //{ // ltrStatus.Text = "Enabled"; //} //else //{ // ltrStatus.Text = "Disabled"; //} //if (!string.IsNullOrEmpty(taxonomy_data.TaxonomyImage.Trim())) //{ // taxonomy_image_thumb.ImageUrl = (taxonomy_data.TaxonomyImage.IndexOf("/") == 0 ? taxonomy_data.TaxonomyImage : _Common.SitePath + taxonomy_data.TaxonomyImage); //} //else //{ // taxonomy_image_thumb.ImageUrl = _Common.AppImgPath + "spacer.gif"; //} //form the BreadCrumb Link. FormBreadCrumb(taxonomy_data); //if ((string.IsNullOrEmpty(taxonomy_data.TemplateName))) //{ // lblTemplate.Text = "[None]"; //} //else //{ // lblTemplate.Text = taxonomy_data.TemplateName; //} //if ((taxonomy_data.TemplateInherited)) //{ // lblTemplateInherit.Text = "Yes"; //} //else //{ // lblTemplateInherit.Text = "No"; //} m_intTotalPages = taxonomy_request.TotalPages; //ltrItemCount.Text = taxonomy_request.RecordsAffected.ToString(); } PopulateContentGridData(); TaxonomyToolBar(); //ltrItemCount.Text = taxonomy_request.RecordsAffected.ToString(); break; } DisplayTaxonomyMetadata(); tr_catcount.Visible = false; //if (_ViewItem.ToLower() == "locale") //{ // ltrItemCount.Text = langList.Count.ToString(); //} //else //{ // ltrItemCount.Text = taxonomy_request.RecordsAffected.ToString(); //} }