From 388d7763080a0074beda739fe3578c5d3c18e4f9 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 21 Jan 2025 10:56:14 +0100 Subject: [PATCH 1/2] Aggiunta metodi gestione editing config, ok add/delete/update --- Core/Enum.cs | 17 +- Core/Models/ControlTarget.cs | 45 +++++ LiMan.Api/Resources/ChangeLog.html | 2 +- LiMan.Api/Resources/VersNum.txt | 2 +- LiMan.Api/Resources/manifest.xml | 2 +- LiMan.Transfer/Resources/ChangeLog.html | 2 +- LiMan.Transfer/Resources/VersNum.txt | 2 +- LiMan.Transfer/Resources/manifest.xml | 2 +- LiMan.UI/Components/InstAppPareto.razor.cs | 8 + LiMan.UI/Components/InstallInfoStats.razor | 21 ++- LiMan.UI/Components/InstallInfoStats.razor.cs | 18 +- LiMan.UI/Components/TargetSetup.razor | 111 +++++++++++ LiMan.UI/Components/TargetSetup.razor.cs | 176 ++++++++++++++++++ LiMan.UI/Data/LiManDataService.cs | 1 + LiMan.UI/LiMan.UI.csproj | 2 +- LiMan.UI/Resources/ChangeLog.html | 2 +- LiMan.UI/Resources/VersNum.txt | 2 +- LiMan.UI/Resources/manifest.xml | 2 +- 18 files changed, 404 insertions(+), 13 deletions(-) create mode 100644 Core/Models/ControlTarget.cs create mode 100644 LiMan.UI/Components/TargetSetup.razor create mode 100644 LiMan.UI/Components/TargetSetup.razor.cs diff --git a/Core/Enum.cs b/Core/Enum.cs index e071fa1..d676663 100644 --- a/Core/Enum.cs +++ b/Core/Enum.cs @@ -1,5 +1,7 @@ -using System; +using Newtonsoft.Json.Converters; +using System; using System.Collections.Generic; +using System.Text.Json.Serialization; namespace Core { @@ -73,6 +75,19 @@ namespace Core { "WinApp", "WinApp" } }; +#if false + [JsonConverter(typeof(StringEnumConverter))] + public enum AppType + { + None, + Cli, + Machine, + WebApp, + WinApp, + LicenceApp + } +#endif + /// /// Elenco tipi di azioni che si possono chiedere ad EgwACC /// diff --git a/Core/Models/ControlTarget.cs b/Core/Models/ControlTarget.cs new file mode 100644 index 0000000..510cdb7 --- /dev/null +++ b/Core/Models/ControlTarget.cs @@ -0,0 +1,45 @@ +using Newtonsoft.Json.Converters; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Core.Models +{ + public class ControlTarget + { + [Key] + public int Idx { get; set; } = 0; + + /// + /// Tipo applicazione da monitorare + /// + public string ApplicationType { get; set; } = ""; +#if false + [JsonConverter(typeof(StringEnumConverter))] + public CoreEnum.AppType ApplicationType { get; set; } = CoreEnum.AppType.None; +#endif + + /// + /// Path di base da monitorare + /// + public string BasePath { get; set; } = ""; + + /// + /// Pattern di ricerca + /// + public string SearchPattern { get; set; } = ""; + + /// + /// Indica se il path sia abilitato + /// + public bool IsEnabled { get; set; } = true; + + /// + /// Indica se sia abilitato l'update x l'item + /// + public bool UpdateEnabled { get; set; } = false; + } +} diff --git a/LiMan.Api/Resources/ChangeLog.html b/LiMan.Api/Resources/ChangeLog.html index 14505f6..139cfe3 100644 --- a/LiMan.Api/Resources/ChangeLog.html +++ b/LiMan.Api/Resources/ChangeLog.html @@ -1,6 +1,6 @@ License Manager -

Versione: 2.1.2501.2019

+

Versione: 2.1.2501.2110


Note di rilascio: