From 020792d7f47e2d8f2e15c4cee72b2b6c22ee22a3 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Mon, 27 Feb 2023 09:48:04 +0100 Subject: [PATCH] fix comportamento dx sx stato mag --- StockMan.CORE/Components/LocationDX.razor | 3 +- StockMan.CORE/Components/LocationSX.razor | 62 ++++++++++----------- StockMan.CORE/Components/ValStockGiac.razor | 2 +- StockMan.CORE/Pages/StatoMag.razor | 5 +- StockMan.Data/DbModels/ItemStockModel.cs | 2 + 5 files changed, 39 insertions(+), 35 deletions(-) diff --git a/StockMan.CORE/Components/LocationDX.razor b/StockMan.CORE/Components/LocationDX.razor index 10f7ecc..9178113 100644 --- a/StockMan.CORE/Components/LocationDX.razor +++ b/StockMan.CORE/Components/LocationDX.razor @@ -1,5 +1,4 @@ - - @if (listItemByLoc != null) + @if (listItemByLoc != null) { diff --git a/StockMan.CORE/Components/LocationSX.razor b/StockMan.CORE/Components/LocationSX.razor index 9178113..b3c0e79 100644 --- a/StockMan.CORE/Components/LocationSX.razor +++ b/StockMan.CORE/Components/LocationSX.razor @@ -1,33 +1,33 @@ - @if (listItemByLoc != null) - { +@if (listItemByLoc != null) +{ -
- - - - - - - +
Descr. ArticoloGiacenzaValore Unit.
+ + + + + + + + + + + @foreach (var item in listItemByLoc) + { + + + + + + - - - @foreach (var item in listItemByLoc) - { - - - - - - - - } - -
Descr. ArticoloGiacenzaValore Unit.
+ @item.ItemNav.Descr + + @item.QtyConf + + @($"{item.ItemNav.CurrValue:C2}") +
- @item.ItemNav.Descr - - @item.QtyConf - - @($"{item.ItemNav.CurrValue:C2}") -
- } \ No newline at end of file + } + + +} \ No newline at end of file diff --git a/StockMan.CORE/Components/ValStockGiac.razor b/StockMan.CORE/Components/ValStockGiac.razor index 80c074a..84a2627 100644 --- a/StockMan.CORE/Components/ValStockGiac.razor +++ b/StockMan.CORE/Components/ValStockGiac.razor @@ -45,7 +45,7 @@ @($"{item.TotVal:C2}") - + } diff --git a/StockMan.CORE/Pages/StatoMag.razor b/StockMan.CORE/Pages/StatoMag.razor index 187bef6..655fa02 100644 --- a/StockMan.CORE/Pages/StatoMag.razor +++ b/StockMan.CORE/Pages/StatoMag.razor @@ -3,7 +3,10 @@ @page "/StatoMagazzino" - +@if ((string.IsNullOrEmpty(currLocId_DX) && string.IsNullOrEmpty(currLocId_SX)) || (!string.IsNullOrEmpty(currLocId_DX) && string.IsNullOrEmpty(currLocId_SX)) || (string.IsNullOrEmpty(currLocId_DX) && !string.IsNullOrEmpty(currLocId_SX))) +{ + +}
diff --git a/StockMan.Data/DbModels/ItemStockModel.cs b/StockMan.Data/DbModels/ItemStockModel.cs index b0906b8..b74078e 100644 --- a/StockMan.Data/DbModels/ItemStockModel.cs +++ b/StockMan.Data/DbModels/ItemStockModel.cs @@ -15,6 +15,8 @@ namespace StockMan.Data.DbModels public string LocationId { get; set; } = null!; public int QtyConf { get; set; } public string Note { get; set; } = null!; + public int PosR { get; set; } = 0; + public int PosC { get; set; } = 0; /// /// data-ora ultimo aggiornamento ///