FrameAppWS

<back to all web services

GuardarDatosFormaRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Utilidades/Formas/GuardarDatos
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class NovedadesCarga implements IConvertible
{
    int? Fila;
    int? Columna;
    String? TipoError;
    String? Novedad;

    NovedadesCarga({this.Fila,this.Columna,this.TipoError,this.Novedad});
    NovedadesCarga.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Fila = json['Fila'];
        Columna = json['Columna'];
        TipoError = json['TipoError'];
        Novedad = json['Novedad'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Fila': Fila,
        'Columna': Columna,
        'TipoError': TipoError,
        'Novedad': Novedad
    };

    getTypeName() => "NovedadesCarga";
    TypeContext? context = _ctx;
}

class GuardarDatosFormaDetalleRS implements IConvertible
{
    double? IDDetalle;
    List<NovedadesCarga>? Novedades;

    GuardarDatosFormaDetalleRS({this.IDDetalle,this.Novedades});
    GuardarDatosFormaDetalleRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IDDetalle = JsonConverters.toDouble(json['IDDetalle']);
        Novedades = JsonConverters.fromJson(json['Novedades'],'List<NovedadesCarga>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IDDetalle': IDDetalle,
        'Novedades': JsonConverters.toJson(Novedades,'List<NovedadesCarga>',context!)
    };

    getTypeName() => "GuardarDatosFormaDetalleRS";
    TypeContext? context = _ctx;
}

class GeneralRS implements IConvertible
{
    /**
    * 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")
    int? Codigo;

    /**
    * 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")
    String? Mensaje;

    GeneralRS({this.Codigo,this.Mensaje});
    GeneralRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Codigo = json['Codigo'];
        Mensaje = json['Mensaje'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Codigo': Codigo,
        'Mensaje': Mensaje
    };

    getTypeName() => "GeneralRS";
    TypeContext? context = _ctx;
}

class ExecuteDBFunctionRS extends GeneralRS implements IConvertible
{
    dynamic? Respuesta;
    double? IDEjecucion;
    String? URLArchivo;
    String? TipoRespuesta;
    bool? Background;
    int? TiempoRespuestaBD;
    int? TiempoRespuestaTotal;
    /**
    * 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")
    int? Codigo;

    /**
    * 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")
    String? Mensaje;

    ExecuteDBFunctionRS({this.Respuesta,this.IDEjecucion,this.URLArchivo,this.TipoRespuesta,this.Background,this.TiempoRespuestaBD,this.TiempoRespuestaTotal,this.Codigo,this.Mensaje});
    ExecuteDBFunctionRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        Respuesta = JsonConverters.fromJson(json['Respuesta'],'dynamic',context!);
        IDEjecucion = JsonConverters.toDouble(json['IDEjecucion']);
        URLArchivo = json['URLArchivo'];
        TipoRespuesta = json['TipoRespuesta'];
        Background = json['Background'];
        TiempoRespuestaBD = json['TiempoRespuestaBD'];
        TiempoRespuestaTotal = json['TiempoRespuestaTotal'];
        Codigo = json['Codigo'];
        Mensaje = json['Mensaje'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'Respuesta': JsonConverters.toJson(Respuesta,'dynamic',context!),
        'IDEjecucion': IDEjecucion,
        'URLArchivo': URLArchivo,
        'TipoRespuesta': TipoRespuesta,
        'Background': Background,
        'TiempoRespuestaBD': TiempoRespuestaBD,
        'TiempoRespuestaTotal': TiempoRespuestaTotal,
        'Codigo': Codigo,
        'Mensaje': Mensaje
    });

    getTypeName() => "ExecuteDBFunctionRS";
    TypeContext? context = _ctx;
}

class GuardarDatosFormaRS implements IConvertible
{
    bool? Success;
    String? Error;
    Map<String,dynamic?>? DatosLlaveMaestro;
    List<GuardarDatosFormaDetalleRS>? NovedadesDetalles;
    ExecuteDBFunctionRS? RespuestaProcAlmacenado;

    GuardarDatosFormaRS({this.Success,this.Error,this.DatosLlaveMaestro,this.NovedadesDetalles,this.RespuestaProcAlmacenado});
    GuardarDatosFormaRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Success = json['Success'];
        Error = json['Error'];
        DatosLlaveMaestro = JsonConverters.fromJson(json['DatosLlaveMaestro'],'Map<String,dynamic?>',context!);
        NovedadesDetalles = JsonConverters.fromJson(json['NovedadesDetalles'],'List<GuardarDatosFormaDetalleRS>',context!);
        RespuestaProcAlmacenado = JsonConverters.fromJson(json['RespuestaProcAlmacenado'],'ExecuteDBFunctionRS',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Success': Success,
        'Error': Error,
        'DatosLlaveMaestro': JsonConverters.toJson(DatosLlaveMaestro,'Map<String,dynamic?>',context!),
        'NovedadesDetalles': JsonConverters.toJson(NovedadesDetalles,'List<GuardarDatosFormaDetalleRS>',context!),
        'RespuestaProcAlmacenado': JsonConverters.toJson(RespuestaProcAlmacenado,'ExecuteDBFunctionRS',context!)
    };

    getTypeName() => "GuardarDatosFormaRS";
    TypeContext? context = _ctx;
}

enum OperacionDatos
{
    INSERT,
    UPDATE,
    DELETE,
}

class GuardarDatosDetalle implements IConvertible
{
    int? IDDetalle;
    List<Map<String,dynamic>>? DatosInsert;
    List<Map<String,dynamic>>? DatosUpdate;
    List<Map<String,dynamic>>? DatosDelete;
    String? NombreArchivo;

    GuardarDatosDetalle({this.IDDetalle,this.DatosInsert,this.DatosUpdate,this.DatosDelete,this.NombreArchivo});
    GuardarDatosDetalle.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IDDetalle = json['IDDetalle'];
        DatosInsert = JsonConverters.fromJson(json['DatosInsert'],'List<Map<String,dynamic>>',context!);
        DatosUpdate = JsonConverters.fromJson(json['DatosUpdate'],'List<Map<String,dynamic>>',context!);
        DatosDelete = JsonConverters.fromJson(json['DatosDelete'],'List<Map<String,dynamic>>',context!);
        NombreArchivo = json['NombreArchivo'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IDDetalle': IDDetalle,
        'DatosInsert': JsonConverters.toJson(DatosInsert,'List<Map<String,dynamic>>',context!),
        'DatosUpdate': JsonConverters.toJson(DatosUpdate,'List<Map<String,dynamic>>',context!),
        'DatosDelete': JsonConverters.toJson(DatosDelete,'List<Map<String,dynamic>>',context!),
        'NombreArchivo': NombreArchivo
    };

    getTypeName() => "GuardarDatosDetalle";
    TypeContext? context = _ctx;
}

class GuardarDatosFormaRQ implements IConvertible
{
    int? IDForma;
    OperacionDatos? Operacion;
    Map<String,dynamic?>? DatosMaestro;
    List<GuardarDatosDetalle>? DatosDetalle;
    List<GuardarDatosFormaRQ>? FormasDep;
    String? TokenCargaArchivos;

    GuardarDatosFormaRQ({this.IDForma,this.Operacion,this.DatosMaestro,this.DatosDetalle,this.FormasDep,this.TokenCargaArchivos});
    GuardarDatosFormaRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IDForma = json['IDForma'];
        Operacion = JsonConverters.fromJson(json['Operacion'],'OperacionDatos',context!);
        DatosMaestro = JsonConverters.fromJson(json['DatosMaestro'],'Map<String,dynamic?>',context!);
        DatosDetalle = JsonConverters.fromJson(json['DatosDetalle'],'List<GuardarDatosDetalle>',context!);
        FormasDep = JsonConverters.fromJson(json['FormasDep'],'List<GuardarDatosFormaRQ>',context!);
        TokenCargaArchivos = json['TokenCargaArchivos'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IDForma': IDForma,
        'Operacion': JsonConverters.toJson(Operacion,'OperacionDatos',context!),
        'DatosMaestro': JsonConverters.toJson(DatosMaestro,'Map<String,dynamic?>',context!),
        'DatosDetalle': JsonConverters.toJson(DatosDetalle,'List<GuardarDatosDetalle>',context!),
        'FormasDep': JsonConverters.toJson(FormasDep,'List<GuardarDatosFormaRQ>',context!),
        'TokenCargaArchivos': TokenCargaArchivos
    };

    getTypeName() => "GuardarDatosFormaRQ";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
    'NovedadesCarga': TypeInfo(TypeOf.Class, create:() => NovedadesCarga()),
    'GuardarDatosFormaDetalleRS': TypeInfo(TypeOf.Class, create:() => GuardarDatosFormaDetalleRS()),
    'List<NovedadesCarga>': TypeInfo(TypeOf.Class, create:() => <NovedadesCarga>[]),
    'GeneralRS': TypeInfo(TypeOf.Class, create:() => GeneralRS()),
    'ExecuteDBFunctionRS': TypeInfo(TypeOf.Class, create:() => ExecuteDBFunctionRS()),
    'GuardarDatosFormaRS': TypeInfo(TypeOf.Class, create:() => GuardarDatosFormaRS()),
    'Map<String,dynamic?>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic?>()),
    'List<GuardarDatosFormaDetalleRS>': TypeInfo(TypeOf.Class, create:() => <GuardarDatosFormaDetalleRS>[]),
    'OperacionDatos': TypeInfo(TypeOf.Enum, enumValues:OperacionDatos.values),
    'GuardarDatosDetalle': TypeInfo(TypeOf.Class, create:() => GuardarDatosDetalle()),
    'List<Map<String,dynamic>>': TypeInfo(TypeOf.Class, create:() => <Map<String,dynamic>>[]),
    'Map<String,dynamic>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic>()),
    'GuardarDatosFormaRQ': TypeInfo(TypeOf.Class, create:() => GuardarDatosFormaRQ()),
    'List<GuardarDatosDetalle>': TypeInfo(TypeOf.Class, create:() => <GuardarDatosDetalle>[]),
    'List<GuardarDatosFormaRQ>': TypeInfo(TypeOf.Class, create:() => <GuardarDatosFormaRQ>[]),
});

Dart 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>