|
- @if (DisplayMode == EgwCoreLib.Lux.Core.Enum.DisplayMode.Edit)
+ @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit)
{
}
@@ -67,7 +67,7 @@ else
@item.RowNum
}
|
- @if (DisplayMode == EgwCoreLib.Lux.Core.Enum.DisplayMode.Edit)
+ @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit)
{
@@ -84,7 +84,7 @@ else
@($"{item.Cost:C2}")
|
@($"{item.TotalCost:C2}") |
- @if (DisplayMode == EgwCoreLib.Lux.Core.Enum.DisplayMode.Edit)
+ @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit)
{
diff --git a/Lux.UI/Components/Compo/OfferRowMan.razor.cs b/Lux.UI/Components/Compo/OfferRowMan.razor.cs
index 6f9e0fb..35e9371 100644
--- a/Lux.UI/Components/Compo/OfferRowMan.razor.cs
+++ b/Lux.UI/Components/Compo/OfferRowMan.razor.cs
@@ -3,7 +3,7 @@ using EgwCoreLib.Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.Services;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
-using static EgwCoreLib.Lux.Core.Enum;
+using static EgwCoreLib.Lux.Core.Enums;
namespace Lux.UI.Components.Compo
{
diff --git a/Lux.UI/Components/Layout/NavMenu.razor b/Lux.UI/Components/Layout/NavMenu.razor
index c674751..48a83e6 100644
--- a/Lux.UI/Components/Layout/NavMenu.razor
+++ b/Lux.UI/Components/Layout/NavMenu.razor
@@ -33,6 +33,12 @@
}
+
+
+
+ Articoli
+
+
@@ -40,11 +46,11 @@
- *@
@@ -89,8 +95,8 @@
-
- Flush Cache
+
+ Flush Cache
diff --git a/Lux.UI/Components/Pages/Items.razor b/Lux.UI/Components/Pages/Items.razor
new file mode 100644
index 0000000..434cffb
--- /dev/null
+++ b/Lux.UI/Components/Pages/Items.razor
@@ -0,0 +1,110 @@
+@page "/Items"
+
+
+
+
+ @if (isLoading || ListRecords == null)
+ {
+
+ }
+ else if (totalCount == 0)
+ {
+ Nessun record trovato
+ }
+ else
+ {
+
+
+
+ |
+
+ |
+ ID |
+ Gruppo |
+ Tipo |
+ Serv |
+ Codice |
+ ItemCode |
+ Suppl.Code |
+ Descrizione |
+ Costo |
+ Margine |
+ Qty min |
+ Qty Max |
+ UM |
+
+
+
+ @foreach (var item in ListRecords)
+ {
+
+ |
+ @item.ItemID |
+ @item.CodGroup |
+ @item.ItemType |
+ @item.IsService |
+ @item.ItemCode |
+ @item.ExtItemCode |
+ @item.SupplCode |
+ @item.Description |
+ @item.Cost.ToString("C3") |
+ @item.Margin.ToString("P1") |
+ @item.QtyMin.ToString("F1") |
+ @item.QtyMax.ToString("F1") |
+ @item.UM |
+
+
+ }
+
+
+
+ |
+
+ |
+
+
+
+ }
+
+
\ No newline at end of file
diff --git a/Lux.UI/Components/Pages/Items.razor.cs b/Lux.UI/Components/Pages/Items.razor.cs
new file mode 100644
index 0000000..4cfb2ae
--- /dev/null
+++ b/Lux.UI/Components/Pages/Items.razor.cs
@@ -0,0 +1,111 @@
+using EgwCoreLib.Lux.Data.DbModel;
+using EgwCoreLib.Lux.Data.Services;
+using Microsoft.AspNetCore.Components;
+
+namespace Lux.UI.Components.Pages
+{
+ public partial class Items
+ {
+ #region Protected Fields
+
+ protected List AllRecords = new List();
+ protected List ListItemGroup = new List();
+ protected List ListRecords = new List();
+
+ protected string searchVal = "";
+
+ protected string? SelCodGroup = null;
+ protected EgwCoreLib.Lux.Core.Enums.ItemClassType? SelType = null;
+
+ #endregion Protected Fields
+
+ #region Protected Properties
+
+ [Inject]
+ protected DataLayerServices DLService { get; set; } = null!;
+
+ #endregion Protected Properties
+
+ #region Protected Methods
+
+ protected void DoAdd()
+ {
+ EditRecord = new ItemModel()
+ {
+ CodGroup = ListItemGroup.FirstOrDefault()?.CodGroup ?? "",
+ ItemType = EgwCoreLib.Lux.Core.Enums.ItemClassType.ND,
+ IsService = false,
+ ItemCode = 0,
+ ExtItemCode = "NEW-ITEM",
+ SupplCode = "",
+ Description = $"Nuova Offerta {DateTime.Today:ddd yyyy.MM.dd}",
+ Cost = 0,
+ Margin = 0,
+ QtyMin = 0,
+ QtyMax = 0,
+ UM = "#"
+ };
+ }
+
+ protected override async Task OnInitializedAsync()
+ {
+ isLoading = true;
+ await ReloadBaseData();
+ await ReloadData();
+ UpdateTable();
+ }
+
+ protected void resetSearch()
+ {
+ searchVal = "";
+ }
+
+ #endregion Protected Methods
+
+ #region Private Fields
+
+ private int currPage = 1;
+
+ private ItemModel? EditRecord = null;
+
+ private bool isLoading = false;
+ private int numRecord = 10;
+ private int totalCount = 0;
+
+ protected void DoReset()
+ {
+ EditRecord = null;
+ }
+
+ #endregion Private Fields
+
+ #region Private Methods
+
+ private async Task ReloadBaseData()
+ {
+ ListItemGroup = await DLService.ItemGroupGetAllAsync();
+ }
+
+ private async Task ReloadData()
+ {
+ isLoading = true;
+ AllRecords = await DLService.ItemGetSearchAsync(searchVal);
+ totalCount = AllRecords.Count;
+ }
+
+ ///
+ /// Filtro e paginazione
+ ///
+ private void UpdateTable()
+ {
+ // fix paginazione
+ ListRecords = AllRecords
+ .Skip(numRecord * (currPage - 1))
+ .Take(numRecord)
+ .ToList();
+ isLoading = false;
+ }
+
+ #endregion Private Methods
+ }
+}
\ No newline at end of file
diff --git a/Lux.UI/Components/Pages/Offers.razor b/Lux.UI/Components/Pages/Offers.razor
index dccfcd1..2bf9bc6 100644
--- a/Lux.UI/Components/Pages/Offers.razor
+++ b/Lux.UI/Components/Pages/Offers.razor
@@ -67,7 +67,7 @@
}
else if (currStep == CompileStep.Rows)
{
-
+
}
else if (currStep == CompileStep.Delivery)
{
@@ -176,7 +176,7 @@ else
@if (SelRecord != null)
{
-
+
}
diff --git a/Lux.UI/Lux.UI.csproj b/Lux.UI/Lux.UI.csproj
index b690475..ae7de3c 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.2508.0816
+ 0.9.2508.0818
@@ -42,6 +42,10 @@
PreserveNewest
+
+
+
+
diff --git a/Lux.UI/compilerconfig.json b/Lux.UI/compilerconfig.json
index f03f035..063ee29 100644
--- a/Lux.UI/compilerconfig.json
+++ b/Lux.UI/compilerconfig.json
@@ -14,5 +14,9 @@
{
"outputFile": "Components/Layout/MainLayout.razor.css",
"inputFile": "Components/Layout/MainLayout.razor.less"
+ },
+ {
+ "outputFile": "wwwroot/css/textures.css",
+ "inputFile": "wwwroot/css/textures.less"
}
]
\ No newline at end of file
diff --git a/Lux.UI/wwwroot/css/textures.css b/Lux.UI/wwwroot/css/textures.css
new file mode 100644
index 0000000..7ccc5e1
--- /dev/null
+++ b/Lux.UI/wwwroot/css/textures.css
@@ -0,0 +1,18 @@
+.wood-01 {
+ /*background-color: #FB8004;*/
+ background-image: url('../images/textures/wood-01.jpg');
+ /* path to your wood texture */
+ background-repeat: repeat;
+ /* repeat both horizontally & vertically */
+ background-size: 100px 100px;
+ /* adjust size as needed */
+}
+.wood-02 {
+ /*background-color: #CC6600;*/
+ background-image: url('../images/textures/wood-02.jpg');
+ /* path to your wood texture */
+ background-repeat: repeat;
+ /* repeat both horizontally & vertically */
+ background-size: 50px 150px;
+ /* adjust size as needed */
+}
\ No newline at end of file
diff --git a/Lux.UI/wwwroot/css/textures.less b/Lux.UI/wwwroot/css/textures.less
new file mode 100644
index 0000000..8082ae9
--- /dev/null
+++ b/Lux.UI/wwwroot/css/textures.less
@@ -0,0 +1,12 @@
+.wood-01 {
+ /*background-color: #FB8004;*/
+ background-image: url('../images/textures/wood-01.jpg'); /* path to your wood texture */
+ background-repeat: repeat; /* repeat both horizontally & vertically */
+ background-size: 100px 100px; /* adjust size as needed */
+}
+.wood-02 {
+ /*background-color: #CC6600;*/
+ background-image: url('../images/textures/wood-02.jpg'); /* path to your wood texture */
+ background-repeat: repeat; /* repeat both horizontally & vertically */
+ background-size: 50px 150px; /* adjust size as needed */
+}
\ No newline at end of file
diff --git a/Lux.UI/wwwroot/css/textures.min.css b/Lux.UI/wwwroot/css/textures.min.css
new file mode 100644
index 0000000..33c13c6
--- /dev/null
+++ b/Lux.UI/wwwroot/css/textures.min.css
@@ -0,0 +1 @@
+.wood-01{background-image:url('../images/textures/wood-01.jpg');background-repeat:repeat;background-size:100px 100px;}.wood-02{background-image:url('../images/textures/wood-02.jpg');background-repeat:repeat;background-size:50px 150px;}
\ No newline at end of file
diff --git a/Lux.UI/wwwroot/images/textures/wood-01.jpg b/Lux.UI/wwwroot/images/textures/wood-01.jpg
new file mode 100644
index 0000000..502d6c5
Binary files /dev/null and b/Lux.UI/wwwroot/images/textures/wood-01.jpg differ
diff --git a/Lux.UI/wwwroot/images/textures/wood-02.jpg b/Lux.UI/wwwroot/images/textures/wood-02.jpg
new file mode 100644
index 0000000..619a919
Binary files /dev/null and b/Lux.UI/wwwroot/images/textures/wood-02.jpg differ
diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html
index 70680e6..c67c474 100644
--- a/Resources/ChangeLog.html
+++ b/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
LUX - Web Windows MES
- Versione: 0.9.2508.0816
+ Versione: 0.9.2508.0818
Note di rilascio:
-
diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt
index 94c01f3..d8182b7 100644
--- a/Resources/VersNum.txt
+++ b/Resources/VersNum.txt
@@ -1 +1 @@
-0.9.2508.0816
+0.9.2508.0818
diff --git a/Resources/manifest.xml b/Resources/manifest.xml
index 9e4d213..fd07266 100644
--- a/Resources/manifest.xml
+++ b/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 0.9.2508.0816
+ 0.9.2508.0818
http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip
http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html
false
|