diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj index 1abc8314..eeb52b59 100644 --- a/Lux.API/Lux.API.csproj +++ b/Lux.API/Lux.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 0.9.2509.1617 + 0.9.2509.1618 diff --git a/Lux.UI/Components/Compo/ItemMan.razor b/Lux.UI/Components/Compo/ItemMan.razor index 2f730ed9..b3575735 100644 --- a/Lux.UI/Components/Compo/ItemMan.razor +++ b/Lux.UI/Components/Compo/ItemMan.razor @@ -40,6 +40,7 @@ else + @item.ItemID diff --git a/Lux.UI/Components/Compo/ItemMan.razor.cs b/Lux.UI/Components/Compo/ItemMan.razor.cs index e67abdad..8b6ad54c 100644 --- a/Lux.UI/Components/Compo/ItemMan.razor.cs +++ b/Lux.UI/Components/Compo/ItemMan.razor.cs @@ -3,6 +3,7 @@ using EgwCoreLib.Lux.Data.DbModel; using EgwCoreLib.Lux.Data.Services; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; +using NLog.LayoutRenderers; namespace Lux.UI.Components.Compo { @@ -108,6 +109,33 @@ namespace Lux.UI.Components.Compo editRecord = curRec; } + private string doCloneCss(ItemModel item) + { + return item.ItemType == Enums.ItemClassType.Bom ? "btn-warning" : "btn-success"; + } + + + protected void DoClone(ItemModel curRec) + { + editRecord = new ItemModel() + { + ItemIDParent = curRec.ItemType == Enums.ItemClassType.Bom ? curRec.ItemID : curRec.ItemIDParent, + CodGroup = curRec.CodGroup, + ItemType = curRec.ItemType == Enums.ItemClassType.Bom ? Enums.ItemClassType.BomAlt : curRec.ItemType, + IsService = curRec.IsService, + ItemCode = curRec.ItemCode, + ExtItemCode = $"{curRec.ExtItemCode} - COPY", + SupplCode = curRec.ItemType == Enums.ItemClassType.Bom ? $"{curRec.SupplCode} ALT": curRec.SupplCode, + Description = $"{curRec.Description} - COPY", + Cost = curRec.Cost, + Margin = curRec.Margin, + QtyMin = curRec.QtyMin, + QtyMax = curRec.QtyMax, + UM = curRec.UM + }; + } + + protected void DoReset() { editRecord = null; diff --git a/Lux.UI/Lux.UI.csproj b/Lux.UI/Lux.UI.csproj index eaddd3e1..70753891 100644 --- a/Lux.UI/Lux.UI.csproj +++ b/Lux.UI/Lux.UI.csproj @@ -5,7 +5,7 @@ enable enable aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50 - 0.9.2509.1617 + 0.9.2509.1618 diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 7b29793e..6e36b281 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ LUX - Web Windows MES -

Versione: 0.9.2509.1617

+

Versione: 0.9.2509.1618


Note di rilascio: