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,26 @@
Imports tsl5
Imports bdGestionAsegasa
Imports tsl5.Extensiones
Partial Public Class historicocomisiones
Public ReadOnly Property TotalComisionAgente As Double
Get
Return If(Me.comisionAgente.HasValue, Me.comisionAgente.Value, 0) + If(Me.incentivoAgente.HasValue, Me.incentivoAgente.Value, 0)
End Get
End Property
Public ReadOnly Property CodNomAgente As String
Get
Return Me.agentes.Codigo & "-" & Me.agentes.Nombre
End Get
End Property
Public ReadOnly Property PlanLinea As String
Get
Return Me.polizasagrario.planeslineas.planLinea
End Get
End Property
Public ReadOnly Property NumeroPolizas As Integer
Get
Dim bd As gestionasegasaEntities = Me.ObtieneContexto
Return bd.polizasagrario.Where(Function(x) x.poliza = Me.polizasagrario.poliza).Count
End Get
End Property
End Class