- Modifica condizione visualizzazione notifica email allarmi
This commit is contained in:
Samuele Locatelli
2024-12-05 10:29:48 +01:00
parent 87ceb0a1bb
commit fb012082f4
9 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ else
}
</div>
<div class="px-1">
@if (item.ReqNotify != 0)
@if (item.ReqNotify != 0 || item.Duration > alarmMinDuration)
{
<button class="btn btn-sm btn-primary py-0" @onclick="() => SendNotify(item)">Invia&nbsp;<i class="fa fa-envelope" aria-hidden="true"></i></button>
}
+8 -1
View File
@@ -102,7 +102,8 @@ namespace MP_TAB3.Components
DateTime inizio = fine.AddDays(-8);
CurrPeriodo = new Periodo(inizio, fine);
}
var rawDest = config.GetValue<string>("AlarmDest");
// gestione conf allarmi
var rawDest = config.GetValue<string>("OptConf:AlarmDest");
if (!string.IsNullOrEmpty(rawDest))
{
AlarmsDest = rawDest.Split(",").ToList();
@@ -111,6 +112,7 @@ namespace MP_TAB3.Components
{
AlarmsDest = new List<string>() { "samuele@steamware.net" };
}
alarmMinDuration = config.GetValue<decimal>("OptConf:AlarmMinDuration");
}
protected override async Task OnParametersSetAsync()
@@ -210,6 +212,11 @@ namespace MP_TAB3.Components
private static Logger Log = LogManager.GetCurrentClassLogger();
/// <summary>
/// durata minima allarmi x abilitare invio email di notifica
/// </summary>
private decimal alarmMinDuration = 1;
#endregion Private Fields
#region Private Properties
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2411.2519</Version>
<Version>6.16.2412.510</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB3</RootNamespace>
</PropertyGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2411.2519</h4>
<h4>Versione: 6.16.2412.510</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2411.2519
6.16.2412.510
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2411.2519</version>
<version>6.16.2412.510</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+3 -1
View File
@@ -17,7 +17,9 @@
},
"OptConf": {
"msRefresh": "1500",
"CodModulo": "MP-TAB3"
"CodModulo": "MP-TAB3",
"AlarmDest": "samuele.locatelli@egalware.com, ceo@steamware.net",
"AlarmMinDuration": 2
},
"ServerConf": {
"BaseAddr": "https://iis04.egalware.com/MP/TAB3/",
+3 -2
View File
@@ -58,7 +58,6 @@
}
]
},
"AlarmDest": "samuele.locatelli@egalware.com, ceo@steamware.net",
"MailKitMailSettings": {
"DisplayName": "MAPO EgalWare Email BOT",
"From": "steamwarebot@outlook.it",
@@ -70,7 +69,9 @@
"UseStartTls": true
},
"OptConf": {
"msRefresh": "1001"
"msRefresh": "1001",
"AlarmDest": "samuele.locatelli@egalware.com, ceo@steamware.net",
"AlarmMinDuration": 0.45
},
"ServerConf": {
"BaseAddr": "https://localhost:7295/MP/TAB3/",
+1 -1
View File
@@ -84,7 +84,7 @@
</div>
<div class="col-2">
<div class="btn-group w-100">
<button class="btn btn-warning w-100" title="Data Cleanup" @onclick="IdxRebuild"><i class="fa-solid fa-database"></i> Maint</button>
<button class="btn btn-warning w-100" title="Data Cleanup" @onclick="IdxRebuild"><i class="fa-solid fa-database"></i> Index Maint</button>
</div>
</div>
<div class="col-2">