Line | |
---|
1 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
---|
2 | <%@ Import Namespace="HLWebOKBQueryPlugin.Helpers" %>
|
---|
3 | <%@ Import Namespace="System.Reflection" %>
|
---|
4 |
|
---|
5 | <div id="RunCollectionTable" style="overflow: auto; width: 100%">
|
---|
6 | <table class="hl-dataTable">
|
---|
7 | <thead>
|
---|
8 | <tr>
|
---|
9 | <th> </th>
|
---|
10 | <% foreach (PropertyInfo pi in typeof(RunCollectionData).GetProperties()) { %>
|
---|
11 | <th><%= pi.Name %></th>
|
---|
12 | <% } %>
|
---|
13 | </tr>
|
---|
14 | </thead>
|
---|
15 | <tbody>
|
---|
16 | <% IList<RunCollectionData> data = (IList<RunCollectionData>) Session["QueryRuns"];
|
---|
17 | foreach (RunCollectionData rcd in data) { %>
|
---|
18 | <tr>
|
---|
19 | <td><%: Html.ActionLink("details", "Details", new { rcd.Id}, new { @class = "hl-icon-view"}) %></td>
|
---|
20 |
|
---|
21 | <% foreach (PropertyInfo pi in typeof(RunCollectionData).GetProperties()) { %>
|
---|
22 | <td>
|
---|
23 | <% try { %>
|
---|
24 | <%= pi.GetValue(rcd, null).ToString()%>
|
---|
25 | <% } catch (Exception e) { %>
|
---|
26 |
|
---|
27 | <% } %>
|
---|
28 | </td>
|
---|
29 |
|
---|
30 | <% } %>
|
---|
31 | </tr>
|
---|
32 | <% } %>
|
---|
33 | </tbody>
|
---|
34 | </table>
|
---|
35 |
|
---|
36 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.