FrameAppWS

<back to all web services

GuardarDatosFormaRQ

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

Namespace Global

    Namespace Administrador.Modelo

        Public Partial Class NovedadesCarga
            Public Overridable Property Fila As Integer
            Public Overridable Property Columna As Integer
            Public Overridable Property TipoError As String
            Public Overridable Property Novedad As String
        End Class
    End Namespace

    Namespace Administrador.Modelo.Tipos

        Public Partial Class ExecuteDBFunctionRS
            Inherits GeneralRS
            Public Overridable Property Respuesta As Object
            Public Overridable Property IDEjecucion As Decimal
            Public Overridable Property URLArchivo As String
            Public Overridable Property TipoRespuesta As String
            Public Overridable Property Background As Boolean
            Public Overridable Property TiempoRespuestaBD As Long
            Public Overridable Property TiempoRespuestaTotal As Long
            '''<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 Overridable Property Codigo As Integer

            '''<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 Overridable Property Mensaje As String
        End Class

        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 Overridable Property Codigo As Integer

            '''<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 Overridable Property Mensaje As String
        End Class

        Public Partial Class GuardarDatosDetalle
            Public Sub New()
                DatosInsert = New List(Of Dictionary(Of String,Object))
                DatosUpdate = New List(Of Dictionary(Of String,Object))
                DatosDelete = New List(Of Dictionary(Of String,Object))
            End Sub

            Public Overridable Property IDDetalle As Integer
            Public Overridable Property DatosInsert As List(Of Dictionary(Of String,Object))
            Public Overridable Property DatosUpdate As List(Of Dictionary(Of String,Object))
            Public Overridable Property DatosDelete As List(Of Dictionary(Of String,Object))
            Public Overridable Property NombreArchivo As String
        End Class

        Public Partial Class GuardarDatosFormaDetalleRS
            Public Sub New()
                Novedades = New List(Of NovedadesCarga)
            End Sub

            Public Overridable Property IDDetalle As Decimal
            Public Overridable Property Novedades As List(Of NovedadesCarga)
        End Class

        Public Partial Class GuardarDatosFormaRQ
            Public Sub New()
                DatosMaestro = New Dictionary(Of String, Object)
                DatosDetalle = New List(Of GuardarDatosDetalle)
                FormasDep = New List(Of GuardarDatosFormaRQ)
            End Sub

            Public Overridable Property IDForma As Integer
            Public Overridable Property Operacion As OperacionDatos
            Public Overridable Property DatosMaestro As Dictionary(Of String, Object)
            Public Overridable Property DatosDetalle As List(Of GuardarDatosDetalle)
            Public Overridable Property FormasDep As List(Of GuardarDatosFormaRQ)
            Public Overridable Property TokenCargaArchivos As String
        End Class

        Public Partial Class GuardarDatosFormaRS
            Public Sub New()
                DatosLlaveMaestro = New Dictionary(Of String, Object)
                NovedadesDetalles = New List(Of GuardarDatosFormaDetalleRS)
            End Sub

            Public Overridable Property Success As Boolean
            Public Overridable Property [Error] As String
            Public Overridable Property DatosLlaveMaestro As Dictionary(Of String, Object)
            Public Overridable Property NovedadesDetalles As List(Of GuardarDatosFormaDetalleRS)
            Public Overridable Property RespuestaProcAlmacenado As ExecuteDBFunctionRS
        End Class

        Public Enum OperacionDatos
            INSERT
            UPDATE
            DELETE
        End Enum
    End Namespace
End Namespace

VB.NET GuardarDatosFormaRQ 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 /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"}}