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/Facturas de proveedor/Servidor/srvFacturasProveedor_Impl.pas

60 lines
1.9 KiB
ObjectPascal

unit srvFacturasProveedor_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, uDAScriptingProvider, uDADataTable,
uDACDSDataTable, frxClass, DB, frxDBSet, uDAClasses, uDABINAdapter;
type
{ TsrvFacturasProveedor }
TsrvFacturasProveedor = class(TDARemoteService, IsrvFacturasProveedor)
DABINAdapter: TDABINAdapter;
schFacturasProveedor: TDASchema;
private
protected
{ IsrvFacturasProveedor methods }
function GetNextAutoinc: Integer;
function PuedoEliminarFactura(const CodigoFactura: Integer): Boolean;
end;
implementation
{$R *.dfm}
uses
{Generated:} FactuGES_Invk, uDataModuleServer;
procedure Create_srvFacturasProveedor(out anInstance : IUnknown);
begin
anInstance := TsrvFacturasProveedor.Create(NIL);
end;
{ srvFacturasProveedor }
function TsrvFacturasProveedor.GetNextAutoinc: Integer;
begin
Result := uDataModuleServer.GetNextAutoinc(Connection, 'GEN_FACTURASPROVEEDOR');
end;
function TsrvFacturasProveedor.PuedoEliminarFactura(const CodigoFactura: Integer): Boolean;
begin
// ?
end;
initialization
TROClassFactory.Create('srvFacturasProveedor', Create_srvFacturasProveedor, TsrvFacturasProveedor_Invoker);
finalization
end.