Merge branch 'develop' of https://gitlab.steamware.net/steamware/mapo-core into develop
@@ -33,7 +33,7 @@ else
|
||||
{
|
||||
if (Width > 640)
|
||||
{
|
||||
<div class="card shadow borderStd" @onclick="ShowDetail">
|
||||
<div class="card shadow rounded rounded-4 border-secondary" @onclick="ShowDetail">
|
||||
<img src="@ImgUrlMacc(RecMSE.Url)" class="card-img-top imgFitToSize" alt="@RecMSE.CodMacchina">
|
||||
<div class="bg-black">
|
||||
<div class="card-img-overlay p-0 d-flex flex-row-reverse align-items-start rCTop">
|
||||
|
||||
@@ -4,6 +4,7 @@ using Microsoft.JSInterop;
|
||||
using MP.Data.DatabaseModels;
|
||||
using MP.Data.Services;
|
||||
using NLog;
|
||||
using static Org.BouncyCastle.Math.EC.ECCurve;
|
||||
|
||||
namespace MP_TAB_SERV.Components
|
||||
{
|
||||
@@ -67,31 +68,12 @@ namespace MP_TAB_SERV.Components
|
||||
/// <returns></returns>
|
||||
public string ImgUrlMacc(string url)
|
||||
{
|
||||
string answ = "";
|
||||
if (string.IsNullOrEmpty(url.ToString()))
|
||||
{
|
||||
//url = "Steamware.png";
|
||||
url = "SIMDP1.png";
|
||||
url = "Steamware.png";
|
||||
}
|
||||
|
||||
// verifico esistenza macchina SMALL...
|
||||
answ = $"images/macchine/small/{url}";
|
||||
string fullPath = Path.Combine(imgBasePath, "wwwroot", answ);
|
||||
if (!File.Exists(fullPath))
|
||||
{
|
||||
// se non ci fosse cerco immagine fullsize
|
||||
answ = $"images/macchine/{url}";
|
||||
fullPath = Path.Combine(imgBasePath, "wwwroot", answ);
|
||||
}
|
||||
|
||||
// altrimenti metto default Steamware
|
||||
if (!File.Exists(fullPath))
|
||||
{
|
||||
answ = "images/macchine/SIMDP1.png";
|
||||
//answ = "images/macchine/Steamware.png";
|
||||
}
|
||||
|
||||
return answ;
|
||||
string fullPath = Path.Combine(imgBasePath, url);
|
||||
return fullPath;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
@@ -146,6 +128,9 @@ namespace MP_TAB_SERV.Components
|
||||
#region Protected Methods
|
||||
|
||||
|
||||
[Inject]
|
||||
protected IConfiguration config { get; set; } = null!;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{//await Task.Delay(500);
|
||||
if (firstRender)
|
||||
@@ -162,7 +147,15 @@ namespace MP_TAB_SERV.Components
|
||||
{
|
||||
isLoading = true;
|
||||
// se configurata uso cartella virtuale... altrimenti cartella processo
|
||||
imgBasePath = Environment.CurrentDirectory; // @"C:\Steamware\macchine";
|
||||
var sImgBasePath = config.GetValue<string>("OptConf:ImgBasePath");
|
||||
if (!string.IsNullOrEmpty(sImgBasePath))
|
||||
{
|
||||
imgBasePath = sImgBasePath;
|
||||
}
|
||||
else
|
||||
{
|
||||
imgBasePath = $"{Environment.CurrentDirectory}/images/";
|
||||
}
|
||||
}
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="fw-bold" style="font-size: 3vh">@numPzProdotti.ToString("N0")</span>
|
||||
<span class="fw-bold" style="font-size: 3vh">@($"{numPzProdotti2Rec:N0}")</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"msRefresh": "2000",
|
||||
"BaseAddr": "https://localhost:7295/MP/TAB3/",
|
||||
"BaseUrl": "/MP/TAB3",
|
||||
"ImgBasePath": "C:\\Steamware\\images\\macchine",
|
||||
"ImgBasePath": "https://iis01.egalware.com/MP/images/macchine/small/",
|
||||
"ImgStBasePath": "C:\\Steamware\\images\\ST",
|
||||
"CodModulo": "MoonPro"
|
||||
},
|
||||
|
||||
|
After Width: | Height: | Size: 664 KiB |
|
After Width: | Height: | Size: 610 KiB |
|
After Width: | Height: | Size: 639 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 562 KiB |
|
After Width: | Height: | Size: 582 KiB |
|
After Width: | Height: | Size: 663 KiB |
|
After Width: | Height: | Size: 587 KiB |
|
After Width: | Height: | Size: 636 KiB |
|
After Width: | Height: | Size: 596 KiB |
|
After Width: | Height: | Size: 630 KiB |
|
After Width: | Height: | Size: 646 KiB |
|
After Width: | Height: | Size: 619 KiB |
|
After Width: | Height: | Size: 698 KiB |
|
After Width: | Height: | Size: 537 KiB |
|
After Width: | Height: | Size: 566 KiB |
|
After Width: | Height: | Size: 220 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 118 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 12 KiB |