@page "/commessa/{CodJcom}" @page "/commessa/{CodJcom}/{RagSoc}" @attribute [Authorize] @using salesbook.Shared.Components.Layout @using salesbook.Shared.Components.Layout.Spinner @using salesbook.Shared.Components.SingleElements @using salesbook.Shared.Core.Dto.JobProgress @using salesbook.Shared.Core.Dto.PageState @using salesbook.Shared.Core.Entity @using salesbook.Shared.Core.Interface @inject JobSteps JobSteps @inject IManageDataService ManageData @if (IsLoading) { } else {
@if (CommessaModel == null) { } else {
@if (Steps != null) {
@foreach (var step in Steps) {
@step.StepName
@if (step.Date is not null) {
@($"{step.Date.Value:D}") @(step.Status!.Progress ? "(In corso...)" : "")
}
}
}
Contenuto 2
Contenuto 3
}
} @code { [Parameter] public string CodJcom { get; set; } = ""; [Parameter] public string RagSoc { get; set; } = ""; private List? Steps { get; set; } private JtbComt? CommessaModel { get; set; } private bool IsLoading { get; set; } = true; protected override async Task OnInitializedAsync() { await LoadData(); } private async Task LoadData() { CommessaModel = (await ManageData.GetTable(x => x.CodJcom.Equals(CodJcom))).LastOrDefault(); Steps = JobSteps.Steps; IsLoading = false; } }