< Summary

Information
Class: AspNetCoreGeneratedDocument.Views_PlanningReport_WeeklyPartChangesReport
Assembly: ReportingServices.UI
File(s): C:\Users\wathen\source\repos\ReportingServices\ReportingServices.UI\Views\PlanningReport\WeeklyPartChangesReport.cshtml
Line coverage
0%
Covered lines: 0
Uncovered lines: 35
Coverable lines: 35
Total lines: 80
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 18
Branch coverage: 0%
Method coverage

Method coverage is only available for sponsors.

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
ExecuteAsync()0%180%

File(s)

C:\Users\wathen\source\repos\ReportingServices\ReportingServices.UI\Views\PlanningReport\WeeklyPartChangesReport.cshtml

#LineLine coverage
 1@model WeeklyPartChanges
 2
 3@{
 04    ViewData["Title"] = "Weekly Part Changes | Mesa Reporting Services";
 5}
 6
 7<div aria-label="breadcrumb">
 8    <ol class="breadcrumb">
 9        <li class="breadcrumb-item"><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
 10        <li class="breadcrumb-item"><a asp-area="" asp-controller="PlanningReport" asp-action="Index">Planning Reports</
 11        <li class="breadcrumb-item active" aria-current="page">Weekly Part Changes Report</li>
 12    </ol>
 13</div>
 14<br />
 15
 16<h1 class="text-center">Weekly Part Changes</h1>
 17
 18<div>
 19    <div class="row">
 20        <div class="col-6">
 021            <p>Number of Part Changes: @Model.TotalPartChanges</p>
 22        </div>
 23        <div class="col-6">
 024            <p class="text-end">@Model.StartDate - @Model.EndDate</p>
 25        </div>
 26    </div>
 27    <div>
 28        <table class="table">
 29            <thead>
 30                <tr>
 31                    <th scope="col">Reactor</th>
 32                    <th scope="col">PSN</th>
 33                    <th scope="col">WO_COUNT</th>
 34                </tr>
 35            </thead>
 36            <tbody>
 037                @for (int i = 0; i < Model.ReactorPSNWORuns.Count; i++)
 038                {
 039                    int count = 1;
 040                    bool doesMatch = false;
 41
 042                    if (i + count < Model.ReactorPSNWORuns.Count)
 043                        doesMatch = Model.ReactorPSNWORuns[i].REACTOR == Model.ReactorPSNWORuns[i + count].REACTOR;
 44
 045                    while (doesMatch)
 046                    {
 047                        count++;
 048                        if (i + count < Model.ReactorPSNWORuns.Count)
 049                            doesMatch = Model.ReactorPSNWORuns[i].REACTOR == Model.ReactorPSNWORuns[i + count].REACTOR;
 50                        else
 051                            doesMatch = false;
 052                    }
 53
 054                    for (int j = 0; j < count; j++)
 055                    {
 056                        string tableColor = "";
 57
 058                        if (count > 1)
 059                            tableColor = "table-info";
 60
 061                        <tr class="align-middle @tableColor">
 062                            @if (j == 0)
 063                            {
 064                                <td rowspan="@(count)">@Model.ReactorPSNWORuns[i].REACTOR</td>
 065                                <td>@Model.ReactorPSNWORuns[i].PSN</td>
 066                                <td>@Model.ReactorPSNWORuns[i].WO_COUNT</td>
 067                            }
 68                            else
 069                            {
 070                                <td>@Model.ReactorPSNWORuns[i + j].PSN</td>
 071                                <td>@Model.ReactorPSNWORuns[i + j].WO_COUNT</td>
 072                            }
 73                        </tr>
 074                    }
 075                    i = i + (count - 1);
 076                }
 77            </tbody>
 78        </table>
 79    </div>
 80</div>

Methods/Properties

ExecuteAsync()