Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub FichaArtigos_AntesDeGravar(Cancel As Boolean)
  2.     Dim strErros As String
  3.     If (Base.AppOk = True) Then
  4.         Set modRegrasDeArtigos.ObjUserInterfaceApp = New DEV_1_11_UserInterface.UserInterfaceApplication
  5.         If modRegrasDeArtigos.ObjUserInterfaceApp.FichaDeArtigo_AntesDeGravar(Me.Artigo, Me.ArtigoIdiomas, strErros) = False Then
  6.             PSO.Dialogos.MostraAviso "Ocorreram os seguintes erros: " & strErros & vbNewLine, PRI_Exclama
  7.             Cancel = True
  8.         End If
  9.     End If
  10.            
  11. End Sub
  12.  
  13. Private Sub FichaArtigos_DepoisDeGravar(ByVal Artigo As String)
  14.    Dim strErros As String
  15.     If (Base.AppOk = True) Then
  16.         Set modRegrasDeArtigos.ObjUserInterfaceApp = New DEV_1_11_UserInterface.UserInterfaceApplication
  17.         If modRegrasDeArtigos.ObjUserInterfaceApp.FichaDeArtigo_DepoisDeGravar(Me.Artigo, Me.ArtigoIdiomas, strErros) = False Then
  18.             PSO.Dialogos.MostraAviso "Ocorreram os seguintes erros: " & strErros & vbNewLine, PRI_Exclama
  19.             Cancel = True
  20.         End If
  21.     End If
  22. End Sub
  23.  
  24. Private Sub FichaArtigos_TeclaPressionada(KeyCode As Integer, Shift As Integer)
  25.     Dim strErros As String
  26.    
  27.     If (Base.AppOk = True) Then
  28.        
  29.         Set modRegrasDeArtigos.ObjUserInterfaceApp = New DEV_1_11_UserInterface.UserInterfaceApplication
  30.        
  31.          If KeyCode = vbKeyF5 Then
  32.             If modRegrasDeArtigos.ObjUserInterfaceApp.FichaArtigos_TeclaPressionada(Me.Artigo, strErros) = False Then
  33.                 PSO.Dialogos.MostraAviso "Ocorreram os seguintes erros: " & strErros & vbNewLine, PRI_Exclama
  34.             Cancel = True
  35.             End If
  36.         End If
  37.     End If
  38. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement