From 75e567e7cc55c345ed7dd9c9bf4afebb9cee2d49 Mon Sep 17 00:00:00 2001 From: Oussema Saafi Date: Fri, 6 Feb 2026 17:57:06 +0100 Subject: [PATCH] commit --- .../TecniStamp.Domain/CommessaPosizione.cs | 3 + .../Commesse_DettaglioLavorazioni.razor | 117 ++++++++ .../Commesse/Commesse_Edit_InfoGenerali.razor | 2 +- .../Pages/Commesse/Commesse_Edit_OE.razor | 31 ++- .../Commesse/Commesse_Pianificatore.razor | 258 ++++++++++++++++++ .../CommessaPosizioneLavorazioneViewModel.cs | 43 +++ ...s => CommessaPosizioneViewModel - Copy.cs} | 0 .../Commesse/LavorazionePianificatoreModel.cs | 8 + .../Model/Commesse/TaskPianificatoreModel.cs | 11 + 9 files changed, 467 insertions(+), 6 deletions(-) create mode 100644 TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_DettaglioLavorazioni.razor create mode 100644 TecniStamp/TecniStamp/Components/Pages/Commesse/Commesse_Pianificatore.razor create mode 100644 TecniStamp/TecniStamp/Model/Commesse/CommessaPosizioneLavorazioneViewModel.cs rename TecniStamp/TecniStamp/Model/Commesse/{CommessaPosizioneViewModel.cs => CommessaPosizioneViewModel - Copy.cs} (100%) create mode 100644 TecniStamp/TecniStamp/Model/Commesse/LavorazionePianificatoreModel.cs create mode 100644 TecniStamp/TecniStamp/Model/Commesse/TaskPianificatoreModel.cs 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° + +
+
+
- +