Ancora update metodo calcolo URL immagine semplificato (x offerte)
This commit is contained in:
@@ -195,7 +195,28 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce Url immagine già calcolato (da sistemare!!!)
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public string ImgUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "empty.svg";
|
||||
string fType = Envir == Constants.EXECENVIRONMENTS.WINDOW ? "svg" : "png";
|
||||
string rndImg = $"{DateTime.Now:HHmmssfff}";
|
||||
if (CalcEnabled)
|
||||
{
|
||||
answ = $"cache/{ImgUID}-{rndImg}.{fType}?env={Envir}";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = $"static/{ImgUID}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Valore serializzato della composizione articolo (in formato JWD x finestra)
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user