Files
lux/Lux.UI/Components/Compo/OfferRowMan.razor
T
2025-07-22 19:04:30 +02:00

82 lines
3.4 KiB
Plaintext

@if (EditRecord != null)
{
<h3>@EditRecord.OfferRowCode</h3>
}
else
{
<div class="card shadow">
<div class="card-header bg-info bg-opacity-50 bg-gradient">
Dettaglio ordine
</div>
<div class="cad-body px-2">
@if (isLoading || ListRecords == null)
{
<LoadingData></LoadingData>
}
else if (totalCount == 0)
{
<div class="alert alert-info text-center fs-5">Nessun record trovato</div>
}
else
{
<table class="table table-sm table-striped">
<thead>
<tr>
<th>ID</th>
@if (DisplayMode == EgwCoreLib.Lux.Core.Enum.DisplayMode.Edit)
{
<th>preview</th>
}
<th>Codice</th>
<th>Descrizione</th>
<th class="text-end">Qty</th>
<th class="text-end">Importo</th>
<th class="text-end">Tot</th>
@if (DisplayMode == EgwCoreLib.Lux.Core.Enum.DisplayMode.Edit)
{
<th class="text-end">a</th>
<th class="text-end">b</th>
<th class="text-end">c</th>
}
</tr>
</thead>
<tbody>
@foreach (var item in ListRecords)
{
<tr>
<td>
@if (DisplayMode == EgwCoreLib.Lux.Core.Enum.DisplayMode.Edit)
{
<button class="btn btn-sm btn-info" @onclick="() => DoEdit(item)"><i class="fa-solid fa-pencil"></i></button>
}
else
{
@item.RowNum
}
</td>
@if (DisplayMode == EgwCoreLib.Lux.Core.Enum.DisplayMode.Edit)
{
<td>
<img class="img-fluid" src="images/logoegw.png" width="48" />
</td>
}
<td>@item.OfferRowCode</td>
<td>@item.Note</td>
<td class="text-end">@item.Qty</td>
<td class="text-end">@($"{item.Cost:C2}")</td>
<td class="text-end fw-bold">@($"{item.TotalCost:C2}")</td>
@if (DisplayMode == EgwCoreLib.Lux.Core.Enum.DisplayMode.Edit)
{
<td class="text-end">test a</td>
<td class="text-end">test b</td>
<td class="text-end">test c</td>
}
</tr>
}
</tbody>
</table>
}
</div>
</div>
}