Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/DataPartials/DataMaster.cshtml

Last change on this file was 13841, checked in by jlodewyc, 9 years ago

#2582 More parameter datatypes, splitting fileopening service, approving users, reopen last file, change name tasks and repetitions

File size: 3.2 KB
Line 
1@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.Jobs.DataPackageVM
2@using HeuristicLab.Data;
3@using HeuristicLab.Core;
4<tr>
5    <td>@Model.Data.Name</td>
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 BoolArray)
15            {
16                @Html.Partial("OpenFilePartials/DataPartials/BoolArray", Model);
17            }
18            else if (Model.Data.ActualValue is BoolMatrix)
19            {
20                @Html.Partial("OpenFilePartials/DataPartials/BoolMatrix", Model);
21            }
22            else if (Model.Data.ActualValue is StringValue)
23            {
24                @Html.Partial("OpenFilePartials/DataPartials/String", Model);
25            }
26            else if (Model.Data.ActualValue is StringArray)
27            {
28                @Html.Partial("OpenFilePartials/DataPartials/StringArray", Model);
29            }
30            else if (Model.Data.ActualValue is StringMatrix)
31            {
32                @Html.Partial("OpenFilePartials/DataPartials/StringMatrix", Model);
33            }
34            else if (Model.Data.ActualValue is IntValue)
35            {
36                @Html.Partial("OpenFilePartials/DataPartials/Int", Model);
37            }
38            else if (Model.Data.ActualValue is IntArray && !(Model.Data.ActualValue is HeuristicLab.Encodings.PermutationEncoding.Permutation))
39            {
40                @Html.Partial("OpenFilePartials/DataPartials/IntArray", Model);
41            }
42            else if (Model.Data.ActualValue is IntMatrix)
43            {
44                @Html.Partial("OpenFilePartials/DataPartials/IntMatrix", Model);
45            }
46            else if (Model.Data.ActualValue is PercentValue)
47            {
48                @Html.Partial("OpenFilePartials/DataPartials/Percent", Model);
49            }
50            else if (Model.Data.ActualValue is PercentArray)
51            {
52                @Html.Partial("OpenFilePartials/DataPartials/PercentArray", Model);
53            }
54            else if (Model.Data.ActualValue is PercentMatrix)
55            {
56                @Html.Partial("OpenFilePartials/DataPartials/PercentMatrix", Model);
57            }
58            else if (Model.Data.ActualValue is DoubleValue)
59            {
60                @Html.Partial("OpenFilePartials/DataPartials/Double", Model);
61            }
62            else if (Model.Data.ActualValue is DoubleArray)
63            {
64                @Html.Partial("OpenFilePartials/DataPartials/DoubleArray", Model);
65            }
66            else if (Model.Data.ActualValue is DoubleMatrix)
67            {
68                @Html.Partial("OpenFilePartials/DataPartials/DoubleMatrix", Model);
69            }
70            else if (Model.Data.ActualValue is IItem)
71            {
72                @Html.Partial("OpenFilePartials/DataPartials/OthersClean", Model);//just Others to print the datatype too
73                }
74        }
75        catch(NotSupportedException e)
76        {
77            @Html.Partial("OpenFilePartials/DataPartials/OthersClean", Model)
78
79        }
80    }
81</tr>
Note: See TracBrowser for help on using the repository browser.