FIX gestione calcolo timespan/double x tempo
This commit is contained in:
@@ -148,7 +148,7 @@ namespace MP_TAB_SERV.Components
|
||||
await ReloadData(false);
|
||||
}
|
||||
|
||||
protected void SaveTCRich(double newTCRich)
|
||||
protected void SaveTCRich(decimal newTCRich)
|
||||
{
|
||||
tcRichAttr = newTCRich;
|
||||
}
|
||||
@@ -244,7 +244,7 @@ namespace MP_TAB_SERV.Components
|
||||
// se vedesse TCRich a zero lo reimposta a quello assegnato...
|
||||
if (tcRichAttr == 0)
|
||||
{
|
||||
tcRichAttr = (double)currPodl.Tcassegnato;
|
||||
tcRichAttr = currPodl.Tcassegnato;
|
||||
}
|
||||
if (enableSplitODL)
|
||||
{
|
||||
@@ -443,7 +443,7 @@ namespace MP_TAB_SERV.Components
|
||||
private bool showAll = false;
|
||||
|
||||
private bool showOdlDetail = false;
|
||||
private double tcRichAttr = 1;
|
||||
private decimal tcRichAttr = 1;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
@@ -583,7 +583,7 @@ namespace MP_TAB_SERV.Components
|
||||
if (IdxPOdlSel != lastIdxPOdl)
|
||||
{
|
||||
lastIdxPOdl = IdxPOdlSel;
|
||||
tcRichAttr = (double)currPodl.Tcassegnato;
|
||||
tcRichAttr = currPodl.Tcassegnato;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace MP_TAB_SERV.Components
|
||||
|
||||
|
||||
[Parameter]
|
||||
public EventCallback<double> E_TCRich { get; set; }
|
||||
public EventCallback<decimal> E_TCRich { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// modalità rendering controllo
|
||||
@@ -66,7 +66,7 @@ namespace MP_TAB_SERV.Components
|
||||
/// Valore tempo (centesimale)
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public double TempoMC
|
||||
public decimal TempoMC
|
||||
{
|
||||
get => _tempoMC;
|
||||
set
|
||||
@@ -83,7 +83,7 @@ namespace MP_TAB_SERV.Components
|
||||
/// <summary>
|
||||
/// tempo min.cent
|
||||
/// </summary>
|
||||
protected double _tempoMC { get; set; } = 0;
|
||||
protected decimal _tempoMC { get; set; } = 0;
|
||||
|
||||
//protected timeMode modoTempo
|
||||
//{
|
||||
@@ -108,7 +108,7 @@ namespace MP_TAB_SERV.Components
|
||||
[Inject]
|
||||
protected SharedMemService SMServ { get; set; } = null!;
|
||||
[Inject]
|
||||
protected MessageService MsgServ { get; set; } = null!;
|
||||
protected MessageService MsgServ { get; set; } = null!;
|
||||
|
||||
protected string tcMode
|
||||
{
|
||||
@@ -140,9 +140,9 @@ namespace MP_TAB_SERV.Components
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
protected TimeSpan minCent2Sec(double valore)
|
||||
protected TimeSpan minCent2Sec(decimal valore)
|
||||
{
|
||||
TimeSpan answ = TimeSpan.FromMinutes(valore);
|
||||
TimeSpan answ = TimeSpan.FromSeconds((double)valore * 60);
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -151,9 +151,11 @@ namespace MP_TAB_SERV.Components
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
protected double minSec2Cent(TimeSpan valore)
|
||||
protected decimal minSec2Cent(TimeSpan valore)
|
||||
{
|
||||
double answ = Math.Round(valore.TotalMinutes, 3);
|
||||
|
||||
decimal answ = 0;
|
||||
decimal.TryParse($"{Math.Floor(valore.TotalMinutes) + (double)valore.Seconds / 60}", out answ);
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -232,8 +234,8 @@ namespace MP_TAB_SERV.Components
|
||||
{
|
||||
if (tcMode == "mc")
|
||||
{
|
||||
double tMC = 1;
|
||||
double.TryParse(value, out tMC);
|
||||
decimal tMC = 1;
|
||||
decimal.TryParse(value, out tMC);
|
||||
TempoMC = tMC;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>6.16.2311.716</Version>
|
||||
<Version>6.16.2311.717</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP_TAB_SERV</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2311.716</h4>
|
||||
<h4>Versione: 6.16.2311.717</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2311.716
|
||||
6.16.2311.717
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2311.716</version>
|
||||
<version>6.16.2311.717</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