80b058d524
- fix grafica/interattività - rimozione compo proj inutilizzato
69 lines
2.7 KiB
Plaintext
69 lines
2.7 KiB
Plaintext
@page "/ActHistory"
|
|
@attribute [Authorize]
|
|
|
|
<div class="card shadow-lg">
|
|
<div class="card-header table-primary py-1">
|
|
<div class="row">
|
|
<div class="col-8 col-lg-9 text-start">
|
|
<h2><i class="fas fa-home"></i> Last Activity Inserted</h2>
|
|
</div>
|
|
<div class="col-4 col-lg-3 text-end">
|
|
<div class="input-group mb-3">
|
|
<span class="input-group-text">Mostra Ultimi</span>
|
|
<input type="text" class="form-control" @bind="@numRecLast" />
|
|
<span class="input-group-text">record</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (ListRecords == null || isLoading)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
<div class="col-6">
|
|
@foreach (var item in ListRecords)
|
|
{
|
|
<div class="@getItemCss(item)">
|
|
<DettAtt CurrData="item" Periodo="@(item.Durata.TotalHours)" ListFasi="@ListFasi" IdxDipSel="@IdxDipendente" ItemSelected="ReportSelected" ItemDeleted="() => ReportDeleted()" MaxChar="@MaxChar" ShowDate="true"></DettAtt>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="card-footer py-1">
|
|
<EgwCoreLib.Razor.DataPager PageSize="@numRecord" currPage="@currPage" numRecordChanged="SetNumRec" numPageChanged="SetPage" totalCount="@numRecLast" showLoading="@isLoading"></EgwCoreLib.Razor.DataPager>
|
|
<div class="d-flex justify-content-between">
|
|
<div class="py-1 px-2">
|
|
<span>@lastRefresh.ToString("HH:mm:ss")</span> <i class="far fa-clock"></i>
|
|
</div>
|
|
<div class="py-1 px-2">
|
|
@if (clonedRA != null)
|
|
{
|
|
<div class="d-flex">
|
|
<div class="px-2 flex-grow-1">
|
|
<RegAtt CurrData="@clonedRA" Periodo="@periodoClonato" ListFasi="@ListFasi" ItemSelected="ReportSelect" IdxDipSel="@IdxDipendente" IsClipboard="true"></RegAtt>
|
|
</div>
|
|
<div class="px-2">
|
|
<button class="btn w-100 btn-warning" @onclick="ResetClone" title="Reset Clipboard">
|
|
<i class="fas fa-clipboard"></i><br>
|
|
<i class="far fa-times-circle"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="my-4"> </div>
|
|
|
|
|
|
|