From 2e30c28f40ccc317a9cba3d1519eb6a19d689140 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 5 Jan 2022 18:57:38 +0100 Subject: [PATCH] Fix comportamento area clipboard --- GPW.CORE.Data/DbModels/RegAttivitaModel.cs | 2 +- GPW.CORE.UI/Components/AddRA.razor | 14 ++- GPW.CORE.UI/Components/RegAtt.razor | 57 +++++----- GPW.CORE.UI/Components/RegAtt.razor.cs | 11 +- GPW.CORE.UI/GPW.CORE.UI.csproj | 2 +- GPW.CORE.UI/Pages/Planner.razor | 30 +++-- GPW.CORE.UI/Pages/Planner.razor.cs | 13 --- GPW.CORE.UI/Shared/MainLayout.razor | 4 +- GPW.CORE.UI/post-build.ps1 | 2 +- GPW.CORE.UI/wwwroot/css/site.css | 106 +++++++++++++++++ GPW.CORE.UI/wwwroot/css/site.less | 125 +++++++++++++++++++++ GPW.CORE.UI/wwwroot/css/site.min.css | 2 +- Resources/ChangeLog-original.html | 27 +++++ Resources/ChangeLog.html | 27 +++++ Resources/VersNum.txt | 1 + Resources/logoSteamware.png | Bin 0 -> 3402 bytes Resources/manifest-original.xml | 7 ++ Resources/manifest.xml | 7 ++ 18 files changed, 372 insertions(+), 65 deletions(-) create mode 100644 Resources/ChangeLog-original.html create mode 100644 Resources/ChangeLog.html create mode 100644 Resources/VersNum.txt create mode 100644 Resources/logoSteamware.png create mode 100644 Resources/manifest-original.xml create mode 100644 Resources/manifest.xml diff --git a/GPW.CORE.Data/DbModels/RegAttivitaModel.cs b/GPW.CORE.Data/DbModels/RegAttivitaModel.cs index 66c74e3..2016d5b 100644 --- a/GPW.CORE.Data/DbModels/RegAttivitaModel.cs +++ b/GPW.CORE.Data/DbModels/RegAttivitaModel.cs @@ -13,7 +13,7 @@ namespace GPW.CORE.Data.DbModels { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int IdxRa { get; set; } - public int IdxDipendente { get; set; } + public int IdxDipendente { get; set; } = 0; public int IdxFase { get; set; } public DateTime Inizio { get; set; } public DateTime Fine { get; set; } diff --git a/GPW.CORE.UI/Components/AddRA.razor b/GPW.CORE.UI/Components/AddRA.razor index 9d97347..101066a 100644 --- a/GPW.CORE.UI/Components/AddRA.razor +++ b/GPW.CORE.UI/Components/AddRA.razor @@ -4,7 +4,14 @@ @inject MessageService AppMServ @code { @@ -19,6 +26,11 @@ [Parameter] public EventCallback NewItemCreated { get; set; } + protected bool canPaste + { + get => AppMServ.clonedRA != null; + } + /// /// Indico item selezionato /// diff --git a/GPW.CORE.UI/Components/RegAtt.razor b/GPW.CORE.UI/Components/RegAtt.razor index ec845ba..09154df 100644 --- a/GPW.CORE.UI/Components/RegAtt.razor +++ b/GPW.CORE.UI/Components/RegAtt.razor @@ -9,7 +9,7 @@ @if (@CurrData.IdxFase > 0) {