From 64a25072fb2e4e10f4094cc0acdedbcdd5a9bc60 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 21 Oct 2025 11:47:07 +0200 Subject: [PATCH] COmpleto gestione note --- Lux.API/Lux.API.csproj | 2 +- Lux.UI/Components/Compo/OfferRowMan.razor | 184 +++++++++++----------- 2 files changed, 97 insertions(+), 89 deletions(-) diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj index fa357d6a..bca10f43 100644 --- a/Lux.API/Lux.API.csproj +++ b/Lux.API/Lux.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 0.9.2510.2110 + 0.9.2510.2111 diff --git a/Lux.UI/Components/Compo/OfferRowMan.razor b/Lux.UI/Components/Compo/OfferRowMan.razor index cf7e8e58..5bc96f77 100644 --- a/Lux.UI/Components/Compo/OfferRowMan.razor +++ b/Lux.UI/Components/Compo/OfferRowMan.razor @@ -83,10 +83,11 @@ else @foreach (var item in ListRecords) { + bool isNote = item.SellingItemID == null; - @item.RowNum + @* @item.RowNum *@ @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit) @@ -109,103 +110,110 @@ else @item.RowNum } - @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit) + @if (isNote) { - - @if (string.IsNullOrEmpty(item.SerStruct) || item.SerStruct.Length <= 2) - { - - } - else - { - - } - - } - -
@item.OfferRowUID
- @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit && !string.IsNullOrEmpty(item.SerStruct) && item.SerStruct.Length > 2) - { - - } - @if (item.Envir != EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW || !string.IsNullOrEmpty(item.FileName)) - { -
- @if (EditRecord != null && EditRecord.OfferRowID == item.OfferRowID) - { - - - - - } - else - { - @item.FileName | @fSize(item.FileSize) - - } -
- } - - @if (CurrEditMode == EditMode.RecData && EditRecord != null && EditRecord.OfferRowID == item.OfferRowID) - { - -
- -
- - - - + @item.Note } else { - @item.Note - - @item.Qty - - } - -
- @if (!(item.BomOk && item.ItemOk)) + @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit) + { + + @if (string.IsNullOrEmpty(item.SerStruct) || item.SerStruct.Length <= 2) + { + + } + else + { + + } + + } + +
@item.OfferRowUID
+ @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit && !string.IsNullOrEmpty(item.SerStruct) && item.SerStruct.Length > 2) { - + } - @if (item.AwaitPrice) + @if (item.Envir != EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW || !string.IsNullOrEmpty(item.FileName)) { - - } - @($"{item.UnitPrice:C2}") -
-
(@item.UnitCost.ToString("C2"))
- - @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit) - { - - @if (!string.IsNullOrEmpty(item.ItemBOM)) - { - +
+ @if (EditRecord != null && EditRecord.OfferRowID == item.OfferRowID) + { + + + + + } + else + { + @item.FileName | @fSize(item.FileSize) + + } +
} + @if (CurrEditMode == EditMode.RecData && EditRecord != null && EditRecord.OfferRowID == item.OfferRowID) + { + +
+ +
+ + + + + } + else + { + @item.Note + + @item.Qty + + } + +
+ @if (!(item.BomOk && item.ItemOk)) + { + + } + @if (item.AwaitPrice) + { + + } + @($"{item.UnitPrice:C2}") +
+
(@item.UnitCost.ToString("C2"))
+ + @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit) + { + + @if (!string.IsNullOrEmpty(item.ItemBOM)) + { + + } + + } + +
+ @if (item.AwaitPrice) + { + + } + @($"{item.TotalPrice:C2}") +
+
(@item.TotalCost.ToString("C2"))
+ + + @item.MaxDiscount.ToString("P2") + } - -
- @if (item.AwaitPrice) - { - - } - @($"{item.TotalPrice:C2}") -
-
(@item.TotalCost.ToString("C2"))
- - - @item.MaxDiscount.ToString("P2") - @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit) {