unit Etiquetas_Invk;

{----------------------------------------------------------------------------}
{ This unit was automatically generated by the RemObjects SDK after reading  }
{ the RODL file associated with this project .                               }
{                                                                            }
{ Do not modify this unit manually, or your changes will be lost when this   }
{ unit is regenerated the next time you compile the project.                 }
{----------------------------------------------------------------------------}

{$I RemObjects.inc}

interface

uses
  {vcl:} Classes,
  {RemObjects:} uROXMLIntf, uROServer, uROServerIntf, uROTypes, uROClientIntf,
  {Used RODL Intf's:} DataAbstract4_Intf,
  {Used RODL Invk's:} DataAbstract4_Invk,
  {Generated:} Etiquetas_Intf;

type
  TsrvContactos_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
    procedure Invoke_GenerarInformeEtiquetas(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_GenerarInformeFichaPaciente(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvLogin_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
    procedure Invoke_Login(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_Logout(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_Ping(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvEmpresas_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
  end;

  TsrvConfiguracion_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
    procedure Invoke_darValor(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvUsuarios_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
  end;

  TsrvArticulos_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
  end;

  TsrvMedicacion_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
    procedure Invoke_GenerarInforme(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvReferencias_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
    procedure Invoke_DarNuevaReferencia(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_IncrementarValorReferencia(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvUnidadesMedida_Invoker = class(TDataAbstractService_Invoker)
  private
  protected
  public
    constructor Create; override;
  published
  end;

  TsrvProvinciasPoblaciones_Invoker = class(TROInvoker)
  private
  protected
  public
    constructor Create; override;
  published
    procedure Invoke_DarListaProvincias(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_DarListaPoblaciones(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

implementation

uses
  {RemObjects:} uRORes, uROClient;

{ TsrvContactos_Invoker }

constructor TsrvContactos_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

procedure TsrvContactos_Invoker.Invoke_GenerarInformeEtiquetas(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GenerarInformeEtiquetas(const ListaID: TIntegerArray): Binary; }
var
  ListaID: Etiquetas_Intf.TIntegerArray;
  lResult: Binary;
  __lObjectDisposer: TROObjectDisposer;
begin
  ListaID := nil;
  lResult := nil;
  try
    __Message.Read('ListaID', TypeInfo(Etiquetas_Intf.TIntegerArray), ListaID, []);

    lResult := (__Instance as IsrvContactos).GenerarInformeEtiquetas(ListaID);

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvContactos', 'GenerarInformeEtiquetasResponse');
    __Message.Write('Result', TypeInfo(Binary), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(ListaID);
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

procedure TsrvContactos_Invoker.Invoke_GenerarInformeFichaPaciente(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GenerarInformeFichaPaciente(const ListaID: TIntegerArray): Binary; }
var
  ListaID: Etiquetas_Intf.TIntegerArray;
  lResult: Binary;
  __lObjectDisposer: TROObjectDisposer;
begin
  ListaID := nil;
  lResult := nil;
  try
    __Message.Read('ListaID', TypeInfo(Etiquetas_Intf.TIntegerArray), ListaID, []);

    lResult := (__Instance as IsrvContactos).GenerarInformeFichaPaciente(ListaID);

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvContactos', 'GenerarInformeFichaPacienteResponse');
    __Message.Write('Result', TypeInfo(Binary), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(ListaID);
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

{ TsrvLogin_Invoker }

constructor TsrvLogin_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

procedure TsrvLogin_Invoker.Invoke_Login(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function Login(const User: AnsiString; const Password: AnsiString; out LoginInfo: TRdxLoginInfo): Boolean; }
var
  User: AnsiString;
  Password: AnsiString;
  LoginInfo: Etiquetas_Intf.TRdxLoginInfo;
  lResult: Boolean;
  __lObjectDisposer: TROObjectDisposer;
begin
  LoginInfo := nil;
  try
    __Message.Read('User', TypeInfo(AnsiString), User, []);
    __Message.Read('Password', TypeInfo(AnsiString), Password, []);

    lResult := (__Instance as IsrvLogin).Login(User, Password, LoginInfo);

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvLogin', 'LoginResponse');
    __Message.Write('Result', TypeInfo(Boolean), lResult, []);
    __Message.Write('LoginInfo', TypeInfo(Etiquetas_Intf.TRdxLoginInfo), LoginInfo, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(LoginInfo);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

procedure TsrvLogin_Invoker.Invoke_Logout(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ procedure Logout; }
begin
  try
    (__Instance as IsrvLogin).Logout;

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvLogin', 'LogoutResponse');
    __Message.Finalize;

    __oResponseOptions := [roNoResponse];

  finally
  end;
end;

procedure TsrvLogin_Invoker.Invoke_Ping(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function Ping: Boolean; }
var
  lResult: Boolean;
begin
  try
    lResult := (__Instance as IsrvLogin).Ping;

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvLogin', 'PingResponse');
    __Message.Write('Result', TypeInfo(Boolean), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
  end;
end;

{ TsrvEmpresas_Invoker }

constructor TsrvEmpresas_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

{ TsrvConfiguracion_Invoker }

constructor TsrvConfiguracion_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

procedure TsrvConfiguracion_Invoker.Invoke_darValor(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function darValor(const CODIGO: AnsiString; const ValorPorDefecto: AnsiString): AnsiString; }
var
  CODIGO: AnsiString;
  ValorPorDefecto: AnsiString;
  lResult: AnsiString;
begin
  try
    __Message.Read('CODIGO', TypeInfo(AnsiString), CODIGO, []);
    __Message.Read('ValorPorDefecto', TypeInfo(AnsiString), ValorPorDefecto, []);

    lResult := (__Instance as IsrvConfiguracion).darValor(CODIGO, ValorPorDefecto);

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvConfiguracion', 'darValorResponse');
    __Message.Write('Result', TypeInfo(AnsiString), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
  end;
end;

{ TsrvUsuarios_Invoker }

constructor TsrvUsuarios_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

{ TsrvArticulos_Invoker }

constructor TsrvArticulos_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

{ TsrvMedicacion_Invoker }

constructor TsrvMedicacion_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

procedure TsrvMedicacion_Invoker.Invoke_GenerarInforme(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GenerarInforme(const ListaID: TIntegerArray): Binary; }
var
  ListaID: Etiquetas_Intf.TIntegerArray;
  lResult: Binary;
  __lObjectDisposer: TROObjectDisposer;
begin
  ListaID := nil;
  lResult := nil;
  try
    __Message.Read('ListaID', TypeInfo(Etiquetas_Intf.TIntegerArray), ListaID, []);

    lResult := (__Instance as IsrvMedicacion).GenerarInforme(ListaID);

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvMedicacion', 'GenerarInformeResponse');
    __Message.Write('Result', TypeInfo(Binary), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(ListaID);
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

{ TsrvReferencias_Invoker }

constructor TsrvReferencias_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

procedure TsrvReferencias_Invoker.Invoke_DarNuevaReferencia(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function DarNuevaReferencia(const NombreReferencia: AnsiString; const EmpresaID: Integer): AnsiString; }
var
  NombreReferencia: AnsiString;
  EmpresaID: Integer;
  lResult: AnsiString;
begin
  try
    __Message.Read('NombreReferencia', TypeInfo(AnsiString), NombreReferencia, []);
    __Message.Read('EmpresaID', TypeInfo(Integer), EmpresaID, []);

    lResult := (__Instance as IsrvReferencias).DarNuevaReferencia(NombreReferencia, EmpresaID);

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvReferencias', 'DarNuevaReferenciaResponse');
    __Message.Write('Result', TypeInfo(AnsiString), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
  end;
end;

procedure TsrvReferencias_Invoker.Invoke_IncrementarValorReferencia(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function IncrementarValorReferencia(const NombreReferencia: AnsiString; const Valor: AnsiString; const EmpresaID: Integer): Boolean; }
var
  NombreReferencia: AnsiString;
  Valor: AnsiString;
  EmpresaID: Integer;
  lResult: Boolean;
begin
  try
    __Message.Read('NombreReferencia', TypeInfo(AnsiString), NombreReferencia, []);
    __Message.Read('Valor', TypeInfo(AnsiString), Valor, []);
    __Message.Read('EmpresaID', TypeInfo(Integer), EmpresaID, []);

    lResult := (__Instance as IsrvReferencias).IncrementarValorReferencia(NombreReferencia, Valor, EmpresaID);

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvReferencias', 'IncrementarValorReferenciaResponse');
    __Message.Write('Result', TypeInfo(Boolean), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
  end;
end;

{ TsrvUnidadesMedida_Invoker }

constructor TsrvUnidadesMedida_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

{ TsrvProvinciasPoblaciones_Invoker }

constructor TsrvProvinciasPoblaciones_Invoker.Create;
begin
  inherited Create;
  FAbstract := False;
end;

procedure TsrvProvinciasPoblaciones_Invoker.Invoke_DarListaProvincias(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function DarListaProvincias: Binary; }
var
  lResult: Binary;
  __lObjectDisposer: TROObjectDisposer;
begin
  lResult := nil;
  try
    lResult := (__Instance as IsrvProvinciasPoblaciones).DarListaProvincias;

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvProvinciasPoblaciones', 'DarListaProvinciasResponse');
    __Message.Write('Result', TypeInfo(Binary), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

procedure TsrvProvinciasPoblaciones_Invoker.Invoke_DarListaPoblaciones(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function DarListaPoblaciones(const ID_Provincia: Integer): Binary; }
var
  ID_Provincia: Integer;
  lResult: Binary;
  __lObjectDisposer: TROObjectDisposer;
begin
  lResult := nil;
  try
    __Message.Read('ID_Provincia', TypeInfo(Integer), ID_Provincia, []);

    lResult := (__Instance as IsrvProvinciasPoblaciones).DarListaPoblaciones(ID_Provincia);

    __Message.InitializeResponseMessage(__Transport, 'Etiquetas', 'srvProvinciasPoblaciones', 'DarListaPoblacionesResponse');
    __Message.Write('Result', TypeInfo(Binary), lResult, []);
    __Message.Finalize;
    __Message.UnsetAttributes(__Transport);

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

initialization
end.
