diff --git a/MP-TAB/MP-TAB.Client/Pages/TCHistory.razor b/MP-TAB/MP-TAB.Client/Pages/TCHistory.razor index 880d452c..4586423f 100644 --- a/MP-TAB/MP-TAB.Client/Pages/TCHistory.razor +++ b/MP-TAB/MP-TAB.Client/Pages/TCHistory.razor @@ -49,7 +49,7 @@ { -
Nessun record trovato
+
Nessun record trovato
} @@ -88,7 +88,6 @@ @* *@ -

@item.IdxOdl

} } } @@ -109,11 +108,11 @@ protected int SearchMinChar = 3; protected string CodArt = ""; - protected string IdxMacc = ""; + protected string IdxMacc = "*"; protected string BaseAddr = ""; protected bool isLoading = false; - protected int NumRecPage = 10; + protected int NumRecPage = 5; protected int TotalCount = 0; protected int PageNum = 1; @@ -151,14 +150,7 @@ ListComplete = rawData; TotalCount = ListComplete.Count; // esegue paginazione - if (TotalCount > NumRecPage) - { - ListODL = ListComplete.Skip((PageNum - 1) * NumRecPage).Take(NumRecPage).ToList(); - } - else - { - ListODL = ListComplete; - } + UpdateTable(); } } catch (Exception exc) @@ -169,16 +161,29 @@ isLoading = false; } - protected async Task SavePage(int newNum) + protected void UpdateTable() { - PageNum = newNum; - await ReloadData(); + // esegue paginazione + if (TotalCount > NumRecPage) + { + ListODL = ListComplete.Skip((PageNum - 1) * NumRecPage).Take(NumRecPage).ToList(); + } + else + { + ListODL = ListComplete; + } } - protected async Task SaveNumRec(int newNum) + protected void SavePage(int newNum) + { + PageNum = newNum; + UpdateTable(); + } + + protected void SaveNumRec(int newNum) { NumRecPage = newNum; - await ReloadData(); + UpdateTable(); } private static NLog.Logger Log = LogManager.GetCurrentClassLogger(); diff --git a/MP-TAB/MP-TAB/Components/App.razor b/MP-TAB/MP-TAB/Components/App.razor index a83b0d09..965b0d4e 100644 --- a/MP-TAB/MP-TAB/Components/App.razor +++ b/MP-TAB/MP-TAB/Components/App.razor @@ -3,7 +3,13 @@ + + @* *@ + + + + @* *@ @@ -11,7 +17,7 @@ - + diff --git a/MP-TAB/MP-TAB/wwwroot/favicon.ico b/MP-TAB/MP-TAB/wwwroot/favicon.ico new file mode 100644 index 00000000..4f0e0ad0 Binary files /dev/null and b/MP-TAB/MP-TAB/wwwroot/favicon.ico differ diff --git a/MP-TAB/MP-TAB/wwwroot/images/favicon.png b/MP-TAB/MP-TAB/wwwroot/images/favicon.png new file mode 100644 index 00000000..0f58f814 Binary files /dev/null and b/MP-TAB/MP-TAB/wwwroot/images/favicon.png differ