1 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
---|
2 | <%@ Import Namespace="HLWebOKBQueryPlugin.Helpers" %>
|
---|
3 | <%@ Import Namespace="System.Reflection" %>
|
---|
4 |
|
---|
5 | <div id="RunDetailProperties">
|
---|
6 | <table><tr><td>
|
---|
7 | <table class="hl-dataTable">
|
---|
8 | <thead>
|
---|
9 | <tr><th colspan="3">Result</th></tr>
|
---|
10 | </thead>
|
---|
11 | <tbody>
|
---|
12 | <% IResult result = (RunCollectionData)Session["QueryRunDetail"];
|
---|
13 | foreach (PropertyInfo pi in typeof(IResult).GetProperties()) { %>
|
---|
14 | <tr>
|
---|
15 | <td style="width: 5%;"><%= Ajax.ActionLink("detail", "DetailValue/" + pi.Name, null, new AjaxOptions { UpdateTargetId = "ctrlValue" }, new { @class = "hl-icon-view" })%></td>
|
---|
16 | <td style="width: 45%;"><%= pi.Name %></td>
|
---|
17 | <td>
|
---|
18 | <% try { %>
|
---|
19 | <%= pi.GetValue(result, null).ToString()%>
|
---|
20 | <% } catch (Exception e) { %>
|
---|
21 |
|
---|
22 | <% } %>
|
---|
23 | </td>
|
---|
24 | </tr>
|
---|
25 | <% } %>
|
---|
26 | </tbody>
|
---|
27 | </table>
|
---|
28 |
|
---|
29 | <table class="hl-dataTable">
|
---|
30 | <thead>
|
---|
31 | <tr><th colspan="3">Parameter</th></tr>
|
---|
32 | </thead>
|
---|
33 | <tbody>
|
---|
34 | <% IParams parameters = (RunCollectionData)Session["QueryRunDetail"];
|
---|
35 | foreach (PropertyInfo pi in typeof(IParams).GetProperties()) {
|
---|
36 | RouteValueDictionary rvd = new RouteValueDictionary();
|
---|
37 | rvd.Add("controller", "Query");
|
---|
38 | rvd.Add("id", pi.Name); %>
|
---|
39 | <tr>
|
---|
40 | <td style="width: 5%;"><%= Ajax.ActionLink("detail", "DetailValue/" + pi.Name, null, new AjaxOptions { UpdateTargetId = "ctrlValue" }, new { @class = "hl-icon-view" })%></td>
|
---|
41 | <td style="width: 45%;"><%= pi.Name %></td>
|
---|
42 | <td>
|
---|
43 | <% try { %>
|
---|
44 | <%= pi.GetValue(parameters, null).ToString()%>
|
---|
45 | <% } catch (Exception e) { %>
|
---|
46 |
|
---|
47 | <% } %>
|
---|
48 | </td>
|
---|
49 | </tr>
|
---|
50 | <% } %>
|
---|
51 | </tbody>
|
---|
52 | </table>
|
---|
53 | </td>
|
---|
54 | <td style="vertical-align: top;">
|
---|
55 | <div>
|
---|
56 | <div id="ctrlValue"><label>Value:</label><input type="text" value="" /></div>
|
---|
57 | </div>
|
---|
58 | </td></tr></table>
|
---|
59 | </div>
|
---|