Cleanup warning + calcolo versione framework NET
This commit is contained in:
@@ -35,15 +35,6 @@ namespace GPW.CORE.Smart.Components.Compo
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Fields
|
||||
|
||||
private bool isSendingData = false;
|
||||
private int sendDataVal = 0;
|
||||
private int sendDataNextVal = 0;
|
||||
private int sendDataMaxVal = 100;
|
||||
|
||||
#endregion Protected Fields
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
[Inject]
|
||||
@@ -79,8 +70,8 @@ namespace GPW.CORE.Smart.Components.Compo
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private bool isSendingData = false;
|
||||
private List<AnagGiustModel>? ListGiust = null;
|
||||
|
||||
private List<RegRichiesteModel>? ListRecords = null;
|
||||
|
||||
/// <summary>
|
||||
@@ -93,6 +84,9 @@ namespace GPW.CORE.Smart.Components.Compo
|
||||
/// </summary>
|
||||
private int NumDayPermMax = 21;
|
||||
|
||||
private int sendDataMaxVal = 100;
|
||||
private int sendDataNextVal = 0;
|
||||
private int sendDataVal = 0;
|
||||
private bool showAdd = false;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
@@ -104,8 +104,8 @@ namespace GPW.CORE.Smart.Components.Compo
|
||||
/// <returns></returns>
|
||||
private async Task initConf()
|
||||
{
|
||||
UrlLinkInt = Configuration.GetValue<string>("OptPar:UrlLinkInt");
|
||||
UrlLinkExt = Configuration.GetValue<string>("OptPar:UrlLinkExt");
|
||||
UrlLinkInt = Configuration.GetValue<string>("OptPar:UrlLinkInt") ?? "";
|
||||
UrlLinkExt = Configuration.GetValue<string>("OptPar:UrlLinkExt") ?? "";
|
||||
await Task.Delay(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
</div>
|
||||
<div class="col-6 small">
|
||||
<strong>GPW</strong><br />
|
||||
<span class="small">v.@version</span>
|
||||
<div class="small">v.<b>@version</b></div>
|
||||
<div class="small">@framework</div>
|
||||
</div>
|
||||
<div class="col-6 small">
|
||||
<strong>License:</strong><br />
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
using GPW.CORE.Smart.Data;
|
||||
using MailKit.Net.Imap;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
namespace GPW.CORE.Smart.Components.Pages
|
||||
{
|
||||
@@ -22,12 +25,23 @@ namespace GPW.CORE.Smart.Components.Pages
|
||||
#endregion Protected Fields
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected string framework = "???";
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await LicServ.RefreshApplic();
|
||||
Titolo = Configuration.GetValue<string>("Application:Name")!;
|
||||
Messaggio = Configuration.GetValue<string>("Application:ContactText")!;
|
||||
var tgtFrmwrkAtt = Assembly.GetExecutingAssembly()
|
||||
.GetCustomAttributes(typeof(TargetFrameworkAttribute), false)
|
||||
.FirstOrDefault();
|
||||
if (tgtFrmwrkAtt != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
framework = ((TargetFrameworkAttribute)tgtFrmwrkAtt).FrameworkName;
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>4.1.2408.2312</Version>
|
||||
<Version>4.1.2408.2313</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -16,7 +16,6 @@ $replace = "<Version>" + $currRelNum + "</Version>";
|
||||
$csproj = Get-Content $ProjectPath
|
||||
$csprojUpdated = $csproj -replace $find, $replace
|
||||
|
||||
|
||||
Write-Output "Update csproj | $currRelNum"
|
||||
|
||||
Set-Content -Path $ProjectPath -Value $csprojUpdated
|
||||
|
||||
@@ -24,8 +24,8 @@ namespace GPW.CORE6.Smart.Pages
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Titolo = Configuration.GetValue<string>("Application:Name");
|
||||
Messaggio = Configuration.GetValue<string>("Application:ContactText");
|
||||
Titolo = Configuration.GetValue<string>("Application:Name") ?? "GPW";
|
||||
Messaggio = Configuration.GetValue<string>("Application:ContactText") ?? "EgalWare";
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>GPW - Gestione Presenze Web</i>
|
||||
<h4>Versione: 4.1.2408.2312</h4>
|
||||
<h4>Versione: 4.1.2408.2313</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
4.1.2408.2312
|
||||
4.1.2408.2313
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>4.1.2408.2312</version>
|
||||
<version>4.1.2408.2313</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.Smart.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user