Prima versione caricamento dati NUOVI da filesystem
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user