git-svn-id: https://192.168.0.254/svn/Proyectos.AlonsoYSal_FactuGES/trunk@5 9a1d36f3-7752-2d40-8ccb-50eb49674c68
67 lines
1.9 KiB
ObjectPascal
67 lines
1.9 KiB
ObjectPascal
unit srvConfiguracion_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,
|
|
// {Required:} uRORemoteDataModule,
|
|
{Ancestor Implementation:} DARemoteService_Impl,
|
|
{Used RODLs:} DataAbstract_Intf,
|
|
// {Generated:} FactuGES_Intf, uDAClasses;
|
|
{Generated:} FactuGES_Intf, uDAClasses, uDAScriptingProvider,
|
|
uDABusinessProcessor, uDADataTable, uDABINAdapter;
|
|
|
|
|
|
type
|
|
{ TsrvConfiguracion }
|
|
TsrvConfiguracion = class(TDARemoteService, IsrvConfiguracion)
|
|
schConfiguracion: TDASchema;
|
|
DABINAdapter: TDABINAdapter;
|
|
private
|
|
protected
|
|
{ IsrvConfiguracion methods }
|
|
function darRutaDocumentos: String;
|
|
end;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
uses
|
|
{Generated:} FactuGES_Invk, uDAInterfaces, uDataModuleServer;
|
|
|
|
procedure Create_srvConfiguracion(out anInstance : IUnknown);
|
|
begin
|
|
anInstance := TsrvConfiguracion.Create(NIL);
|
|
end;
|
|
|
|
{ srvConfiguracion }
|
|
function TsrvConfiguracion.darRutaDocumentos: String;
|
|
var
|
|
ADataSet : IDADataset;
|
|
begin
|
|
try
|
|
Result:= '';
|
|
ADataSet := schConfiguracion.NewDataset(Connection, 'darRutaDocumentos');
|
|
ADataSet.Open;
|
|
if ADataSet.Dataset.RecordCount > 0 then
|
|
Result := ADataSet.Dataset.Fields[0].AsString;
|
|
finally
|
|
ADataSet.Close;
|
|
end;
|
|
end;
|
|
|
|
initialization
|
|
TROClassFactory.Create('srvConfiguracion', Create_srvConfiguracion, TsrvConfiguracion_Invoker);
|
|
|
|
finalization
|
|
|
|
end.
|