@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.Jobs.DataPackageVM
@using HeuristicLab.Data;
@using HeuristicLab.Core;
@Model.Data.Name |
@{
try
{
Model.Data.ActualValue = Model.Data.ActualValue;
@if (Model.Data.ActualValue is BoolValue)
{
@Html.Partial("OpenFilePartials/DataPartials/Bool", Model);
}
else if (Model.Data.ActualValue is BoolArray)
{
@Html.Partial("OpenFilePartials/DataPartials/BoolArray", Model);
}
else if (Model.Data.ActualValue is BoolMatrix)
{
@Html.Partial("OpenFilePartials/DataPartials/BoolMatrix", Model);
}
else if (Model.Data.ActualValue is StringValue)
{
@Html.Partial("OpenFilePartials/DataPartials/String", Model);
}
else if (Model.Data.ActualValue is StringArray)
{
@Html.Partial("OpenFilePartials/DataPartials/StringArray", Model);
}
else if (Model.Data.ActualValue is StringMatrix)
{
@Html.Partial("OpenFilePartials/DataPartials/StringMatrix", Model);
}
else if (Model.Data.ActualValue is IntValue)
{
@Html.Partial("OpenFilePartials/DataPartials/Int", Model);
}
else if (Model.Data.ActualValue is IntArray && !(Model.Data.ActualValue is HeuristicLab.Encodings.PermutationEncoding.Permutation))
{
@Html.Partial("OpenFilePartials/DataPartials/IntArray", Model);
}
else if (Model.Data.ActualValue is IntMatrix)
{
@Html.Partial("OpenFilePartials/DataPartials/IntMatrix", Model);
}
else if (Model.Data.ActualValue is PercentValue)
{
@Html.Partial("OpenFilePartials/DataPartials/Percent", Model);
}
else if (Model.Data.ActualValue is PercentArray)
{
@Html.Partial("OpenFilePartials/DataPartials/PercentArray", Model);
}
else if (Model.Data.ActualValue is PercentMatrix)
{
@Html.Partial("OpenFilePartials/DataPartials/PercentMatrix", Model);
}
else if (Model.Data.ActualValue is DoubleValue)
{
@Html.Partial("OpenFilePartials/DataPartials/Double", Model);
}
else if (Model.Data.ActualValue is DoubleArray)
{
@Html.Partial("OpenFilePartials/DataPartials/DoubleArray", Model);
}
else if (Model.Data.ActualValue is DoubleMatrix)
{
@Html.Partial("OpenFilePartials/DataPartials/DoubleMatrix", Model);
}
else if (Model.Data.ActualValue is IItem)
{
@Html.Partial("OpenFilePartials/DataPartials/OthersClean", Model);//just Others to print the datatype too
}
}
catch(NotSupportedException e)
{
@Html.Partial("OpenFilePartials/DataPartials/OthersClean", Model)
}
}