Match TFS Changeset 303361

This commit is contained in:
2022-02-01 19:49:09 -07:00
parent 6b4180dd68
commit a6abe8fdbd
115 changed files with 8097 additions and 13 deletions

View File

@ -0,0 +1,47 @@
@using APCViewer.Controllers
@{
ViewBag.Title = "Background";
int i = 0;
string homeController = nameof(HomeController).Replace("Controller", string.Empty);
}
<div class="jumbotron">
<h1>APC - @(ViewBag.IsPrimaryInstance) - @(ViewBag.Profile) - @(ViewBag.URLs) - 013</h1>
<p class="lead">@(ViewBag.WorkingDirectory)</p>
<p class="lead">@(ViewBag.Message)</p>
<h1>@(ViewBag.ExceptionsCount)</h1>
</div>
<div>
<ul>
<li><a asp-area="" asp-controller="@(homeController)" asp-action="@(nameof(HomeController.Background))">Background Message</a></li>
<li><a asp-area="" asp-controller="@(homeController)" asp-action="@(nameof(HomeController.Background))" asp-route-message_clear="true">Background Message Clear</a></li>
<li><a asp-area="" asp-controller="@(homeController)" asp-action="@(nameof(HomeController.Background))" asp-route-exceptions_clear="true">Background Exceptions Clear</a></li>
<li><a asp-area="" asp-controller="@(homeController)" asp-action="@(nameof(HomeController.Background))" asp-route-set_is_primary_instance="true">Background Set Is Primary Instance</a></li>
<li><a asp-area="" asp-controller="@(homeController)" asp-action="@(nameof(HomeController.Background))" asp-route-set_is_primary_instance="false">Background Clear Primary Instance</a></li>
<li><a asp-area="" asp-controller="@(homeController)" asp-action="@(nameof(HomeController.Background))" asp-route-logistics_clear="true">Background Logistics Clear</a></li>
</ul>
</div>
<p>&nbsp;</p>
<hr />
<div>
<form action="">
@foreach (Exception exception in ViewBag.Exceptions)
{
<p>
@Html.Raw(string.Concat("<textarea name=\"message_", i, "\" rows='1' cols='400'>", exception.Message, "</textarea>"));
</p>
<p>
@Html.Raw(string.Concat("<textarea name=\"stackTrace_", i, "\" rows='4' cols='400'>", exception.StackTrace, "</textarea>"));
</p>
<hr />
@(i += 1);
}
</form>
</div>
@section scripts {
<script>
$(function () {
console.log("ready!");
});
</script>
}

View File

@ -0,0 +1,69 @@
@{
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>
}

View File

@ -0,0 +1,91 @@
@{
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>
}

View File

@ -0,0 +1,12 @@
@{
ViewData["Title"] = "Home Page";
}
<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>
<div>
<component render-mode="ServerPrerendered" type="typeof(APCViewer.Blazor.Counter)" />
</div>

View File

@ -0,0 +1,91 @@
@{
string viewLink;
string downloadLink;
ViewBag.Title = "PDSF";
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><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 _Tuples)
{
if (!string.IsNullOrEmpty(_Directory) && item.Item2.ReportFullPath.Contains(_Directory))
{
viewLink = string.Concat("~/Home/ViewCustomPDSF/?pdsf_file=", Html.Encode(item.Item2.ReportFullPath));
downloadLink = string.Concat("~/Home/DownloadCustomPDSF/?pdsf_file=", Html.Encode(item.Item2.ReportFullPath));
}
else
{
viewLink = string.Concat("~/Home/ViewPDSF/sequence_", item.Item2.Sequence);
downloadLink = string.Concat("~/Home/DownloadPDSF/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><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 _KeyValuePairs)
{
foreach (var innerElement in element.Value)
{
foreach (var item in innerElement.Value)
{
viewLink = string.Concat("~/Home/ViewPDSF/sequence_", item.Sequence);
downloadLink = string.Concat("~/Home/DownloadPDSF/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>
}

View File

@ -0,0 +1,6 @@
@{
ViewData["Title"] = "Privacy Policy";
}
<h1>@ViewData["Title"]</h1>
<p>Use this page to detail your site's privacy policy.</p>

View File

@ -0,0 +1,37 @@
@{
ViewBag.Title = "TimePivot";
List<string[]> forIPDSF = ViewBag.forIPDSF;
List<string[]> forPDSF = ViewBag.forPDSF;
}
<h3>*.ipdsf</h3>
<table id="forIPDSF" border="1">
@foreach (var segments in forIPDSF)
{
<tr>
@for (int i = 0; i < segments.Length; i++)
{
<td>@(segments[i])</td>
}
</tr>
}
</table>
<hr />
<h3>*.pdsf</h3>
<table id="forPDSF" border="1">
@foreach (var segments in forPDSF)
{
<tr>
@for (int i = 0; i < segments.Length; i++)
{
<td>@(segments[i])</td>
}
</tr>
}
</table>
@section scripts {
<script>
$(function () {
console.log("ready!");
});
</script>
}

View File

@ -0,0 +1,25 @@
@model ErrorViewModel
@{
ViewData["Title"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
@if (Model.ShowRequestId)
{
<p>
<strong>Request ID:</strong> <code>@Model.RequestId</code>
</p>
}
<h3>Development Mode</h3>
<p>
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
</p>
<p>
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
It can result in displaying sensitive information from exceptions to end users.
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
and restarting the app.
</p>

View File

@ -0,0 +1,92 @@
@using APCViewer.Controllers
@{
string pdsf = nameof(HomeController.PDSF);
string index = nameof(HomeController.Index);
string ipdsf = nameof(HomeController.IPDSF);
string privacy = nameof(HomeController.Privacy);
string timePivot = nameof(HomeController.TimePivot);
string background = nameof(HomeController.Background);
string homeController = nameof(HomeController).Replace("Controller", string.Empty);
string schemeHostURL = string.Concat(Context.Request.Scheme, "://", Context.Request.Host);
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@await RenderSectionAsync("Meta", required: false)
<title>@ViewData["Title"] - APCViewer</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<environment exclude="Staging,Development">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="@(schemeHostURL)/Common%20Shared%20Repository/HTML5Shiv/3.7.2/html5shiv.js"></script>
<script src="@(schemeHostURL)/Common%20Shared%20Repository/Respond/1.4.2/respond.js"></script>
<![endif]-->
</environment>
<link href="~/css/bundles/css.css" rel="stylesheet" />
<base href="~/" />
@await RenderSectionAsync("Style", required: false)
<script src="~/js/bundles/modernizr.js"></script>
</head>
<body>
<header>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" asp-area="" asp-controller="@(homeController)" asp-action="@(index)">APC Viewer</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="@(homeController)" asp-action="@(background)">Background</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="@(homeController)" asp-action="@(timePivot)" asp-route-is_gaN="true">GaN Time Pivot *.pdsf Files</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="@(homeController)" asp-action="@(ipdsf)" asp-route-is_gaN="true">Newest GaN *.ipdsf Files</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="@(homeController)" asp-action="@(pdsf)" asp-route-is_gaN="true">Newest GaN *.pdsf Files</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="@(homeController)" asp-action="@(timePivot)" asp-route-is_si="true">Si Time Pivot *.pdsf Files</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="@(homeController)" asp-action="@(ipdsf)" asp-route-is_si="true">Newest Si *.ipdsf Files</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="@(homeController)" asp-action="@(pdsf)" asp-route-is_si="true">Newest Si *.pdsf Files</a>
</li>
</ul>
</div>
</div>
</div>
</header>
<div class="container body-content">
@RenderBody()
</div>
<footer class="border-top footer text-muted">
<div class="container">
&copy; 2021 - APCViewer - <a asp-area="" asp-controller="@(homeController)" asp-action="@(privacy)">Privacy</a>
</div>
</footer>
<script src="~/js/bundles/jquery.js"></script>
<script src="~/js/bundles/bootstrap.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
<!--script src="_framework/blazor.server.js" asp-append-version="true"></script-->
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>

View File

@ -0,0 +1,2 @@
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>

View File

@ -0,0 +1,3 @@
@using APCViewer
@using APCViewer.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -0,0 +1,3 @@
@{
Layout = "_Layout";
}