-- filtro de empresa, en proveedoresbancos
This commit is contained in:
@@ -649,12 +649,10 @@ Public Class ClsMovimientos
|
|||||||
OnError("Ocurrió un error al consultar las CxP del Proveedor.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
OnError("Ocurrió un error al consultar las CxP del Proveedor.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetProveedorBancos(CveProveedor As Integer, Optional CveMoneda As Integer = -1, Optional FechaVencimientoInicio As String = "-1", Optional FechaVencimientoFin As String = "-1", Optional CveUsuarioProgramo As Integer = -1, Optional CveProveedorSucursal As Integer = -1, Optional SelectTop As Integer = -1) As Boolean
|
Public Function GetProveedorBancos(CveProveedor As Integer, CveEmpresa As Integer, Optional CveMoneda As Integer = -1, Optional FechaVencimientoInicio As String = "-1", Optional FechaVencimientoFin As String = "-1", Optional CveUsuarioProgramo As Integer = -1, Optional CveProveedorSucursal As Integer = -1, Optional SelectTop As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Comp_ProveedorBancos")
|
DataAdapter("PA_Comp_ProveedorBancos")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -663,11 +661,11 @@ Public Class ClsMovimientos
|
|||||||
.Add("@FechaF", SqlDbType.VarChar).Value = FechaVencimientoFin
|
.Add("@FechaF", SqlDbType.VarChar).Value = FechaVencimientoFin
|
||||||
.Add("@CveUsuarioProgramo", SqlDbType.Int).Value = CveUsuarioProgramo
|
.Add("@CveUsuarioProgramo", SqlDbType.Int).Value = CveUsuarioProgramo
|
||||||
.Add("@CveProveedorSucursal", SqlDbType.VarChar).Value = CveProveedorSucursal
|
.Add("@CveProveedorSucursal", SqlDbType.VarChar).Value = CveProveedorSucursal
|
||||||
.Add("@CveMoneda", SqlDbType.SmallInt).Value = CveMoneda
|
.Add("@CveMoneda", SqlDbType.SmallInt).Value = CveMoneda
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@SelectTop", SqlDbType.Int).Value = SelectTop
|
.Add("@SelectTop", SqlDbType.Int).Value = SelectTop
|
||||||
End With
|
End With
|
||||||
|
|
||||||
|
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
@@ -675,8 +673,6 @@ Public Class ClsMovimientos
|
|||||||
OnError("Ocurrió un error al consultar las CxP del Proveedor.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
OnError("Ocurrió un error al consultar las CxP del Proveedor.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user