1 | @model HeuristicLab.Services.Optimization.Web.Models.JobDetailsModel
|
---|
2 |
|
---|
3 | <h2>Job details:</h2>
|
---|
4 | <h3>Summary:</h3>
|
---|
5 |
|
---|
6 | <table>
|
---|
7 | <thead>
|
---|
8 | <tr>
|
---|
9 | <td>Name</td>
|
---|
10 | <td>Resource</td>
|
---|
11 | <td>State</td>
|
---|
12 | </tr>
|
---|
13 | </thead>
|
---|
14 | <tbody>
|
---|
15 | <tr>
|
---|
16 | <td>@Model.Job.Name</td>
|
---|
17 | <td>@Model.Job.Resource</td>
|
---|
18 | <td>@Model.Job.State</td>
|
---|
19 | </tr>
|
---|
20 | </tbody>
|
---|
21 | </table>
|
---|
22 | @using (Html.BeginForm()) {
|
---|
23 | <fieldset>
|
---|
24 | <input type="hidden" value="@Model.Job.Id" name="id" />
|
---|
25 | <input type="submit" value="Delete job" />
|
---|
26 | </fieldset>
|
---|
27 | }
|
---|
28 |
|
---|
29 | <h3>Run details:</h3>
|
---|
30 | <div class="collapsible">
|
---|
31 | @if (Model.Runs.Count > 1) {
|
---|
32 | <h3>Analyze runs</h3>
|
---|
33 | <div>
|
---|
34 | <div class="resizable ui-widget-content" style="width: 800px; height: 600px;">
|
---|
35 | <div id="dataTableView" style="width: 96%; height: 96%;">
|
---|
36 | <form action="#">
|
---|
37 | <label for="dataTable">DataTable:</label>
|
---|
38 | <select name="dataTable" id="dataTable"></select>
|
---|
39 | <label for="dataRow">DataRow:</label>
|
---|
40 | <select name="dataRow" id="dataRow"></select>
|
---|
41 | <div id="dataTableGraph" style="width: 100%; height: 100%;"></div>
|
---|
42 | </form>
|
---|
43 | </div>
|
---|
44 | </div>
|
---|
45 | </div>
|
---|
46 | }
|
---|
47 | @for (int j = 0; j < Model.Runs.Count; j++) {
|
---|
48 | var run = Model.Runs[j];
|
---|
49 | <h3>@run.Name</h3>
|
---|
50 | <div>
|
---|
51 | <table>
|
---|
52 | <thead>
|
---|
53 | <tr>
|
---|
54 | <td>Key</td>
|
---|
55 | <td>Value</td>
|
---|
56 | </tr>
|
---|
57 | </thead>
|
---|
58 | <tbody>
|
---|
59 | @for (var i = 0; i < run.Results.Count; i++) {
|
---|
60 | var result = run.Results[i];
|
---|
61 | <tr>
|
---|
62 | <td>@Html.Label(result.Value.Name, result.Value.Name)</td>
|
---|
63 | @if (result.Value is HeuristicLab.Services.Optimization.ControllerService.Model.DecimalMatrix) {
|
---|
64 | var matrix = (result.Value as HeuristicLab.Services.Optimization.ControllerService.Model.DecimalMatrix);
|
---|
65 | <td>
|
---|
66 | <div class="tabable">
|
---|
67 | <ul>
|
---|
68 | <li>
|
---|
69 | <a href="#matrix-tab-@j-@i">Table @result.Value.Name</a>
|
---|
70 | </li>
|
---|
71 | <li>
|
---|
72 | <a href="#matrix-graph-@j-@i-render">Chart @result.Value.Name</a>
|
---|
73 | <!--a href="@Url.Content("~/Chart/GenerateChart?index=" + j + "¶meterName=" + result.Value.Name + "&chartType=Line")">Chart @result.Value.Name</a-->
|
---|
74 | <!--img alt="Chart" src="@Url.Content("~/Chart/GenerateChart?index=" + j + "¶meterName=" + result.Value.Name)" /-->
|
---|
75 | </li>
|
---|
76 | </ul>
|
---|
77 | <div id="matrix-tab-@j-@i" class="scroll">
|
---|
78 | @Html.DisplayFor(model => matrix)
|
---|
79 | </div>
|
---|
80 | <div class="resizable ui-widget-content" id="matrix-graph-@j-@i-render" style="width: 800px; height: 600px;">
|
---|
81 | <div class="matrix-graph" id="matrix-graph-@j-@i" style="width:96%; height:96%;" ></div>
|
---|
82 | </div>
|
---|
83 | </div>
|
---|
84 | </td>
|
---|
85 | }
|
---|
86 | else {
|
---|
87 | <td>
|
---|
88 | @Html.DisplayFor(m => result.Value)
|
---|
89 | </td>
|
---|
90 | <!-- Html.Partial(string.Format("~/Views/Shared/DisplayTemplates/{0}.cshtml", result.Value.GetType().Name), result.Value) -->
|
---|
91 | <!--td>((result.Value as HeuristicLab.Services.Optimization.ControllerService.Model.StringValue).Value)</td-->
|
---|
92 | }
|
---|
93 | </tr>
|
---|
94 | }
|
---|
95 | </tbody>
|
---|
96 | </table>
|
---|
97 | </div>
|
---|
98 | }
|
---|
99 | </div> |
---|