This commit is contained in:
2026-05-18 12:28:33 +02:00
parent dde6047c24
commit b15a3a5a4f
14 changed files with 650 additions and 183 deletions

View File

@@ -130,5 +130,54 @@ namespace bdAntifraude.db
}
}
public string NombrePoblacionNotificaciones
{
get
{
var municipio = this.CODIGOMUNICIPIONOTIFICACIONNavigation;
if (municipio == null)
{
return "";
}
else
{
if (this.CODIGOPOSTALNOTIFICACIONES != null &&
municipio.CODIGOSPOSTALES.Any(x => x.CODIGOPOSTAL == this.CODIGOPOSTALNOTIFICACIONES))
{
var cp = municipio.CODIGOSPOSTALES
.First(x => x.CODIGOPOSTAL == this.CODIGOPOSTALNOTIFICACIONES);
if (cp.DESCRIPCIONADICIONAL != null)
{
return municipio.NOMBRE + " (" + cp.DESCRIPCIONADICIONAL + ")";
}
else
{
return municipio.NOMBRE;
}
}
else
{
return "";
}
}
}
}
public string NombreProvinciaNotificaciones
{
get
{
var municipio = this.CODIGOMUNICIPIONOTIFICACIONNavigation;
if (municipio == null)
{
return "";
}
else
{
return municipio.CODIGOPROVINCIANavigation.NOMBRE;
}
}
}
}
}