110 lines
4.7 KiB
Plaintext
110 lines
4.7 KiB
Plaintext
@page "/"
|
|
@page "/Home"
|
|
@page "/report-man"
|
|
|
|
|
|
<div class="card shadow">
|
|
@if (!string.IsNullOrEmpty(currRepFile))
|
|
{
|
|
<div class="card-header">
|
|
<div class="d-flex justify-content-between">
|
|
<div class="px-1">
|
|
<div class="fs-3">
|
|
<b>@FileName(currRepFile)</b>
|
|
</div>
|
|
<div class="small">@currRepFile</div>
|
|
</div>
|
|
<div class="px-1">
|
|
<button class="btn btn-primary" @onclick="DoCloseEditRep">Chiudi <i class="fa-solid fa-xmark"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<ReportDesigner ReportPathName="@currRepFile"></ReportDesigner>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="card-header">
|
|
<h3>ReportList</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (isLoading)
|
|
{
|
|
<p>...loading...</p>
|
|
@* <LoadingData></LoadingData> *@
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-info">
|
|
<div class="d-flex justify-content-between">
|
|
<div class="px-0 fs-4">
|
|
Nessun Report trovato
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
<div class="@mainCss">
|
|
<table class="table table-sm table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<button class="btn btn-sm btn-primary" title="Reset selezione" @onclick="DoReset"><i class="fa-solid fa-arrow-rotate-right"></i></button>
|
|
</th>
|
|
<th>Nome</th>
|
|
<th>Descrizione</th>
|
|
@if (isAuth)
|
|
{
|
|
<th>RestApi</th>
|
|
<th>Params</th>
|
|
}
|
|
<th class="text-end"># avail.</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListRecords)
|
|
{
|
|
<tr class="@CheckSelect(item)">
|
|
<td>
|
|
<button class="btn btn-sm btn-primary" @onclick="() => DoSelect(item)"><i class="fa-solid fa-magnifying-glass"></i></button>
|
|
@if (isAuth)
|
|
{
|
|
<button class="btn btn-sm btn-info ms-1" title="Edit Config" @onclick="() => DoEdit(item)"><i class="fa-solid fa-edit"></i></button>
|
|
}
|
|
</td>
|
|
<td>@item.Name</td>
|
|
<td>@item.Description</td>
|
|
@if (isAuth)
|
|
{
|
|
<td>@item.JsonDSN</td>
|
|
<td>@item.ParamConfigRaw</td>
|
|
}
|
|
<td class="text-end">@CountNumRep(item.Name)</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
@* <tfoot>
|
|
<tr>
|
|
<td colspan="15">
|
|
<EgwCoreLib.Razor.DataPager currPage="@currPage" PageSize="@numRecord" totalCount="@totalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec"></EgwCoreLib.Razor.DataPager>
|
|
</td>
|
|
</tr>
|
|
</tfoot> *@
|
|
</table>
|
|
</div>
|
|
@if (SelRecord != null)
|
|
{
|
|
<div class="col-4">
|
|
<RepoFileList CurrReport="SelRecord" EC_ReqEdit="DoEditReport" EC_ReqUpdate="DoReloadParent" EC_SaveDict="DoSaveDict"></RepoFileList>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
|