From fa784ef5b01f04d0cf313d0593befe74d404555d Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 14 Jan 2026 18:45:45 +0100 Subject: [PATCH] Random call update x planner --- EgwCoreLib.Lux.Core/Generic/EventDto.cs | 66 ++-- Lux.API/Lux.API.csproj | 2 +- Lux.UI/Components/App.razor | 1 - .../Compo/Planner/CalendarPlanner.razor | 8 +- .../Compo/Planner/CalendarPlanner.razor.cs | 74 +++- .../Components/Compo/Planner/TaskDetail.razor | 15 +- Lux.UI/Components/Pages/ProdPlanner.razor | 2 +- Lux.UI/Components/Pages/ProdPlanner.razor.cs | 336 +++++++++++++++++- Lux.UI/Lux.UI.csproj | 2 +- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 12 files changed, 459 insertions(+), 53 deletions(-) diff --git a/EgwCoreLib.Lux.Core/Generic/EventDto.cs b/EgwCoreLib.Lux.Core/Generic/EventDto.cs index a97d907f..755eccc7 100644 --- a/EgwCoreLib.Lux.Core/Generic/EventDto.cs +++ b/EgwCoreLib.Lux.Core/Generic/EventDto.cs @@ -9,9 +9,15 @@ namespace EgwCoreLib.Lux.Core.Generic public class EventDto { public string CodTipo { get; set; } = ""; + /// + /// Idx univoco evento + /// public int IdxEv { get; set; } = 0; + +#if false public int IdxDipendente { get; set; } = 0; - public string CognomeNome { get; set; } = ""; + public string CognomeNome { get; set; } = ""; +#endif public string Abbrev { get; set; } = ""; public string Titolo { get; set; } = ""; public string Descrizione { get; set; } = ""; @@ -29,9 +35,11 @@ namespace EgwCoreLib.Lux.Core.Generic { CodTipo = this.CodTipo, IdxEv = this.IdxEv, +#if false IdxDipendente = this.IdxDipendente, CognomeNome = this.CognomeNome, - Abbrev = this.Abbrev, +#endif + Abbrev = this.Abbrev, Titolo = this.Titolo, Descrizione = this.Descrizione, Tooltip = this.Tooltip, @@ -75,63 +83,65 @@ namespace EgwCoreLib.Lux.Core.Generic get => calcText(CodTipo, Conf, IsCompany); } - private string calcColor(string codGiust, bool conf, bool isComp) + private string calcColor(string codTipo, bool conf, bool isComp) { string answ = "#EDEDED"; - switch (codGiust) + switch (codTipo) { - case "FER": + case "Saomad": answ = isComp ? "#EEDD11" : conf ? "#11CD44" : "#AAFFCD"; break; - case "FEST": + case "Essetre": answ = "#DD0033"; break; - case "104": - answ = conf ? "#DE00AB" : "#FFAACD"; - break; + //case "104": + // answ = conf ? "#DE00AB" : "#FFAACD"; + // break; - case "MAL": - answ = conf ? "#000" : "#696969"; - break; + //case "MAL": + // answ = conf ? "#000" : "#696969"; + // break; - case "PERM": - answ = conf ? "#9966DE" : "#CDAAFF"; - break; + //case "PERM": + // answ = conf ? "#9966DE" : "#CDAAFF"; + // break; default: + answ = isComp ? "#EEDD11" : conf ? "#11CD44" : "#AAFFCD"; break; } return answ; } - private string calcText(string codGiust, bool conf, bool isComp) + private string calcText(string codTipo, bool conf, bool isComp) { string answ = "#EDEDED"; - switch (codGiust) + switch (codTipo) { - case "FER": + case "Saomad": answ = isComp ? "#000000" : conf ? "#FFFFFF" : "#000000"; break; - case "FEST": + case "Essetre": answ = "#EEDD11"; break; - case "104": - answ = conf ? "#DEDEDE" : "#000000"; - break; + //case "104": + // answ = conf ? "#DEDEDE" : "#000000"; + // break; - case "MAL": - answ = conf ? "#DEDEDE" : "#ABABAB"; - break; + //case "MAL": + // answ = conf ? "#DEDEDE" : "#ABABAB"; + // break; - case "PERM": - answ = conf ? "#DEDEDE" : "#000000"; - break; + //case "PERM": + // answ = conf ? "#DEDEDE" : "#000000"; + // break; default: + answ = isComp ? "#000000" : conf ? "#FFFFFF" : "#000000"; break; } return answ; diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj index 37e27127..ee28ddf0 100644 --- a/Lux.API/Lux.API.csproj +++ b/Lux.API/Lux.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 0.9.2601.1417 + 0.9.2601.1418 diff --git a/Lux.UI/Components/App.razor b/Lux.UI/Components/App.razor index 56793e1b..997e4f80 100644 --- a/Lux.UI/Components/App.razor +++ b/Lux.UI/Components/App.razor @@ -30,7 +30,6 @@ @* *@ @* *@ - @*