IE cahcar error en treger al eliminar

This commit is contained in:
Rakcsle Supertramp
2019-10-15 14:14:14 -07:00
parent cef363fd84
commit 5194963509
2 changed files with 44 additions and 13 deletions

View File

@@ -4752,13 +4752,26 @@ Partial Class Bancos_IE
End If
If Not ErrorCompra Then
Alert("El documento bancario quedó eliminado.", TipoMensaje.MsgInformacion, "document.location.href=""/Bancos/RepIE.aspx""")
If ObjAC IsNot Nothing Then ObjAC.Commit()
Banc.Commit()
If Banc.ExisteConeccion Then
Banc.Commit()
Alert("El documento bancario quedó eliminado.", TipoMensaje.MsgInformacion, "document.location.href=""/Bancos/RepIE.aspx""")
End If
Else
Alert("El documento no ha sido eliminado.", TipoMensaje.MsgAdvertencia)
If ObjAC IsNot Nothing Then ObjAC.RollBack()
Banc.RollBack()
If Banc.ExisteConeccion Then
Banc.RollBack()
End If
End If
If ObjAC IsNot Nothing Then ObjAC.Dispose()