Simplified Manual Report Entry
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user