agregado procesos y bd clases
This commit is contained in:
40
bdAsegasa/Extensiones/historicocomisiones.cs
Normal file
40
bdAsegasa/Extensiones/historicocomisiones.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace bdAsegasa.db
|
||||
{
|
||||
public partial class historicocomisiones
|
||||
{
|
||||
public double TotalComisionAgente
|
||||
{
|
||||
get
|
||||
{
|
||||
return (this.comisionAgente ?? 0) + (this.incentivoAgente ?? 0);
|
||||
}
|
||||
}
|
||||
|
||||
public string CodNomAgente
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.idCodigoAgenteNavigation?.Codigo + "-" + this.idCodigoAgenteNavigation?.Nombre;
|
||||
}
|
||||
}
|
||||
|
||||
public string PlanLinea
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.idPolizaAgrarioNavigation?.idPlanLineaNavigation?.planLinea;
|
||||
}
|
||||
}
|
||||
|
||||
public int NumeroPolizas
|
||||
{
|
||||
get
|
||||
{
|
||||
var bd = tscgestionasegasa.NuevoContexto();
|
||||
return bd.polizasagrario.Count(x => x.poliza == this.idPolizaAgrarioNavigation.poliza);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user