@using ReportingServices.Models.PlanningReport @using ReportingServices.HelperClasses @model List @{ ViewData["Title"] = "Weekly Part Changes | Mesa Reporting Services"; }

Weekly Part Changes

Number of Part Changes: @ViewBag.NumberOfPartChanges

@ViewBag.StartDate - @ViewBag.EndDate

@for (int i = 0; i < Model.Count; i++) { int count = 1; bool doesMatch = false; if (i + count < Model.Count) doesMatch = Model[i].REACTOR == Model[i + count].REACTOR; while (doesMatch) { count++; if (i + count < Model.Count) doesMatch = Model[i].REACTOR == Model[i + count].REACTOR; else doesMatch = false; } for (int j = 0; j < count; j++) { string tableColor = ""; if (count > 1) tableColor = "table-info"; @if (j == 0) { } else { } } i = i + (count - 1); }
Reactor PSN WO_COUNT
@Model[i].REACTOR @Model[i].PSN @Model[i].WO_COUNT@Model[i + j].PSN @Model[i + j].WO_COUNT