FrameAppWS

<back to all web services

GuardarDatosFormaRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Utilidades/Formas/GuardarDatos
"use strict";
export class NovedadesCarga {
    /** @param {{Fila?:number,Columna?:number,TipoError?:string,Novedad?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Fila;
    /** @type {number} */
    Columna;
    /** @type {string} */
    TipoError;
    /** @type {string} */
    Novedad;
}
export class GuardarDatosFormaDetalleRS {
    /** @param {{IDDetalle?:number,Novedades?:NovedadesCarga[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    IDDetalle;
    /** @type {NovedadesCarga[]} */
    Novedades;
}
export class GeneralRS {
    /** @param {{Codigo?:number,Mensaje?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {number}
     * @description Id del código de respuesta 1: Correcto, -1: Error */
    Codigo;
    /**
     * @type {string}
     * @description Mensaje que se envía al ejecutar el servicio */
    Mensaje;
}
export class ExecuteDBFunctionRS extends GeneralRS {
    /** @param {{Respuesta?:Object,IDEjecucion?:number,URLArchivo?:string,TipoRespuesta?:string,Background?:boolean,TiempoRespuestaBD?:number,TiempoRespuestaTotal?:number,Codigo?:number,Mensaje?:string,Codigo?:number,Mensaje?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {Object} */
    Respuesta;
    /** @type {number} */
    IDEjecucion;
    /** @type {string} */
    URLArchivo;
    /** @type {string} */
    TipoRespuesta;
    /** @type {boolean} */
    Background;
    /** @type {number} */
    TiempoRespuestaBD;
    /** @type {number} */
    TiempoRespuestaTotal;
    /**
     * @type {number}
     * @description Id del código de respuesta 1: Correcto, -1: Error */
    Codigo;
    /**
     * @type {string}
     * @description Mensaje que se envía al ejecutar el servicio */
    Mensaje;
}
export class GuardarDatosFormaRS {
    /** @param {{Success?:boolean,Error?:string,DatosLlaveMaestro?:{ [index: string]: Object; },NovedadesDetalles?:GuardarDatosFormaDetalleRS[],RespuestaProcAlmacenado?:ExecuteDBFunctionRS}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {boolean} */
    Success;
    /** @type {string} */
    Error;
    /** @type {{ [index: string]: Object; }} */
    DatosLlaveMaestro;
    /** @type {GuardarDatosFormaDetalleRS[]} */
    NovedadesDetalles;
    /** @type {ExecuteDBFunctionRS} */
    RespuestaProcAlmacenado;
}
/** @typedef {'INSERT'|'UPDATE'|'DELETE'} */
export var OperacionDatos;
(function (OperacionDatos) {
    OperacionDatos["INSERT"] = "INSERT"
    OperacionDatos["UPDATE"] = "UPDATE"
    OperacionDatos["DELETE"] = "DELETE"
})(OperacionDatos || (OperacionDatos = {}));
export class GuardarDatosDetalle {
    /** @param {{IDDetalle?:number,DatosInsert?:{ [index:string]: Object; }[],DatosUpdate?:{ [index:string]: Object; }[],DatosDelete?:{ [index:string]: Object; }[],NombreArchivo?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    IDDetalle;
    /** @type {{ [index:string]: Object; }[]} */
    DatosInsert;
    /** @type {{ [index:string]: Object; }[]} */
    DatosUpdate;
    /** @type {{ [index:string]: Object; }[]} */
    DatosDelete;
    /** @type {string} */
    NombreArchivo;
}
export class GuardarDatosFormaRQ {
    /** @param {{IDForma?:number,Operacion?:OperacionDatos,DatosMaestro?:{ [index: string]: Object; },DatosDetalle?:GuardarDatosDetalle[],FormasDep?:GuardarDatosFormaRQ[],TokenCargaArchivos?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    IDForma;
    /** @type {OperacionDatos} */
    Operacion;
    /** @type {{ [index: string]: Object; }} */
    DatosMaestro;
    /** @type {GuardarDatosDetalle[]} */
    DatosDetalle;
    /** @type {GuardarDatosFormaRQ[]} */
    FormasDep;
    /** @type {string} */
    TokenCargaArchivos;
}

JavaScript GuardarDatosFormaRQ DTOs

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

HTTP + OTHER

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

POST /Utilidades/Formas/GuardarDatos HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"IDForma":0,"Operacion":"INSERT","DatosMaestro":{"String":{}},"DatosDetalle":[{"IDDetalle":0,"DatosInsert":[{"String":{}}],"DatosUpdate":[{"String":{}}],"DatosDelete":[{"String":{}}],"NombreArchivo":"String"}],"FormasDep":[{"IDForma":0,"Operacion":"INSERT","DatosMaestro":{"String":{}},"DatosDetalle":[{"IDDetalle":0,"DatosInsert":[{"String":{}}],"DatosUpdate":[{"String":{}}],"DatosDelete":[{"String":{}}],"NombreArchivo":"String"}],"FormasDep":[{"IDForma":0,"Operacion":"INSERT","DatosMaestro":{"String":{}},"DatosDetalle":[{"IDDetalle":0,"DatosInsert":[{"String":{}}],"DatosUpdate":[{"String":{}}],"DatosDelete":[{"String":{}}],"NombreArchivo":"String"}],"FormasDep":[{"IDForma":0,"Operacion":"INSERT","DatosMaestro":{"String":{}},"DatosDetalle":[{"IDDetalle":0,"DatosInsert":[{"String":{}}],"DatosUpdate":[{"String":{}}],"DatosDelete":[{"String":{}}],"NombreArchivo":"String"}],"FormasDep":null,"TokenCargaArchivos":"String"}],"TokenCargaArchivos":"String"}],"TokenCargaArchivos":"String"}],"TokenCargaArchivos":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Success":false,"Error":"String","DatosLlaveMaestro":{"String":{}},"NovedadesDetalles":[{"IDDetalle":0,"Novedades":[{"Fila":0,"Columna":0,"TipoError":"String","Novedad":"String"}]}],"RespuestaProcAlmacenado":{"Respuesta":{},"IDEjecucion":0,"URLArchivo":"String","TipoRespuesta":"String","Background":false,"TiempoRespuestaBD":0,"TiempoRespuestaTotal":0,"Codigo":0,"Mensaje":"String"}}