FrameAppWS

<back to all web services

ListaProcesosEmpresaRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Utilidades/ListaEjecucionEmpresa
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GeneralRS:
    # @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
    codigo: int = 0
    """
    Id del código de respuesta 1: Correcto, -1: Error
    """


    # @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
    mensaje: Optional[str] = None
    """
    Mensaje que se envía al ejecutar el servicio
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EstadoEjecucion:
    codigo_ejecucion: Decimal = decimal.Decimal(0)
    alias_funcion: Optional[str] = None
    descripcion: Optional[str] = None
    usuario: Optional[str] = None
    fecha_hora_ini: datetime.datetime = datetime.datetime(1, 1, 1)
    fecha_hora_fin: Optional[datetime.datetime] = None
    fecha_hora_act: Optional[datetime.datetime] = None
    total_registros: Optional[int] = None
    cant_procesados: Optional[int] = None
    response: Optional[str] = None
    estado: Optional[str] = None
    usuario_cancela: Optional[str] = None
    motivo_cancela: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EmpresaEjecucion:
    id_empresa: Decimal = decimal.Decimal(0)
    nombre: Optional[str] = None
    lista_procesos: Optional[List[EstadoEjecucion]] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ListaProcesosEmpresaRS(GeneralRS):
    empresas_ejecucion: Optional[List[EmpresaEjecucion]] = None
    # @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
    codigo: int = 0
    """
    Id del código de respuesta 1: Correcto, -1: Error
    """


    # @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
    mensaje: Optional[str] = None
    """
    Mensaje que se envía al ejecutar el servicio
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ListaProcesosEmpresaRQ:
    codigo_empresa: Optional[Decimal] = None
    estado: Optional[str] = None
    fecha_inicio: Optional[datetime.datetime] = None
    fecha_fin: Optional[datetime.datetime] = None

Python ListaProcesosEmpresaRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Utilidades/ListaEjecucionEmpresa HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"CodigoEmpresa":0,"Estado":"String","FechaInicio":"0001-01-01T00:00:00.0000000","FechaFin":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"EmpresasEjecucion":[{"IdEmpresa":0,"Nombre":"String","ListaProcesos":[{"CodigoEjecucion":0,"AliasFuncion":"String","Descripcion":"String","Usuario":"String","FechaHoraIni":null,"FechaHoraFin":"0001-01-01T00:00:00.0000000","FechaHoraAct":"0001-01-01T00:00:00.0000000","TotalRegistros":0,"CantProcesados":0,"Response":"String","Estado":"String","UsuarioCancela":"String","MotivoCancela":"String"}]}],"Codigo":0,"Mensaje":"String"}