From 194c4a6cc66cc2d5c2016a79c9d633018efd27a0 Mon Sep 17 00:00:00 2001 From: rrene Date: Fri, 31 May 2024 21:45:23 -0700 Subject: [PATCH] - --- App_Code/ClsVentas.vb | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb index 4052b6eae..46e5dd0e2 100644 --- a/App_Code/ClsVentas.vb +++ b/App_Code/ClsVentas.vb @@ -3504,28 +3504,28 @@ Public Class ClsVentas Return Retorno End Function - 'Public Function GetCortesDetalleVentas(CveCorte As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, Opcion As Integer) As Boolean - ' Dim Retorno As Boolean = False + Public Function GetCortesDetalleVentas(CveCorte As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, Opcion As Integer) As Boolean + Dim Retorno As Boolean = False - ' DataAdapter("PA_Vta_CortesDetalleVentasGet") + DataAdapter("PA_Vta_CortesDetalleVentasGet") - ' With SqlAdapter.SelectCommand.Parameters - ' .Add("@CveCorte", SqlDbType.Int).Value = CveCorte - ' .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto - ' .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa - ' .Add("@Opcion", SqlDbType.Int).Value = Opcion - ' End With + With SqlAdapter.SelectCommand.Parameters + .Add("@CveCorte", SqlDbType.Int).Value = CveCorte + .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto + .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + .Add("@Opcion", SqlDbType.Int).Value = Opcion + End With - ' Try - ' SqlAdapter.Fill(Data) + Try + SqlAdapter.Fill(Data) - ' Retorno = True - ' Catch ex As Exception - ' OnError("Ocurrió un error al obtener los detalle de cortes", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) - ' End Try + Retorno = True + Catch ex As Exception + OnError("Ocurrió un error al obtener los detalle de cortes", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End Try - ' Return Retorno - 'End Function + Return Retorno + End Function 'Public Function AddVtaCortesDetalles(CveCorte As Integer, CveMetodoPago As Integer, Importe As Double) As Boolean