FrameAppWS

<back to all web services

ArbolPermisosPpalRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Usuarios/Permisos/MenuPrincipal
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Administrador.Modelo.Tipos

Namespace Global

    Namespace Administrador.Modelo.Tipos

        Public Partial Class ArbolPermisosPpalRQ
            Public Overridable Property Usuario As String
            Public Overridable Property CodSistema As Integer
            Public Overridable Property CodEmpresa As Integer
            Public Overridable Property Lenguaje As Lenguajes
        End Class

        Public Partial Class ArbolPermisosPpalRS
            Public Sub New()
                Modulos = New List(Of PermisosModulos)
            End Sub

            Public Overridable Property CodSistema As Integer
            Public Overridable Property CodEmpresa As Integer
            Public Overridable Property Modulos As List(Of PermisosModulos)
            Public Overridable Property Lenguaje As Lenguajes
        End Class

        Public Enum Lenguajes
            ES
            PT
            EN
        End Enum

        Public Partial Class PermisosItems
            Public Sub New()
                Items = New List(Of PermisosItems)
            End Sub

            Public Overridable Property CodigoMenu As Decimal
            Public Overridable Property CodigoPadre As Decimal
            Public Overridable Property Nombre As String
            Public Overridable Property Descripcion As String
            Public Overridable Property TienePermiso As Boolean
            Public Overridable Property TipoEjecucion As String
            Public Overridable Property IDEjecucion As String
            Public Overridable Property InfoAdicional As String
            Public Overridable Property Orden As Integer
            Public Overridable Property Items As List(Of PermisosItems)
            Public Overridable Property Icono As String
        End Class

        Public Partial Class PermisosModulos
            Public Sub New()
                MenuPrincipal = New List(Of PermisosItems)
            End Sub

            Public Overridable Property CodModulo As Decimal
            Public Overridable Property Nombre As String
            Public Overridable Property SuperUsuario As Boolean
            Public Overridable Property Orden As Integer
            Public Overridable Property MenuPrincipal As List(Of PermisosItems)
        End Class
    End Namespace
End Namespace

VB.NET ArbolPermisosPpalRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Usuarios/Permisos/MenuPrincipal HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Usuario: String,
	CodSistema: 0,
	CodEmpresa: 0,
	Lenguaje: ES
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	CodSistema: 0,
	CodEmpresa: 0,
	Modulos: 
	[
		{
			CodModulo: 0,
			Nombre: String,
			SuperUsuario: False,
			Orden: 0,
			MenuPrincipal: 
			[
				{
					CodigoMenu: 0,
					CodigoPadre: 0,
					Nombre: String,
					Descripcion: String,
					TienePermiso: False,
					TipoEjecucion: String,
					IDEjecucion: String,
					InfoAdicional: String,
					Orden: 0,
					Items: 
					[
						{
							CodigoMenu: 0,
							CodigoPadre: 0,
							Nombre: String,
							Descripcion: String,
							TienePermiso: False,
							TipoEjecucion: String,
							IDEjecucion: String,
							InfoAdicional: String,
							Orden: 0,
							Items: 
							[
								{
									CodigoMenu: 0,
									CodigoPadre: 0,
									Nombre: String,
									Descripcion: String,
									TienePermiso: False,
									TipoEjecucion: String,
									IDEjecucion: String,
									InfoAdicional: String,
									Orden: 0,
									Icono: String
								}
							],
							Icono: String
						}
					],
					Icono: String
				}
			]
		}
	],
	Lenguaje: ES
}