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 .xml suffix or ?format=xml

HTTP + XML

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

<ArbolPermisosPpalRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <CodEmpresa>0</CodEmpresa>
  <CodSistema>0</CodSistema>
  <Lenguaje>ES</Lenguaje>
  <Usuario>String</Usuario>
</ArbolPermisosPpalRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArbolPermisosPpalRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <CodEmpresa>0</CodEmpresa>
  <CodSistema>0</CodSistema>
  <Lenguaje>ES</Lenguaje>
  <Modulos>
    <PermisosModulos>
      <CodModulo>0</CodModulo>
      <MenuPrincipal>
        <PermisosItems>
          <CodigoMenu>0</CodigoMenu>
          <CodigoPadre>0</CodigoPadre>
          <Descripcion>String</Descripcion>
          <IDEjecucion>String</IDEjecucion>
          <Icono>String</Icono>
          <InfoAdicional>String</InfoAdicional>
          <Items>
            <PermisosItems>
              <CodigoMenu>0</CodigoMenu>
              <CodigoPadre>0</CodigoPadre>
              <Descripcion>String</Descripcion>
              <IDEjecucion>String</IDEjecucion>
              <Icono>String</Icono>
              <InfoAdicional>String</InfoAdicional>
              <Items>
                <PermisosItems>
                  <CodigoMenu>0</CodigoMenu>
                  <CodigoPadre>0</CodigoPadre>
                  <Descripcion>String</Descripcion>
                  <IDEjecucion>String</IDEjecucion>
                  <Icono>String</Icono>
                  <InfoAdicional>String</InfoAdicional>
                  <Items i:nil="true" />
                  <Nombre>String</Nombre>
                  <Orden>0</Orden>
                  <TienePermiso>false</TienePermiso>
                  <TipoEjecucion>String</TipoEjecucion>
                </PermisosItems>
              </Items>
              <Nombre>String</Nombre>
              <Orden>0</Orden>
              <TienePermiso>false</TienePermiso>
              <TipoEjecucion>String</TipoEjecucion>
            </PermisosItems>
          </Items>
          <Nombre>String</Nombre>
          <Orden>0</Orden>
          <TienePermiso>false</TienePermiso>
          <TipoEjecucion>String</TipoEjecucion>
        </PermisosItems>
      </MenuPrincipal>
      <Nombre>String</Nombre>
      <Orden>0</Orden>
      <SuperUsuario>false</SuperUsuario>
    </PermisosModulos>
  </Modulos>
</ArbolPermisosPpalRS>