Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/27/11 18:49:29 (13 years ago)
Author:
msammer
Message:

#1520 added Styles; fixed bugs

Location:
branches/WebApplication/MVC2/HLWebOKBQueryPlugin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers/QueryController.cs

    r6303 r6315  
    4545
    4646            // Get runs from filter
    47            
    4847
    4948            QueryServiceClient client = Query.GetClientFactory();
    5049
    51 
    52             long[] ids = client.GetRunIds((CombinedFilter)Session["Content"]);
     50            long[] ids;
     51            if (Session["Content"] != null)
     52                ids = client.GetRunIds((CombinedFilter)Session["Content"]);
     53            else
     54                ids = new long[0];
    5355
    5456            QueryModel qm = new QueryModel();
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models/QueryModel.cs

    r6303 r6315  
    8080        }
    8181
    82         // just 4 testing
    83         //public IList<RunCollectionData> getTestRuns() {
    84 
    85         //    QueryServiceClient client = Query.GetClientFactory();
    86 
    87         //    if (client != null) {
    88         //        IList<RunCollectionData> runs = new List<RunCollectionData>();
    89 
    90         //        //long[] runIds = client.GetRunIds(new Filter());
    91         //        //if (runIds.Length < cnt) cnt = runIds.Length;
    92 
    93         //        long[] getRuns = new long[2] { 1, 2 };
    94 
    95         //        IList<Run> runList = client.GetRuns(getRuns, false).ToList<Run>();
    96 
    97         //        foreach (Run r in runList)
    98         //            runs.Add(new RunCollectionData(r));
    99 
    100         //        return runs;
    101         //    }
    102         //    return new List<RunCollectionData>();
    103         //}
    104 
    10582    }
    10683}
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/RunCollectionDetail.ascx

    r6253 r6315  
    55<div id="RunDetailProperties">
    66<table><tr><td>
    7     <table>
     7    <table class="hl-dataTable">
    88        <thead>
    99            <tr><th colspan="3">Result</th></tr>
     
    1111        <tbody>
    1212            <% 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); %>
     13               foreach (PropertyInfo pi in typeof(IResult).GetProperties()) { %>
    1714            <tr>
    18                 <td style="width: 5%;"><%= Ajax.ActionLink("detail", "DetailValue", rvd, new AjaxOptions { UpdateTargetId = "ctrlValue" })%></td>
     15                <td style="width: 5%;"><%= Ajax.ActionLink("detail", "DetailValue/" + pi.Name, null, new AjaxOptions { UpdateTargetId = "ctrlValue" }, new { @class = "hl-icon-view" })%></td>
    1916                <td style="width: 45%;"><%= pi.Name %></td>
    2017                <td>
     
    3027    </table>
    3128
    32     <table>
     29    <table class="hl-dataTable">
    3330        <thead>
    3431            <tr><th colspan="3">Parameter</th></tr>
     
    4138                   rvd.Add("id", pi.Name); %>
    4239            <tr>
    43                 <td style="width: 5%;"><%= Ajax.ActionLink("detail", "DetailValue", rvd, new AjaxOptions { UpdateTargetId = "ctrlValue" })%></td>
     40                <td style="width: 5%;"><%= Ajax.ActionLink("detail", "DetailValue/" + pi.Name, null, new AjaxOptions { UpdateTargetId = "ctrlValue" }, new { @class = "hl-icon-view" })%></td>
    4441                <td style="width: 45%;"><%= pi.Name %></td>
    4542                <td>
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/RunCollectionTable.ascx

    r6253 r6315  
    44
    55<div id="RunCollectionTable" style="overflow: auto; width: 100%">
    6     <table>
     6    <table class="hl-dataTable">
    77        <thead>
    88            <tr>
     
    1515        <tbody>
    1616            <% 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                    %>
     17               foreach (RunCollectionData rcd in data) { %>
    2218                <tr>
    23                     <td><%: Html.ActionLink("details", "Details", rvd) %></td>
     19                    <td><%: Html.ActionLink("details", "Details", new { rcd.Id}, new { @class = "hl-icon-view"}) %></td>
    2420
    2521                    <% foreach (PropertyInfo pi in typeof(RunCollectionData).GetProperties()) { %>
Note: See TracChangeset for help on using the changeset viewer.