47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
@if (isLoading)
|
|
{
|
|
<div class="col-12">
|
|
<LoadingData></LoadingData>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
if (ListRecords.Count == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped text-left">
|
|
<thead>
|
|
<tr>
|
|
<td></td>
|
|
<th>Rag.Sociale</th>
|
|
<th class="text-right">CodFisc</th>
|
|
<th class="text-right">VAT</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListRecords)
|
|
{
|
|
<tr>
|
|
<td class="text-center">
|
|
@if (item.CustomerId == 0)
|
|
{
|
|
<button class="btn btn-sm btn-success" @onclick="() => ImportCliExt(item)"><i class="fas fa-arrow-alt-circle-left"></i> Import</button>
|
|
}
|
|
else
|
|
{
|
|
|
|
<i class="fas fa-link"></i> <small>(@item.CustomerId)</small>
|
|
}
|
|
</td>
|
|
<td>@item.RagSoc</td>
|
|
<td class="text-right">@item.CF</td>
|
|
<td class="text-right">@item.PI</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
} |