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,28 @@
Public Class subagentes
Private Shared _ListaSubagentes As List(Of subagentes)
Public Property AMarcarComoBaja As Boolean
Public ReadOnly Property PolizasConDocumentosPendientes As List(Of polizassg)
Get
Return Me.polizassg.Where(Function(x) x.documentospolizassg.Any(Function(y) y.Obligatorio And y.FechaComprobacion Is Nothing AndAlso y.idFichero Is Nothing)).ToList
End Get
End Property
Public ReadOnly Property PolizasConDocumentosPendientes7Dias As List(Of polizassg)
Get
Dim FechaInicio As Date = Date.Today.AddDays(-7)
Return Me.polizassg.Where(Function(x) x.FechaAlta >= FechaInicio).ToList.Where(Function(x) x.documentospolizassg.Any(Function(y) y.Obligatorio And y.FechaComprobacion Is Nothing AndAlso y.idFichero Is Nothing)).ToList
End Get
End Property
Public Shared Function ListaSubAgentes() As List(Of subagentes)
If _ListaSubagentes Is Nothing Then
Dim bd = bdGestionAsegasa.gestionasegasaEntities.NuevoContexto
_ListaSubagentes = bd.subagentes.OrderBy(Function(x) x.Nombre).ToList
End If
Return _ListaSubagentes
End Function
Public ReadOnly Property CodigoYNombre As String
Get
Return Codigo & " - " & Nombre
End Get
End Property
End Class