agregado procesos y bd clases
This commit is contained in:
36
bdAsegasa/Extensiones/entidadespolizas.cs
Normal file
36
bdAsegasa/Extensiones/entidadespolizas.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
namespace bdAsegasa.db
|
||||
{
|
||||
public partial class entidadespolizas
|
||||
{
|
||||
public bool AEliminar_tmp { get; set; }
|
||||
|
||||
public string Domicilio
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.idDireccion.HasValue)
|
||||
{
|
||||
if (this.idDireccionNavigation?.CodigoMunicipioNavigation == null || string.IsNullOrEmpty(this.idDireccionNavigation?.Direccion) || string.IsNullOrEmpty(this.idDireccionNavigation?.CodigoPostal))
|
||||
{
|
||||
return "** DOMICILIO INCORRECTO **";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.idDireccionNavigation.CodigoMunicipioNavigation.CodigoProvinciaNavigation?.Nombre == this.idDireccionNavigation.CodigoMunicipioNavigation.Nombre)
|
||||
{
|
||||
return this.idDireccionNavigation.Direccion + " - " + this.idDireccionNavigation.CodigoPostal + " " + this.idDireccionNavigation.CodigoMunicipioNavigation.Nombre;
|
||||
}
|
||||
else
|
||||
{
|
||||
return this.idDireccionNavigation.Direccion + " - " + this.idDireccionNavigation.CodigoPostal + " " + this.idDireccionNavigation.CodigoMunicipioNavigation.Nombre + " (" + this.idDireccionNavigation.CodigoMunicipioNavigation.CodigoProvinciaNavigation?.Nombre + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "** DOMICILIO INCORRECTO **";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user