72 lines
3.2 KiB
Plaintext
72 lines
3.2 KiB
Plaintext
<div class="card shadow">
|
|
<div class="card-header bg-primary text-light">
|
|
<b>Fatture Importate</b>
|
|
</div>
|
|
<div class="card-body py-0">
|
|
<div class="row">
|
|
@if (CurrOrd == null)
|
|
{
|
|
<div class="col-12">
|
|
<LoadingData></LoadingData>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
@if (ListRecords == null || ListRecords.Count == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped ">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Data</th>
|
|
<th>Num</th>
|
|
<th class="text-right">Importo</th>
|
|
<th class="text-right">Pagato</th>
|
|
<th class="text-right">Val</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@CheckSelect(record.IdxBill)">
|
|
<td class="text-nowrap">
|
|
@*@if (currItem == null)
|
|
{
|
|
}*@
|
|
<button class="btn btn-sm btn-info" @onclick="() => Edit(record)"><span class="fas fa-pen"></span></button>
|
|
</td>
|
|
<td>
|
|
@($"{record.DateIns:yyyy-MM-dd}")
|
|
</td>
|
|
<td>
|
|
<b>@record.Num</b> / @record.YearRef
|
|
</td>
|
|
<td class="text-nowrap text-right">
|
|
<b>@record.Amount.ToString("C2")</b>
|
|
</td>
|
|
<td class="text-nowrap text-right">
|
|
<b>@record.Paid.ToString("C2")</b>
|
|
</td>
|
|
<td class="text-nowrap text-right">
|
|
<input type="checkbox" disabled @bind="@record.IsValidated">
|
|
</td>
|
|
<td class="text-right">
|
|
@*@if (currItem == null)
|
|
{
|
|
}*@
|
|
<button class="btn btn-sm btn-danger" @onclick="() => Delete(record)"><span class="oi oi-trash"></span></button>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
</div> |