Simplified Manual Report Entry

This commit is contained in:
Daniel Wathen
2023-01-04 16:34:31 -07:00
parent 83525d0149
commit 81f7e1a57b
9 changed files with 54 additions and 44 deletions

View File

@ -14,7 +14,7 @@
int numberOfDaysInWeek = Model.CurrentWeek.OutsByDay.Count;
ManualReportEntries rpt = Model.CurrentEntries[reportIndex];
ManualReportEntries rpt = Model.ManualReportEntries;
string myClass;
List<string> toolsDownGreaterThan12Hours = new();
@ -348,18 +348,16 @@
<td scope="row">ASMs SLL Tool Count</td>
@for (int i = 0; i < 7; i++)
{
int index = i == 6 ? 0 : i + 1;
if (@Model.CurrentEntries[index].ASMSingleLoadLock != 0)
if (i < Model.SLLTools.Count())
{
<td>@Model.CurrentEntries[index].ASMSingleLoadLock</td>
<td>@Model.SLLTools[i].ASM</td>
ASMSLL += @Model.SLLTools[i].ASM;
}
else
{
<td></td>
}
ASMSLL += @Model.CurrentEntries[index].ASMSingleLoadLock;
}
<td>@(ASMSLL / numberOfDaysInWeek)</td>
<td>0</td>
@ -370,16 +368,16 @@
{
int index = i == 6 ? 0 : i + 1;
if (@Model.CurrentEntries[index].HTRSingleLoadLock != 0)
if (i < Model.SLLTools.Count())
{
<td>@Model.CurrentEntries[index].HTRSingleLoadLock</td>
<td>@Model.SLLTools[i].HTR</td>
HTRSLL += @Model.SLLTools[i].HTR;
}
else
{
<td></td>
}
HTRSLL += @Model.CurrentEntries[index].HTRSingleLoadLock;
}
<td>@(HTRSLL / numberOfDaysInWeek)</td>
<td>0</td>