Changeset 6315 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin
- Timestamp:
- 05/27/11 18:49:29 (13 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBQueryPlugin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers/QueryController.cs
r6303 r6315 45 45 46 46 // Get runs from filter 47 48 47 49 48 QueryServiceClient client = Query.GetClientFactory(); 50 49 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]; 53 55 54 56 QueryModel qm = new QueryModel(); -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models/QueryModel.cs
r6303 r6315 80 80 } 81 81 82 // just 4 testing83 //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 105 82 } 106 83 } -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/RunCollectionDetail.ascx
r6253 r6315 5 5 <div id="RunDetailProperties"> 6 6 <table><tr><td> 7 <table >7 <table class="hl-dataTable"> 8 8 <thead> 9 9 <tr><th colspan="3">Result</th></tr> … … 11 11 <tbody> 12 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); %> 13 foreach (PropertyInfo pi in typeof(IResult).GetProperties()) { %> 17 14 <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> 19 16 <td style="width: 45%;"><%= pi.Name %></td> 20 17 <td> … … 30 27 </table> 31 28 32 <table >29 <table class="hl-dataTable"> 33 30 <thead> 34 31 <tr><th colspan="3">Parameter</th></tr> … … 41 38 rvd.Add("id", pi.Name); %> 42 39 <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> 44 41 <td style="width: 45%;"><%= pi.Name %></td> 45 42 <td> -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/RunCollectionTable.ascx
r6253 r6315 4 4 5 5 <div id="RunCollectionTable" style="overflow: auto; width: 100%"> 6 <table >6 <table class="hl-dataTable"> 7 7 <thead> 8 8 <tr> … … 15 15 <tbody> 16 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 %> 17 foreach (RunCollectionData rcd in data) { %> 22 18 <tr> 23 <td><%: Html.ActionLink("details", "Details", rvd) %></td>19 <td><%: Html.ActionLink("details", "Details", new { rcd.Id}, new { @class = "hl-icon-view"}) %></td> 24 20 25 21 <% foreach (PropertyInfo pi in typeof(RunCollectionData).GetProperties()) { %>
Note: See TracChangeset
for help on using the changeset viewer.