Bozza colore dinamico x gauge

This commit is contained in:
Samuele Locatelli
2023-10-12 19:34:57 +02:00
parent 59ce05fa02
commit 8348f2633a
4 changed files with 22 additions and 7 deletions
+9 -1
View File
@@ -162,7 +162,15 @@ 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>
@if (RecMSE.ReqFulfill)
{
<EgwCoreLib.Razor.CircleGauge Titolo="@($"{RecMSE.NumPezzi:N0}")" Testo="" maxVal="@RecMSE.NumPezzi" currVal="@RecMSE.PezziProd" StrokeColorVal="#33FF07" StrokeColorValOuter="#0F61F7" StyleTitolo="font-size: 2.7rem; font-weight:bold; fill: white;" StyleTesto="font-size: 1rem; fill: #ACACAC;" ShowCircleBtn="false"></EgwCoreLib.Razor.CircleGauge>
}
else
{
<EgwCoreLib.Razor.CircleGauge Titolo="@($"{RecMSE.NumPezzi:N0}")" Testo="" maxVal="@RecMSE.NumPezzi" currVal="@RecMSE.PezziProd" StrokeColorVal="#FFC107" StrokeColorValOuter="#0F61F7" StyleTitolo="font-size: 2.7rem; font-weight:bold; fill: white;" StyleTesto="font-size: 1rem; fill: #ACACAC;" ShowCircleBtn="false"></EgwCoreLib.Razor.CircleGauge>
}
</div>
<div style="font-size: 1rem" class="me-3 col-6">
<div class="text-center text-success d-flex justify-content-between">
+2 -2
View File
@@ -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.1219" />
<PackageReference Include="EgwCoreLib.Utils" Version="1.4.2310.1219" />
<PackageReference Include="StackExchange.Redis" Version="2.2.4" />
</ItemGroup>
+1 -2
View File
@@ -20,11 +20,10 @@
<i class="fa-solid fa-house"></i> &nbsp;
MapoTAB2
&nbsp;
<img src="/images/LogoSteamware.png" style="height: 1rem" />
<img src="images/LogoSteamware.png" style="height: 1rem" />
</a>
</div>
<div class="col-4 text-end">
@*<button class="btn btn-sm btn-dark" @onclick="() => OnYes()">Yes!</button>*@
<div class="row w-100 slideMen">
<div class="p-0">
<SlideMenu MenuItems="@CurrMenuItems"></SlideMenu>
+10 -2
View File
@@ -20,14 +20,14 @@ namespace MP.Data.DatabaseModels
public int? IdxPOdl { get; set; } = 0;
public string CodArticolo { get; set; }
public string Disegno { get; set; }
public int? NumPezzi { get; set; }
public int NumPezzi { get; set; } = 0;
public decimal? TCAssegnato { get; set; }
public DateTime? DataInizioOdl { get; set; }
public string Semaforo { get; set; }
public int? IdxStato { get; set; }
public string DescrizioneStato { get; set; }
public double? Durata { get; set; }
public int? PezziProd { get; set; }
public int PezziProd { get; set; } = 0;
public int? PezziConf { get; set; }
public decimal? TempoOn { get; set; }
public decimal? TempoAuto { get; set; }
@@ -138,5 +138,13 @@ namespace MP.Data.DatabaseModels
return answ;
}
}
[NotMapped]
public bool ReqFulfill
{
get
{
return PezziProd >= NumPezzi;
}
}
}
}