agregado procesos y bd clases

This commit is contained in:
2026-04-28 11:52:16 +02:00
parent 59a774c397
commit cd2e8b8530
251 changed files with 56881 additions and 49 deletions

View 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);
}
}
}
}