List <TocTableRow> GetTopicList() { var topics = new List <TocTableRow>(); var enumeratedTopics = new List <Topic>(); var ctx = new DiscCtx(ConfigManager.ConnStr); foreach (var session in ctx.Session.ToArray()) { foreach (var person in session.Person.ToArray()) { foreach (var topic in person.Topic) { if (enumeratedTopics.FirstOrDefault(t => t.Id == topic.Id) == null) { enumeratedTopics.Add(topic); var row = new TocTableRow { Date = session.EstimatedDateTime.ToString(), Discussion = topic.Discussion.Subject, Report = ReportUrl(ConfigManager.ServiceServer, topic.Discussion.Id, topic.Id, session.Id), Session = session.Name, Topic = topic.Name, Participants = BuildParticipantsString(topic) }; topics.Add(row); } } } } return(topics); }
List<TocTableRow> GetTopicList() { var topics = new List<TocTableRow>(); var enumeratedTopics = new List<Topic>(); var ctx = new DiscCtx(ConfigManager.ConnStr); foreach(var session in ctx.Session.ToArray()) { foreach (var person in session.Person.ToArray()) { foreach (var topic in person.Topic) { if (enumeratedTopics.FirstOrDefault(t => t.Id == topic.Id) == null) { enumeratedTopics.Add(topic); var row = new TocTableRow { Date = session.EstimatedDateTime.ToString(), Discussion = topic.Discussion.Subject, Report = ReportUrl(ConfigManager.ServiceServer, topic.Discussion.Id, topic.Id, session.Id), Session = session.Name, Topic = topic.Name, Participants = BuildParticipantsString(topic) }; topics.Add(row); } } } } return topics; }
void EmitTocRow(TocTableRow tocRow) { #line default #line hidden #line 64 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write("\t\t<tr>\r\n\t\t\t<td>"); #line default #line hidden #line 66 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write(this.ToStringHelper.ToStringWithCulture(tocRow.Session)); #line default #line hidden #line 66 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write("</td>\r\n\t\t\t<td>"); #line default #line hidden #line 67 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write(this.ToStringHelper.ToStringWithCulture(tocRow.Date)); #line default #line hidden #line 67 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write("</td>\r\n\t\t\t<td>"); #line default #line hidden #line 68 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write(this.ToStringHelper.ToStringWithCulture(tocRow.Discussion)); #line default #line hidden #line 68 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write("</td>\r\n\t\t\t<td>"); #line default #line hidden #line 69 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write(this.ToStringHelper.ToStringWithCulture(tocRow.Participants)); #line default #line hidden #line 69 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write("</td>\r\n\t <td>"); #line default #line hidden #line 70 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write(this.ToStringHelper.ToStringWithCulture(tocRow.Topic)); #line default #line hidden #line 70 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write("</td>\r\n\t\t <td><a target=\"_blank\" href=\""); #line default #line hidden #line 71 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write(this.ToStringHelper.ToStringWithCulture(tocRow.Report)); #line default #line hidden #line 71 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write("\">"); #line default #line hidden #line 71 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write(this.ToStringHelper.ToStringWithCulture(tocRow.Report)); #line default #line hidden #line 71 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" this.Write("</a></td>\r\n\t\t</tr>\r\n\t\t"); #line default #line hidden #line 73 "C:\Users\User\Documents\Visual Studio 2013\Projects\tds3\discussions\DiscSvc2\Reporting\Toc.tt" }