git-svn-id: https://192.168.0.254/svn/Proyectos.AlonsoYSal_FactuGES/trunk@5 9a1d36f3-7752-2d40-8ccb-50eb49674c68
55 lines
1.6 KiB
ObjectPascal
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.
|