-- parametros globaldtuentas usuarios

This commit is contained in:
rrene
2020-07-28 23:14:18 -07:00
parent c7f6f4d76c
commit 597fa4d9c7
3 changed files with 5 additions and 10 deletions

View File

@@ -611,12 +611,13 @@ Public Class ClsBancos
#Region " B A N C O S - C U E N T A S - U S U A R I O S"
Public Function GetBancosCuentasUsuarios(CveCuenta As Integer) As Boolean
Public Function GetBancosCuentasUsuarios(CveCuenta As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Banc_BancosCuentasUsuariosGet")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveCuenta", SqlDbType.Int).Value = CveCuenta
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
End With
Try
SqlAdapter.Fill(Data)

View File

@@ -1459,14 +1459,8 @@ Public Class ClsPaginas
'sino existe, recarga los datos
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Then
Dim ObjBancos As New ClsBancos
If ObjBancos.GetBancosCuentasUsuarios(-1) Then
If CveEmpresa > 0 Then
Application(AppNombre) = ObjBancos.DtResultados.FiltraParametros($"CveEmpresa = { CveEmpresa }")
Else
Application(AppNombre) = ObjBancos.DtResultados
End If
If ObjBancos.GetBancosCuentasUsuarios(-1, CveEmpresa) Then
Application(AppNombre) = ObjBancos.DtResultados
Else
Application(AppNombre) = Nothing
End If

View File

@@ -7199,7 +7199,7 @@ Namespace Modelos
'sino existe, recarga los datos
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Then
Dim ObjBancos As New ClsBancos
If ObjBancos.GetBancosCuentasUsuarios(-1) Then
If ObjBancos.GetBancosCuentasUsuarios(-1, CveEmpresa) Then
HttpContext.Current.Application(AppNombre) = ObjBancos.DtResultados
Else
HttpContext.Current.Application(AppNombre) = Nothing