Use Spring Engines for Spring Administrator

0

I'm building this little code to populate a treeview with checkboxes. Example:

Private Sub frmPermissoes_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    TreeView2.CheckBoxes = True

    Me.Controls.Add(TreeView2)
    TreeView2.Nodes.Clear()

    Dim root = New TreeNode("Primavera")
    TreeView2.Nodes.Add(root)
    TreeView2.Nodes(0).Nodes.Add(New TreeNode("Contabilidade"))
    TreeView2.Nodes(0).Nodes(0).Nodes.Add(New TreeNode("Diarios"))


    For loopindex As Integer = 1 To 4
        TreeView2.Nodes(0).Nodes(0).Nodes(0).Nodes.Add(New TreeNode("Teste" & Str(loopindex)))
        TreeView2.ExpandAll()
    Next loopindex


    Me.Text = "teste"

End Sub

What I intend with this code, using the SPRING engines of the Spring administration module is to fill in the nodes of the TreeView , with the code and names of the journals, then in their%% can give their permissions, which is missing from the diaries.

I needed help using this part of the engines, regarding the permissions that are given to the user profiles, can anyone help me?

    
asked by anonymous 23.10.2018 / 02:13

1 answer

3

The BSO.Contabilidade.Diarios.LstDiarios method returns the journal and description. You can refer to the developers.primaverabss.com documentation or API help at ICblBSDiaries

With this method I could do that.

IfAplicacao.Utilizador.AcedeAtributo("Documento", "FA", "EXT", "CRIAR") Then
    MsgBox "Com permisssão dinamica.", vbInformation
Else
    MsgBox "Sem permisssão dinamica.", vbInformation
End If
    
23.10.2018 / 15:11