Reorganized project structure to separate backend process from frontend process.

This commit is contained in:
Daniel Wathen
2022-12-22 12:10:18 -07:00
parent b5def3da89
commit 80696e5fe6
131 changed files with 494 additions and 347 deletions

View File

@ -0,0 +1,47 @@
@{
ViewData["Title"] = "Planning Reports | Mesa Reporting Services";
}
<div aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Planning Reports</li>
</ol>
</div>
<br />
<div class="row">
<div class="col-3 d-grid">
<button class="btn btn-outline-secondary text-start" data-bs-toggle="modal" data-bs-target="#chooseDateRange"><img src="~/Images/ReportFile.png" class="float-start buttonImage align-middle" />Weekly Part Changes Report</button>
</div>
</div>
<div class="modal fade" id="chooseDateRange" tabindex="-1" aria-labelledby="chooseDateRangeLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Choose Date Range</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form method="post" action="PlanningReport/WeeklyPartChangesReport" autocomplete="off">
<div class="modal-body" style="padding-top: 15px; padding-bottom: 10px">
<div class="row">
<div class="col-6">Start Date:</div>
<div class="col-6"><input type="text" name="startDate" id="StartDate" /></div>
</div>
<div class="row" style="padding-top: 10px; padding-bottom: 10px">
<div class="col-6">End Date:</div>
<div class="col-6"><input type="text" name="endDate" id="EndDate" /></div>
</div>
<div class="row" style="padding-top: 10px; padding-bottom: 10px">
<div class="col text-center">
<button class="btn btn-outline-secondary" onclick="displayBusyIndicator()" data-bs-dismiss="modal" type="submit">Go To Report</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<partial name="_LoadingPartial" />

View File

@ -0,0 +1,80 @@
@model WeeklyPartChanges
@{
ViewData["Title"] = "Weekly Part Changes | Mesa Reporting Services";
}
<div aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
<li class="breadcrumb-item"><a asp-area="" asp-controller="PlanningReport" asp-action="Index">Planning Reports</a></li>
<li class="breadcrumb-item active" aria-current="page">Weekly Part Changes Report</li>
</ol>
</div>
<br />
<h1 class="text-center">Weekly Part Changes</h1>
<div>
<div class="row">
<div class="col-6">
<p>Number of Part Changes: @Model.TotalPartChanges</p>
</div>
<div class="col-6">
<p class="text-end">@Model.StartDate - @Model.EndDate</p>
</div>
</div>
<div>
<table class="table">
<thead>
<tr>
<th scope="col">Reactor</th>
<th scope="col">PSN</th>
<th scope="col">WO_COUNT</th>
</tr>
</thead>
<tbody>
@for (int i = 0; i < Model.ReactorPSNWORuns.Count; i++)
{
int count = 1;
bool doesMatch = false;
if (i + count < Model.ReactorPSNWORuns.Count)
doesMatch = Model.ReactorPSNWORuns[i].REACTOR == Model.ReactorPSNWORuns[i + count].REACTOR;
while (doesMatch)
{
count++;
if (i + count < Model.ReactorPSNWORuns.Count)
doesMatch = Model.ReactorPSNWORuns[i].REACTOR == Model.ReactorPSNWORuns[i + count].REACTOR;
else
doesMatch = false;
}
for (int j = 0; j < count; j++)
{
string tableColor = "";
if (count > 1)
tableColor = "table-info";
<tr class="align-middle @tableColor">
@if (j == 0)
{
<td rowspan="@(count)">@Model.ReactorPSNWORuns[i].REACTOR</td>
<td>@Model.ReactorPSNWORuns[i].PSN</td>
<td>@Model.ReactorPSNWORuns[i].WO_COUNT</td>
}
else
{
<td>@Model.ReactorPSNWORuns[i + j].PSN</td>
<td>@Model.ReactorPSNWORuns[i + j].WO_COUNT</td>
}
</tr>
}
i = i + (count - 1);
}
</tbody>
</table>
</div>
</div>