apc-viewer/APC Viewer/Views/Home/Directory.cshtml

69 lines
2.2 KiB
Plaintext

@{
ViewBag.Title = "PDSF";
Dictionary<string, Dictionary<string, List<Shared.Logistics>>> _KeyValuePairs = ViewBag.Grouped;
List<Tuple<string[], Shared.Logistics>> _Tuples = ViewBag.Sorted;
}
<h3>@(ViewBag.Files) File(s)</h3>
<p>
<table id="records" border="1">
<tr>
<th>Environment</th>
<th>Equipment Type</th>
<th>Sequence</th>
<th>Reactor</th>
<th>RDS</th>
<th>Part Number</th>
<th>Date</th>
</tr>
@foreach (var item in _Tuples)
{
<tr>
<td>@item.Item1[0]</td>
<td>@item.Item1[1]</td>
<td><a href="~/Home/ViewPDSF/sequence_@(item.Item2.Sequence)">@item.Item2.Sequence</a></td>
<td>@item.Item2.ProcessJobID</td>
<td>@item.Item2.MID</td>
<td>@item.Item2.Logistics2[0].PartNumber</td>
<td><a href="~/Home/DownloadPDSF/sequence_@(item.Item2.Sequence)">@item.Item2.DateTimeFromSequence</a></td>
</tr>
}
</table>
<hr />
<table id="records" border="1">
<tr>
<th>Environment</th>
<th>Equipment Type</th>
<th>Sequence</th>
<th>Reactor</th>
<th>RDS</th>
<th>Part Number</th>
<th>Date</th>
</tr>
@foreach (var element in _KeyValuePairs)
{
foreach (var innerElement in element.Value)
{
foreach (var item in innerElement.Value)
{
<tr>
<td>@element.Key</td>
<td>@innerElement.Key</td>
<td><a href="~/Home/ViewPDSF/sequence_@(item.Sequence)">@item.Sequence</a></td>
<td>@item.ProcessJobID</td>
<td>@item.MID</td>
<td>@item.Logistics2[0].PartNumber</td>
<td><a href="~/Home/DownloadPDSF/sequence_@(item.Sequence)">@item.DateTimeFromSequence</a></td>
</tr>
}
}
}
</table>
</p>
@section scripts {
<script>
$(function () {
console.log("ready!");
});
</script>
}