Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PROCEDURE getUserPermissions()
- response is array of MPermisos = Projecte_Service.permisos.GetAllByUserID(LOOP_PermisosEmpleats.ATT_Codi)
- IF response.Count >= 1 THEN
- currentPermissions.DeleteAll()
- FOR EACH elem OF response
- index is int = LooperSearchEverywhere(LOOP_ArrayPermisos, elem.NOM, searchExactMatch)
- IF index <> -1 THEN
- LOOP_ArrayPermisos[index].CBOX_CheckedRow = True
- currentPermissions.Add(elem.PERMISOS_ID)
- END
- END
- END
- PROCEDURE getUserRoles()
- //send req to get all roles associated with the selected user
- response is array of MRoles = Projecte_Service.roles.GetAllByUserID(LOOP_RolsEmpleats.ATT_Codi)
- //if response contains data
- IF response.Count >= 1 THEN
- currentRoles.DeleteAll()
- FOR EACH elem OF response
- index is int = LooperSearchEverywhere(LOOP_ArrayRoles, elem.NOM, searchExactMatch)
- IF index <> -1 THEN
- LOOP_ArrayRoles[index].CBOX_CheckedRow = True
- currentRoles.Add(elem.ROLES_ID)
- END
- END
- END
- //get associations
- Projecte_Service.roles.getAllRolesAss()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement