Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Shared/EditorTemplates/DecimalMatrix.cshtml @ 10207

Last change on this file since 10207 was 9166, checked in by fschoepp, 12 years ago

#1888:

  • Model: OptimizationScenario may be a tree of algorithms (and problems)
  • Model: Renamed InputParameters to ProblemParameters (as they are the parameters of a problem)
  • Model: Added JobExecutionDetails which contain Repetitions + Group (resource to use)
  • ScenarioParser parses the new XML scenario files
  • Website + Model: You are now able to add/remove rows from a table (no JavaScript involved yet)
  • Website + Controller: Added repetitions (enables batch jobs) and group (resource to use) to OaaS which will be used by the controller to schedule the job
  • Website: Updated templates to use new model structure
  • Website + Scenarios: Added the new algorithm Benchmark Algorithm
  • Controller: Added a singleton to make the (Azure/Mockup)-DAL exchangeable
  • Controller: Added mockup classes for DAL + IScenarioManager
  • Website/Result Page: Line Diagrams will be added via JavaScript, crawling their data using AJAX
  • Website: Most configuration parameters can be set in the ServiceDefinition directly
  • Added a mockup for the Membership classes: These can be used if no network connection is available or if other parts of the app shall be tested
  • Scenarios: Updated TSP mappings to new xsd
File size: 948 bytes
Line 
1@model HeuristicLab.Services.Optimization.ControllerService.Model.DecimalMatrix
2
3<table class="editableTable">
4  <thead>
5      <tr>
6      @for (int i = 0; i < Model.Value[0].Length; i++) {
7        <th>@Model.Name Column @i</th>
8      }
9      <th>Delete</th>
10      <th>Add</th>
11      </tr>
12  </thead>
13  <tbody>
14  @for (int i = 0; i < Model.Value.Length; i++) {
15  <tr id="@i">
16    @for (int j = 0; j < Model.Value[i].Length; j++) {                     
17    <td>
18      @Html.Raw(Html.TextBoxFor(model => Model.Value[i][j]).ToString().Replace("itm.Value.Value[" + i + "][" + j + "]", Model.Name + "_" + i + "_" + j))
19    </td>
20    }
21    <!-- TODO: Add unique identifier for algorithm / input parameters -->
22    <td>@Html.ActionLink("-", "DeleteRow", new { paramName = @Model.Name, id = @i }) </td>
23    <td>@Html.ActionLink("+", "AddRow", new { paramName = @Model.Name, id = @i }) </td>
24  </tr> 
25  }
26  </tbody>
27</table>
Note: See TracBrowser for help on using the repository browser.