git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@4 f4e31baf-9722-1c47-927c-6f952f962d4b
71 lines
2.2 KiB
ObjectPascal
71 lines
2.2 KiB
ObjectPascal
unit srvReferencias_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:} uDABusinessProcessor, uDABin2DataStreamer, uDADataStreamer,
|
|
uDAScriptingProvider, uDAClasses,
|
|
FactuGES_Intf, uDAInterfaces, uDABinAdapter;
|
|
|
|
type
|
|
{ TsrvReferencias }
|
|
TsrvReferencias = class(TDARemoteService, IsrvReferencias)
|
|
Diagrams: TDADiagrams;
|
|
DABINAdapter: TDABINAdapter;
|
|
bpReferencias: TDABusinessProcessor;
|
|
schReferencias: TDASchema;
|
|
DataDictionary: TDADataDictionary;
|
|
procedure DARemoteServiceCreate(Sender: TObject);
|
|
procedure DARemoteServiceBeforeAcquireConnection(Sender: TDARemoteService;
|
|
var ConnectionName: string);
|
|
protected
|
|
{ IsrvReferencias methods }
|
|
function GetNextAutoInc(const GeneratorName: String): Integer;
|
|
end;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
uses
|
|
{Generated:} FactuGES_Invk, uDataModuleServer, uDatabaseUtils;
|
|
|
|
procedure Create_srvReferencias(out anInstance : IUnknown);
|
|
begin
|
|
anInstance := TsrvReferencias.Create(NIL);
|
|
end;
|
|
|
|
{ srvReferencias }
|
|
procedure TsrvReferencias.DARemoteServiceBeforeAcquireConnection(
|
|
Sender: TDARemoteService; var ConnectionName: string);
|
|
begin
|
|
ConnectionName := dmServer.ConnectionName;
|
|
end;
|
|
|
|
procedure TsrvReferencias.DARemoteServiceCreate(Sender: TObject);
|
|
begin
|
|
SessionManager := dmServer.SessionManager;
|
|
end;
|
|
|
|
function TsrvReferencias.GetNextAutoInc(const GeneratorName: String): Integer;
|
|
begin
|
|
Result := uDatabaseUtils.GetNextAutoInc(GeneratorName)
|
|
end;
|
|
|
|
initialization
|
|
TROClassFactory.Create('srvReferencias', Create_srvReferencias, TsrvReferencias_Invoker);
|
|
|
|
finalization
|
|
|
|
end.
|