Update stats page
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<b>@Title</b>
|
||||
</div>
|
||||
<div class="card-body p-1">
|
||||
|
||||
|
||||
<ul class="list-group">
|
||||
@* <li class="list-group-item active d-flex justify-content-between align-items-start bg-gradient">
|
||||
</li> *@
|
||||
@foreach (var itemDet in ListPaged)
|
||||
{
|
||||
<li class="list-group-item d-flex justify-content-between align-items-start small py-1">
|
||||
<div>
|
||||
@itemDet.Label
|
||||
</div>
|
||||
<div class="">
|
||||
<b>@($"{itemDet.Value:N0}")</b>
|
||||
</div>
|
||||
</li>
|
||||
}
|
||||
@* <li class="list-group-item small p-1 bg-secondary bg-opacity-50 bg-gradient">
|
||||
</li> *@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card-footer py-0 px-1">
|
||||
<EgwCoreLib.Razor.DataPager currPage="@pageNum" PageSize="@numRecPage" totalCount="@totalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec" DisplSize="DataPager.ObjSize.small"></EgwCoreLib.Razor.DataPager>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,70 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using MP.Core.DTO;
|
||||
|
||||
namespace MP.IOC.Components.Compo
|
||||
{
|
||||
public partial class ParetoDetail
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Parameter]
|
||||
public List<StatDataDTO> ParetoList { get; set; } = null!;
|
||||
|
||||
[Parameter]
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
//base.OnParametersSet();
|
||||
totalCount = ParetoList.Count();
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private List<StatDataDTO> ListPaged = new();
|
||||
|
||||
private int numRecPage = 10;
|
||||
|
||||
private int pageNum = 1;
|
||||
|
||||
private int totalCount = 0;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void SaveNumRec(int newNum)
|
||||
{
|
||||
numRecPage = newNum;
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
private void SavePage(int newNum)
|
||||
{
|
||||
pageNum = newNum;
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
private void UpdateTable()
|
||||
{
|
||||
// esegue paginazione
|
||||
if (totalCount > numRecPage)
|
||||
{
|
||||
ListPaged = ParetoList.Skip((pageNum - 1) * numRecPage).Take(numRecPage).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
ListPaged = ParetoList;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<div class="card shadow">
|
||||
<div class="card-header">
|
||||
<h3>Current Call Stats</h3>
|
||||
<h3>Current Call Stats </h3>(24h)
|
||||
</div>
|
||||
<div class="card-body p-1">
|
||||
<div class="row mb-2">
|
||||
@@ -29,26 +29,19 @@
|
||||
Pie chart
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-2">
|
||||
lista dettaglio (5/10 pag)
|
||||
</div>
|
||||
<div class="col-10">
|
||||
timeserie selezionata x num call/tempo
|
||||
</div>
|
||||
</div>
|
||||
<div class="row small">
|
||||
@foreach (var item in ParetoDay)
|
||||
{
|
||||
<div class="col-2">
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item active d-flex justify-content-between align-items-start">
|
||||
<b>@item.Key</b>
|
||||
</li>
|
||||
@foreach (var itemDet in item.Value)
|
||||
{
|
||||
<li class="list-group-item d-flex justify-content-between align-items-start small py-1">
|
||||
<div>
|
||||
@itemDet.Label
|
||||
</div>
|
||||
<div class="">
|
||||
<b>@($"{itemDet.Value:N0}")</b>
|
||||
</div>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
<div class="col-4 mb-2">
|
||||
<ParetoDetail Title="@item.Key" ParetoList="@item.Value"></ParetoDetail>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
@page "/RouteConf"
|
||||
|
||||
<h3>RouteConf</h3>
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace MP.IOC.Components.Pages
|
||||
{
|
||||
public partial class RouteConf
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>6.16.2604.918</Version>
|
||||
<Version>6.16.2604.1008</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MP-IOC </i>
|
||||
<h4>Versione: 6.16.2604.918</h4>
|
||||
<h4>Versione: 6.16.2604.1008</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2604.918
|
||||
6.16.2604.1008
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2604.918</version>
|
||||
<version>6.16.2604.1008</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user