diff --git a/TecniStamp/TecniStamp.Domain/CommessaPosizione.cs b/TecniStamp/TecniStamp.Domain/CommessaPosizione.cs index 5d1eb4f..c756517 100644 --- a/TecniStamp/TecniStamp.Domain/CommessaPosizione.cs +++ b/TecniStamp/TecniStamp.Domain/CommessaPosizione.cs @@ -17,4 +17,7 @@ public class CommessaPosizione : EntitaBase [ForeignKey(nameof(Commessa))] public Guid? CommessaId { get; set; } public Commessa Commessa { get; set; } + + [InverseProperty(nameof(CommessaPosizioneLavorazione.CommessaPosizione))] + public List PosizioneLavorazioni { get; set; } } \ No newline at end of file diff --git a/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_DettaglioLavorazioni.razor b/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_DettaglioLavorazioni.razor new file mode 100644 index 0000000..6f6fe7a --- /dev/null +++ b/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_DettaglioLavorazioni.razor @@ -0,0 +1,117 @@ +@page "/commesse/modifica/DettaglioLavorazioni" +@page "/commesse/modifica/DettaglioLavorazioni/{CommessaPosizioneId:guid}/{CommessaId:guid}" +@using Microsoft.EntityFrameworkCore +@using TecniStamp.Model.Commesse +@using TecniStamp.Model.Common +@using TecniStamp.Utils + +@rendermode InteractiveServer +Dettaglio Lavorazioni + + + + +
+ +
+
+ +
+
Dettaglio Lavorazioni posizione
+ +
+ + +
+ + +
+ +
+ + +
+
+
+ +
+ + + + + + + + + + + + +
+ +
+
+ +
+
+ +
+
+
+ +@code { + [Parameter] public Guid? CommessaPosizioneId { get; set; } + [Parameter] public Guid? CommessaId { get; set; } + + public List CommessePosLavList { get; set; } = new(); + RadzenDataGrid posizioneLavorazioniGrid; + public List BreadcrumbList { get; set; } = new(); + + protected override async Task OnInitializedAsync() + { + await base.OnInitializedAsync(); + + CommessePosLavList = (await _managerService.CommessaPosizioneLavorazioneService.RicercaQueryable( + x => x.Eliminato == false && x.CommessaPosizioneId == CommessaPosizioneId, + includi: x => x.Include(x => x.Lavorazione).Include(x => x.Macchinario))) + .Select(x => (CommessaPosizioneLavorazioneViewModel)x).ToList(); + + BreadcrumbList = await BreadcrumbUtils.BuildBreadcrumbByFeature(_managerService, "Commesse_Info", "Modifica", "/commesse"); + } + + /// + /// Torna all’elenco commesse senza applicare altre azioni. + /// + private void backToHome() + { + _navManager.NavigateTo($"/commesse/modifica/{CommessaId}"); + } + + private void goToCalendar() + { + _navManager.NavigateTo($"/commesse/modifica/Pianificatore"); + } +} \ No newline at end of file diff --git a/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Edit_InfoGenerali.razor b/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Edit_InfoGenerali.razor index edb7b9d..d944b6c 100644 --- a/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Edit_InfoGenerali.razor +++ b/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Edit_InfoGenerali.razor @@ -29,7 +29,7 @@
Data ordine - +
diff --git a/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Edit_OE.razor b/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Edit_OE.razor index 9df90e6..4529c60 100644 --- a/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Edit_OE.razor +++ b/TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Edit_OE.razor @@ -4,6 +4,27 @@
+
+ Riferimento cliente + +
+ +
+ Commessa + +
+ +
+ Commessa + +
+ +
+ Ordine N° + +
+
+
- +