From 14b9232d659a76b7c9437276110bcb9dec7440bd Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 9 Apr 2025 08:41:19 +0200 Subject: [PATCH] Update x fix Scanner Barcode --- MP-TAB3/Components/MachineBlock.razor.cs | 27 ++++++++-- MP-TAB3/Components/PlaceholderStatusMap.razor | 4 +- .../Components/PlaceholderStatusMap.razor.css | 12 ++--- .../PlaceholderStatusMap.razor.less | 12 ++--- .../PlaceholderStatusMap.razor.min.css | 2 +- MP-TAB3/MP-TAB3.csproj | 6 +-- MP-TAB3/Pages/RegNewDevice.razor | 1 + MP-TAB3/Pages/RegNewDevice.razor.cs | 2 +- MP-TAB3/Pages/_Layout.cshtml | 51 +------------------ MP-TAB3/Resources/ChangeLog.html | 2 +- MP-TAB3/Resources/VersNum.txt | 2 +- MP-TAB3/Resources/manifest.xml | 2 +- MP-TAB3/appsettings.json | 2 +- MP.Data/MP.Data.csproj | 2 +- MP.TaskMan/MP.TaskMan.csproj | 4 +- 15 files changed, 52 insertions(+), 79 deletions(-) diff --git a/MP-TAB3/Components/MachineBlock.razor.cs b/MP-TAB3/Components/MachineBlock.razor.cs index 24463263..3b6e48d9 100644 --- a/MP-TAB3/Components/MachineBlock.razor.cs +++ b/MP-TAB3/Components/MachineBlock.razor.cs @@ -321,7 +321,14 @@ namespace MP_TAB3.Components { // se configurata uso cartella virtuale... altrimenti cartella processo string baseUrl = config.GetValue("SpecialConf:AppUrl") ?? (config.GetValue("OptConf:AppUrl") ?? ""); - imgBasePath = $"{baseUrl}/macchine"; + if (baseUrl.EndsWith("//")) + { + imgBasePath = $"{baseUrl}macchine"; + } + else + { + imgBasePath = $"{baseUrl}/macchine"; + } } if (string.IsNullOrEmpty(url.ToString())) { @@ -365,7 +372,14 @@ namespace MP_TAB3.Components await ReloadXDL(true); // se configurata uso cartella virtuale... altrimenti cartella processo string baseUrl = config.GetValue("SpecialConf:AppUrl") ?? (config.GetValue("OptConf:AppUrl") ?? ""); - imgBasePath = $"{baseUrl}/macchine"; + if (baseUrl.EndsWith(@"/")) + { + imgBasePath = $"{baseUrl}macchine"; + } + else + { + imgBasePath = $"{baseUrl}/macchine"; + } await loadDetails(); detailLoaded = true; } @@ -378,7 +392,14 @@ namespace MP_TAB3.Components { // se configurata uso cartella virtuale... altrimenti cartella processo string baseUrl = config.GetValue("SpecialConf:AppUrl") ?? (config.GetValue("OptConf:AppUrl") ?? ""); - imgBasePath = $"{baseUrl}/macchine"; + if (baseUrl.EndsWith(@"/")) + { + imgBasePath = $"{baseUrl}macchine"; + } + else + { + imgBasePath = $"{baseUrl}/macchine"; + } } if (paramsChanged()) { diff --git a/MP-TAB3/Components/PlaceholderStatusMap.razor b/MP-TAB3/Components/PlaceholderStatusMap.razor index d77795db..4d611d65 100644 --- a/MP-TAB3/Components/PlaceholderStatusMap.razor +++ b/MP-TAB3/Components/PlaceholderStatusMap.razor @@ -15,10 +15,10 @@ -
+
-
+
diff --git a/MP-TAB3/Components/PlaceholderStatusMap.razor.css b/MP-TAB3/Components/PlaceholderStatusMap.razor.css index 39f93b99..c877e7f9 100644 --- a/MP-TAB3/Components/PlaceholderStatusMap.razor.css +++ b/MP-TAB3/Components/PlaceholderStatusMap.razor.css @@ -1,29 +1,29 @@ .pholderHeight { - height: 5.5rem; + height: 5.1rem; object-fit: cover; } @media (min-width: 430px) { .pholderHeight { - height: 5.8rem; + height: 6rem; } } @media (min-width: 600px) { .pholderHeight { - height: 6.6rem; + height: 5.2rem; } } @media (min-width: 768px) { .pholderHeight { - height: 7.6rem; + height: 7.8rem; } } @media (min-width: 800px) { .pholderHeight { - height: 8.2rem; + height: 8.5rem; } } @media (min-width: 1025px) { .pholderHeight { - height: 7.2rem; + height: 7.3rem; } } \ No newline at end of file diff --git a/MP-TAB3/Components/PlaceholderStatusMap.razor.less b/MP-TAB3/Components/PlaceholderStatusMap.razor.less index c3abc26d..162caa6a 100644 --- a/MP-TAB3/Components/PlaceholderStatusMap.razor.less +++ b/MP-TAB3/Components/PlaceholderStatusMap.razor.less @@ -1,35 +1,35 @@  .pholderHeight { - height: 5.5rem; + height: 5.1rem; object-fit: cover; } @media (min-width: 430px) { .pholderHeight { - height: 5.8rem; + height: 6.0rem; } } @media (min-width: 600px) { .pholderHeight { - height: 6.6rem; + height: 5.2rem; } } @media (min-width: 768px) { .pholderHeight { - height: 7.6rem; + height: 7.8rem; } } @media (min-width: 800px) { .pholderHeight { - height: 8.2rem; + height: 8.5rem; } } @media (min-width: 1025px) { .pholderHeight { - height: 7.2rem; + height: 7.3rem; } } \ No newline at end of file diff --git a/MP-TAB3/Components/PlaceholderStatusMap.razor.min.css b/MP-TAB3/Components/PlaceholderStatusMap.razor.min.css index f2208fc7..5f86f9bf 100644 --- a/MP-TAB3/Components/PlaceholderStatusMap.razor.min.css +++ b/MP-TAB3/Components/PlaceholderStatusMap.razor.min.css @@ -1 +1 @@ -.pholderHeight{height:5.5rem;object-fit:cover;}@media(min-width:430px){.pholderHeight{height:5.8rem;}}@media(min-width:600px){.pholderHeight{height:6.6rem;}}@media(min-width:768px){.pholderHeight{height:7.6rem;}}@media(min-width:800px){.pholderHeight{height:8.2rem;}}@media(min-width:1025px){.pholderHeight{height:7.2rem;}} \ No newline at end of file +.pholderHeight{height:5.1rem;object-fit:cover;}@media(min-width:430px){.pholderHeight{height:6rem;}}@media(min-width:600px){.pholderHeight{height:5.2rem;}}@media(min-width:768px){.pholderHeight{height:7.8rem;}}@media(min-width:800px){.pholderHeight{height:8.5rem;}}@media(min-width:1025px){.pholderHeight{height:7.3rem;}} \ No newline at end of file diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index 4c009b44..ce3697fe 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2504.818 + 6.16.2504.908 enable MP_TAB3 @@ -36,8 +36,8 @@ - - + + diff --git a/MP-TAB3/Pages/RegNewDevice.razor b/MP-TAB3/Pages/RegNewDevice.razor index fe2a3c09..3b502db4 100644 --- a/MP-TAB3/Pages/RegNewDevice.razor +++ b/MP-TAB3/Pages/RegNewDevice.razor @@ -74,3 +74,4 @@ @txtError
} + diff --git a/MP-TAB3/Pages/RegNewDevice.razor.cs b/MP-TAB3/Pages/RegNewDevice.razor.cs index 34dc1c5b..55fe63f2 100644 --- a/MP-TAB3/Pages/RegNewDevice.razor.cs +++ b/MP-TAB3/Pages/RegNewDevice.razor.cs @@ -158,7 +158,7 @@ namespace MP_TAB3.Pages matrOpr = await MsgServ.GetLastMatrOprAsync(); TDService.ConfigGetVal("cookieDayExpire", ref expDays); TDService.ConfigGetVal("TAB_UL_Record", ref recordLogin); - ShowScanBarcode = !SMServ.GetConfBool("TAB_WebCamHide"); + ShowScanBarcode = !SMServ.GetConfBool("TAB_WebCamHide"); oprList = await TDService.ElencoOperatori(); // filtro solo abilitati + ordino x nome... oprList = oprList diff --git a/MP-TAB3/Pages/_Layout.cshtml b/MP-TAB3/Pages/_Layout.cshtml index 4eae137d..f118367d 100644 --- a/MP-TAB3/Pages/_Layout.cshtml +++ b/MP-TAB3/Pages/_Layout.cshtml @@ -15,6 +15,7 @@ @* *@ + @@ -57,55 +58,5 @@ } }); - @* *@ - @* *@ - diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 74311ea4..29c9cf05 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2504.818

+

Versione: 6.16.2504.908


Note di rilascio:
  • diff --git a/MP-TAB3/Resources/VersNum.txt b/MP-TAB3/Resources/VersNum.txt index fa522a58..fbd9a2fd 100644 --- a/MP-TAB3/Resources/VersNum.txt +++ b/MP-TAB3/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2504.818 +6.16.2504.908 diff --git a/MP-TAB3/Resources/manifest.xml b/MP-TAB3/Resources/manifest.xml index 3a057580..373a7c2d 100644 --- a/MP-TAB3/Resources/manifest.xml +++ b/MP-TAB3/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2504.818 + 6.16.2504.908 https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html false diff --git a/MP-TAB3/appsettings.json b/MP-TAB3/appsettings.json index 4537964a..d0a48e1c 100644 --- a/MP-TAB3/appsettings.json +++ b/MP-TAB3/appsettings.json @@ -82,7 +82,7 @@ "maxChar4Scroll": 21 }, "SpecialConf": { - "AppUrl": "/MP/TAB3", + "AppUrl": "/MP/TAB3/", "CodApp": "MP-LAND", "CodModulo": "MP-TAB3", "CodModuloParam": "MoonPro" diff --git a/MP.Data/MP.Data.csproj b/MP.Data/MP.Data.csproj index e162cf27..3ed60f6e 100644 --- a/MP.Data/MP.Data.csproj +++ b/MP.Data/MP.Data.csproj @@ -30,7 +30,7 @@ - + diff --git a/MP.TaskMan/MP.TaskMan.csproj b/MP.TaskMan/MP.TaskMan.csproj index fd2d2cd2..a2a730ed 100644 --- a/MP.TaskMan/MP.TaskMan.csproj +++ b/MP.TaskMan/MP.TaskMan.csproj @@ -12,8 +12,8 @@ - - + +