55 lines
1.0 KiB
ObjectPascal
55 lines
1.0 KiB
ObjectPascal
unit uBizEpigrafes;
|
|
|
|
interface
|
|
|
|
uses
|
|
uDAInterfaces, uDADataTable, schContabilidadClient_Intf;
|
|
|
|
const
|
|
BIZ_CLIENT_Epigrafe = 'Client.Epigrafe';
|
|
|
|
type
|
|
IBizEpigrafe = interface(IEpigrafes)
|
|
['{F79E3238-1E0D-4FB6-9AF7-E5703619B067}']
|
|
function EsNuevo : Boolean;
|
|
end;
|
|
|
|
TBizEpigrafe = class(TEpigrafesDataTableRules, IBizEpigrafe)
|
|
protected
|
|
procedure OnNewRecord(Sender: TDADataTable); override;
|
|
public
|
|
procedure IniciarValoresEpigrafeNueva;
|
|
function EsNuevo : Boolean;
|
|
end;
|
|
|
|
implementation
|
|
|
|
{ TBizEpigrafe }
|
|
|
|
uses
|
|
SysUtils, uDataTableUtils, uFactuGES_App;
|
|
|
|
function TBizEpigrafe.EsNuevo: Boolean;
|
|
begin
|
|
Result := (ID < 0);
|
|
end;
|
|
|
|
procedure TBizEpigrafe.IniciarValoresEpigrafeNueva;
|
|
begin
|
|
ID_EJERCICIO := AppFactuGES.EjercicioActivo.ID;
|
|
end;
|
|
|
|
procedure TBizEpigrafe.OnNewRecord(Sender: TDADataTable);
|
|
begin
|
|
inherited;
|
|
IniciarValoresEpigrafeNueva;
|
|
end;
|
|
|
|
initialization
|
|
RegisterDataTableRules(BIZ_CLIENT_Epigrafe, TBizEpigrafe);
|
|
|
|
finalization
|
|
|
|
end.
|
|
|