1 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
|
---|
2 | @{System.Random randomizer = new Random();
|
---|
3 | int randy = randomizer.Next(50000); }
|
---|
4 |
|
---|
5 | <!-- Partial for displaying a Bach run file -->
|
---|
6 |
|
---|
7 | <div style="margin-left:20px;margin-right:20px">
|
---|
8 | <div class="row" style="text-align:center">
|
---|
9 | @Model.message
|
---|
10 | </div>
|
---|
11 | <div class="row"
|
---|
12 | style="text-align:center">
|
---|
13 | <h1>
|
---|
14 | <span class="label label-warning "
|
---|
15 | style="text-shadow:2px 2px black;">
|
---|
16 | Batch: <span id="nameCarrier@(randy)">@Model.SelectedBatchRun.Name</span>
|
---|
17 | </span>
|
---|
18 |
|
---|
19 | </h1>
|
---|
20 | <input type="text"
|
---|
21 | class="form-control"
|
---|
22 | style="width:50%;display:initial; background-color:transparent;text-align:center"
|
---|
23 | onchange="changeName([],this.value,@randy)"
|
---|
24 | value="@Model.SelectedTask.ItemTask.Name" />
|
---|
25 | </div>
|
---|
26 | <h4 id="tasks">
|
---|
27 | Repeats:
|
---|
28 | <input type="number"
|
---|
29 | class="form-control"
|
---|
30 | style="width:80px;display:initial"
|
---|
31 | min="1"
|
---|
32 | value="@Model.SelectedBatchRun.Repetitions"
|
---|
33 | onchange="changeRepit([],this.value,@randy)" />
|
---|
34 | x
|
---|
35 |
|
---|
36 | </h4>
|
---|
37 | <p class="text-center">
|
---|
38 | Distribute child tasks
|
---|
39 | <input type="checkbox"
|
---|
40 | checked
|
---|
41 | data-toggle="toggle"
|
---|
42 | data-onstyle="warning"
|
---|
43 | onchange="toggleChild([], @randy)" />
|
---|
44 |
|
---|
45 | </p>
|
---|
46 | <div id="childs@(randy)">
|
---|
47 |
|
---|
48 | @if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.IAlgorithm)
|
---|
49 | {
|
---|
50 | @Html.Partial("OpenFilePartials/_AlgorithmSmall",
|
---|
51 | new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
|
---|
52 | ((HeuristicLab.Optimization.IAlgorithm)Model.SelectedBatchRun.Optimizer),
|
---|
53 | new List<int[]>(),
|
---|
54 | new int[] { 0, 0 },
|
---|
55 | randomizer));
|
---|
56 |
|
---|
57 | }
|
---|
58 | else if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.BatchRun)
|
---|
59 | {
|
---|
60 | @Html.Partial("OpenFilePartials/_BatchRunSmall",
|
---|
61 | new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
|
---|
62 | ((HeuristicLab.Optimization.BatchRun)Model.SelectedBatchRun.Optimizer),
|
---|
63 | new List<int[]>(),
|
---|
64 | new int[] { 0, 0 },
|
---|
65 | randomizer));
|
---|
66 |
|
---|
67 | }
|
---|
68 | else if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.Experiment)
|
---|
69 | {
|
---|
70 | @Html.Partial("OpenFilePartials/_ExperimentSmall",
|
---|
71 | new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
|
---|
72 | ((HeuristicLab.Optimization.Experiment)Model.SelectedBatchRun.Optimizer),
|
---|
73 | new List<int[]>(),
|
---|
74 | new int[] { 0, 0 },
|
---|
75 | randomizer));
|
---|
76 |
|
---|
77 | }
|
---|
78 |
|
---|
79 | </div>
|
---|
80 | </div>
|
---|