Modifica qty inserita: non va da provare...
This commit is contained in:
@@ -41,12 +41,32 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2 px-0 text-center text-nowrap d-flex justify-content-center">
|
||||
<div class="px-2">
|
||||
@if (item.Qta <= 0)
|
||||
{
|
||||
<button class="btn btn-secondary">−</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button class="btn btn-warning" @onclick="() => modQty(item, -1)">−</button>
|
||||
}
|
||||
</div>
|
||||
<div>
|
||||
<b class="fs-2">@item.Qta</b>
|
||||
</div>
|
||||
<div class="ps-1 fs-4">
|
||||
×<span>pz</span>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
@if (item.Qta >= item.QtaMax)
|
||||
{
|
||||
<button class="btn btn-secondary">+</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button class="btn btn-success" @onclick="() => modQty(item, 1)">+</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-5 text-end small">
|
||||
<div class="text-truncate">
|
||||
|
||||
@@ -64,6 +64,17 @@ namespace MP_TAB_SERV.Components
|
||||
ListPaged = ListComplete;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Modifica qty del record
|
||||
/// </summary>
|
||||
/// <param name="currItem"></param>
|
||||
/// <param name="delta"></param>
|
||||
/// <returns></returns>
|
||||
protected async Task modQty(RegistroScartiKitModel currItem, int delta)
|
||||
{
|
||||
currItem.Qta += delta;
|
||||
await TabDServ.RegScartiKitUpdateQty(currItem);
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
|
||||
@@ -77,21 +77,23 @@
|
||||
<b class="fs-2">@item.Qta</b>
|
||||
</div>
|
||||
<div class="ps-1 fs-4">
|
||||
|
||||
|
||||
@if (item.Tipo == "KIT")
|
||||
{
|
||||
<div class="d-flex justify-content-center align-items-center flex-wrap h-100">
|
||||
<sub class="pe-1">×</sub>
|
||||
<button class="btn btn-info" @onclick="()=>ShowKitDetail(item)" title="KIT">
|
||||
@if (item.KitSplit)
|
||||
{
|
||||
@if (item.KitSplit)
|
||||
{
|
||||
<button class="btn btn-info" @onclick="()=>ShowKitDetail(item)" title="KIT esploso">
|
||||
<i class="fa-solid fa-box-open"></i>
|
||||
}
|
||||
else
|
||||
{
|
||||
</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button class="btn btn-secondary" @onclick="()=>ShowKitDetail(item)" title="KIT non esploso">
|
||||
<i class="fa-solid fa-box"></i>
|
||||
}
|
||||
</button>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
else
|
||||
|
||||
@@ -144,6 +144,7 @@ namespace MP_TAB_SERV.Components
|
||||
selItem = null;
|
||||
}
|
||||
}
|
||||
await ReloadData();
|
||||
isProcessing = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>6.16.2312.1412</Version>
|
||||
<Version>6.16.2312.1413</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP_TAB_SERV</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2312.1412</h4>
|
||||
<h4>Versione: 6.16.2312.1413</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2312.1412
|
||||
6.16.2312.1413
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2312.1412</version>
|
||||
<version>6.16.2312.1413</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user