-- mejora en recarga de global de cuentas bancos
This commit is contained in:
@@ -1823,11 +1823,8 @@ Partial Class Compras_Proveedores
|
|||||||
If ObjContaAC IsNot Nothing Then ObjContaAC.Commit()
|
If ObjContaAC IsNot Nothing Then ObjContaAC.Commit()
|
||||||
|
|
||||||
'ACTUALIZAR GLOBAL
|
'ACTUALIZAR GLOBAL
|
||||||
'If ObjProveedores.GetProveedores(ClsCompProveedores.TipoConsulta.ParaGlobalDT, -1, "-1", "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa) Then
|
|
||||||
GlobalDTCompProveedores(UsuarioActual.CveEmpresa) = Nothing
|
GlobalDTCompProveedores(UsuarioActual.CveEmpresa) = Nothing
|
||||||
'Else
|
GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, -1) = Nothing
|
||||||
' ErrorBancos = True
|
|
||||||
'End If
|
|
||||||
|
|
||||||
Alert("El Proveedor se guardó correctamente. " & "<br />" & MsgCuentaContable, TipoMensaje.MsgInformacion, If(Request("CveFactura") Is Nothing, "document.location.href=""/Compras/CatProveedores.aspx""", "window.opener.location.href = window.opener.location.href; window.close();"))
|
Alert("El Proveedor se guardó correctamente. " & "<br />" & MsgCuentaContable, TipoMensaje.MsgInformacion, If(Request("CveFactura") Is Nothing, "document.location.href=""/Compras/CatProveedores.aspx""", "window.opener.location.href = window.opener.location.href; window.close();"))
|
||||||
RecargaGlobalCuentasBancarias()
|
RecargaGlobalCuentasBancarias()
|
||||||
@@ -3416,7 +3413,9 @@ Partial Class Compras_Proveedores
|
|||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
If ObjCuentasBancos.RemoveCuentasDepositos(GvRow.DataKey("CveCuentaDeposito").ToEntero, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
|
If ObjCuentasBancos.RemoveCuentasDepositos(GvRow.DataKey("CveCuentaDeposito").ToEntero, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CveProveedor = {0}", CveProveedor)))
|
'recargar las cuentas
|
||||||
|
GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, -1) = Nothing
|
||||||
|
DTCuentasBancos = GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, CveProveedor)
|
||||||
|
|
||||||
Alert("Cuenta Bancaria borrada con éxito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta Bancaria borrada con éxito.", TipoMensaje.MsgInformacion)
|
||||||
Else
|
Else
|
||||||
@@ -3430,12 +3429,11 @@ Partial Class Compras_Proveedores
|
|||||||
|
|
||||||
CargaPSGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString)
|
CargaPSGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString)
|
||||||
ObjCuentasBancos.Dispose()
|
ObjCuentasBancos.Dispose()
|
||||||
RecargaGlobalCuentasBancarias()
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub RecargaGlobalCuentasBancarias(Optional ByVal CveCuenta As Integer = -1)
|
Private Sub RecargaGlobalCuentasBancarias(Optional ByVal CveCuenta As Integer = -1)
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, -1) = Nothing
|
GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, -1) = Nothing
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user