FrameAppWS

<back to all web services

ArbolPermisosPpalRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Usuarios/Permisos/MenuPrincipal
"use strict";
export class PermisosItems {
    /** @param {{CodigoMenu?:number,CodigoPadre?:number,Nombre?:string,Descripcion?:string,TienePermiso?:boolean,TipoEjecucion?:string,IDEjecucion?:string,InfoAdicional?:string,Orden?:number,Items?:PermisosItems[],Icono?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    CodigoMenu;
    /** @type {number} */
    CodigoPadre;
    /** @type {string} */
    Nombre;
    /** @type {string} */
    Descripcion;
    /** @type {boolean} */
    TienePermiso;
    /** @type {string} */
    TipoEjecucion;
    /** @type {string} */
    IDEjecucion;
    /** @type {string} */
    InfoAdicional;
    /** @type {number} */
    Orden;
    /** @type {PermisosItems[]} */
    Items;
    /** @type {string} */
    Icono;
}
export class PermisosModulos {
    /** @param {{CodModulo?:number,Nombre?:string,SuperUsuario?:boolean,Orden?:number,MenuPrincipal?:PermisosItems[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    CodModulo;
    /** @type {string} */
    Nombre;
    /** @type {boolean} */
    SuperUsuario;
    /** @type {number} */
    Orden;
    /** @type {PermisosItems[]} */
    MenuPrincipal;
}
/** @typedef {'ES'|'PT'|'EN'} */
export var Lenguajes;
(function (Lenguajes) {
    Lenguajes["ES"] = "ES"
    Lenguajes["PT"] = "PT"
    Lenguajes["EN"] = "EN"
})(Lenguajes || (Lenguajes = {}));
export class ArbolPermisosPpalRS {
    /** @param {{CodSistema?:number,CodEmpresa?:number,Modulos?:PermisosModulos[],Lenguaje?:Lenguajes}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    CodSistema;
    /** @type {number} */
    CodEmpresa;
    /** @type {PermisosModulos[]} */
    Modulos;
    /** @type {Lenguajes} */
    Lenguaje;
}
export class ArbolPermisosPpalRQ {
    /** @param {{Usuario?:string,CodSistema?:number,CodEmpresa?:number,Lenguaje?:Lenguajes}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Usuario;
    /** @type {number} */
    CodSistema;
    /** @type {number} */
    CodEmpresa;
    /** @type {Lenguajes} */
    Lenguaje;
}

JavaScript ArbolPermisosPpalRQ DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"Usuario":"String","CodSistema":0,"CodEmpresa":0,"Lenguaje":"ES"}
HTTP/1.1 200 OK
Content-Type: application/json
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,"Items":null,"Icono":"String"}],"Icono":"String"}],"Icono":"String"}]}],"Lenguaje":"ES"}