aggiunto nuovo componenten gauge
This commit is contained in:
@@ -151,7 +151,7 @@ else
|
||||
</div>
|
||||
</div>*@
|
||||
|
||||
<div class="card shadow" @onclick="ShowDetail" style="border-radius: 11px; background-color: #151321;">
|
||||
<div class="card shadow" @onclick="ShowDetail" style="border-radius: 11px; background: linear-gradient(121deg, rgba(255, 255, 255, 0.20) -0.71%, rgba(255, 255, 255, 0.05) 97.66%); box-shadow: 0px 4px 24px -1px rgba(0, 0, 0, 0.25);">
|
||||
<div class="card-body p-0">
|
||||
<div style="border-radius: 11px;" class="@RecMSE.Semaforo p-1 text-center">
|
||||
<div class="fs-2" style="line-height: 1.8rem;">
|
||||
@@ -162,7 +162,8 @@ else
|
||||
</div>
|
||||
<div class="d-flex justify-content-between w-100" style="height: 100px; width: 100px;">
|
||||
<div class="col-6">
|
||||
<EgwCoreLib.Razor.CircleGauge Titolo="@($"{RecMSE.NumPezzi:N0}")" Testo="" maxVal="@int.Parse(RecMSE.NumPezzi.ToString())" currVal="@int.Parse(RecMSE.PezziProd.ToString())" strokeColorVal="#FFC107" StyleTitolo="font-size: 2.7rem; font-weight:bold; fill: white;" StyleTesto="font-size: 1rem; fill: #ACACAC;" ShowCircleBtn="false"></EgwCoreLib.Razor.CircleGauge>
|
||||
@*<EgwCoreLib.Razor.CircleGauge Titolo="@($"{RecMSE.NumPezzi:N0}")" Testo="" maxVal="@int.Parse(RecMSE.NumPezzi.ToString())" currVal="@int.Parse(RecMSE.PezziProd.ToString())" strokeColorVal="#FFC107" StyleTitolo="font-size: 2.7rem; font-weight:bold; fill: white;" StyleTesto="font-size: 1rem; fill: #ACACAC;" ShowCircleBtn="false"></EgwCoreLib.Razor.CircleGauge>*@
|
||||
<EgwCoreLib.Razor.CircleGaugeMulti Titolo="@($"{currMaxVal}")" Testo="#pz prod" maxVal="@currMaxVal" ListInner="@innerCircleVals" ListOuter="@outerCircleVals" ShowCircleBtn="true"></EgwCoreLib.Razor.CircleGaugeMulti>
|
||||
</div>
|
||||
<div style="font-size: 1rem" class="me-3 col-6">
|
||||
<div class="text-center text-success d-flex justify-content-between">
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using EgwCoreLib.Razor;
|
||||
using global::Microsoft.AspNetCore.Components;
|
||||
using MP.Data.DatabaseModels;
|
||||
using MP.Data.Services;
|
||||
@@ -19,6 +20,32 @@ namespace MP_TAB_SERV.Components
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
|
||||
protected List<CircleGaugeMulti.CircSegm> innerCircleVals = new List<CircleGaugeMulti.CircSegm>();
|
||||
protected List<CircleGaugeMulti.CircSegm> outerCircleVals = new List<CircleGaugeMulti.CircSegm>();
|
||||
|
||||
protected int currVal1 = 1000;
|
||||
protected int currMaxVal = 1000;
|
||||
protected int maxVal = 1000;
|
||||
|
||||
protected async Task setGaugeVals()
|
||||
{
|
||||
if (RecMSE != null)
|
||||
{
|
||||
innerCircleVals.Clear();
|
||||
outerCircleVals.Clear();
|
||||
currMaxVal = int.Parse(RecMSE.NumPezzi.ToString()!);
|
||||
innerCircleVals.Add(new CircleGaugeMulti.CircSegm() { Color = "#DCFD15", Value = int.Parse(RecMSE.PezziProd.ToString()!) });
|
||||
innerCircleVals.Add(new CircleGaugeMulti.CircSegm() { Color = "#13FD67", Value = int.Parse(RecMSE.PezziConf.ToString()!) });
|
||||
var extraVal = (int.Parse(RecMSE.NumPezzi.ToString()!) - int.Parse(RecMSE.PezziProd.ToString()!));
|
||||
if (extraVal < 0)
|
||||
{
|
||||
outerCircleVals.Add(new CircleGaugeMulti.CircSegm() { Color = "#1367FD", Value = Math.Abs(extraVal) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
@@ -127,11 +154,12 @@ namespace MP_TAB_SERV.Components
|
||||
//return base.OnAfterRenderAsync(firstRender);
|
||||
}
|
||||
|
||||
protected override void OnInitialized()
|
||||
protected override async void OnInitialized()
|
||||
{
|
||||
isLoading = true;
|
||||
// se configurata uso cartella virtuale... altrimenti cartella processo
|
||||
imgBasePath = Environment.CurrentDirectory; // @"C:\Steamware\macchine";
|
||||
await setGaugeVals();
|
||||
}
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>6.16.2310.1217</Version>
|
||||
<Version>6.16.2310.1312</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP_TAB_SERV</RootNamespace>
|
||||
</PropertyGroup>
|
||||
@@ -17,8 +17,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="EgwCoreLib.Razor" Version="1.4.2308.216" />
|
||||
<PackageReference Include="EgwCoreLib.Utils" Version="1.4.2308.216" />
|
||||
<PackageReference Include="EgwCoreLib.Razor" Version="1.4.2310.1312" />
|
||||
<PackageReference Include="EgwCoreLib.Utils" Version="1.4.2310.1312" />
|
||||
<PackageReference Include="StackExchange.Redis" Version="2.2.4" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2310.1217</h4>
|
||||
<h4>Versione: 6.16.2310.1312</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2310.1217
|
||||
6.16.2310.1312
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2310.1217</version>
|
||||
<version>6.16.2310.1312</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user