Fix png loghi
This commit is contained in:
@@ -150,6 +150,30 @@ namespace WebDoorCreator.Data.Services
|
||||
return errVal.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cerca nelle esecuzioni ultimo SVG della porta e lo restituisce...
|
||||
/// </summary>
|
||||
/// <param name="DoorId"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<string> DoorGetLastSvg(int DoorId)
|
||||
{
|
||||
string answ = "";
|
||||
// cerco in hashtable dei task eseguiti ultimo x porta corrente...
|
||||
var doorData = await RequestDoneGetSingle(DoorId);
|
||||
if (doorData != null && doorData.Count > 0)
|
||||
{
|
||||
var firstRecord = doorData.FirstOrDefault();
|
||||
// recupero da REDIS
|
||||
var currSvgKey = new RedisKey($"{Constants.CALC_REQ_SVG_CACHE}:{firstRecord.Key}:{firstRecord.Value}");
|
||||
var rawData = await redisDb.StringGetAsync(currSvgKey);
|
||||
if (rawData.HasValue)
|
||||
{
|
||||
answ = $"{rawData}";
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove for single hash record
|
||||
/// </summary>
|
||||
@@ -369,6 +393,7 @@ namespace WebDoorCreator.Data.Services
|
||||
Log.Debug($"RequestDone | {source} in: {ts.TotalMilliseconds} ms");
|
||||
return dictResult;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get LAST request done for DoorId
|
||||
/// </summary>
|
||||
@@ -390,7 +415,6 @@ namespace WebDoorCreator.Data.Services
|
||||
if (rawData.HasValue)
|
||||
{
|
||||
dictResult.Add($"{DoorId}", $"{rawData}");
|
||||
|
||||
}
|
||||
}
|
||||
stopWatch.Stop();
|
||||
@@ -663,29 +687,6 @@ namespace WebDoorCreator.Data.Services
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Cerca nelle esecuzioni ultimo SVG della porta e lo restituisce...
|
||||
/// </summary>
|
||||
/// <param name="DoorId"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<string> DoorGetLastSvg(int DoorId)
|
||||
{
|
||||
string answ = "";
|
||||
// cerco in hashtable dei task eseguiti ultimo x porta corrente...
|
||||
var doorData = await RequestDoneGetSingle(DoorId);
|
||||
if (doorData != null && doorData.Count > 0)
|
||||
{
|
||||
var firstRecord = doorData.FirstOrDefault();
|
||||
// recupero da REDIS
|
||||
var currSvgKey = new RedisKey($"{Constants.CALC_REQ_SVG_CACHE}:{firstRecord.Key}:{firstRecord.Value}");
|
||||
var rawData = await redisDb.StringGetAsync(currSvgKey);
|
||||
if (rawData.HasValue)
|
||||
{
|
||||
answ = $"{rawData}";
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invio richiesta di calcolo per la porta indicata, dato il suo DDF
|
||||
@@ -990,13 +991,6 @@ namespace WebDoorCreator.Data.Services
|
||||
{
|
||||
get => TimeSpan.FromHours(24);
|
||||
}
|
||||
/// <summary>
|
||||
/// Durata cache di 24h
|
||||
/// </summary>
|
||||
private TimeSpan WeekLongCache
|
||||
{
|
||||
get => TimeSpan.FromHours(24 * 7);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Durata cache lunga (+ perturbazione percentuale +/-10%)
|
||||
@@ -1022,6 +1016,14 @@ namespace WebDoorCreator.Data.Services
|
||||
get => TimeSpan.FromSeconds(cacheTtlLong * 10 * rnd.Next(900, 1100) / 1000);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Durata cache di 24h
|
||||
/// </summary>
|
||||
private TimeSpan WeekLongCache
|
||||
{
|
||||
get => TimeSpan.FromHours(24 * 7);
|
||||
}
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-4 py-1">
|
||||
<DoorSvgObj LineColor="rgb(39, 174, 96)" LineWidth="8" ObjH="200" ObjW="900" LeftTextClass="col-10 fs-1 fw-bold" RightTextClass="col-2" EC_ExeFunct="@(()=> createDoor(""))" ObjId="0" TextData="@AddDoorDict"></DoorSvgObj>
|
||||
<DoorSvgObj LineColor="rgb(39, 174, 96)" LineWidth="8" ObjH="200" ObjW="900" LeftTextClass="col-10 fs-1 fw-bold" RightTextClass="col-2" EC_ExeFunct="@(()=> createDoor(""))" ObjId="-1" TextData="@AddDoorDict" ImagePath="images/LogoEgwBlack.png"></DoorSvgObj>
|
||||
</div>
|
||||
<div class="col-4 py-1">
|
||||
<DoorSvgObj LineColor="rgb(39, 174, 96)" LineWidth="8" ObjH="200" ObjW="900" LeftTextClass="col-10 fs-1 fw-bold" RightTextClass="col-2" EC_ExeFunct="@(()=> setCloneDoorMode(""))" ObjId="0" TextData="@AddFromTemplDict"></DoorSvgObj>
|
||||
<DoorSvgObj LineColor="rgb(39, 174, 96)" LineWidth="8" ObjH="200" ObjW="900" LeftTextClass="col-10 fs-1 fw-bold" RightTextClass="col-2" EC_ExeFunct="@(()=> setCloneDoorMode(""))" ObjId="-2" TextData="@AddFromTemplDict" ImagePath="images/LogoEgwBlue.png"></DoorSvgObj>
|
||||
</div>
|
||||
<div class="col-4 py-1">
|
||||
<DoorSvgObj LineColor="#8E44AD" LineWidth="8" ObjH="200" ObjW="900" LeftTextClass="col-10 fs-1 fw-bold" RightTextClass="col-2" EC_ExeFunct="@(()=> sendToAbh(currOrderId, orderStatus))" ObjId="0" TextData="@SendOrderDict" Message1="@currOrderId.ToString()" Message2="@orderStatus.ToString()"></DoorSvgObj>
|
||||
<DoorSvgObj LineColor="#8E44AD" LineWidth="8" ObjH="200" ObjW="900" LeftTextClass="col-10 fs-1 fw-bold" RightTextClass="col-2" EC_ExeFunct="@(()=> sendToAbh(currOrderId, orderStatus))" ObjId="-3" TextData="@SendOrderDict" Message1="@currOrderId.ToString()" Message2="@orderStatus.ToString()" ImagePath="images/LogoEgwWhite.png"></DoorSvgObj>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
<stop offset="0%" stop-color="#AFCFD1" />
|
||||
<stop offset="100%" stop-color="#92B2C4" />
|
||||
</linearGradient>
|
||||
@*<rect fill="white" x="0" y="0" height="100%" width="100%" style="opacity: 100%;"></rect>*@
|
||||
<rect fill="url(#BckGrad)" x="0" y="0" height="100%" width="100%" style="opacity: 100%;"></rect>
|
||||
<image x="@(CircleImg.rad/2)" y="0" href="@ImagePath" width="@CircleImg.rad" height="100%"></image>
|
||||
@if (ShowPlusMinus)
|
||||
@@ -35,7 +34,6 @@
|
||||
else if (ShowClone)
|
||||
{
|
||||
<rect x="0" y="@(ObjH/2)" width="100%" height="100%" fill="blue" style="opacity: 20%;" @onclick="()=>execClone()" />
|
||||
|
||||
}
|
||||
|
||||
</pattern>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Reference in New Issue
Block a user