Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/16 16:38:21 (9 years ago)
Author:
jlodewyc
Message:

#2582 Parameterizing arrays start

Location:
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFile.cshtml

    r13827 r13834  
    219219               
    220220            }
    221             <li><a href="#finish"><i class="fa fa-flag-checkered"></i> Job info and upload</a></li>
     221            <li><a href="#finish"><i class="fa fa-flag-checkered"></i> Add to Hive or save to file</a></li>
    222222        </ul>
    223223    </nav>
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/DataPartials/DataMaster.cshtml

    r13827 r13834  
    44<tr>
    55    <td>@Model.Data.Name</td>
    6     @if (Model.Data.ActualValue is BoolValue)
    7     {
    8         @Html.Partial("OpenFilePartials/DataPartials/Bool", Model);
    9     }
    10     else if (Model.Data.ActualValue is StringValue) {
    11         @Html.Partial("OpenFilePartials/DataPartials/String", Model);
    12     }
    13     else if (Model.Data.ActualValue is IntValue)
    14     {
    15         @Html.Partial("OpenFilePartials/DataPartials/Int", Model);
    16     }
    17     else if (Model.Data.ActualValue is PercentValue)
    18     {
    19         @Html.Partial("OpenFilePartials/DataPartials/Percent", Model);
    20     }
    21     else if(Model.Data.ActualValue is DoubleValue)
    22     {
    23         @Html.Partial("OpenFilePartials/DataPartials/Double", Model);
    24     }
    25     else if (Model.Data.ActualValue is IItem)
    26     {
    27         @Html.Partial("OpenFilePartials/DataPartials/Others", Model);
     6    @{
     7        try
     8        {
     9            Model.Data.ActualValue = Model.Data.ActualValue;
     10            @if (Model.Data.ActualValue is BoolValue)
     11            {
     12                @Html.Partial("OpenFilePartials/DataPartials/Bool", Model);
     13            }
     14            else if (Model.Data.ActualValue is StringValue)
     15            {
     16                @Html.Partial("OpenFilePartials/DataPartials/String", Model);
     17            }
     18            else if (Model.Data.ActualValue is IntValue)
     19            {
     20                @Html.Partial("OpenFilePartials/DataPartials/Int", Model);
     21            }
     22            else if (Model.Data.ActualValue is PercentValue)
     23            {
     24                @Html.Partial("OpenFilePartials/DataPartials/Percent", Model);
     25            }
     26            else if (Model.Data.ActualValue is DoubleValue)
     27            {
     28                @Html.Partial("OpenFilePartials/DataPartials/Double", Model);
     29            }
     30            else if (Model.Data.ActualValue is IntArray)
     31            {
     32                @Html.Partial("OpenFilePartials/DataPartials/IntArray", Model);
     33            }
     34            else if (Model.Data.ActualValue is DoubleArray)
     35            {
     36                @Html.Partial("OpenFilePartials/DataPartials/DoubleArray", Model);
     37            }
     38            else if (Model.Data.ActualValue is DoubleMatrix)
     39            {
     40                @Html.Partial("OpenFilePartials/DataPartials/DoubleMatrix", Model);
     41            }
     42            else if (Model.Data.ActualValue is IItem)
     43            {
     44                @Html.Partial("OpenFilePartials/DataPartials/Others", Model);
     45                }
     46        }
     47        catch(NotSupportedException e)
     48        {
     49            @Html.Partial("OpenFilePartials/DataPartials/Others", Model)
     50
     51        }
    2852    }
    2953</tr>
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/DataPartials/Double.cshtml

    r13827 r13834  
    44
    55<td>
    6     <input type="number"
     6    <input style="width:50%;"
     7           type="number"
    78           value="@Model.Data.ActualValue"
    89           onchange="paraEdit(@Model.Position,'@Model.Problem.ToString()',
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/DataPartials/Int.cshtml

    r13827 r13834  
    44
    55<td>
    6     <input type="number"
     6    <input style="width:50%;"
     7            type="number"
    78           value="@Model.Data.ActualValue"
    89           onchange="paraEdit(@Model.Position,'@Model.Problem.ToString()',
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/DataPartials/Percent.cshtml

    r13827 r13834  
    77           min="0"
    88           max="100"
     9           style="width:50%;"
    910           value="@(int.Parse(new String(Model.Data.ActualValue.ToString().Where(Char.IsDigit).ToArray())))"
    1011           onchange="paraEdit(@Model.Position,'@Model.Problem.ToString()',
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/DataPartials/String.cshtml

    r13827 r13834  
    55<td>
    66    <input type="text"
     7           style="width:100%;"
    78           value="@Model.Data.ActualValue"
    89           onchange="paraEdit(@Model.Position,'@Model.Problem.ToString()',
Note: See TracChangeset for help on using the changeset viewer.