Ready to test Steps
This commit is contained in:
parent
1e834360ae
commit
466057022d
@ -4,6 +4,7 @@ using OI.Metrology.Archive.Models;
|
||||
using OI.Metrology.Shared.Repositories;
|
||||
using OI.Metrology.Shared.ViewModels;
|
||||
using System;
|
||||
using IO = System.IO;
|
||||
|
||||
namespace OI.Metrology.Archive.Controllers;
|
||||
|
||||
@ -60,4 +61,44 @@ public class PagesController : Controller
|
||||
[HttpGet]
|
||||
[Route("/Crash")]
|
||||
public IActionResult Crash() => throw new Exception("Test unhandled exception");
|
||||
|
||||
[HttpGet]
|
||||
[Route("/Step1")]
|
||||
[Route("/Metrology/Step1")]
|
||||
public IActionResult Step1(string mod = "", string equipment = "", string layer = "", string zone = "", string rds = "", string initials = "")
|
||||
{
|
||||
string directory = "D:/Tmp/Metrology";
|
||||
if (!IO.Directory.Exists(directory))
|
||||
_ = IO.Directory.CreateDirectory(directory);
|
||||
string[] model = new string[] { mod, equipment, layer, zone, rds, initials };
|
||||
if (!string.IsNullOrEmpty(initials))
|
||||
IO.File.WriteAllLines(IO.Path.Combine(directory, $"{DateTime.Now.Ticks}.rsv"), model);
|
||||
return View(model);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("/Step2")]
|
||||
[Route("/Metrology/Step2")]
|
||||
public IActionResult Step2(string mod) => View(new string[] { mod });
|
||||
|
||||
[HttpGet]
|
||||
[Route("/Step3")]
|
||||
[Route("/Metrology/Step3")]
|
||||
public IActionResult Step3(string mod, string equipment) => View(new string[] { mod, equipment });
|
||||
|
||||
[HttpGet]
|
||||
[Route("/Step4")]
|
||||
[Route("/Metrology/Step4")]
|
||||
public IActionResult Step4(string mod, string equipment, string layer) => View(new string[] { mod, equipment, layer });
|
||||
|
||||
[HttpGet]
|
||||
[Route("/Step5")]
|
||||
[Route("/Metrology/Step5")]
|
||||
public IActionResult Step5(string mod, string equipment, string layer, string zone) => View(new string[] { mod, equipment, layer, zone });
|
||||
|
||||
[HttpGet]
|
||||
[Route("/Step6")]
|
||||
[Route("/Metrology/Step6")]
|
||||
public IActionResult Step6(string mod, string equipment, string layer, string zone, string rds) => View(new string[] { mod, equipment, layer, zone, rds });
|
||||
|
||||
}
|
96
Archive/Views/Pages/Step1.cshtml
Normal file
96
Archive/Views/Pages/Step1.cshtml
Normal file
@ -0,0 +1,96 @@
|
||||
@model string[]
|
||||
@{
|
||||
ViewData["Title"] = "Step 1";
|
||||
string side = Model[0] == "0" ? "Even" : "Odd";
|
||||
}
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div.container-fluid {
|
||||
height: 90%;
|
||||
}
|
||||
|
||||
#HeaderGrid,
|
||||
#FieldsGrid {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.FieldTitle {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
@if (!string.IsNullOrEmpty(Model[5]))
|
||||
{
|
||||
<h3>@(side) - @(Model[1])</h3><br />
|
||||
<h3>__-@(Model[4])-____.@(Model[2])-@(Model[3])</h3><br />
|
||||
<h3>@(Model[5])</h3><br />
|
||||
}
|
||||
<h4>Step 1</h4>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="Side">Side:</label>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Even" id="EvenButton" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Odd" id="OddButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-warning" type="button" value="Restart" id="RestartButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
function Submit(mod) {
|
||||
if (mod === 9) {
|
||||
window.location.href = '\Step1';
|
||||
}
|
||||
else {
|
||||
window.location.href = '\Step2?mod=' + mod;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#EvenButton").click(function () { Submit(0); });
|
||||
$("#OddButton").click(function () { Submit(1); });
|
||||
|
||||
$("#RestartButton").click(function () { Submit(9); });
|
||||
|
||||
});
|
||||
</script>
|
167
Archive/Views/Pages/Step2.cshtml
Normal file
167
Archive/Views/Pages/Step2.cshtml
Normal file
@ -0,0 +1,167 @@
|
||||
@model string[]
|
||||
@{
|
||||
ViewData["Title"] = "Step 2";
|
||||
}
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div.container-fluid {
|
||||
height: 90%;
|
||||
}
|
||||
|
||||
#HeaderGrid,
|
||||
#FieldsGrid {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.FieldTitle {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h4>Step 2</h4>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="Equipment">Equipment:</label>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Tencor 1" id="Tencor1Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Tencor 2" id="Tencor2Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Tencor 3" id="Tencor3Button" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="HgCV 1" id="HgCV1Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="HgCV 2" id="HgCV2Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="HgCV 3" id="HgCV3Button" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="BioRad 2" id="BioRad2Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="BioRad 3" id="BioRad3Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="BioRad 4" id="BioRad4Button" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="CDE 2" id="CDE2Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="CDE 4" id="CDE4Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="CDE 5" id="CDE5Button" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Restart" id="RestartButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
function Submit(equipment) {
|
||||
if (equipment === 'RestartButton') {
|
||||
window.location.href = '\Step1';
|
||||
}
|
||||
else {
|
||||
window.location.href = '\Step3?mod=@(Model[0])&equipment=' + equipment;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#Tencor1Button").click(function () { Submit('Tencor1'); });
|
||||
$("#Tencor2Button").click(function () { Submit('Tencor2'); });
|
||||
$("#Tencor3Button").click(function () { Submit('Tencor3'); });
|
||||
|
||||
$("#HgCV1Button").click(function () { Submit('HgCV1'); });
|
||||
$("#HgCV2Button").click(function () { Submit('HgCV2'); });
|
||||
$("#HgCV3Button").click(function () { Submit('HgCV3'); });
|
||||
|
||||
$("#BioRad2Button").click(function () { Submit('BioRad2'); });
|
||||
$("#BioRad3Button").click(function () { Submit('BioRad3'); });
|
||||
$("#BioRad4Button").click(function () { Submit('BioRad4'); });
|
||||
|
||||
$("#CDE2Button").click(function () { Submit('CDE2'); });
|
||||
$("#CDE4Button").click(function () { Submit('CDE4'); });
|
||||
$("#CDE5Button").click(function () { Submit('CDE5'); });
|
||||
|
||||
$("#RestartButton").click(function () { Submit('RestartButton'); });
|
||||
|
||||
});
|
||||
</script>
|
95
Archive/Views/Pages/Step3.cshtml
Normal file
95
Archive/Views/Pages/Step3.cshtml
Normal file
@ -0,0 +1,95 @@
|
||||
@model string[]
|
||||
@{
|
||||
ViewData["Title"] = "Step 3";
|
||||
}
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div.container-fluid {
|
||||
height: 90%;
|
||||
}
|
||||
|
||||
#HeaderGrid,
|
||||
#FieldsGrid {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.FieldTitle {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h4>Step 3</h4>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="Layer">Layer:</label>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Layer 1" id="Layer1Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Layer 2" id="Layer2Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Layer 3" id="Layer3Button" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-warning" type="button" value="Restart" id="RestartButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
function Submit(layer) {
|
||||
if (layer === 'RestartButton') {
|
||||
window.location.href = '\Step1';
|
||||
}
|
||||
else {
|
||||
window.location.href = '\Step4?mod=@(Model[0])&equipment=@(Model[1])&layer=' + layer;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#Layer1Button").click(function () { Submit('1'); });
|
||||
$("#Layer2Button").click(function () { Submit('2'); });
|
||||
$("#Layer3Button").click(function () { Submit('3'); });
|
||||
|
||||
$("#RestartButton").click(function () { Submit('RestartButton'); });
|
||||
|
||||
});
|
||||
</script>
|
115
Archive/Views/Pages/Step4.cshtml
Normal file
115
Archive/Views/Pages/Step4.cshtml
Normal file
@ -0,0 +1,115 @@
|
||||
@model string[]
|
||||
@{
|
||||
ViewData["Title"] = "Step 4";
|
||||
}
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div.container-fluid {
|
||||
height: 90%;
|
||||
}
|
||||
|
||||
#HeaderGrid,
|
||||
#FieldsGrid {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.FieldTitle {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h4>Step 4</h4>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="Zone">Zone:</label>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Zone 1" id="Zone1Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Zone 2" id="Zone2Button" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Zone 3" id="Zone3Button" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<label for="NoZone">No Zone - RDS:</label>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="txt txt-primary" type="input" value="" id="RDSInput" /><br />
|
||||
<input class="btn btn-warning" type="button" value="Next" id="RDSButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-warning" type="button" value="Restart" id="RestartButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
function Submit(zone) {
|
||||
if (zone === 9) {
|
||||
window.location.href = '\Step1';
|
||||
}
|
||||
else if (zone > 9) {
|
||||
var rds = $("#RDSInput").val();
|
||||
window.location.href = '\Step6?mod=@(Model[0])&equipment=@(Model[1])&layer=@(Model[2])&zone=0&rds=' + rds;
|
||||
}
|
||||
else {
|
||||
window.location.href = '\Step5?mod=@(Model[0])&equipment=@(Model[1])&layer=@(Model[2])&zone=' + zone;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#Zone1Button").click(function () { Submit(1); });
|
||||
$("#Zone2Button").click(function () { Submit(2); });
|
||||
$("#Zone3Button").click(function () { Submit(3); });
|
||||
|
||||
$("#RDSButton").click(function () { Submit(123456); });
|
||||
|
||||
$("#RestartButton").click(function () { Submit(9); });
|
||||
|
||||
});
|
||||
</script>
|
89
Archive/Views/Pages/Step5.cshtml
Normal file
89
Archive/Views/Pages/Step5.cshtml
Normal file
@ -0,0 +1,89 @@
|
||||
@model string[]
|
||||
@{
|
||||
ViewData["Title"] = "Step 5";
|
||||
}
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div.container-fluid {
|
||||
height: 90%;
|
||||
}
|
||||
|
||||
#HeaderGrid,
|
||||
#FieldsGrid {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.FieldTitle {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h4>Step 5</h4>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="RDS">RDS:</label>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="txt txt-primary" type="input" value="" id="RDSInput" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Next" id="RDSButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-warning" type="button" value="Restart" id="RestartButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
function Submit(zone) {
|
||||
if (zone === 9) {
|
||||
window.location.href = '\Step1';
|
||||
}
|
||||
else {
|
||||
var rds = $("#RDSInput").val();
|
||||
window.location.href = '\Step6?mod=@(Model[0])&equipment=@(Model[1])&layer=@(Model[2])&zone=@(Model[3])&rds=' + rds;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#RDSButton").click(function () { Submit(123456); });
|
||||
|
||||
$("#RestartButton").click(function () { Submit(9); });
|
||||
|
||||
});
|
||||
</script>
|
89
Archive/Views/Pages/Step6.cshtml
Normal file
89
Archive/Views/Pages/Step6.cshtml
Normal file
@ -0,0 +1,89 @@
|
||||
@model string[]
|
||||
@{
|
||||
ViewData["Title"] = "Step 6";
|
||||
}
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div.container-fluid {
|
||||
height: 90%;
|
||||
}
|
||||
|
||||
#HeaderGrid,
|
||||
#FieldsGrid {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.FieldTitle {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h4>Step 6</h4>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="Initials">Initials:</label>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="txt txt-primary" type="input" value="" id="InitialsInput" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="button" value="Next" id="InitialsButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<span> </span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-warning" type="button" value="Restart" id="RestartButton" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
function Submit(initials) {
|
||||
if (initials === 'RestartButton') {
|
||||
window.location.href = '\Step1';
|
||||
}
|
||||
else {
|
||||
var initials = $("#InitialsInput").val();
|
||||
window.location.href = '\Step1?mod=@(Model[0])&equipment=@(Model[1])&layer=@(Model[2])&zone=@(Model[3])&rds=@(Model[4])&initials=' + initials;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#InitialsButton").click(function () { Submit('MP'); });
|
||||
|
||||
$("#RestartButton").click(function () { Submit('RestartButton'); });
|
||||
|
||||
});
|
||||
</script>
|
@ -16,8 +16,8 @@
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"MonAResource": "OI_Metrology_Archive_EC",
|
||||
"InboundApiAllowedIPList": "",
|
||||
"MonAResource": "OI_Metrology_Archive_EC",
|
||||
"MonASite": "auc",
|
||||
"OIExportPath": "\\\\openinsight-db-srv.na.infineon.com\\apps\\Metrology\\Data",
|
||||
"Serilog": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user