Prima versione caricamento dati NUOVI da filesystem

This commit is contained in:
Samuele Locatelli
2021-09-03 18:01:58 +02:00
parent 50ed15b0ca
commit 7c80e1aaaf
6 changed files with 216 additions and 30 deletions
+18
View File
@@ -219,6 +219,24 @@ namespace MP.Prog.Data
dbController.RollBackEntity(item);
}
/// <summary>
/// Aggiorna intero archivio scansionando dati x tutte le macchine che hanno un path valido
/// </summary>
/// <returns></returns>
public async Task updateAllArchive()
{
try
{
var listaMacchine = await MacchineGetAll();
foreach (var item in listaMacchine.Where(x => !string.IsNullOrEmpty(x.BasePath)).ToList())
{
dbController.CheckFileArchived(item.IdxMacchina, item.BasePath, "*.*");
}
}
catch
{ }
}
#endregion Public Methods
#if false
+1 -1
View File
@@ -40,7 +40,7 @@
<span class="fas fa-search" aria-hidden="true"></span>
</span>
</div>
<input type="text" class="form-control form-control-sm" placeholder="Ricerca Articolo" @bind-value="@SearchArt" />
<input type="text" class="form-control form-control-sm" placeholder="Ricerca Articolo" @bind-value="@SearchArt" width="4em" />
<select @bind="@SelCodArt" class="form-control form-control-sm">
@if (ArtList != null)
{
+3 -1
View File
@@ -190,11 +190,13 @@ namespace MP.Prog.Pages
protected async Task ForceCheck()
{
// !!!FARE
isLoading = true;
await DataService.updateAllArchive();
currRecord = null;
SearchRecords = null;
ListRecords = null;
AppMService.File_Filter = SelectData.Init(5, 10);
isLoading = false;
await ReloadAllData();
}