91 lines
3.5 KiB
Plaintext
91 lines
3.5 KiB
Plaintext
@{
|
|
string viewLink;
|
|
string downloadLink;
|
|
ViewBag.Title = "IPDSF";
|
|
string _Directory = ViewBag.Directory;
|
|
List<Tuple<string[], Shared.Logistics>> _Tuples = ViewBag.Sorted;
|
|
Dictionary<string, Dictionary<string, List<Shared.Logistics>>> _KeyValuePairs = ViewBag.Grouped;
|
|
}
|
|
<h3>@(ViewBag.Files) File(s)</h3>
|
|
|
|
<p>
|
|
<table id="records" border="1">
|
|
<tr>
|
|
<th>Technology - Environment</th>
|
|
<th>Equipment Type</th>
|
|
<th>Sequence</th>
|
|
<th>Reactor</th>
|
|
<th>RDS</th>
|
|
<th>Part Number</th>
|
|
<th>File Name</th>
|
|
<th>Date</th>
|
|
</tr>
|
|
@foreach (var item in _Tuples)
|
|
{
|
|
if (!string.IsNullOrEmpty(_Directory) && item.Item2.ReportFullPath.Contains(_Directory))
|
|
{
|
|
viewLink = string.Concat("~/Home/ViewCustomIPDSF/?ipdsf_file=", Html.Encode(item.Item2.ReportFullPath));
|
|
downloadLink = string.Concat("~/Home/DownloadCustomIPDSF/?ipdsf_file=", Html.Encode(item.Item2.ReportFullPath));
|
|
}
|
|
else
|
|
{
|
|
viewLink = string.Concat("~/Home/ViewIPDSF/sequence_", item.Item2.Sequence);
|
|
downloadLink = string.Concat("~/Home/DownloadIPDSF/sequence_", item.Item2.Sequence);
|
|
}
|
|
<tr>
|
|
<td>@item.Item1[0]</td>
|
|
<td>@item.Item1[1]</td>
|
|
<td><a href="@Url.Content(viewLink)">@item.Item2.Sequence</a></td>
|
|
<td>@item.Item2.ProcessJobID</td>
|
|
<td>@item.Item2.MID</td>
|
|
<td>@item.Item2.Logistics2[0].PartNumber</td>
|
|
<td>@System.IO.Path.GetFileNameWithoutExtension(item.Item2.ReportFullPath)</td>
|
|
<td><a href="@Url.Content(downloadLink)">@item.Item2.DateTimeFromSequence</a></td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
@if (string.IsNullOrEmpty(_Directory))
|
|
{
|
|
<hr />
|
|
<table id="records" border="1">
|
|
<tr>
|
|
<th>Technology - Environment</th>
|
|
<th>Equipment Type</th>
|
|
<th>Sequence</th>
|
|
<th>Reactor</th>
|
|
<th>RDS</th>
|
|
<th>Part Number</th>
|
|
<th>File Name</th>
|
|
<th>Date</th>
|
|
</tr>
|
|
@foreach (var element in _KeyValuePairs)
|
|
{
|
|
foreach (var innerElement in element.Value)
|
|
{
|
|
foreach (var item in innerElement.Value)
|
|
{
|
|
viewLink = string.Concat("~/Home/ViewIPDSF/sequence_", item.Sequence);
|
|
downloadLink = string.Concat("~/Home/DownloadIPDSF/sequence_", item.Sequence);
|
|
<tr>
|
|
<td>@element.Key</td>
|
|
<td>@innerElement.Key</td>
|
|
<td><a href="@Url.Content(viewLink)">@item.Sequence</a></td>
|
|
<td>@item.ProcessJobID</td>
|
|
<td>@item.MID</td>
|
|
<td>@item.Logistics2[0].PartNumber</td>
|
|
<td>@System.IO.Path.GetFileNameWithoutExtension(item.ReportFullPath)</td>
|
|
<td><a href="@Url.Content(downloadLink)">@item.DateTimeFromSequence</a></td>
|
|
</tr>
|
|
}
|
|
}
|
|
}
|
|
</table>
|
|
}
|
|
</p>
|
|
@section scripts {
|
|
<script>
|
|
$(function () {
|
|
console.log("ready!");
|
|
});
|
|
</script>
|
|
} |