63 lines
2.5 KiB
Plaintext
63 lines
2.5 KiB
Plaintext
<div class="row">
|
|
@if (CurrOrd == null || IsLoading)
|
|
{
|
|
<div class="col-12">
|
|
<LoadingData></LoadingData>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
@if (ListRecords == null || ListRecords.Count == 0)
|
|
{
|
|
@*<LoadingData></LoadingData>*@
|
|
<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 class="text-nowrap">Doc #</th>
|
|
<th>Cliente / Descrizione</th>
|
|
<th class="text-right">Importi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr>
|
|
<td class="text-nowrap">
|
|
@if (currItem == null)
|
|
{
|
|
<button class="btn btn-sm btn-warning" title="Importa Selezionata" @onclick="() => DoImport(record)"><i class="fas fa-arrow-up"></i></button>
|
|
}
|
|
</td>
|
|
<td class="text-nowrap">
|
|
@($"{record.DateIns:yyyy-MM-dd}")
|
|
<div class="small">
|
|
<b>@record.Num</b> / @record.YearRef
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<b>@record.RagSoc</b>
|
|
<div class="small">
|
|
@record.Descript
|
|
</div>
|
|
</td>
|
|
<td class="text-nowrap text-right">
|
|
N: <b>@record.Net.ToString("C2")</b><br />
|
|
I: <b>@record.Amount.ToString("C2")</b><br />
|
|
P: <b>@record.Paid.ToString("C2")</b><br />
|
|
D: <b>@record.PayDue.ToString("C2")</b>
|
|
</td>
|
|
<td class="text-nowrap text-right">
|
|
<input type="checkbox" disabled @bind="@record.IsValidated">
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
}
|
|
</div> |