FrameAppWS

<back to all web services

GuardarDatosFormaRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Utilidades/Formas/GuardarDatos
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Administrador.Modelo.Tipos;
using Administrador.Modelo;

namespace Administrador.Modelo
{
    public partial class NovedadesCarga
    {
        public virtual int Fila { get; set; }
        public virtual int Columna { get; set; }
        public virtual string TipoError { get; set; }
        public virtual string Novedad { get; set; }
    }

}

namespace Administrador.Modelo.Tipos
{
    public partial class ExecuteDBFunctionRS
        : GeneralRS
    {
        public virtual Object Respuesta { get; set; }
        public virtual decimal IDEjecucion { get; set; }
        public virtual string URLArchivo { get; set; }
        public virtual string TipoRespuesta { get; set; }
        public virtual bool Background { get; set; }
        public virtual long TiempoRespuestaBD { get; set; }
        public virtual long TiempoRespuestaTotal { get; set; }
        ///<summary>
        ///Id del código de respuesta 1: Correcto, -1: Error
        ///</summary>
        [ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")]
        public virtual int Codigo { get; set; }

        ///<summary>
        ///Mensaje que se envía al ejecutar el servicio
        ///</summary>
        [ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")]
        public virtual string Mensaje { get; set; }
    }

    public partial class GeneralRS
    {
        ///<summary>
        ///Id del código de respuesta 1: Correcto, -1: Error
        ///</summary>
        [ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")]
        public virtual int Codigo { get; set; }

        ///<summary>
        ///Mensaje que se envía al ejecutar el servicio
        ///</summary>
        [ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")]
        public virtual string Mensaje { get; set; }
    }

    public partial class GuardarDatosDetalle
    {
        public GuardarDatosDetalle()
        {
            DatosInsert = new List<Dictionary<String,Object>>{};
            DatosUpdate = new List<Dictionary<String,Object>>{};
            DatosDelete = new List<Dictionary<String,Object>>{};
        }

        public virtual int IDDetalle { get; set; }
        public virtual List<Dictionary<String,Object>> DatosInsert { get; set; }
        public virtual List<Dictionary<String,Object>> DatosUpdate { get; set; }
        public virtual List<Dictionary<String,Object>> DatosDelete { get; set; }
        public virtual string NombreArchivo { get; set; }
    }

    public partial class GuardarDatosFormaDetalleRS
    {
        public GuardarDatosFormaDetalleRS()
        {
            Novedades = new List<NovedadesCarga>{};
        }

        public virtual decimal IDDetalle { get; set; }
        public virtual List<NovedadesCarga> Novedades { get; set; }
    }

    public partial class GuardarDatosFormaRQ
    {
        public GuardarDatosFormaRQ()
        {
            DatosMaestro = new Dictionary<string, Object>{};
            DatosDetalle = new List<GuardarDatosDetalle>{};
            FormasDep = new List<GuardarDatosFormaRQ>{};
        }

        public virtual int IDForma { get; set; }
        public virtual OperacionDatos Operacion { get; set; }
        public virtual Dictionary<string, Object> DatosMaestro { get; set; }
        public virtual List<GuardarDatosDetalle> DatosDetalle { get; set; }
        public virtual List<GuardarDatosFormaRQ> FormasDep { get; set; }
        public virtual string TokenCargaArchivos { get; set; }
    }

    public partial class GuardarDatosFormaRS
    {
        public GuardarDatosFormaRS()
        {
            DatosLlaveMaestro = new Dictionary<string, Object>{};
            NovedadesDetalles = new List<GuardarDatosFormaDetalleRS>{};
        }

        public virtual bool Success { get; set; }
        public virtual string Error { get; set; }
        public virtual Dictionary<string, Object> DatosLlaveMaestro { get; set; }
        public virtual List<GuardarDatosFormaDetalleRS> NovedadesDetalles { get; set; }
        public virtual ExecuteDBFunctionRS RespuestaProcAlmacenado { get; set; }
    }

    public enum OperacionDatos
    {
        INSERT,
        UPDATE,
        DELETE,
    }

}

C# GuardarDatosFormaRQ 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 /Utilidades/Formas/GuardarDatos HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsv
Content-Type: text/jsv
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
								}
							],
							TokenCargaArchivos: String
						}
					],
					TokenCargaArchivos: String
				}
			],
			TokenCargaArchivos: String
		}
	],
	TokenCargaArchivos: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
	}
}