All Verbs | /Utilidades/Formas/GuardarDatos |
---|
namespace Administrador.Modelo
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type NovedadesCarga() =
member val Fila:Int32 = new Int32() with get,set
member val Columna:Int32 = new Int32() with get,set
member val TipoError:String = null with get,set
member val Novedad:String = null with get,set
[<AllowNullLiteral>]
type GuardarDatosFormaDetalleRS() =
member val IDDetalle:Decimal = new Decimal() with get,set
member val Novedades:ResizeArray<NovedadesCarga> = new ResizeArray<NovedadesCarga>() with get,set
[<AllowNullLiteral>]
type 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")>]
member val Codigo:Int32 = new Int32() with 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")>]
member val Mensaje:String = null with get,set
[<AllowNullLiteral>]
type ExecuteDBFunctionRS() =
inherit GeneralRS()
member val Respuesta:Object = null with get,set
member val IDEjecucion:Decimal = new Decimal() with get,set
member val URLArchivo:String = null with get,set
member val TipoRespuesta:String = null with get,set
member val Background:Boolean = new Boolean() with get,set
member val TiempoRespuestaBD:Int64 = new Int64() with get,set
member val TiempoRespuestaTotal:Int64 = new Int64() with 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")>]
member val Codigo:Int32 = new Int32() with 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")>]
member val Mensaje:String = null with get,set
[<AllowNullLiteral>]
type GuardarDatosFormaRS() =
member val Success:Boolean = new Boolean() with get,set
member val Error:String = null with get,set
member val DatosLlaveMaestro:Dictionary<String, Object> = new Dictionary<String, Object>() with get,set
member val NovedadesDetalles:ResizeArray<GuardarDatosFormaDetalleRS> = new ResizeArray<GuardarDatosFormaDetalleRS>() with get,set
member val RespuestaProcAlmacenado:ExecuteDBFunctionRS = null with get,set
type OperacionDatos =
| INSERT = 0
| UPDATE = 1
| DELETE = 2
[<AllowNullLiteral>]
type GuardarDatosDetalle() =
member val IDDetalle:Int32 = new Int32() with get,set
member val DatosInsert:ResizeArray<Dictionary<String,Object>> = new ResizeArray<Dictionary<String,Object>>() with get,set
member val DatosUpdate:ResizeArray<Dictionary<String,Object>> = new ResizeArray<Dictionary<String,Object>>() with get,set
member val DatosDelete:ResizeArray<Dictionary<String,Object>> = new ResizeArray<Dictionary<String,Object>>() with get,set
member val NombreArchivo:String = null with get,set
[<AllowNullLiteral>]
type GuardarDatosFormaRQ() =
member val IDForma:Int32 = new Int32() with get,set
member val Operacion:OperacionDatos = new OperacionDatos() with get,set
member val DatosMaestro:Dictionary<String, Object> = new Dictionary<String, Object>() with get,set
member val DatosDetalle:ResizeArray<GuardarDatosDetalle> = new ResizeArray<GuardarDatosDetalle>() with get,set
member val FormasDep:ResizeArray<GuardarDatosFormaRQ> = new ResizeArray<GuardarDatosFormaRQ>() with get,set
member val TokenCargaArchivos:String = null with get,set
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
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: application/json
Content-Type: application/json
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: application/json 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"}}