Skip to content
Snippets Groups Projects
ConfiguratorResult.cshtml 2.23 KiB
@model Helios.Models.ConfiguratorResult

@{
    ViewData["Title"] = "Configuration Results";
}

@foreach (var roofResult in Model.RoofResults)
{
    <div class="input-border">
    <h5>Results for roof:</h5>

    <ul>
        <li>
            Area: @roofResult.RoofArea
        </li>
        <li>
            Angle: @roofResult.RoofAngle
        </li>
    </ul>

    <table class="table">
        <tr>
            <th>
                @Html.DisplayNameFor(panelResult => panelResult.RoofResults[0].Panels[0].PanelEfficiency)
            </th>
            <th>
                @Html.DisplayNameFor(panelResult => panelResult.RoofResults[0].Panels[0].InstallationCost)
            </th>
            <th>
                @Html.DisplayNameFor(panelResult => panelResult.RoofResults[0].Panels[0].PowerGeneratedSummer)
            </th>
            <th>
                @Html.DisplayNameFor(panelResult => panelResult.RoofResults[0].Panels[0].PowerGeneratedWinter)
            </th>
            <th>
                @Html.DisplayNameFor(panelResult => panelResult.RoofResults[0].Panels[0].GeneratesRequiredPower)
            </th>
            <th>
                @Html.DisplayNameFor(panelResult => panelResult.RoofResults[0].Panels[0].ExceedsMaximumPower)
            </th>
            <th>
                @Html.DisplayNameFor(panelResult => panelResult.RoofResults[0].Panels[0].WithinBudget)
            </th>
        </tr>

        @foreach (var panel in roofResult.Panels)
            {
                <tr>
                    <td>
                        @panel.PanelEfficiency
                    </td>
                    <td>
                        @panel.InstallationCost
                    </td>
                    <td>
                        @panel.PowerGeneratedSummer
                    </td>
                    <td>
                        @panel.PowerGeneratedWinter
                    </td>
                    <td>
                        @panel.GeneratesRequiredPower
                    </td>
                    <td>
                        @panel.ExceedsMaximumPower
                    </td>
                    <td>
                        @panel.WithinBudget
                    </td>
                </tr>
            }

        </table>
    </div>
}