Sistemazioni grafiche

This commit is contained in:
2025-09-12 09:32:34 +02:00
parent 85f19acda6
commit b798b01da0
6 changed files with 19 additions and 9 deletions

View File

@@ -44,21 +44,25 @@
{
if (Steps is null) return;
// Ultimo step non skip
var lastBeforeSkip = Steps
.TakeWhile(s => s.Status is { Skip: false })
.LastOrDefault();
.LastOrDefault(s => s.Status is { Skip: false });
if (lastBeforeSkip is not null) Stato = lastBeforeSkip.StepName;
if (lastBeforeSkip is not null)
Stato = lastBeforeSkip.StepName;
// Ultima data disponibile
LastUpd = Steps
.Where(s => s.Date.HasValue)
.Select(s => s.Date!.Value)
.DefaultIfEmpty()
.Max();
if (LastUpd.Equals(DateTime.MinValue)) LastUpd = null;
if (LastUpd.Equals(DateTime.MinValue))
LastUpd = null;
}
private void OpenPageCommessa()
{
JobSteps.Steps = Steps;