This repository has been archived on 2024-12-02. You can view files and clone it, but cannot push or open issues or pull requests.
AlonsoYSal_FactuGES/Modulos/Articulos/Servidor/srvArticulos_Impl.pas
2007-06-21 16:02:50 +00:00

55 lines
1.6 KiB
ObjectPascal

unit srvArticulos_Impl;
{----------------------------------------------------------------------------}
{ This unit was automatically generated by the RemObjects SDK after reading }
{ the RODL file associated with this project . }
{ }
{ This is where you are supposed to code the implementation of your objects. }
{----------------------------------------------------------------------------}
interface
uses
{vcl:} Classes, SysUtils,
{RemObjects:} uROClientIntf, uROTypes, uROServer, uROServerIntf, uROSessions,
{Ancestor Implementation:} DARemoteService_Impl,
{Used RODLs:} DataAbstract_Intf,
{Generated:} FactuGES_Intf, uDAClasses, uDAScriptingProvider,
uDABusinessProcessor, uDADataTable, uDABINAdapter;
type
{ TsrvArticulos }
TsrvArticulos = class(TDARemoteService, IsrvArticulos)
bpArticulos: TDABusinessProcessor;
DABINAdapter: TDABINAdapter;
schArticulos: TDASchema;
private
protected
{ IsrvArticulos methods }
function GetNextAutoinc: Integer;
end;
implementation
{$R *.dfm}
uses
{Generated:} FactuGES_Invk, uDataModuleServer;
procedure Create_srvArticulos(out anInstance : IUnknown);
begin
anInstance := TsrvArticulos.Create(NIL);
end;
{ srvArticulos }
function TsrvArticulos.GetNextAutoinc: Integer;
begin
Result := uDataModuleServer.GetNextAutoinc(Connection, 'GEN_ARTICULOS');
end;
initialization
TROClassFactory.Create('srvArticulos', Create_srvArticulos, TsrvArticulos_Invoker);
finalization
end.