From db98da2fa4a28170d9a24da47f016b837e5e8a82 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 13 Mar 2026 16:27:39 +0100 Subject: [PATCH] Aggiunto edit mode x file e jwd post template sel --- Lux.API/Lux.API.csproj | 2 +- Lux.UI.Client/ConfirmModal.razor | 5 +++++ Lux.UI/Components/Compo/OfferRowMan.razor.cs | 9 +++++++++ .../Compo/Templates/TemplateRowMan.razor | 2 +- .../Compo/Templates/TemplateRowMan.razor.cs | 19 +++++++++++++++++++ Lux.UI/Components/Layout/NavMenu.razor | 2 +- Lux.UI/Components/Pages/Template.razor | 11 ++++++++++- Lux.UI/Lux.UI.csproj | 2 +- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 11 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 Lux.UI.Client/ConfirmModal.razor diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj index 78a9364f..42939e03 100644 --- a/Lux.API/Lux.API.csproj +++ b/Lux.API/Lux.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 1.1.2603.1315 + 1.1.2603.1316 diff --git a/Lux.UI.Client/ConfirmModal.razor b/Lux.UI.Client/ConfirmModal.razor new file mode 100644 index 00000000..9eead268 --- /dev/null +++ b/Lux.UI.Client/ConfirmModal.razor @@ -0,0 +1,5 @@ +

ConfirmModal

+ +@code { + +} diff --git a/Lux.UI/Components/Compo/OfferRowMan.razor.cs b/Lux.UI/Components/Compo/OfferRowMan.razor.cs index c668f5f3..97b7ff53 100644 --- a/Lux.UI/Components/Compo/OfferRowMan.razor.cs +++ b/Lux.UI/Components/Compo/OfferRowMan.razor.cs @@ -202,6 +202,15 @@ namespace Lux.UI.Components.Compo { await callBomUpdate(dbRec); await callImgUpdate(dbRec); + // imposto ad editing record secondo tipo + if (dbRec.Envir == EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW) + { + DoEditJwd(dbRec); + } + else + { + DoEditFile(dbRec); + } } } await ReloadData(); diff --git a/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor b/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor index 7a74fad4..2fd2ac7f 100644 --- a/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor +++ b/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor @@ -19,7 +19,7 @@ - @if (CurrRecord.ImgType == Enums.ImageType.Fixed || CurrRecord.ImgType == Enums.ImageType.ND) + @if (ShowImgUpload(CurrRecord.SellingItemID)) {
diff --git a/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor.cs b/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor.cs index c6bb1080..889a2a37 100644 --- a/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor.cs +++ b/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor.cs @@ -35,6 +35,25 @@ namespace Lux.UI.Components.Compo.Templates #region Private Fields + /// + /// Check visibilità upload dato il selling item ID corrente + /// + /// + /// + private bool ShowImgUpload(int sellItemId) + { + bool answ = false; + if (sellItemId > 0) + { + var selRec = ListSellinglItems.FirstOrDefault(x => x.SellingItemID == sellItemId); + if (selRec != null) + { + answ = selRec.ImgType != EgwCoreLib.Lux.Core.Enums.ImageType.Calculated; + } + } + return answ; + } + /// /// Path da parent record /// diff --git a/Lux.UI/Components/Layout/NavMenu.razor b/Lux.UI/Components/Layout/NavMenu.razor index 37aeff1d..4838f9fc 100644 --- a/Lux.UI/Components/Layout/NavMenu.razor +++ b/Lux.UI/Components/Layout/NavMenu.razor @@ -51,7 +51,7 @@