Files
PowderCoatingLogix/src/PowderCoating.Web/Views/Reports/JobStatusAging.cshtml
T
spouliot a0bdd2b5b4 Sweep all .cshtml files for encoding corruption; add pre-commit guard
Replace all corruption variants with HTML entities across 226 view files:
- 3-char UTF-8-as-Win1252 sequences (ae-corruption)
- Standalone smart/curly quotes that break C# Razor expressions
- Partially re-corrupted variants where the 3rd byte was normalised to ASCII

tools/Fix-Encoding.ps1: re-runnable sweep; uses [char] code points so the
script itself never contains a literal non-ASCII character; supports -DryRun

.githooks/pre-commit: blocks commits containing the ae-corruption byte
signature (xc3xa2xe2x82xac); git core.hooksPath = .githooks so the
hook is repo-committed and active for all future work on this machine.

Build clean; 225 unit tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 21:37:10 -04:00

77 lines
3.5 KiB
Plaintext

@model PowderCoating.Web.ViewModels.Reports.JobStatusAgingViewModel
@{ ViewData["Title"] = "Job Status Aging"; }
<partial name="_ReportHeader" model="Model" />
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<span class="fw-semibold">Active Jobs by Days in Current Status</span>
<span class="text-muted small">@Model.Items.Count active jobs</span>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-sm table-hover mb-0">
<thead class="table-light">
<tr>
<th>Job #</th>
<th>Customer</th>
<th>Status</th>
<th>Priority</th>
<th class="text-end">Days in Status</th>
<th>Due Date</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Items)
{
var rowClass = item.IsOverdue ? "table-danger" : item.DaysInCurrentStatus > 7 ? "table-warning" : "";
<tr class="@rowClass">
<td>
<a asp-controller="Jobs" asp-action="Details" asp-route-id="@item.JobId">
@item.JobNumber
</a>
</td>
<td>@item.CustomerName</td>
<td><span class="badge bg-secondary">@item.StatusName</span></td>
<td>
@{
var pBadge = item.PriorityCode switch {
"RUSH" => "bg-danger",
"URGENT" => "bg-warning text-dark",
"HIGH" => "bg-orange text-white",
"LOW" => "bg-secondary",
_ => "bg-primary"
};
}
<span class="badge @pBadge">@item.PriorityName</span>
</td>
<td class="text-end fw-semibold">
@item.DaysInCurrentStatus day@(item.DaysInCurrentStatus != 1 ? "s" : "")
</td>
<td>
@if (item.DueDate.HasValue)
{
if (item.IsOverdue)
{
<span class="text-danger fw-semibold">
<i class="bi bi-exclamation-triangle me-1"></i>@item.DueDate.Value.ToString("MMM d, yyyy")
</span>
}
else
{
<span>@item.DueDate.Value.ToString("MMM d, yyyy")</span>
}
}
else
{
<span class="text-muted">&mdash;</span>
}
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>