178 lines
9.4 KiB
Plaintext
178 lines
9.4 KiB
Plaintext
@page "/Archive"
|
|
|
|
<div class="card">
|
|
<div class="card-header table-primary h3">
|
|
<div class="row">
|
|
<div class="col-12 col-md-3 col-lg-4 h3">
|
|
Elenco Programmi
|
|
</div>
|
|
<div class="col-12 col-md-9 col-lg-8 text-right">
|
|
<div class="form-row">
|
|
<div class="col-1">
|
|
<div class="form-group mb-0">
|
|
<button id="btnForceCheck" class="btn btn-warning btn-sm btn-block" @onclick="() => ForceCheck()" title="Forza verifica archivio">
|
|
<i class="far fa-folder-open"></i> <i class="fas fa-sync-alt"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="col-2">
|
|
<div class="input-group input-group-sm">
|
|
<div class="input-group-prepend">
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" id="togAttivi" title="Solo Aperti / Mostra tutti" @bind-value="@OnlyMod" checked="@OnlyMod" />
|
|
<label class="custom-control-label small" for="togAttivi"><sub>solo mod</sub></label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">
|
|
<span class="fas fa-industry" aria-hidden="true"></span>
|
|
</span>
|
|
</div>
|
|
<select @bind="@SelIdxMacc" class="form-control form-control-sm">
|
|
@if (MacList != null)
|
|
{
|
|
foreach (var item in MacList)
|
|
{
|
|
<option value="@item.IdxMacchina">@item.Descrizione (@item.CodMacchina)</option>
|
|
}
|
|
}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">
|
|
<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" width="4em" />
|
|
<select @bind="@SelCodArt" class="form-control form-control-sm">
|
|
@if (ArtList != null)
|
|
{
|
|
foreach (var item in ArtList)
|
|
{
|
|
<option value="@item.CodArticolo">@item.Disegno | @item.DescArticolo</option>
|
|
}
|
|
}
|
|
</select>
|
|
<div class="input-group-append">
|
|
<button id="searchReset" class="btn btn-sm btn-secondary" @onclick="() => ResetSearchArt()" title="Reset ricerca articolo"><i class="fas fa-ban"></i></button>
|
|
</div>
|
|
</div>
|
|
<MP.Prog.Components.CodArtSelector searchUpdated="searchArtUpd"></MP.Prog.Components.CodArtSelector>
|
|
</div>
|
|
<div class="col-1">
|
|
<div class="form-group mb-0">
|
|
<button id="btnReset" class="btn btn-info btn-sm btn-block" @onclick="() => ResetFilter()" title="Reset Filter"><span class="oi oi-loop-circular"></span></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body p-1">
|
|
@if (currRecord != null)
|
|
{
|
|
<MP.Prog.Components.FileEditor currItem="@currRecord" DataReset="ResetData" DataUpdated="UpdateData" ArtList="@ArtList" MacList="@MacList"></MP.Prog.Components.FileEditor>
|
|
}
|
|
@if (ListRecords == null)
|
|
{
|
|
<MP.Prog.Components.LoadingData></MP.Prog.Components.LoadingData>
|
|
<d2>RELOADING</d2>
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<table class="table table-sm table-striped table-responsive-lg">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>File</th>
|
|
<th>Rev</th>
|
|
<th>Size</th>
|
|
<th class="text-center">Ok</th>
|
|
<th>Macchina</th>
|
|
<th>Articolo</th>
|
|
<th class="text-right">Modificato</th>
|
|
@*<th>Controllo</th>*@
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@checkSelect(record.FileId)">
|
|
<td class="text-nowrap">
|
|
@if (currRecord == null)
|
|
{
|
|
<button class="btn btn-sm btn-info" @onclick="() => Edit(record)" title="Edit record #@record.FileId">
|
|
<i class="oi oi-pencil"></i>
|
|
</button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-sm btn-secondary disabled">
|
|
<i class="oi oi-pencil"></i>
|
|
</button>
|
|
}
|
|
</td>
|
|
<td>
|
|
<div>@record.Name</div>
|
|
<div class="small">@record.Path</div>
|
|
</td>
|
|
<td>
|
|
<div>@record.Rev</div>
|
|
</td>
|
|
<td>
|
|
<div>@((((double)record.Size)/1024).ToString("N2")) k</div>
|
|
</td>
|
|
<td class="text-center">
|
|
<span title="Ultimo controllo: @record.LastCheck.ToString("yyyy.MM.dd HH:mm:ss")">
|
|
|
|
@if (@record.Changed)
|
|
{
|
|
<i class="fas fa-circle text-danger"></i>
|
|
}
|
|
else
|
|
{
|
|
<i class="fas fa-check-circle text-success"></i>
|
|
}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<div>@record.Macchina.CodMacchina</div>
|
|
<div class="small">@record.Macchina.Descrizione</div>
|
|
</td>
|
|
<td>
|
|
<div>@record.Articolo.Disegno</div>
|
|
<div class="small">@record.Articolo.DescArticolo</div>
|
|
</td>
|
|
<td class="text-right">
|
|
<div>@record.LastMod.ToString("yyyy.MM.dd")</div>
|
|
<div class="small">@record.LastMod.ToString("ddd HH:mm.ss")</div>
|
|
</td>
|
|
@*<td>
|
|
<div>@record.LastCheck.ToString("yyyy.MM.dd")</div>
|
|
<div class="small">@record.LastCheck.ToString("ddd HH:mm.ss")</div>
|
|
</td>*@
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="card-footer p-1">
|
|
@*<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="ForceReload" numPageChanged="ForceReloadPage" totalCount="totalCount" showLoading="isLoading" />*@
|
|
</div>
|
|
</div> |