81 lines
3.3 KiB
Plaintext
81 lines
3.3 KiB
Plaintext
|
|
<div class="card shadow">
|
|
<div class="card-header d-flex justify-content-between">
|
|
<div class="px-0">
|
|
<h4>Dipendenti</h4>
|
|
</div>
|
|
<div class="px-0">
|
|
<div class="row">
|
|
<div class="col-9">
|
|
<div class="input-group input-group-sm" runat="server">
|
|
<span class="input-group-text">Clona</span>
|
|
<select @bind="@idxDipSel" class="form-select form-select-sm">
|
|
<option value="0">--- Selezionare ---</option>
|
|
@foreach (var item in ListDipendenti)
|
|
{
|
|
<option value="@item.IdxDipendente">@($"{item.Cognome} {item.Nome}")</option>
|
|
}
|
|
</select>
|
|
@if (idxDipSel > 0)
|
|
{
|
|
<button class="btn btn-success" @onclick="AddSelected"><i class="fa fa-plus px-2" title="Aggiungi Assegnazione"></i></button>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="col-3 ps-0">
|
|
<div class="input-group input-group-sm" title="Mostra Inattivi">
|
|
<span class="input-group-text">All</span>
|
|
<span class="form-control py-0">
|
|
<span class="form-check form-switch">
|
|
<input type="checkbox" class="form-check-input" @bind="@ShowInactive" @bind:after="ReloadData">
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body p-1">
|
|
@if (ListRecords == null || isLoading)
|
|
{
|
|
<EgwCoreLib.Razor.LoadingData></EgwCoreLib.Razor.LoadingData>
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-info">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-striped table-sm text-start">
|
|
@* <thead>
|
|
<tr class="">
|
|
<th>Dipendente</th>
|
|
<th class="text-end"></th>
|
|
</tr>
|
|
</thead> *@
|
|
<tbody>
|
|
@foreach (var item in ListRecords)
|
|
{
|
|
<tr class="align-middle @CheckItem(item)">
|
|
<td>
|
|
<b>@item.Cognome</b> @item.Nome
|
|
</td>
|
|
<td class="text-end">
|
|
<button class="btn btn-danger btn-sm" @onclick="() => DoDelete(item)"><i class="fa-solid fa-trash"></i></button>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
@* <tfoot>
|
|
<tr>
|
|
<td colspan="2">
|
|
</td>
|
|
</tr>
|
|
</tfoot> *@
|
|
</table>
|
|
}
|
|
</div>
|
|
<div class="card-footer p-0">
|
|
<EgwCoreLib.Razor.DataPager PageSize="@numRecord" currPage="@currPage" numRecordChanged="SetNumRec" numPageChanged="SetPage" totalCount="@totalCount" showLoading="@isLoading"></EgwCoreLib.Razor.DataPager>
|
|
</div>
|
|
</div> |