Update UI Selector Scan Item
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 9m1s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 9m1s
This commit is contained in:
parent
2d1dc71343
commit
d3c1e20635
@ -15,7 +15,7 @@
|
|||||||
<button type="button" class="btn-close" aria-label="Close" @onclick="Cancel"></button>
|
<button type="button" class="btn-close" aria-label="Close" @onclick="Cancel"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body" style="zoom:0.8;">
|
<div class="modal-body" style="zoom:0.9;">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="scan" class="form-label">Escanear o ingresar código</label>
|
<label for="scan" class="form-label">Escanear o ingresar código</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
@ -44,38 +44,41 @@
|
|||||||
Último escaneado: <strong>@last.ProductName</strong> | Lote <strong>@last.Batch</strong> | Venc: <strong>@last.Expiration?.ToShortDateString()</strong>
|
Último escaneado: <strong>@last.ProductName</strong> | Lote <strong>@last.Batch</strong> | Venc: <strong>@last.Expiration?.ToShortDateString()</strong>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<table class="table table-sm table-bordered">
|
<div class="stockselector-table-wrap" style="zoom:80%">
|
||||||
<thead class="table-light">
|
<table class="table table-sm table-bordered stockselector-table">
|
||||||
<tr>
|
<thead class="table-light">
|
||||||
<th>Producto</th>
|
|
||||||
<th>Lote</th>
|
|
||||||
<th>Serial</th>
|
|
||||||
<th>Vencimiento</th>
|
|
||||||
<th>Disponible</th>
|
|
||||||
<th>Cantidad a usar</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@foreach (var item in StockList)
|
|
||||||
{
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>@item.ProductName</td>
|
<th class="text-left align-middle">Producto</th>
|
||||||
<td>@item.Batch</td>
|
<th class="text-center align-middle">Lote</th>
|
||||||
<td>@item.Serial</td>
|
<th class="text-center align-middle">Serial</th>
|
||||||
<td>@item.Expiration?.ToShortDateString()</td>
|
<th class="text-center align-middle">Vencimiento</th>
|
||||||
<td>@item.Available.ToString("N2", CultureInfo.CurrentCulture)</td>
|
<th class="text-center align-middle">Disponible</th>
|
||||||
<td>
|
<th class="text-center align-middle">Cantidad a usar</th>
|
||||||
<input type="number"
|
|
||||||
value="@(item.Selected.ToString("G29"))"
|
|
||||||
@onchange="@(n => item.Selected = decimal.Parse(n.Value.ToString(), NumberStyles.Any, CultureInfo.InvariantCulture))"
|
|
||||||
min="0"
|
|
||||||
max="@(item.Available.ToString("G29"))"
|
|
||||||
class="form-control form-control-sm" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
}
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
</table>
|
@foreach (var item in StockList)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>@item.ProductName</td>
|
||||||
|
<td class="text-center align-middle">@item.Batch</td>
|
||||||
|
<td class="text-center align-middle">@item.Serial</td>
|
||||||
|
<td class="text-center align-middle">@item.Expiration?.ToShortDateString()</td>
|
||||||
|
<td class="text-center align-middle">@item.Available.ToString("N2", CultureInfo.CurrentCulture)</td>
|
||||||
|
<td>
|
||||||
|
<input type="number"
|
||||||
|
value="@(item.Selected.ToString("G29"))"
|
||||||
|
@onchange="@(n => item.Selected = decimal.Parse(n.Value.ToString(), NumberStyles.Any, CultureInfo.InvariantCulture))"
|
||||||
|
min="0"
|
||||||
|
max="@(item.Available.ToString("G29"))"
|
||||||
|
class="form-control form-control-sm" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|||||||
@ -0,0 +1,12 @@
|
|||||||
|
.stockselector-table-wrap {
|
||||||
|
height: 30vh; /* 30% de la altura visible del navegador */
|
||||||
|
overflow-y: auto; /* genera el scrollbar vertical */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sticky header */
|
||||||
|
.stockselector-table thead th {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 2;
|
||||||
|
background: #f8f9fa; /* mismo color que .table-light */
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user