private List <InstitutionalGoalsItem> InstitutionalGoals(int id) { List <InstitutionalGoalsItem> items = new List <InstitutionalGoalsItem>(); List <EntityDTO> goals = data.GetAllInstitutionalGoals(id); if (goals.Count > 0) { foreach (EntityDTO g in goals) { InstitutionalGoalsItem ig = new InstitutionalGoalsItem(); g.ExtractProperties(); ig.InstitutionalGoals = g.Name; ig.Description = g.RenderHTML(GlobalStringResource.Description, ADB.SA.Reports.Entities.Enums.RenderOption.None); items.Add(ig); } } return(items); }
private string BuildInstitutionalGoals(int id) { string result = string.Empty; List <EntityDTO> goals = data.GetAllInstitutionalGoals(id); if (goals.Count > 0) { HtmlTable t = new HtmlTable(2, 1, "grid", new int[] { 50, 50 }); t.AddHeader("Institutional Goals"); t.AddHeader("Description"); foreach (EntityDTO g in goals) { g.ExtractProperties(); t.AddCell(g.Name); t.AddCell(g.RenderHTML(GlobalStringResource.Description, ADB.SA.Reports.Entities.Enums.RenderOption.None)); } result = t.EndHtmlTable(); } return(result); }