Update x registrazione UserLogin in TAB3

This commit is contained in:
Samuele Locatelli
2024-05-29 09:56:58 +02:00
parent 3b1bd8f322
commit abc2e69b76
5 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2405.2316</Version>
<Version>6.16.2405.2909</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB3</RootNamespace>
</PropertyGroup>
+22 -1
View File
@@ -26,6 +26,7 @@ namespace MP_TAB3.Pages
#region Protected Fields
protected int expDays = 1;
protected bool recordLogin = true;
protected string txtError = "";
protected DateTime vetoScan = DateTime.Now;
@@ -110,7 +111,26 @@ namespace MP_TAB3.Pages
await MsgServ.SetCurrOperDtoLSAsync(hash);
await MsgServ.SetLastMatrOprAsync(rigaOpr.MatrOpr);
await TDService.OperatoreSetRedis(matrOpr, hash, devGuid);
await Task.Delay(50);
// se abilitato in config...
if (recordLogin)
{
// salvo registrazione login utente
string generOpr = $"{rigaOpr.Cognome} {rigaOpr.Nome}";
RegistroDichiarazioniModel ulRec = new RegistroDichiarazioniModel()
{
TagCode = "UserLogin",
IdxMacchina = "",
DtRec = DateTime.Now,
MatrOpr = matrOpr,
ValString = $"Login: {generOpr}"
};
await TDService.RegDichiarInsert(ulRec);
}
// passo a status map
await Task.Delay(150);
NavMan.NavigateTo("status-map", true);
}
else
@@ -125,6 +145,7 @@ namespace MP_TAB3.Pages
txtError = "";
matrOpr = await MsgServ.GetLastMatrOprAsync();
TDService.ConfigGetVal("cookieDayExpire", ref expDays);
TDService.ConfigGetVal("TAB_UL_Record", ref recordLogin);
ShowScanBarcode = !SMServ.GetConfBool("TAB_WebCamHide");
oprList = await TDService.ElencoOperatori();
// filtro solo abilitati + ordino x nome...
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2405.2316</h4>
<h4>Versione: 6.16.2405.2909</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2405.2316
6.16.2405.2909
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2405.2316</version>
<version>6.16.2405.2909</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>