Changeset 6253 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views
- Timestamp:
- 05/23/11 16:08:27 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query
- Files:
-
- 1 added
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/Menu.ascx
r6118 r6253 8 8 <%: Html.ActionLink("Results", "Results", "Query") %> 9 9 </li> 10 <% if (Session["QueryRunDetailId"] != null) { %> 11 <li <% if(Session["SelectedSubMenu"] == "Details") {%> class="selected" <%}%>> 12 <%: Html.ActionLink("Details", "Details", "Query")%> 13 </li> 14 <% } %> 10 15 <li <% if(Session["SelectedSubMenu"] == "Chart") {%> class="selected" <%}%>> 11 16 <%: Html.ActionLink("Chart", "Index", "Chart") %> -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/RunCollectionDetail.ascx
r5977 r6253 1 <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RunCollectionDetail.ascx.cs" Inherits="HLWebOKBQueryPlugin.Views.Query.RunCollectionDetail" %> 1 <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 2 <%@ Import Namespace="HLWebOKBQueryPlugin.Helpers" %> 3 <%@ Import Namespace="System.Reflection" %> 2 4 3 <asp:Table ID="TableRunDetail" runat="server"> 4 <asp:TableHeaderRow> 5 <asp:TableHeaderCell Text="Property" /> 6 <asp:TableHeaderCell Text="Value" /> 7 </asp:TableHeaderRow> 8 </asp:Table> 5 <div id="RunDetailProperties"> 6 <table><tr><td> 7 <table> 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 RouteValueDictionary rvd = new RouteValueDictionary(); 15 rvd.Add("controller", "Query"); 16 rvd.Add("id", pi.Name); %> 17 <tr> 18 <td style="width: 5%;"><%= Ajax.ActionLink("detail", "DetailValue", rvd, new AjaxOptions { UpdateTargetId = "ctrlValue" })%></td> 19 <td style="width: 45%;"><%= pi.Name %></td> 20 <td> 21 <% try { %> 22 <%= pi.GetValue(result, null).ToString()%> 23 <% } catch (Exception e) { %> 24 25 <% } %> 26 </td> 27 </tr> 28 <% } %> 29 </tbody> 30 </table> 31 32 <table> 33 <thead> 34 <tr><th colspan="3">Parameter</th></tr> 35 </thead> 36 <tbody> 37 <% IParams parameters = (RunCollectionData)Session["QueryRunDetail"]; 38 foreach (PropertyInfo pi in typeof(IParams).GetProperties()) { 39 RouteValueDictionary rvd = new RouteValueDictionary(); 40 rvd.Add("controller", "Query"); 41 rvd.Add("id", pi.Name); %> 42 <tr> 43 <td style="width: 5%;"><%= Ajax.ActionLink("detail", "DetailValue", rvd, new AjaxOptions { UpdateTargetId = "ctrlValue" })%></td> 44 <td style="width: 45%;"><%= pi.Name %></td> 45 <td> 46 <% try { %> 47 <%= pi.GetValue(parameters, null).ToString()%> 48 <% } catch (Exception e) { %> 49 50 <% } %> 51 </td> 52 </tr> 53 <% } %> 54 </tbody> 55 </table> 56 </td> 57 <td style="vertical-align: top;"> 58 <div> 59 <div id="ctrlValue"><label>Value:</label><input type="text" value="" /></div> 60 </div> 61 </td></tr></table> 62 </div> -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/RunCollectionTable.ascx
r6226 r6253 23 23 <td><%: Html.ActionLink("details", "Details", rvd) %></td> 24 24 25 <% foreach (PropertyInfo pi in typeof(RunCollectionData).GetProperties()) { 26 try { %> 27 <td><%= pi.GetValue(rcd, null).ToString()%></td> 28 <% } catch (Exception e) { %> 29 </td> 30 <% } 31 } %> 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 <% } %> 32 35 </tr> 33 36 <% } %>
Note: See TracChangeset
for help on using the changeset viewer.