Sistemazioni grafiche
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user