2b4cad4234
- Inserito filtro in offerte in base allo stato
70 lines
2.8 KiB
Plaintext
70 lines
2.8 KiB
Plaintext
@if (isLoading || ListRecords == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-info text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<button class="btn btn-sm btn-primary" title="Reset selezione" @onclick="DoReset"><i class="fa-solid fa-arrow-rotate-right"></i></button>
|
|
</th>
|
|
<th class ="text-start">Nome</th>
|
|
<th class="text-start">Cognome</th>
|
|
<th class="text-start">Nome azienda</th>
|
|
<th class="text-start">Codice fiscale/P.Iva</th>
|
|
<th class="text-start">N° Offerte</th>
|
|
<th class="text-start">N° Ordini</th>
|
|
<th class="text-start"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListRecords)
|
|
{
|
|
<tr class="@checkSel(item)">
|
|
<td class="text-start text-nowrap align-middle">
|
|
<button class="btn btn-sm btn-info" @onclick="() => DoEdit(item)"><i class="fa-solid fa-pencil"></i></button>
|
|
</td>
|
|
<td class="text-start text-nowrap align-middle">
|
|
@item.FirstName
|
|
</td>
|
|
<td class="text-start text-nowrap align-middle">
|
|
@item.LastName
|
|
</td>
|
|
<td class="text-start text-nowrap align-middle">
|
|
@item.CompanyName
|
|
</td>
|
|
<td class="text-start text-nowrap align-middle">
|
|
@item.VAT
|
|
</td>
|
|
<td class="text-start text-nowrap align-middle">
|
|
@NumOffer(item.CustomerID)
|
|
</td>
|
|
<td class="text-start text-nowrap align-middle">
|
|
@NumOrder(item.CustomerID)
|
|
</td>
|
|
<td class="text-start text-nowrap sssalign-middle">
|
|
<button class="btn btn-sm btn-secondary disabled"><i class="fa-solid fa-trash-can"></i></button>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
@if (totalCount > numRecord)
|
|
{
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="15">
|
|
<EgwCoreLib.Razor.DataPager currPage="@currPage" PageSize="@numRecord" totalCount="@totalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec"></EgwCoreLib.Razor.DataPager>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
}
|
|
</table>
|
|
}
|
|
|
|
<BootstrapModal @ref=Modal Title=@mTitle Message=@mMessage Mode="BootstrapModal.ModalMode.Confirm" UserOptions=@modalOpt></BootstrapModal> |