Varela_PuntosVenta/Source/Modulos/Stock/Servidor/srvStock_Impl.pas

60 lines
1.8 KiB
ObjectPascal

unit srvStock_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:} DataAbstract3_Intf,
{Generated:} VARELA_Intf, uDAClasses, uDADataTable, uDABINAdapter,
uDAInterfaces, uDADataStreamer;
type
{ TsrvStock }
TsrvStock = class(TDARemoteService, IsrvStock)
DABINAdapter: TDABINAdapter;
schStock: TDASchema;
procedure DARemoteServiceAfterAcquireConnection(
Sender: TDARemoteService; const ConnectionName: String;
const AcquiredConnection: IDAConnection);
private
protected
{ IsrvStock methods }
end;
implementation
{$R *.dfm}
uses
{Generated:} VARELA_Invk, ADODB;
procedure Create_srvStock(out anInstance : IUnknown);
begin
anInstance := TsrvStock.Create(NIL);
end;
{ srvStock }
procedure TsrvStock.DARemoteServiceAfterAcquireConnection(
Sender: TDARemoteService; const ConnectionName: String;
const AcquiredConnection: IDAConnection);
begin
{ with (Connection as IDAConnectionObjectAccess) do
if ConnectionObject is TADOConnection then
TADOConnection(ConnectionObject).CommandTimeout:= 0;}
end;
initialization
TROClassFactory.Create('srvStock', Create_srvStock, TsrvStock_Invoker);
finalization
end.