From a5724b8bfa2202a71257f235a524ec87a450b161 Mon Sep 17 00:00:00 2001 From: rrene Date: Thu, 18 May 2023 12:02:18 -0700 Subject: [PATCH] -- filtro por tipo periodo en asistencias --- App_Code/ClsRH.vb | 5 +++-- App_Code/LogicNominas.vb | 3 +-- RH/Asistencias.aspx | 27 +++++++++++++++------------ RH/Asistencias.aspx.vb | 25 +++++++------------------ 4 files changed, 26 insertions(+), 34 deletions(-) diff --git a/App_Code/ClsRH.vb b/App_Code/ClsRH.vb index 03d71dc26..ac5599c36 100644 --- a/App_Code/ClsRH.vb +++ b/App_Code/ClsRH.vb @@ -2621,7 +2621,7 @@ Public Class ClsRH End Function - Public Function GetAsistencias(CvePersonal As Integer, CveClienteAsignado As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveTurno As Integer, CveEstatusPersonal As Integer, FechaI As Date, FechaF As Date, CveEmpresa As Integer) As Boolean + Public Function GetAsistencias(CvePersonal As Integer, CveClienteAsignado As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveTurno As Integer, CveEstatusPersonal As Integer, CveTipoPeriodo As Integer, FechaI As Date, FechaF As Date, CveEmpresa As Integer) As Boolean Dim Retorno As Boolean = False SqlDataAdapter("PA_RH_PersonalAsistenciasGet") @@ -2630,7 +2630,8 @@ Public Class ClsRH .Add("@CveCliente", SqlDbType.Int).Value = CveClienteAsignado .Add("@CveProyecto", SqlDbType.Int).Value = CveProyecto .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto - .Add("@CveTurno", SqlDbType.Int).Value = CveTurno + .Add("@CveTurno", SqlDbType.Int).Value = CveTurno + .Add("@CveTipoPeriodo", SqlDbType.Int).Value = CveTipoPeriodo .Add("@CveEstatusPersonal", SqlDbType.Int).Value = CveEstatusPersonal .Add("@FechaI", SqlDbType.Date).Value = FechaI .Add("@FechaF", SqlDbType.Date).Value = FechaF diff --git a/App_Code/LogicNominas.vb b/App_Code/LogicNominas.vb index 77ef2a74b..50079a832 100644 --- a/App_Code/LogicNominas.vb +++ b/App_Code/LogicNominas.vb @@ -279,8 +279,7 @@ Public Class LogicNominas continuar = False End If If Not TimbreIndemnizacion Then - If continuar AndAlso objPersonal.GetAsistencias(CvePersonal, -1, -1, -1, -1, -1, FechaInicio, FechaFin, UsuarioActual.CveEmpresa) Then - + If continuar AndAlso objPersonal.GetAsistencias(CvePersonal, -1, -1, -1, -1, -1, -1, FechaInicio, FechaFin, UsuarioActual.CveEmpresa) Then Dim Asistencias As Integer = objPersonal.DtResultados.SUM("AplicaAsistencia").ToEntero() 'If Asistencias > 15 Then diff --git a/RH/Asistencias.aspx b/RH/Asistencias.aspx index 4aae019e5..7e39d1d9b 100644 --- a/RH/Asistencias.aspx +++ b/RH/Asistencias.aspx @@ -75,26 +75,29 @@ - + + - - + @@ -204,10 +207,10 @@