refresh pagina attivazioni

This commit is contained in:
Samuele Locatelli
2021-11-08 16:36:25 +01:00
parent 043f4387da
commit 8a1d65a1ca
2 changed files with 8 additions and 9 deletions
+4 -1
View File
@@ -2,7 +2,10 @@
<table class="table table-sm table-striped table-responsive-lg">
<thead>
<tr>
<th></th>
<th>
<button type="button" class="btn btn-sm btn-warning btn-block" @onclick="close()"><i class="fas fa-times"></i></button>
</th>
<th>#</th>
<th>Impiego</th>
<th>Chiave</th>
+4 -8
View File
@@ -13,10 +13,7 @@ namespace LiMan.UI.Components
{
#region Private Fields
private int currPage = 1;
private List<SubLicenzaModel> ListRecords;
private int numRecord = 10;
private List<SubLicenzaModel> SearchRecords;
#endregion Private Fields
@@ -88,11 +85,6 @@ namespace LiMan.UI.Components
ListRecords = null;
await Task.Delay(1);
ListRecords = await DataService.AttivazioniGetByLic(MasterLicence.IdxLic);
#if false
SearchRecords = await DataService.AttivazioniGetByLic(MasterLicence.IdxLic);
totalCount = SearchRecords.Count();
ListRecords = SearchRecords.Skip(numRecord * (currPage - 1)).Take(numRecord).ToList();
#endif
isLoading = false;
}
@@ -100,6 +92,10 @@ namespace LiMan.UI.Components
#region Protected Methods
protected void close()
{
}
/// <summary>
/// formatta testo secondo scadenza:
/// scadenza < oggi --> verde