fix comportamento dx sx stato mag

This commit is contained in:
zaccaria.majid
2023-02-27 09:48:04 +01:00
parent 55b85e81e4
commit 020792d7f4
5 changed files with 39 additions and 35 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
@if (listItemByLoc != null)
@if (listItemByLoc != null)
{
<table class="table table-striped table-bordered small">
+31 -31
View File
@@ -1,33 +1,33 @@
@if (listItemByLoc != null)
{
@if (listItemByLoc != null)
{
<table class="table table-striped table-bordered small">
<thead>
<tr class="">
<th></th>
<th>Descr. Articolo</th>
<th>Giacenza</th>
<th>Valore Unit.</th>
<th></th>
<table class="table table-striped table-bordered small">
<thead>
<tr class="">
<th></th>
<th>Descr. Articolo</th>
<th>Giacenza</th>
<th>Valore Unit.</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in listItemByLoc)
{
<tr>
<td></td>
<td>
@item.ItemNav.Descr
</td>
<td>
@item.QtyConf
</td>
<td>
@($"{item.ItemNav.CurrValue:C2}")
</td>
<td></td>
</tr>
</thead>
<tbody>
@foreach (var item in listItemByLoc)
{
<tr>
<td></td>
<td>
@item.ItemNav.Descr
</td>
<td>
@item.QtyConf
</td>
<td>
@($"{item.ItemNav.CurrValue:C2}")
</td>
<td></td>
</tr>
}
</tbody>
</table>
}
}
</tbody>
</table>
}
+1 -1
View File
@@ -45,7 +45,7 @@
@($"{item.TotVal:C2}")
</td>
<td style="width: 0;" class="small">
<button class="btn btn-sm btn-info text-light" @onclick="()=>setLocationSX(item.LocationId)"><i class="fa-solid fa-arrow-turn-down small"></i></button>
<button class="btn btn-sm btn-info text-light" @onclick="()=>setLocationDX(item.LocationId)"><i class="fa-solid fa-arrow-turn-down small"></i></button>
</td>
</tr>
}
+4 -1
View File
@@ -3,7 +3,10 @@
@page "/StatoMagazzino"
<ValStockGiac LocId_SX="catchCurrLocId_SX" LocId_DX="catchCurrLocId_DX"></ValStockGiac>
@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)))
{
<ValStockGiac LocId_SX="catchCurrLocId_SX" LocId_DX="catchCurrLocId_DX"></ValStockGiac>
}
<div class="row">
<div class="col">
<LocationSX locSX_ID="@currLocId_SX" locDX_ID="@currLocId_DX"></LocationSX>
+2
View File
@@ -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;
/// <summary>
/// data-ora ultimo aggiornamento
/// </summary>