Last change
on this file since 6274 was
6253,
checked in by msammer, 14 years ago
|
#1520 Added the Run-detail-view which shows the properties and the values of a run. Property-values are shown in a AJAX-based extra view
|
File size:
1.5 KB
|
Rev | Line | |
---|
[6076] | 1 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
---|
[6226] | 2 | <%@ Import Namespace="HLWebOKBQueryPlugin.Helpers" %>
|
---|
| 3 | <%@ Import Namespace="System.Reflection" %>
|
---|
[5977] | 4 |
|
---|
[6076] | 5 | <div id="RunCollectionTable" style="overflow: auto; width: 100%">
|
---|
[6226] | 6 | <table>
|
---|
| 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 | RouteValueDictionary rvd = new RouteValueDictionary();
|
---|
| 19 | rvd.Add("controller", "Query");
|
---|
| 20 | rvd.Add("id", rcd.Id);
|
---|
| 21 | %>
|
---|
| 22 | <tr>
|
---|
| 23 | <td><%: Html.ActionLink("details", "Details", rvd) %></td>
|
---|
[5977] | 24 |
|
---|
[6253] | 25 | <% foreach (PropertyInfo pi in typeof(RunCollectionData).GetProperties()) { %>
|
---|
| 26 | <td>
|
---|
| 27 | <% try { %>
|
---|
| 28 | <%= pi.GetValue(rcd, null).ToString()%>
|
---|
| 29 | <% } catch (Exception e) { %>
|
---|
| 30 |
|
---|
| 31 | <% } %>
|
---|
| 32 | </td>
|
---|
| 33 |
|
---|
| 34 | <% } %>
|
---|
[6226] | 35 | </tr>
|
---|
| 36 | <% } %>
|
---|
| 37 | </tbody>
|
---|
| 38 | </table>
|
---|
[6076] | 39 |
|
---|
| 40 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.