115 lines
4.4 KiB
Plaintext
115 lines
4.4 KiB
Plaintext
@page
|
|
@using APCViewer.Pages
|
|
@model IPDSFPage
|
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
|
|
|
@{
|
|
string viewLink;
|
|
string downloadLink;
|
|
}
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<title>IPDSF</title>
|
|
<link href="~/css/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
|
<link href="~/css/app.css" rel="stylesheet" />
|
|
</head>
|
|
|
|
<body>
|
|
<div class="main">
|
|
<h3>@(Model.Files) File(s)</h3>
|
|
<p>
|
|
<table id="records" border="1">
|
|
<tr>
|
|
<th><a href="#b" id="a">Technology - Environment</a></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 Model.Sorted)
|
|
{
|
|
if (!string.IsNullOrEmpty(Model.Directory) && item.Item2.ReportFullPath.Contains(Model.Directory))
|
|
{
|
|
viewLink = string.Concat("/", nameof(PDSFPage.OnGetViewCustom), "/?iipdsf_file=",
|
|
Html.Encode(item.Item2.ReportFullPath));
|
|
downloadLink = string.Concat("/", nameof(PDSFPage.OnGetDownloadFileCustom), "/?ipdsf_file=",
|
|
Html.Encode(item.Item2.ReportFullPath));
|
|
}
|
|
else
|
|
{
|
|
viewLink = string.Concat("/", nameof(PDSFPage.OnGetView), "/sequence_",
|
|
item.Item2.Sequence);
|
|
downloadLink = string.Concat("/", nameof(PDSFPage.OnGetDownloadFile), "/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(Model.Directory))
|
|
{
|
|
<hr />
|
|
<table id="records" border="1">
|
|
<tr>
|
|
<th><a href="#a" id="b">Technology - Environment</a></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 Model.Grouped)
|
|
{
|
|
foreach (var innerElement in element.Value)
|
|
{
|
|
foreach (var item in innerElement.Value)
|
|
{
|
|
viewLink = string.Concat("/", nameof(PDSFPage.OnGetView), "/sequence_", item.Sequence);
|
|
downloadLink = string.Concat("/", nameof(PDSFPage.OnGetDownloadFile), "/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>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|
|
@section scripts {
|
|
<script>
|
|
$(function () {
|
|
console.log("ready!");
|
|
});
|
|
</script>
|
|
}
|