143 lines
6.2 KiB
Plaintext
143 lines
6.2 KiB
Plaintext
<div class="row">
|
|
@if (SelRecord != null)
|
|
{
|
|
<ArchiveEdit CurrRec="SelRecord" EC_update="ResetSel"></ArchiveEdit>
|
|
}
|
|
else
|
|
{
|
|
<div class="col-4">
|
|
<button id="btnForceCheck" class="btn btn-success btn-sm w-100" @onclick="AddNew" title="Aggiunta nuova Directory da monitorare">
|
|
<i class="fas fa-folder-plus"></i> Aggiunta Folder <i class="fas fa-folder-plus"></i>
|
|
</button>
|
|
</div>
|
|
<div class="col-4 py-2">
|
|
@if (showProgress)
|
|
{
|
|
<div class="progress">
|
|
<div class="progress-bar progress-bar-striped progress-bar-animated" style="width:@percLoading%;"></div>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="col-4">
|
|
<button id="btnForceCheck" class="btn btn-primary btn-sm w-100" @onclick="() => ForceCheck(0)" title="Forza verifica archivio (totale)">
|
|
<i class="fas fa-sync-alt"></i> Update Completo Archivio <i class="far fa-folder-open"></i>
|
|
</button>
|
|
</div>
|
|
}
|
|
<div class="col-12 mt-2">
|
|
@if (ListRecords == null)
|
|
{
|
|
<div class="row">
|
|
<div class="col-4">
|
|
@if (showProgress)
|
|
{
|
|
<div class="col-12 mt-2">
|
|
<div class="alert alert-primary">
|
|
@if (setupMessages.Count > 0)
|
|
{
|
|
<ul>
|
|
@foreach (var item in setupMessages)
|
|
{
|
|
<li>@item</li>
|
|
}
|
|
</ul>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="col-8">
|
|
<EgwCoreLib.Razor.LoadingData></EgwCoreLib.Razor.LoadingData>
|
|
</div>
|
|
</div>
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
|
|
<table class="table table-sm table-striped table-responsive-lg">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<button class="btn btn-primary btn-sm" @onclick="ResetSel" title="Reset selezione">
|
|
<i class="fas fa-sync"></i>
|
|
</button>
|
|
</th>
|
|
<th>Macchina</th>
|
|
<th>Path</th>
|
|
<th class="text-end">Tags</th>
|
|
<th class="text-end">Senza Tag</th>
|
|
<th class="text-end" title="Modificati">Modif.</th>
|
|
<th class="text-end" title="Eliminati">Miss.</th>
|
|
<th class="text-end">Tot File</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
@if (!string.IsNullOrEmpty(record.BasePath))
|
|
{
|
|
<tr>
|
|
<td>
|
|
@if (SelRecord == null)
|
|
{
|
|
<button class="btn btn-primary btn-sm" @onclick="() => SelEdit(record.IdxMacchina)" title="Edit Configurazione">
|
|
<i class="fas fa-edit"></i>
|
|
</button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-secondary btn-sm" disabled>
|
|
<i class="fas fa-edit"></i>
|
|
</button>
|
|
}
|
|
</td>
|
|
<td>
|
|
@record.Nome
|
|
</td>
|
|
<td>
|
|
<div class="small">@record.BasePath</div>
|
|
</td>
|
|
<td class="text-end">
|
|
@record.TotalTags
|
|
</td>
|
|
<td class="text-end">
|
|
@record.NoTags
|
|
</td>
|
|
<td class="text-end">
|
|
@record.NumChanged
|
|
</td>
|
|
<td class="text-end">
|
|
@record.NumMissing
|
|
</td>
|
|
<td class="text-end">
|
|
<b>
|
|
@record.TotFile
|
|
</b>
|
|
</td>
|
|
<td class="text-end">
|
|
@if (SelRecord == null)
|
|
{
|
|
<button id="btnForceCheck" class="btn btn-warning btn-sm" @onclick="() => ForceCheckMacchina(record.IdxMacchina)" title="Forza verifica Archivio singola macchina">
|
|
<i class="fas fa-sync-alt"></i>
|
|
</button>
|
|
}
|
|
else
|
|
{
|
|
<button id="btnForceCheck" class="btn btn-secondary btn-sm" disabled>
|
|
<i class="fas fa-sync-alt"></i>
|
|
</button>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
</div> |