Test prod plan update

This commit is contained in:
Samuele Locatelli
2023-10-27 11:36:24 +02:00
parent f676be0744
commit 1e8757a2e4
5 changed files with 27 additions and 9 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2310.2710</Version>
<Version>6.16.2310.2711</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB_SERV</RootNamespace>
</PropertyGroup>
+23 -5
View File
@@ -1,6 +1,7 @@
using global::Microsoft.AspNetCore.Components;
using MP.Data.DatabaseModels;
using MP.Data.Services;
using NLog;
namespace MP_TAB_SERV.Pages
{
@@ -19,6 +20,12 @@ namespace MP_TAB_SERV.Pages
#region Protected Methods
protected override async Task OnInitializedAsync()
{
//await ReloadData();
await Task.Delay(1);
}
protected override async Task OnAfterRenderAsync(bool firstRender)
{
await ReloadData();
}
@@ -44,18 +51,29 @@ namespace MP_TAB_SERV.Pages
#endregion Protected Methods
#region Private Methods
private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
private async Task ReloadData()
{
if (string.IsNullOrEmpty(IdxMacc))
try
{
IdxMacc = await MsgServ.IdxMaccGet();
// recupero MSE macchina....
if (!string.IsNullOrEmpty(IdxMacc))
Log.Trace("ProdPlan 01");
if (string.IsNullOrEmpty(IdxMacc) || CurrMSE == null)
{
CurrMSE = await MsgServ.GetMachineMse(IdxMacc);
Log.Trace("ProdPlan 02");
IdxMacc = await MsgServ.IdxMaccGet();
// recupero MSE macchina....
if (!string.IsNullOrEmpty(IdxMacc))
{
Log.Trace("ProdPlan 03");
CurrMSE = await MsgServ.GetMachineMse(IdxMacc);
}
}
}
catch (Exception exc)
{
Log.Error($"Eccerione in ReloadData{Environment.NewLine}{exc}");
}
}
#endregion Private Methods
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2310.2710</h4>
<h4>Versione: 6.16.2310.2711</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2310.2710
6.16.2310.2711
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2310.2710</version>
<version>6.16.2310.2711</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>