Fix display grafico torta

This commit is contained in:
Samuele Locatelli
2025-01-13 17:28:20 +01:00
parent 368ab32248
commit 4fdc49e230
9 changed files with 22 additions and 13 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>License Manager</i>
<h4>Versione: 2.1.2501.1316</h4>
<h4>Versione: 2.1.2501.1317</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
2.1.2501.1316
2.1.2501.1317
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>2.1.2501.1316</version>
<version>2.1.2501.1317</version>
<url>https://nexus.steamware.net/repository/SWS/LiMan/stable/LAST/LiMan.UI.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/LiMan/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
-1
View File
@@ -1433,7 +1433,6 @@ namespace LiMan.DB.Controllers
}
// se trovo aggiorno...
currRec.DtCheck = upRec.DtCheck;
//currRec.IdxSubLic = upRec.IdxSubLic;
currRec.MastKey = upRec.MastKey;
currRec.NumImp = upRec.NumImp;
currRec.VersNum = upRec.VersNum;
+15 -5
View File
@@ -26,14 +26,24 @@ namespace LiMan.UI.Components
protected override void OnParametersSet()
{
ListRecord = CurrRecord.DetailInstalled.OrderByDescending(x => x.UpToDateStatus).ToList();
ListRecord = CurrRecord.DetailInstalled.OrderByDescending(x => x.VersNumInstall).ToList();
// sistemo info x grafico...
ChartData = ListRecord.Select(x => (double)x.NumImp).ToArray();
ChartLabels = ListRecord.Select(x => x.VersNumInstall).ToArray();
ChartData = ListRecord
.GroupBy(x => x.VersNumInstall)
.Select(g => (double)g.Sum(x => x.NumImp))
.ToArray();
ChartLabels = ListRecord
.GroupBy(x => x.VersNumInstall)
.Select(g => g.Key)
.ToArray();
ChartColor.Clear();
foreach (var item in ListRecord)
var listStatus = ListRecord
.GroupBy(x => x.VersNumInstall)
.Select(g => g.First().UpToDateStatus)
.ToList();
foreach (var item in listStatus)
{
switch (item.UpToDateStatus)
switch (item)
{
case 4:
ChartColor.Add(new DoughnutStyling("#28FF69", "00FF00"));
+1 -1
View File
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>2.1.2501.1316</Version>
<Version>2.1.2501.1317</Version>
<RootNamespace>LiMan.UI</RootNamespace>
<AssemblyName>LiMan.UI</AssemblyName>
</PropertyGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>License Manager</i>
<h4>Versione: 2.1.2501.1316</h4>
<h4>Versione: 2.1.2501.1317</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
2.1.2501.1316
2.1.2501.1317
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>2.1.2501.1316</version>
<version>2.1.2501.1317</version>
<url>https://nexus.steamware.net/repository/SWS/LiMan/stable/LAST/LiMan.UI.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/LiMan/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>