From 005592890a0c714c974b937132130c8bc25721e7 Mon Sep 17 00:00:00 2001 From: Rakcsle Supertramp Date: Wed, 11 Dec 2019 18:44:08 -0700 Subject: [PATCH] Rep indicador Diario --- App_Code/ClsAcumuladores.vb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/App_Code/ClsAcumuladores.vb b/App_Code/ClsAcumuladores.vb index 870e809fa..1980df4a1 100644 --- a/App_Code/ClsAcumuladores.vb +++ b/App_Code/ClsAcumuladores.vb @@ -894,6 +894,33 @@ Public Class ClsAcumuladores End Function + Public Function GetRepInicadorDiario(FechaInicio As Date, FechaFin As Date, CveSubProeycto As Integer, CveEmpresa As Integer) As Boolean + + Dim Retorno As Boolean = False + + SqlDataAdapter("PA_Acum_RepInicadorDiarioGet") + + With SqlAdapter.SelectCommand.Parameters + .Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio + .Add("@FechaFin", SqlDbType.Date).Value = FechaFin + .Add("@CveSubProeycto", SqlDbType.Int).Value = CveSubProeycto + .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + End With + + Try + + SqlAdapter.Fill(Data) + Retorno = True + + Catch ex As SqlException + + OnError("Ocurrió un error al consultar los datos. ", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + + End Try + + Return Retorno + End Function + #Region " IDisposable Support "