FrameAppWS

<back to all web services

GuardarDatosFormaRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Utilidades/Formas/GuardarDatos
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GuardarDatosFormaRQ
    {
        public Integer IDForma = null;
        public OperacionDatos Operacion = null;
        public HashMap<String,Object> DatosMaestro = null;
        public ArrayList<GuardarDatosDetalle> DatosDetalle = null;
        public ArrayList<GuardarDatosFormaRQ> FormasDep = null;
        public String TokenCargaArchivos = null;
        
        public Integer getIdForma() { return IDForma; }
        public GuardarDatosFormaRQ setIdForma(Integer value) { this.IDForma = value; return this; }
        public OperacionDatos getOperacion() { return Operacion; }
        public GuardarDatosFormaRQ setOperacion(OperacionDatos value) { this.Operacion = value; return this; }
        public HashMap<String,Object> getDatosMaestro() { return DatosMaestro; }
        public GuardarDatosFormaRQ setDatosMaestro(HashMap<String,Object> value) { this.DatosMaestro = value; return this; }
        public ArrayList<GuardarDatosDetalle> getDatosDetalle() { return DatosDetalle; }
        public GuardarDatosFormaRQ setDatosDetalle(ArrayList<GuardarDatosDetalle> value) { this.DatosDetalle = value; return this; }
        public ArrayList<GuardarDatosFormaRQ> getFormasDep() { return FormasDep; }
        public GuardarDatosFormaRQ setFormasDep(ArrayList<GuardarDatosFormaRQ> value) { this.FormasDep = value; return this; }
        public String getTokenCargaArchivos() { return TokenCargaArchivos; }
        public GuardarDatosFormaRQ setTokenCargaArchivos(String value) { this.TokenCargaArchivos = value; return this; }
    }

    public static enum OperacionDatos
    {
        Insert,
        Update,
        Delete;
    }

    public static class GuardarDatosDetalle
    {
        public Integer IDDetalle = null;
        public ArrayList<HashMap<String,Object>> DatosInsert = null;
        public ArrayList<HashMap<String,Object>> DatosUpdate = null;
        public ArrayList<HashMap<String,Object>> DatosDelete = null;
        public String NombreArchivo = null;
        
        public Integer getIdDetalle() { return IDDetalle; }
        public GuardarDatosDetalle setIdDetalle(Integer value) { this.IDDetalle = value; return this; }
        public ArrayList<HashMap<String,Object>> getDatosInsert() { return DatosInsert; }
        public GuardarDatosDetalle setDatosInsert(ArrayList<HashMap<String,Object>> value) { this.DatosInsert = value; return this; }
        public ArrayList<HashMap<String,Object>> getDatosUpdate() { return DatosUpdate; }
        public GuardarDatosDetalle setDatosUpdate(ArrayList<HashMap<String,Object>> value) { this.DatosUpdate = value; return this; }
        public ArrayList<HashMap<String,Object>> getDatosDelete() { return DatosDelete; }
        public GuardarDatosDetalle setDatosDelete(ArrayList<HashMap<String,Object>> value) { this.DatosDelete = value; return this; }
        public String getNombreArchivo() { return NombreArchivo; }
        public GuardarDatosDetalle setNombreArchivo(String value) { this.NombreArchivo = value; return this; }
    }

    public static class GuardarDatosFormaRS
    {
        public Boolean Success = null;
        public String Error = null;
        public HashMap<String,Object> DatosLlaveMaestro = null;
        public ArrayList<GuardarDatosFormaDetalleRS> NovedadesDetalles = null;
        public ExecuteDBFunctionRS RespuestaProcAlmacenado = null;
        
        public Boolean isSuccess() { return Success; }
        public GuardarDatosFormaRS setSuccess(Boolean value) { this.Success = value; return this; }
        public String getError() { return Error; }
        public GuardarDatosFormaRS setError(String value) { this.Error = value; return this; }
        public HashMap<String,Object> getDatosLlaveMaestro() { return DatosLlaveMaestro; }
        public GuardarDatosFormaRS setDatosLlaveMaestro(HashMap<String,Object> value) { this.DatosLlaveMaestro = value; return this; }
        public ArrayList<GuardarDatosFormaDetalleRS> getNovedadesDetalles() { return NovedadesDetalles; }
        public GuardarDatosFormaRS setNovedadesDetalles(ArrayList<GuardarDatosFormaDetalleRS> value) { this.NovedadesDetalles = value; return this; }
        public ExecuteDBFunctionRS getRespuestaProcAlmacenado() { return RespuestaProcAlmacenado; }
        public GuardarDatosFormaRS setRespuestaProcAlmacenado(ExecuteDBFunctionRS value) { this.RespuestaProcAlmacenado = value; return this; }
    }

    public static class GuardarDatosFormaDetalleRS
    {
        public BigDecimal IDDetalle = null;
        public ArrayList<NovedadesCarga> Novedades = null;
        
        public BigDecimal getIdDetalle() { return IDDetalle; }
        public GuardarDatosFormaDetalleRS setIdDetalle(BigDecimal value) { this.IDDetalle = value; return this; }
        public ArrayList<NovedadesCarga> getNovedades() { return Novedades; }
        public GuardarDatosFormaDetalleRS setNovedades(ArrayList<NovedadesCarga> value) { this.Novedades = value; return this; }
    }

    public static class NovedadesCarga
    {
        public Integer Fila = null;
        public Integer Columna = null;
        public String TipoError = null;
        public String Novedad = null;
        
        public Integer getFila() { return Fila; }
        public NovedadesCarga setFila(Integer value) { this.Fila = value; return this; }
        public Integer getColumna() { return Columna; }
        public NovedadesCarga setColumna(Integer value) { this.Columna = value; return this; }
        public String getTipoError() { return TipoError; }
        public NovedadesCarga setTipoError(String value) { this.TipoError = value; return this; }
        public String getNovedad() { return Novedad; }
        public NovedadesCarga setNovedad(String value) { this.Novedad = value; return this; }
    }

    public static class ExecuteDBFunctionRS extends GeneralRS
    {
        public Object Respuesta = null;
        public BigDecimal IDEjecucion = null;
        public String URLArchivo = null;
        public String TipoRespuesta = null;
        public Boolean Background = null;
        public Long TiempoRespuestaBD = null;
        public Long TiempoRespuestaTotal = null;
        /**
        * Id del código de respuesta 1: Correcto, -1: Error
        */
        @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
        public Integer Codigo = null;

        /**
        * Mensaje que se envía al ejecutar el servicio
        */
        @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
        public String Mensaje = null;
        
        public Object getRespuesta() { return Respuesta; }
        public ExecuteDBFunctionRS setRespuesta(Object value) { this.Respuesta = value; return this; }
        public BigDecimal getIdEjecucion() { return IDEjecucion; }
        public ExecuteDBFunctionRS setIdEjecucion(BigDecimal value) { this.IDEjecucion = value; return this; }
        public String getUrlArchivo() { return URLArchivo; }
        public ExecuteDBFunctionRS setUrlArchivo(String value) { this.URLArchivo = value; return this; }
        public String getTipoRespuesta() { return TipoRespuesta; }
        public ExecuteDBFunctionRS setTipoRespuesta(String value) { this.TipoRespuesta = value; return this; }
        public Boolean isBackground() { return Background; }
        public ExecuteDBFunctionRS setBackground(Boolean value) { this.Background = value; return this; }
        public Long getTiempoRespuestaBD() { return TiempoRespuestaBD; }
        public ExecuteDBFunctionRS setTiempoRespuestaBD(Long value) { this.TiempoRespuestaBD = value; return this; }
        public Long getTiempoRespuestaTotal() { return TiempoRespuestaTotal; }
        public ExecuteDBFunctionRS setTiempoRespuestaTotal(Long value) { this.TiempoRespuestaTotal = value; return this; }
        public Integer getCodigo() { return Codigo; }
        public ExecuteDBFunctionRS setCodigo(Integer value) { this.Codigo = value; return this; }
        public String getMensaje() { return Mensaje; }
        public ExecuteDBFunctionRS setMensaje(String value) { this.Mensaje = value; return this; }
    }

    public static class GeneralRS
    {
        /**
        * Id del código de respuesta 1: Correcto, -1: Error
        */
        @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
        public Integer Codigo = null;

        /**
        * Mensaje que se envía al ejecutar el servicio
        */
        @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
        public String Mensaje = null;
        
        public Integer getCodigo() { return Codigo; }
        public GeneralRS setCodigo(Integer value) { this.Codigo = value; return this; }
        public String getMensaje() { return Mensaje; }
        public GeneralRS setMensaje(String value) { this.Mensaje = value; return this; }
    }

}

Java GuardarDatosFormaRQ 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 /Utilidades/Formas/GuardarDatos HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GuardarDatosFormaRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <DatosDetalle>
    <GuardarDatosDetalle>
      <DatosDelete xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:ArrayOfKeyValueOfstringanyType>
          <d4p1:KeyValueOfstringanyType>
            <d4p1:Key>String</d4p1:Key>
            <d4p1:Value />
          </d4p1:KeyValueOfstringanyType>
        </d4p1:ArrayOfKeyValueOfstringanyType>
      </DatosDelete>
      <DatosInsert xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:ArrayOfKeyValueOfstringanyType>
          <d4p1:KeyValueOfstringanyType>
            <d4p1:Key>String</d4p1:Key>
            <d4p1:Value />
          </d4p1:KeyValueOfstringanyType>
        </d4p1:ArrayOfKeyValueOfstringanyType>
      </DatosInsert>
      <DatosUpdate xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:ArrayOfKeyValueOfstringanyType>
          <d4p1:KeyValueOfstringanyType>
            <d4p1:Key>String</d4p1:Key>
            <d4p1:Value />
          </d4p1:KeyValueOfstringanyType>
        </d4p1:ArrayOfKeyValueOfstringanyType>
      </DatosUpdate>
      <IDDetalle>0</IDDetalle>
      <NombreArchivo>String</NombreArchivo>
    </GuardarDatosDetalle>
  </DatosDetalle>
  <DatosMaestro xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </DatosMaestro>
  <FormasDep>
    <GuardarDatosFormaRQ>
      <DatosDetalle>
        <GuardarDatosDetalle>
          <DatosDelete xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:ArrayOfKeyValueOfstringanyType>
              <d6p1:KeyValueOfstringanyType>
                <d6p1:Key>String</d6p1:Key>
                <d6p1:Value />
              </d6p1:KeyValueOfstringanyType>
            </d6p1:ArrayOfKeyValueOfstringanyType>
          </DatosDelete>
          <DatosInsert xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:ArrayOfKeyValueOfstringanyType>
              <d6p1:KeyValueOfstringanyType>
                <d6p1:Key>String</d6p1:Key>
                <d6p1:Value />
              </d6p1:KeyValueOfstringanyType>
            </d6p1:ArrayOfKeyValueOfstringanyType>
          </DatosInsert>
          <DatosUpdate xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:ArrayOfKeyValueOfstringanyType>
              <d6p1:KeyValueOfstringanyType>
                <d6p1:Key>String</d6p1:Key>
                <d6p1:Value />
              </d6p1:KeyValueOfstringanyType>
            </d6p1:ArrayOfKeyValueOfstringanyType>
          </DatosUpdate>
          <IDDetalle>0</IDDetalle>
          <NombreArchivo>String</NombreArchivo>
        </GuardarDatosDetalle>
      </DatosDetalle>
      <DatosMaestro xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringanyType>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value />
        </d4p1:KeyValueOfstringanyType>
      </DatosMaestro>
      <FormasDep>
        <GuardarDatosFormaRQ>
          <DatosDetalle>
            <GuardarDatosDetalle>
              <DatosDelete xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:ArrayOfKeyValueOfstringanyType>
                  <d8p1:KeyValueOfstringanyType>
                    <d8p1:Key>String</d8p1:Key>
                    <d8p1:Value />
                  </d8p1:KeyValueOfstringanyType>
                </d8p1:ArrayOfKeyValueOfstringanyType>
              </DatosDelete>
              <DatosInsert xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:ArrayOfKeyValueOfstringanyType>
                  <d8p1:KeyValueOfstringanyType>
                    <d8p1:Key>String</d8p1:Key>
                    <d8p1:Value />
                  </d8p1:KeyValueOfstringanyType>
                </d8p1:ArrayOfKeyValueOfstringanyType>
              </DatosInsert>
              <DatosUpdate xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:ArrayOfKeyValueOfstringanyType>
                  <d8p1:KeyValueOfstringanyType>
                    <d8p1:Key>String</d8p1:Key>
                    <d8p1:Value />
                  </d8p1:KeyValueOfstringanyType>
                </d8p1:ArrayOfKeyValueOfstringanyType>
              </DatosUpdate>
              <IDDetalle>0</IDDetalle>
              <NombreArchivo>String</NombreArchivo>
            </GuardarDatosDetalle>
          </DatosDetalle>
          <DatosMaestro xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringanyType>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value />
            </d6p1:KeyValueOfstringanyType>
          </DatosMaestro>
          <FormasDep>
            <GuardarDatosFormaRQ>
              <DatosDetalle>
                <GuardarDatosDetalle>
                  <DatosDelete xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                    <d10p1:ArrayOfKeyValueOfstringanyType>
                      <d10p1:KeyValueOfstringanyType>
                        <d10p1:Key>String</d10p1:Key>
                        <d10p1:Value />
                      </d10p1:KeyValueOfstringanyType>
                    </d10p1:ArrayOfKeyValueOfstringanyType>
                  </DatosDelete>
                  <DatosInsert xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                    <d10p1:ArrayOfKeyValueOfstringanyType>
                      <d10p1:KeyValueOfstringanyType>
                        <d10p1:Key>String</d10p1:Key>
                        <d10p1:Value />
                      </d10p1:KeyValueOfstringanyType>
                    </d10p1:ArrayOfKeyValueOfstringanyType>
                  </DatosInsert>
                  <DatosUpdate xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                    <d10p1:ArrayOfKeyValueOfstringanyType>
                      <d10p1:KeyValueOfstringanyType>
                        <d10p1:Key>String</d10p1:Key>
                        <d10p1:Value />
                      </d10p1:KeyValueOfstringanyType>
                    </d10p1:ArrayOfKeyValueOfstringanyType>
                  </DatosUpdate>
                  <IDDetalle>0</IDDetalle>
                  <NombreArchivo>String</NombreArchivo>
                </GuardarDatosDetalle>
              </DatosDetalle>
              <DatosMaestro xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:KeyValueOfstringanyType>
                  <d8p1:Key>String</d8p1:Key>
                  <d8p1:Value />
                </d8p1:KeyValueOfstringanyType>
              </DatosMaestro>
              <FormasDep i:nil="true" />
              <IDForma>0</IDForma>
              <Operacion>INSERT</Operacion>
              <TokenCargaArchivos>String</TokenCargaArchivos>
            </GuardarDatosFormaRQ>
          </FormasDep>
          <IDForma>0</IDForma>
          <Operacion>INSERT</Operacion>
          <TokenCargaArchivos>String</TokenCargaArchivos>
        </GuardarDatosFormaRQ>
      </FormasDep>
      <IDForma>0</IDForma>
      <Operacion>INSERT</Operacion>
      <TokenCargaArchivos>String</TokenCargaArchivos>
    </GuardarDatosFormaRQ>
  </FormasDep>
  <IDForma>0</IDForma>
  <Operacion>INSERT</Operacion>
  <TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GuardarDatosFormaRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <DatosLlaveMaestro xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </DatosLlaveMaestro>
  <Error>String</Error>
  <NovedadesDetalles>
    <GuardarDatosFormaDetalleRS>
      <IDDetalle>0</IDDetalle>
      <Novedades xmlns:d4p1="http://schemas.datacontract.org/2004/07/Administrador.Modelo">
        <d4p1:NovedadesCarga>
          <d4p1:Columna>0</d4p1:Columna>
          <d4p1:Fila>0</d4p1:Fila>
          <d4p1:Novedad>String</d4p1:Novedad>
          <d4p1:TipoError>String</d4p1:TipoError>
        </d4p1:NovedadesCarga>
      </Novedades>
    </GuardarDatosFormaDetalleRS>
  </NovedadesDetalles>
  <RespuestaProcAlmacenado>
    <Codigo>0</Codigo>
    <Mensaje>String</Mensaje>
    <Background>false</Background>
    <IDEjecucion>0</IDEjecucion>
    <Respuesta />
    <TiempoRespuestaBD>0</TiempoRespuestaBD>
    <TiempoRespuestaTotal>0</TiempoRespuestaTotal>
    <TipoRespuesta>String</TipoRespuesta>
    <URLArchivo>String</URLArchivo>
  </RespuestaProcAlmacenado>
  <Success>false</Success>
</GuardarDatosFormaRS>