git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@48 f4e31baf-9722-1c47-927c-6f952f962d4b
1710 lines
65 KiB
ObjectPascal
1710 lines
65 KiB
ObjectPascal
unit schContabilidadClient_Intf;
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, DB, schBase_Intf, SysUtils, uROClasses, uDADataTable, FmtBCD, uROXMLIntf;
|
|
|
|
const
|
|
{ Data table rules ids
|
|
Feel free to change them to something more human readable
|
|
but make sure they are unique in the context of your application }
|
|
RID_Asientos = '{E57138E2-062A-47CC-85D5-D5EDB287F9D9}';
|
|
RID_SubCuentas = '{8CDBD04B-6906-4BD7-9F4B-7F5FE1C3571E}';
|
|
RID_Cuentas = '{613B2477-A125-4854-8C3D-DC612F408E4C}';
|
|
RID_CuentasEspeciales = '{34044D68-7AC8-47CA-8DB3-61B5FB731D5A}';
|
|
RID_Epigrafes = '{94BAE66D-898F-4AA8-B9FF-7A0CD1E5CEF9}';
|
|
RID_Balances = '{ED6CE025-E600-48AA-A8B0-5F3FE58E4B57}';
|
|
|
|
{ Data table names }
|
|
nme_Asientos = 'Asientos';
|
|
nme_SubCuentas = 'SubCuentas';
|
|
nme_Cuentas = 'Cuentas';
|
|
nme_CuentasEspeciales = 'CuentasEspeciales';
|
|
nme_Epigrafes = 'Epigrafes';
|
|
nme_Balances = 'Balances';
|
|
|
|
{ Asientos fields }
|
|
fld_AsientosID = 'ID';
|
|
fld_AsientosID_ASIENTO_COMPENSADO = 'ID_ASIENTO_COMPENSADO';
|
|
fld_AsientosID_SUBCUENTA = 'ID_SUBCUENTA';
|
|
fld_AsientosFECHA_ASIENTO = 'FECHA_ASIENTO';
|
|
fld_AsientosCONCEPTO = 'CONCEPTO';
|
|
fld_AsientosPUNTEADO = 'PUNTEADO';
|
|
fld_AsientosDEBE = 'DEBE';
|
|
fld_AsientosHABER = 'HABER';
|
|
|
|
{ Asientos field indexes }
|
|
idx_AsientosID = 0;
|
|
idx_AsientosID_ASIENTO_COMPENSADO = 1;
|
|
idx_AsientosID_SUBCUENTA = 2;
|
|
idx_AsientosFECHA_ASIENTO = 3;
|
|
idx_AsientosCONCEPTO = 4;
|
|
idx_AsientosPUNTEADO = 5;
|
|
idx_AsientosDEBE = 6;
|
|
idx_AsientosHABER = 7;
|
|
|
|
{ SubCuentas fields }
|
|
fld_SubCuentasID = 'ID';
|
|
fld_SubCuentasREF_SUBCUENTA = 'REF_SUBCUENTA';
|
|
fld_SubCuentasDESCRIPCION = 'DESCRIPCION';
|
|
fld_SubCuentasID_CUENTA = 'ID_CUENTA';
|
|
fld_SubCuentasID_EJERCICIO = 'ID_EJERCICIO';
|
|
|
|
{ SubCuentas field indexes }
|
|
idx_SubCuentasID = 0;
|
|
idx_SubCuentasREF_SUBCUENTA = 1;
|
|
idx_SubCuentasDESCRIPCION = 2;
|
|
idx_SubCuentasID_CUENTA = 3;
|
|
idx_SubCuentasID_EJERCICIO = 4;
|
|
|
|
{ Cuentas fields }
|
|
fld_CuentasID = 'ID';
|
|
fld_CuentasREF_CUENTA = 'REF_CUENTA';
|
|
fld_CuentasID_EJERCICIO = 'ID_EJERCICIO';
|
|
fld_CuentasDESCRIPCION = 'DESCRIPCION';
|
|
fld_CuentasID_EPIGRAFE = 'ID_EPIGRAFE';
|
|
fld_CuentasEPIGRAFE = 'EPIGRAFE';
|
|
fld_CuentasID_BALANCE = 'ID_BALANCE';
|
|
fld_CuentasBALANCE = 'BALANCE';
|
|
fld_CuentasID_CUENTA_ESPECIAL = 'ID_CUENTA_ESPECIAL';
|
|
fld_CuentasCUENTA_ESPECIAL = 'CUENTA_ESPECIAL';
|
|
|
|
{ Cuentas field indexes }
|
|
idx_CuentasID = 0;
|
|
idx_CuentasREF_CUENTA = 1;
|
|
idx_CuentasID_EJERCICIO = 2;
|
|
idx_CuentasDESCRIPCION = 3;
|
|
idx_CuentasID_EPIGRAFE = 4;
|
|
idx_CuentasEPIGRAFE = 5;
|
|
idx_CuentasID_BALANCE = 6;
|
|
idx_CuentasBALANCE = 7;
|
|
idx_CuentasID_CUENTA_ESPECIAL = 8;
|
|
idx_CuentasCUENTA_ESPECIAL = 9;
|
|
|
|
{ CuentasEspeciales fields }
|
|
fld_CuentasEspecialesID = 'ID';
|
|
fld_CuentasEspecialesREFERENCIA = 'REFERENCIA';
|
|
fld_CuentasEspecialesDESCRIPCION = 'DESCRIPCION';
|
|
|
|
{ CuentasEspeciales field indexes }
|
|
idx_CuentasEspecialesID = 0;
|
|
idx_CuentasEspecialesREFERENCIA = 1;
|
|
idx_CuentasEspecialesDESCRIPCION = 2;
|
|
|
|
{ Epigrafes fields }
|
|
fld_EpigrafesID = 'ID';
|
|
fld_EpigrafesREF_EPIGRAFE = 'REF_EPIGRAFE';
|
|
fld_EpigrafesDESCRIPCION = 'DESCRIPCION';
|
|
fld_EpigrafesID_EJERCICIO = 'ID_EJERCICIO';
|
|
fld_EpigrafesID_PADRE = 'ID_PADRE';
|
|
fld_EpigrafesEPIGRAFE_PADRE = 'EPIGRAFE_PADRE';
|
|
|
|
{ Epigrafes field indexes }
|
|
idx_EpigrafesID = 0;
|
|
idx_EpigrafesREF_EPIGRAFE = 1;
|
|
idx_EpigrafesDESCRIPCION = 2;
|
|
idx_EpigrafesID_EJERCICIO = 3;
|
|
idx_EpigrafesID_PADRE = 4;
|
|
idx_EpigrafesEPIGRAFE_PADRE = 5;
|
|
|
|
{ Balances fields }
|
|
fld_BalancesID = 'ID';
|
|
fld_BalancesREF_BALANCE = 'REF_BALANCE';
|
|
fld_BalancesNATURALEZA = 'NATURALEZA';
|
|
fld_BalancesNIVEL1 = 'NIVEL1';
|
|
fld_BalancesDESCRIPCION1 = 'DESCRIPCION1';
|
|
fld_BalancesNIVEL2 = 'NIVEL2';
|
|
fld_BalancesDESCRIPCION2 = 'DESCRIPCION2';
|
|
fld_BalancesNIVEL3 = 'NIVEL3';
|
|
fld_BalancesDESCRIPCION3 = 'DESCRIPCION3';
|
|
|
|
{ Balances field indexes }
|
|
idx_BalancesID = 0;
|
|
idx_BalancesREF_BALANCE = 1;
|
|
idx_BalancesNATURALEZA = 2;
|
|
idx_BalancesNIVEL1 = 3;
|
|
idx_BalancesDESCRIPCION1 = 4;
|
|
idx_BalancesNIVEL2 = 5;
|
|
idx_BalancesDESCRIPCION2 = 6;
|
|
idx_BalancesNIVEL3 = 7;
|
|
idx_BalancesDESCRIPCION3 = 8;
|
|
|
|
type
|
|
{ IAsientos }
|
|
IAsientos = interface(IDAStronglyTypedDataTable)
|
|
['{A91B6648-0B5A-4379-BA46-E7502C4BE3AC}']
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer;
|
|
procedure SetIDValue(const aValue: Integer);
|
|
function GetIDIsNull: Boolean;
|
|
procedure SetIDIsNull(const aValue: Boolean);
|
|
function GetID_ASIENTO_COMPENSADOValue: Integer;
|
|
procedure SetID_ASIENTO_COMPENSADOValue(const aValue: Integer);
|
|
function GetID_ASIENTO_COMPENSADOIsNull: Boolean;
|
|
procedure SetID_ASIENTO_COMPENSADOIsNull(const aValue: Boolean);
|
|
function GetID_SUBCUENTAValue: Integer;
|
|
procedure SetID_SUBCUENTAValue(const aValue: Integer);
|
|
function GetID_SUBCUENTAIsNull: Boolean;
|
|
procedure SetID_SUBCUENTAIsNull(const aValue: Boolean);
|
|
function GetFECHA_ASIENTOValue: DateTime;
|
|
procedure SetFECHA_ASIENTOValue(const aValue: DateTime);
|
|
function GetFECHA_ASIENTOIsNull: Boolean;
|
|
procedure SetFECHA_ASIENTOIsNull(const aValue: Boolean);
|
|
function GetCONCEPTOValue: String;
|
|
procedure SetCONCEPTOValue(const aValue: String);
|
|
function GetCONCEPTOIsNull: Boolean;
|
|
procedure SetCONCEPTOIsNull(const aValue: Boolean);
|
|
function GetPUNTEADOValue: SmallInt;
|
|
procedure SetPUNTEADOValue(const aValue: SmallInt);
|
|
function GetPUNTEADOIsNull: Boolean;
|
|
procedure SetPUNTEADOIsNull(const aValue: Boolean);
|
|
function GetDEBEValue: Currency;
|
|
procedure SetDEBEValue(const aValue: Currency);
|
|
function GetDEBEIsNull: Boolean;
|
|
procedure SetDEBEIsNull(const aValue: Boolean);
|
|
function GetHABERValue: Currency;
|
|
procedure SetHABERValue(const aValue: Currency);
|
|
function GetHABERIsNull: Boolean;
|
|
procedure SetHABERIsNull(const aValue: Boolean);
|
|
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property ID_ASIENTO_COMPENSADO: Integer read GetID_ASIENTO_COMPENSADOValue write SetID_ASIENTO_COMPENSADOValue;
|
|
property ID_ASIENTO_COMPENSADOIsNull: Boolean read GetID_ASIENTO_COMPENSADOIsNull write SetID_ASIENTO_COMPENSADOIsNull;
|
|
property ID_SUBCUENTA: Integer read GetID_SUBCUENTAValue write SetID_SUBCUENTAValue;
|
|
property ID_SUBCUENTAIsNull: Boolean read GetID_SUBCUENTAIsNull write SetID_SUBCUENTAIsNull;
|
|
property FECHA_ASIENTO: DateTime read GetFECHA_ASIENTOValue write SetFECHA_ASIENTOValue;
|
|
property FECHA_ASIENTOIsNull: Boolean read GetFECHA_ASIENTOIsNull write SetFECHA_ASIENTOIsNull;
|
|
property CONCEPTO: String read GetCONCEPTOValue write SetCONCEPTOValue;
|
|
property CONCEPTOIsNull: Boolean read GetCONCEPTOIsNull write SetCONCEPTOIsNull;
|
|
property PUNTEADO: SmallInt read GetPUNTEADOValue write SetPUNTEADOValue;
|
|
property PUNTEADOIsNull: Boolean read GetPUNTEADOIsNull write SetPUNTEADOIsNull;
|
|
property DEBE: Currency read GetDEBEValue write SetDEBEValue;
|
|
property DEBEIsNull: Boolean read GetDEBEIsNull write SetDEBEIsNull;
|
|
property HABER: Currency read GetHABERValue write SetHABERValue;
|
|
property HABERIsNull: Boolean read GetHABERIsNull write SetHABERIsNull;
|
|
end;
|
|
|
|
{ TAsientosDataTableRules }
|
|
TAsientosDataTableRules = class(TIntfObjectDADataTableRules, IAsientos)
|
|
private
|
|
protected
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer; virtual;
|
|
procedure SetIDValue(const aValue: Integer); virtual;
|
|
function GetIDIsNull: Boolean; virtual;
|
|
procedure SetIDIsNull(const aValue: Boolean); virtual;
|
|
function GetID_ASIENTO_COMPENSADOValue: Integer; virtual;
|
|
procedure SetID_ASIENTO_COMPENSADOValue(const aValue: Integer); virtual;
|
|
function GetID_ASIENTO_COMPENSADOIsNull: Boolean; virtual;
|
|
procedure SetID_ASIENTO_COMPENSADOIsNull(const aValue: Boolean); virtual;
|
|
function GetID_SUBCUENTAValue: Integer; virtual;
|
|
procedure SetID_SUBCUENTAValue(const aValue: Integer); virtual;
|
|
function GetID_SUBCUENTAIsNull: Boolean; virtual;
|
|
procedure SetID_SUBCUENTAIsNull(const aValue: Boolean); virtual;
|
|
function GetFECHA_ASIENTOValue: DateTime; virtual;
|
|
procedure SetFECHA_ASIENTOValue(const aValue: DateTime); virtual;
|
|
function GetFECHA_ASIENTOIsNull: Boolean; virtual;
|
|
procedure SetFECHA_ASIENTOIsNull(const aValue: Boolean); virtual;
|
|
function GetCONCEPTOValue: String; virtual;
|
|
procedure SetCONCEPTOValue(const aValue: String); virtual;
|
|
function GetCONCEPTOIsNull: Boolean; virtual;
|
|
procedure SetCONCEPTOIsNull(const aValue: Boolean); virtual;
|
|
function GetPUNTEADOValue: SmallInt; virtual;
|
|
procedure SetPUNTEADOValue(const aValue: SmallInt); virtual;
|
|
function GetPUNTEADOIsNull: Boolean; virtual;
|
|
procedure SetPUNTEADOIsNull(const aValue: Boolean); virtual;
|
|
function GetDEBEValue: Currency; virtual;
|
|
procedure SetDEBEValue(const aValue: Currency); virtual;
|
|
function GetDEBEIsNull: Boolean; virtual;
|
|
procedure SetDEBEIsNull(const aValue: Boolean); virtual;
|
|
function GetHABERValue: Currency; virtual;
|
|
procedure SetHABERValue(const aValue: Currency); virtual;
|
|
function GetHABERIsNull: Boolean; virtual;
|
|
procedure SetHABERIsNull(const aValue: Boolean); virtual;
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property ID_ASIENTO_COMPENSADO: Integer read GetID_ASIENTO_COMPENSADOValue write SetID_ASIENTO_COMPENSADOValue;
|
|
property ID_ASIENTO_COMPENSADOIsNull: Boolean read GetID_ASIENTO_COMPENSADOIsNull write SetID_ASIENTO_COMPENSADOIsNull;
|
|
property ID_SUBCUENTA: Integer read GetID_SUBCUENTAValue write SetID_SUBCUENTAValue;
|
|
property ID_SUBCUENTAIsNull: Boolean read GetID_SUBCUENTAIsNull write SetID_SUBCUENTAIsNull;
|
|
property FECHA_ASIENTO: DateTime read GetFECHA_ASIENTOValue write SetFECHA_ASIENTOValue;
|
|
property FECHA_ASIENTOIsNull: Boolean read GetFECHA_ASIENTOIsNull write SetFECHA_ASIENTOIsNull;
|
|
property CONCEPTO: String read GetCONCEPTOValue write SetCONCEPTOValue;
|
|
property CONCEPTOIsNull: Boolean read GetCONCEPTOIsNull write SetCONCEPTOIsNull;
|
|
property PUNTEADO: SmallInt read GetPUNTEADOValue write SetPUNTEADOValue;
|
|
property PUNTEADOIsNull: Boolean read GetPUNTEADOIsNull write SetPUNTEADOIsNull;
|
|
property DEBE: Currency read GetDEBEValue write SetDEBEValue;
|
|
property DEBEIsNull: Boolean read GetDEBEIsNull write SetDEBEIsNull;
|
|
property HABER: Currency read GetHABERValue write SetHABERValue;
|
|
property HABERIsNull: Boolean read GetHABERIsNull write SetHABERIsNull;
|
|
|
|
public
|
|
constructor Create(aDataTable: TDADataTable); override;
|
|
destructor Destroy; override;
|
|
|
|
end;
|
|
|
|
{ ISubCuentas }
|
|
ISubCuentas = interface(IDAStronglyTypedDataTable)
|
|
['{3EA34CD0-F51B-46B6-BCB6-D0FF0BF60134}']
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer;
|
|
procedure SetIDValue(const aValue: Integer);
|
|
function GetIDIsNull: Boolean;
|
|
procedure SetIDIsNull(const aValue: Boolean);
|
|
function GetREF_SUBCUENTAValue: String;
|
|
procedure SetREF_SUBCUENTAValue(const aValue: String);
|
|
function GetREF_SUBCUENTAIsNull: Boolean;
|
|
procedure SetREF_SUBCUENTAIsNull(const aValue: Boolean);
|
|
function GetDESCRIPCIONValue: String;
|
|
procedure SetDESCRIPCIONValue(const aValue: String);
|
|
function GetDESCRIPCIONIsNull: Boolean;
|
|
procedure SetDESCRIPCIONIsNull(const aValue: Boolean);
|
|
function GetID_CUENTAValue: Integer;
|
|
procedure SetID_CUENTAValue(const aValue: Integer);
|
|
function GetID_CUENTAIsNull: Boolean;
|
|
procedure SetID_CUENTAIsNull(const aValue: Boolean);
|
|
function GetID_EJERCICIOValue: Integer;
|
|
procedure SetID_EJERCICIOValue(const aValue: Integer);
|
|
function GetID_EJERCICIOIsNull: Boolean;
|
|
procedure SetID_EJERCICIOIsNull(const aValue: Boolean);
|
|
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REF_SUBCUENTA: String read GetREF_SUBCUENTAValue write SetREF_SUBCUENTAValue;
|
|
property REF_SUBCUENTAIsNull: Boolean read GetREF_SUBCUENTAIsNull write SetREF_SUBCUENTAIsNull;
|
|
property DESCRIPCION: String read GetDESCRIPCIONValue write SetDESCRIPCIONValue;
|
|
property DESCRIPCIONIsNull: Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull;
|
|
property ID_CUENTA: Integer read GetID_CUENTAValue write SetID_CUENTAValue;
|
|
property ID_CUENTAIsNull: Boolean read GetID_CUENTAIsNull write SetID_CUENTAIsNull;
|
|
property ID_EJERCICIO: Integer read GetID_EJERCICIOValue write SetID_EJERCICIOValue;
|
|
property ID_EJERCICIOIsNull: Boolean read GetID_EJERCICIOIsNull write SetID_EJERCICIOIsNull;
|
|
end;
|
|
|
|
{ TSubCuentasDataTableRules }
|
|
TSubCuentasDataTableRules = class(TIntfObjectDADataTableRules, ISubCuentas)
|
|
private
|
|
protected
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer; virtual;
|
|
procedure SetIDValue(const aValue: Integer); virtual;
|
|
function GetIDIsNull: Boolean; virtual;
|
|
procedure SetIDIsNull(const aValue: Boolean); virtual;
|
|
function GetREF_SUBCUENTAValue: String; virtual;
|
|
procedure SetREF_SUBCUENTAValue(const aValue: String); virtual;
|
|
function GetREF_SUBCUENTAIsNull: Boolean; virtual;
|
|
procedure SetREF_SUBCUENTAIsNull(const aValue: Boolean); virtual;
|
|
function GetDESCRIPCIONValue: String; virtual;
|
|
procedure SetDESCRIPCIONValue(const aValue: String); virtual;
|
|
function GetDESCRIPCIONIsNull: Boolean; virtual;
|
|
procedure SetDESCRIPCIONIsNull(const aValue: Boolean); virtual;
|
|
function GetID_CUENTAValue: Integer; virtual;
|
|
procedure SetID_CUENTAValue(const aValue: Integer); virtual;
|
|
function GetID_CUENTAIsNull: Boolean; virtual;
|
|
procedure SetID_CUENTAIsNull(const aValue: Boolean); virtual;
|
|
function GetID_EJERCICIOValue: Integer; virtual;
|
|
procedure SetID_EJERCICIOValue(const aValue: Integer); virtual;
|
|
function GetID_EJERCICIOIsNull: Boolean; virtual;
|
|
procedure SetID_EJERCICIOIsNull(const aValue: Boolean); virtual;
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REF_SUBCUENTA: String read GetREF_SUBCUENTAValue write SetREF_SUBCUENTAValue;
|
|
property REF_SUBCUENTAIsNull: Boolean read GetREF_SUBCUENTAIsNull write SetREF_SUBCUENTAIsNull;
|
|
property DESCRIPCION: String read GetDESCRIPCIONValue write SetDESCRIPCIONValue;
|
|
property DESCRIPCIONIsNull: Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull;
|
|
property ID_CUENTA: Integer read GetID_CUENTAValue write SetID_CUENTAValue;
|
|
property ID_CUENTAIsNull: Boolean read GetID_CUENTAIsNull write SetID_CUENTAIsNull;
|
|
property ID_EJERCICIO: Integer read GetID_EJERCICIOValue write SetID_EJERCICIOValue;
|
|
property ID_EJERCICIOIsNull: Boolean read GetID_EJERCICIOIsNull write SetID_EJERCICIOIsNull;
|
|
|
|
public
|
|
constructor Create(aDataTable: TDADataTable); override;
|
|
destructor Destroy; override;
|
|
|
|
end;
|
|
|
|
{ ICuentas }
|
|
ICuentas = interface(IDAStronglyTypedDataTable)
|
|
['{3266B522-8AD3-4882-86C7-23E7154C83AB}']
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer;
|
|
procedure SetIDValue(const aValue: Integer);
|
|
function GetIDIsNull: Boolean;
|
|
procedure SetIDIsNull(const aValue: Boolean);
|
|
function GetREF_CUENTAValue: String;
|
|
procedure SetREF_CUENTAValue(const aValue: String);
|
|
function GetREF_CUENTAIsNull: Boolean;
|
|
procedure SetREF_CUENTAIsNull(const aValue: Boolean);
|
|
function GetID_EJERCICIOValue: Integer;
|
|
procedure SetID_EJERCICIOValue(const aValue: Integer);
|
|
function GetID_EJERCICIOIsNull: Boolean;
|
|
procedure SetID_EJERCICIOIsNull(const aValue: Boolean);
|
|
function GetDESCRIPCIONValue: String;
|
|
procedure SetDESCRIPCIONValue(const aValue: String);
|
|
function GetDESCRIPCIONIsNull: Boolean;
|
|
procedure SetDESCRIPCIONIsNull(const aValue: Boolean);
|
|
function GetID_EPIGRAFEValue: Integer;
|
|
procedure SetID_EPIGRAFEValue(const aValue: Integer);
|
|
function GetID_EPIGRAFEIsNull: Boolean;
|
|
procedure SetID_EPIGRAFEIsNull(const aValue: Boolean);
|
|
function GetEPIGRAFEValue: String;
|
|
procedure SetEPIGRAFEValue(const aValue: String);
|
|
function GetEPIGRAFEIsNull: Boolean;
|
|
procedure SetEPIGRAFEIsNull(const aValue: Boolean);
|
|
function GetID_BALANCEValue: Integer;
|
|
procedure SetID_BALANCEValue(const aValue: Integer);
|
|
function GetID_BALANCEIsNull: Boolean;
|
|
procedure SetID_BALANCEIsNull(const aValue: Boolean);
|
|
function GetBALANCEValue: String;
|
|
procedure SetBALANCEValue(const aValue: String);
|
|
function GetBALANCEIsNull: Boolean;
|
|
procedure SetBALANCEIsNull(const aValue: Boolean);
|
|
function GetID_CUENTA_ESPECIALValue: Integer;
|
|
procedure SetID_CUENTA_ESPECIALValue(const aValue: Integer);
|
|
function GetID_CUENTA_ESPECIALIsNull: Boolean;
|
|
procedure SetID_CUENTA_ESPECIALIsNull(const aValue: Boolean);
|
|
function GetCUENTA_ESPECIALValue: String;
|
|
procedure SetCUENTA_ESPECIALValue(const aValue: String);
|
|
function GetCUENTA_ESPECIALIsNull: Boolean;
|
|
procedure SetCUENTA_ESPECIALIsNull(const aValue: Boolean);
|
|
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REF_CUENTA: String read GetREF_CUENTAValue write SetREF_CUENTAValue;
|
|
property REF_CUENTAIsNull: Boolean read GetREF_CUENTAIsNull write SetREF_CUENTAIsNull;
|
|
property ID_EJERCICIO: Integer read GetID_EJERCICIOValue write SetID_EJERCICIOValue;
|
|
property ID_EJERCICIOIsNull: Boolean read GetID_EJERCICIOIsNull write SetID_EJERCICIOIsNull;
|
|
property DESCRIPCION: String read GetDESCRIPCIONValue write SetDESCRIPCIONValue;
|
|
property DESCRIPCIONIsNull: Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull;
|
|
property ID_EPIGRAFE: Integer read GetID_EPIGRAFEValue write SetID_EPIGRAFEValue;
|
|
property ID_EPIGRAFEIsNull: Boolean read GetID_EPIGRAFEIsNull write SetID_EPIGRAFEIsNull;
|
|
property EPIGRAFE: String read GetEPIGRAFEValue write SetEPIGRAFEValue;
|
|
property EPIGRAFEIsNull: Boolean read GetEPIGRAFEIsNull write SetEPIGRAFEIsNull;
|
|
property ID_BALANCE: Integer read GetID_BALANCEValue write SetID_BALANCEValue;
|
|
property ID_BALANCEIsNull: Boolean read GetID_BALANCEIsNull write SetID_BALANCEIsNull;
|
|
property BALANCE: String read GetBALANCEValue write SetBALANCEValue;
|
|
property BALANCEIsNull: Boolean read GetBALANCEIsNull write SetBALANCEIsNull;
|
|
property ID_CUENTA_ESPECIAL: Integer read GetID_CUENTA_ESPECIALValue write SetID_CUENTA_ESPECIALValue;
|
|
property ID_CUENTA_ESPECIALIsNull: Boolean read GetID_CUENTA_ESPECIALIsNull write SetID_CUENTA_ESPECIALIsNull;
|
|
property CUENTA_ESPECIAL: String read GetCUENTA_ESPECIALValue write SetCUENTA_ESPECIALValue;
|
|
property CUENTA_ESPECIALIsNull: Boolean read GetCUENTA_ESPECIALIsNull write SetCUENTA_ESPECIALIsNull;
|
|
end;
|
|
|
|
{ TCuentasDataTableRules }
|
|
TCuentasDataTableRules = class(TIntfObjectDADataTableRules, ICuentas)
|
|
private
|
|
protected
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer; virtual;
|
|
procedure SetIDValue(const aValue: Integer); virtual;
|
|
function GetIDIsNull: Boolean; virtual;
|
|
procedure SetIDIsNull(const aValue: Boolean); virtual;
|
|
function GetREF_CUENTAValue: String; virtual;
|
|
procedure SetREF_CUENTAValue(const aValue: String); virtual;
|
|
function GetREF_CUENTAIsNull: Boolean; virtual;
|
|
procedure SetREF_CUENTAIsNull(const aValue: Boolean); virtual;
|
|
function GetID_EJERCICIOValue: Integer; virtual;
|
|
procedure SetID_EJERCICIOValue(const aValue: Integer); virtual;
|
|
function GetID_EJERCICIOIsNull: Boolean; virtual;
|
|
procedure SetID_EJERCICIOIsNull(const aValue: Boolean); virtual;
|
|
function GetDESCRIPCIONValue: String; virtual;
|
|
procedure SetDESCRIPCIONValue(const aValue: String); virtual;
|
|
function GetDESCRIPCIONIsNull: Boolean; virtual;
|
|
procedure SetDESCRIPCIONIsNull(const aValue: Boolean); virtual;
|
|
function GetID_EPIGRAFEValue: Integer; virtual;
|
|
procedure SetID_EPIGRAFEValue(const aValue: Integer); virtual;
|
|
function GetID_EPIGRAFEIsNull: Boolean; virtual;
|
|
procedure SetID_EPIGRAFEIsNull(const aValue: Boolean); virtual;
|
|
function GetEPIGRAFEValue: String; virtual;
|
|
procedure SetEPIGRAFEValue(const aValue: String); virtual;
|
|
function GetEPIGRAFEIsNull: Boolean; virtual;
|
|
procedure SetEPIGRAFEIsNull(const aValue: Boolean); virtual;
|
|
function GetID_BALANCEValue: Integer; virtual;
|
|
procedure SetID_BALANCEValue(const aValue: Integer); virtual;
|
|
function GetID_BALANCEIsNull: Boolean; virtual;
|
|
procedure SetID_BALANCEIsNull(const aValue: Boolean); virtual;
|
|
function GetBALANCEValue: String; virtual;
|
|
procedure SetBALANCEValue(const aValue: String); virtual;
|
|
function GetBALANCEIsNull: Boolean; virtual;
|
|
procedure SetBALANCEIsNull(const aValue: Boolean); virtual;
|
|
function GetID_CUENTA_ESPECIALValue: Integer; virtual;
|
|
procedure SetID_CUENTA_ESPECIALValue(const aValue: Integer); virtual;
|
|
function GetID_CUENTA_ESPECIALIsNull: Boolean; virtual;
|
|
procedure SetID_CUENTA_ESPECIALIsNull(const aValue: Boolean); virtual;
|
|
function GetCUENTA_ESPECIALValue: String; virtual;
|
|
procedure SetCUENTA_ESPECIALValue(const aValue: String); virtual;
|
|
function GetCUENTA_ESPECIALIsNull: Boolean; virtual;
|
|
procedure SetCUENTA_ESPECIALIsNull(const aValue: Boolean); virtual;
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REF_CUENTA: String read GetREF_CUENTAValue write SetREF_CUENTAValue;
|
|
property REF_CUENTAIsNull: Boolean read GetREF_CUENTAIsNull write SetREF_CUENTAIsNull;
|
|
property ID_EJERCICIO: Integer read GetID_EJERCICIOValue write SetID_EJERCICIOValue;
|
|
property ID_EJERCICIOIsNull: Boolean read GetID_EJERCICIOIsNull write SetID_EJERCICIOIsNull;
|
|
property DESCRIPCION: String read GetDESCRIPCIONValue write SetDESCRIPCIONValue;
|
|
property DESCRIPCIONIsNull: Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull;
|
|
property ID_EPIGRAFE: Integer read GetID_EPIGRAFEValue write SetID_EPIGRAFEValue;
|
|
property ID_EPIGRAFEIsNull: Boolean read GetID_EPIGRAFEIsNull write SetID_EPIGRAFEIsNull;
|
|
property EPIGRAFE: String read GetEPIGRAFEValue write SetEPIGRAFEValue;
|
|
property EPIGRAFEIsNull: Boolean read GetEPIGRAFEIsNull write SetEPIGRAFEIsNull;
|
|
property ID_BALANCE: Integer read GetID_BALANCEValue write SetID_BALANCEValue;
|
|
property ID_BALANCEIsNull: Boolean read GetID_BALANCEIsNull write SetID_BALANCEIsNull;
|
|
property BALANCE: String read GetBALANCEValue write SetBALANCEValue;
|
|
property BALANCEIsNull: Boolean read GetBALANCEIsNull write SetBALANCEIsNull;
|
|
property ID_CUENTA_ESPECIAL: Integer read GetID_CUENTA_ESPECIALValue write SetID_CUENTA_ESPECIALValue;
|
|
property ID_CUENTA_ESPECIALIsNull: Boolean read GetID_CUENTA_ESPECIALIsNull write SetID_CUENTA_ESPECIALIsNull;
|
|
property CUENTA_ESPECIAL: String read GetCUENTA_ESPECIALValue write SetCUENTA_ESPECIALValue;
|
|
property CUENTA_ESPECIALIsNull: Boolean read GetCUENTA_ESPECIALIsNull write SetCUENTA_ESPECIALIsNull;
|
|
|
|
public
|
|
constructor Create(aDataTable: TDADataTable); override;
|
|
destructor Destroy; override;
|
|
|
|
end;
|
|
|
|
{ ICuentasEspeciales }
|
|
ICuentasEspeciales = interface(IDAStronglyTypedDataTable)
|
|
['{BD79A3DF-F270-4E7B-976E-2D213C63187C}']
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer;
|
|
procedure SetIDValue(const aValue: Integer);
|
|
function GetIDIsNull: Boolean;
|
|
procedure SetIDIsNull(const aValue: Boolean);
|
|
function GetREFERENCIAValue: String;
|
|
procedure SetREFERENCIAValue(const aValue: String);
|
|
function GetREFERENCIAIsNull: Boolean;
|
|
procedure SetREFERENCIAIsNull(const aValue: Boolean);
|
|
function GetDESCRIPCIONValue: String;
|
|
procedure SetDESCRIPCIONValue(const aValue: String);
|
|
function GetDESCRIPCIONIsNull: Boolean;
|
|
procedure SetDESCRIPCIONIsNull(const aValue: Boolean);
|
|
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REFERENCIA: String read GetREFERENCIAValue write SetREFERENCIAValue;
|
|
property REFERENCIAIsNull: Boolean read GetREFERENCIAIsNull write SetREFERENCIAIsNull;
|
|
property DESCRIPCION: String read GetDESCRIPCIONValue write SetDESCRIPCIONValue;
|
|
property DESCRIPCIONIsNull: Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull;
|
|
end;
|
|
|
|
{ TCuentasEspecialesDataTableRules }
|
|
TCuentasEspecialesDataTableRules = class(TIntfObjectDADataTableRules, ICuentasEspeciales)
|
|
private
|
|
protected
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer; virtual;
|
|
procedure SetIDValue(const aValue: Integer); virtual;
|
|
function GetIDIsNull: Boolean; virtual;
|
|
procedure SetIDIsNull(const aValue: Boolean); virtual;
|
|
function GetREFERENCIAValue: String; virtual;
|
|
procedure SetREFERENCIAValue(const aValue: String); virtual;
|
|
function GetREFERENCIAIsNull: Boolean; virtual;
|
|
procedure SetREFERENCIAIsNull(const aValue: Boolean); virtual;
|
|
function GetDESCRIPCIONValue: String; virtual;
|
|
procedure SetDESCRIPCIONValue(const aValue: String); virtual;
|
|
function GetDESCRIPCIONIsNull: Boolean; virtual;
|
|
procedure SetDESCRIPCIONIsNull(const aValue: Boolean); virtual;
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REFERENCIA: String read GetREFERENCIAValue write SetREFERENCIAValue;
|
|
property REFERENCIAIsNull: Boolean read GetREFERENCIAIsNull write SetREFERENCIAIsNull;
|
|
property DESCRIPCION: String read GetDESCRIPCIONValue write SetDESCRIPCIONValue;
|
|
property DESCRIPCIONIsNull: Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull;
|
|
|
|
public
|
|
constructor Create(aDataTable: TDADataTable); override;
|
|
destructor Destroy; override;
|
|
|
|
end;
|
|
|
|
{ IEpigrafes }
|
|
IEpigrafes = interface(IDAStronglyTypedDataTable)
|
|
['{492FACBF-1168-496F-AE21-46479708E154}']
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer;
|
|
procedure SetIDValue(const aValue: Integer);
|
|
function GetIDIsNull: Boolean;
|
|
procedure SetIDIsNull(const aValue: Boolean);
|
|
function GetREF_EPIGRAFEValue: String;
|
|
procedure SetREF_EPIGRAFEValue(const aValue: String);
|
|
function GetREF_EPIGRAFEIsNull: Boolean;
|
|
procedure SetREF_EPIGRAFEIsNull(const aValue: Boolean);
|
|
function GetDESCRIPCIONValue: String;
|
|
procedure SetDESCRIPCIONValue(const aValue: String);
|
|
function GetDESCRIPCIONIsNull: Boolean;
|
|
procedure SetDESCRIPCIONIsNull(const aValue: Boolean);
|
|
function GetID_EJERCICIOValue: Integer;
|
|
procedure SetID_EJERCICIOValue(const aValue: Integer);
|
|
function GetID_EJERCICIOIsNull: Boolean;
|
|
procedure SetID_EJERCICIOIsNull(const aValue: Boolean);
|
|
function GetID_PADREValue: Integer;
|
|
procedure SetID_PADREValue(const aValue: Integer);
|
|
function GetID_PADREIsNull: Boolean;
|
|
procedure SetID_PADREIsNull(const aValue: Boolean);
|
|
function GetEPIGRAFE_PADREValue: String;
|
|
procedure SetEPIGRAFE_PADREValue(const aValue: String);
|
|
function GetEPIGRAFE_PADREIsNull: Boolean;
|
|
procedure SetEPIGRAFE_PADREIsNull(const aValue: Boolean);
|
|
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REF_EPIGRAFE: String read GetREF_EPIGRAFEValue write SetREF_EPIGRAFEValue;
|
|
property REF_EPIGRAFEIsNull: Boolean read GetREF_EPIGRAFEIsNull write SetREF_EPIGRAFEIsNull;
|
|
property DESCRIPCION: String read GetDESCRIPCIONValue write SetDESCRIPCIONValue;
|
|
property DESCRIPCIONIsNull: Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull;
|
|
property ID_EJERCICIO: Integer read GetID_EJERCICIOValue write SetID_EJERCICIOValue;
|
|
property ID_EJERCICIOIsNull: Boolean read GetID_EJERCICIOIsNull write SetID_EJERCICIOIsNull;
|
|
property ID_PADRE: Integer read GetID_PADREValue write SetID_PADREValue;
|
|
property ID_PADREIsNull: Boolean read GetID_PADREIsNull write SetID_PADREIsNull;
|
|
property EPIGRAFE_PADRE: String read GetEPIGRAFE_PADREValue write SetEPIGRAFE_PADREValue;
|
|
property EPIGRAFE_PADREIsNull: Boolean read GetEPIGRAFE_PADREIsNull write SetEPIGRAFE_PADREIsNull;
|
|
end;
|
|
|
|
{ TEpigrafesDataTableRules }
|
|
TEpigrafesDataTableRules = class(TIntfObjectDADataTableRules, IEpigrafes)
|
|
private
|
|
protected
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer; virtual;
|
|
procedure SetIDValue(const aValue: Integer); virtual;
|
|
function GetIDIsNull: Boolean; virtual;
|
|
procedure SetIDIsNull(const aValue: Boolean); virtual;
|
|
function GetREF_EPIGRAFEValue: String; virtual;
|
|
procedure SetREF_EPIGRAFEValue(const aValue: String); virtual;
|
|
function GetREF_EPIGRAFEIsNull: Boolean; virtual;
|
|
procedure SetREF_EPIGRAFEIsNull(const aValue: Boolean); virtual;
|
|
function GetDESCRIPCIONValue: String; virtual;
|
|
procedure SetDESCRIPCIONValue(const aValue: String); virtual;
|
|
function GetDESCRIPCIONIsNull: Boolean; virtual;
|
|
procedure SetDESCRIPCIONIsNull(const aValue: Boolean); virtual;
|
|
function GetID_EJERCICIOValue: Integer; virtual;
|
|
procedure SetID_EJERCICIOValue(const aValue: Integer); virtual;
|
|
function GetID_EJERCICIOIsNull: Boolean; virtual;
|
|
procedure SetID_EJERCICIOIsNull(const aValue: Boolean); virtual;
|
|
function GetID_PADREValue: Integer; virtual;
|
|
procedure SetID_PADREValue(const aValue: Integer); virtual;
|
|
function GetID_PADREIsNull: Boolean; virtual;
|
|
procedure SetID_PADREIsNull(const aValue: Boolean); virtual;
|
|
function GetEPIGRAFE_PADREValue: String; virtual;
|
|
procedure SetEPIGRAFE_PADREValue(const aValue: String); virtual;
|
|
function GetEPIGRAFE_PADREIsNull: Boolean; virtual;
|
|
procedure SetEPIGRAFE_PADREIsNull(const aValue: Boolean); virtual;
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REF_EPIGRAFE: String read GetREF_EPIGRAFEValue write SetREF_EPIGRAFEValue;
|
|
property REF_EPIGRAFEIsNull: Boolean read GetREF_EPIGRAFEIsNull write SetREF_EPIGRAFEIsNull;
|
|
property DESCRIPCION: String read GetDESCRIPCIONValue write SetDESCRIPCIONValue;
|
|
property DESCRIPCIONIsNull: Boolean read GetDESCRIPCIONIsNull write SetDESCRIPCIONIsNull;
|
|
property ID_EJERCICIO: Integer read GetID_EJERCICIOValue write SetID_EJERCICIOValue;
|
|
property ID_EJERCICIOIsNull: Boolean read GetID_EJERCICIOIsNull write SetID_EJERCICIOIsNull;
|
|
property ID_PADRE: Integer read GetID_PADREValue write SetID_PADREValue;
|
|
property ID_PADREIsNull: Boolean read GetID_PADREIsNull write SetID_PADREIsNull;
|
|
property EPIGRAFE_PADRE: String read GetEPIGRAFE_PADREValue write SetEPIGRAFE_PADREValue;
|
|
property EPIGRAFE_PADREIsNull: Boolean read GetEPIGRAFE_PADREIsNull write SetEPIGRAFE_PADREIsNull;
|
|
|
|
public
|
|
constructor Create(aDataTable: TDADataTable); override;
|
|
destructor Destroy; override;
|
|
|
|
end;
|
|
|
|
{ IBalances }
|
|
IBalances = interface(IDAStronglyTypedDataTable)
|
|
['{6C69EE1A-E481-42DA-81A1-573A98D95BF5}']
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer;
|
|
procedure SetIDValue(const aValue: Integer);
|
|
function GetIDIsNull: Boolean;
|
|
procedure SetIDIsNull(const aValue: Boolean);
|
|
function GetREF_BALANCEValue: String;
|
|
procedure SetREF_BALANCEValue(const aValue: String);
|
|
function GetREF_BALANCEIsNull: Boolean;
|
|
procedure SetREF_BALANCEIsNull(const aValue: Boolean);
|
|
function GetNATURALEZAValue: String;
|
|
procedure SetNATURALEZAValue(const aValue: String);
|
|
function GetNATURALEZAIsNull: Boolean;
|
|
procedure SetNATURALEZAIsNull(const aValue: Boolean);
|
|
function GetNIVEL1Value: String;
|
|
procedure SetNIVEL1Value(const aValue: String);
|
|
function GetNIVEL1IsNull: Boolean;
|
|
procedure SetNIVEL1IsNull(const aValue: Boolean);
|
|
function GetDESCRIPCION1Value: String;
|
|
procedure SetDESCRIPCION1Value(const aValue: String);
|
|
function GetDESCRIPCION1IsNull: Boolean;
|
|
procedure SetDESCRIPCION1IsNull(const aValue: Boolean);
|
|
function GetNIVEL2Value: String;
|
|
procedure SetNIVEL2Value(const aValue: String);
|
|
function GetNIVEL2IsNull: Boolean;
|
|
procedure SetNIVEL2IsNull(const aValue: Boolean);
|
|
function GetDESCRIPCION2Value: String;
|
|
procedure SetDESCRIPCION2Value(const aValue: String);
|
|
function GetDESCRIPCION2IsNull: Boolean;
|
|
procedure SetDESCRIPCION2IsNull(const aValue: Boolean);
|
|
function GetNIVEL3Value: String;
|
|
procedure SetNIVEL3Value(const aValue: String);
|
|
function GetNIVEL3IsNull: Boolean;
|
|
procedure SetNIVEL3IsNull(const aValue: Boolean);
|
|
function GetDESCRIPCION3Value: String;
|
|
procedure SetDESCRIPCION3Value(const aValue: String);
|
|
function GetDESCRIPCION3IsNull: Boolean;
|
|
procedure SetDESCRIPCION3IsNull(const aValue: Boolean);
|
|
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REF_BALANCE: String read GetREF_BALANCEValue write SetREF_BALANCEValue;
|
|
property REF_BALANCEIsNull: Boolean read GetREF_BALANCEIsNull write SetREF_BALANCEIsNull;
|
|
property NATURALEZA: String read GetNATURALEZAValue write SetNATURALEZAValue;
|
|
property NATURALEZAIsNull: Boolean read GetNATURALEZAIsNull write SetNATURALEZAIsNull;
|
|
property NIVEL1: String read GetNIVEL1Value write SetNIVEL1Value;
|
|
property NIVEL1IsNull: Boolean read GetNIVEL1IsNull write SetNIVEL1IsNull;
|
|
property DESCRIPCION1: String read GetDESCRIPCION1Value write SetDESCRIPCION1Value;
|
|
property DESCRIPCION1IsNull: Boolean read GetDESCRIPCION1IsNull write SetDESCRIPCION1IsNull;
|
|
property NIVEL2: String read GetNIVEL2Value write SetNIVEL2Value;
|
|
property NIVEL2IsNull: Boolean read GetNIVEL2IsNull write SetNIVEL2IsNull;
|
|
property DESCRIPCION2: String read GetDESCRIPCION2Value write SetDESCRIPCION2Value;
|
|
property DESCRIPCION2IsNull: Boolean read GetDESCRIPCION2IsNull write SetDESCRIPCION2IsNull;
|
|
property NIVEL3: String read GetNIVEL3Value write SetNIVEL3Value;
|
|
property NIVEL3IsNull: Boolean read GetNIVEL3IsNull write SetNIVEL3IsNull;
|
|
property DESCRIPCION3: String read GetDESCRIPCION3Value write SetDESCRIPCION3Value;
|
|
property DESCRIPCION3IsNull: Boolean read GetDESCRIPCION3IsNull write SetDESCRIPCION3IsNull;
|
|
end;
|
|
|
|
{ TBalancesDataTableRules }
|
|
TBalancesDataTableRules = class(TIntfObjectDADataTableRules, IBalances)
|
|
private
|
|
protected
|
|
{ Property getters and setters }
|
|
function GetIDValue: Integer; virtual;
|
|
procedure SetIDValue(const aValue: Integer); virtual;
|
|
function GetIDIsNull: Boolean; virtual;
|
|
procedure SetIDIsNull(const aValue: Boolean); virtual;
|
|
function GetREF_BALANCEValue: String; virtual;
|
|
procedure SetREF_BALANCEValue(const aValue: String); virtual;
|
|
function GetREF_BALANCEIsNull: Boolean; virtual;
|
|
procedure SetREF_BALANCEIsNull(const aValue: Boolean); virtual;
|
|
function GetNATURALEZAValue: String; virtual;
|
|
procedure SetNATURALEZAValue(const aValue: String); virtual;
|
|
function GetNATURALEZAIsNull: Boolean; virtual;
|
|
procedure SetNATURALEZAIsNull(const aValue: Boolean); virtual;
|
|
function GetNIVEL1Value: String; virtual;
|
|
procedure SetNIVEL1Value(const aValue: String); virtual;
|
|
function GetNIVEL1IsNull: Boolean; virtual;
|
|
procedure SetNIVEL1IsNull(const aValue: Boolean); virtual;
|
|
function GetDESCRIPCION1Value: String; virtual;
|
|
procedure SetDESCRIPCION1Value(const aValue: String); virtual;
|
|
function GetDESCRIPCION1IsNull: Boolean; virtual;
|
|
procedure SetDESCRIPCION1IsNull(const aValue: Boolean); virtual;
|
|
function GetNIVEL2Value: String; virtual;
|
|
procedure SetNIVEL2Value(const aValue: String); virtual;
|
|
function GetNIVEL2IsNull: Boolean; virtual;
|
|
procedure SetNIVEL2IsNull(const aValue: Boolean); virtual;
|
|
function GetDESCRIPCION2Value: String; virtual;
|
|
procedure SetDESCRIPCION2Value(const aValue: String); virtual;
|
|
function GetDESCRIPCION2IsNull: Boolean; virtual;
|
|
procedure SetDESCRIPCION2IsNull(const aValue: Boolean); virtual;
|
|
function GetNIVEL3Value: String; virtual;
|
|
procedure SetNIVEL3Value(const aValue: String); virtual;
|
|
function GetNIVEL3IsNull: Boolean; virtual;
|
|
procedure SetNIVEL3IsNull(const aValue: Boolean); virtual;
|
|
function GetDESCRIPCION3Value: String; virtual;
|
|
procedure SetDESCRIPCION3Value(const aValue: String); virtual;
|
|
function GetDESCRIPCION3IsNull: Boolean; virtual;
|
|
procedure SetDESCRIPCION3IsNull(const aValue: Boolean); virtual;
|
|
|
|
{ Properties }
|
|
property ID: Integer read GetIDValue write SetIDValue;
|
|
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
|
|
property REF_BALANCE: String read GetREF_BALANCEValue write SetREF_BALANCEValue;
|
|
property REF_BALANCEIsNull: Boolean read GetREF_BALANCEIsNull write SetREF_BALANCEIsNull;
|
|
property NATURALEZA: String read GetNATURALEZAValue write SetNATURALEZAValue;
|
|
property NATURALEZAIsNull: Boolean read GetNATURALEZAIsNull write SetNATURALEZAIsNull;
|
|
property NIVEL1: String read GetNIVEL1Value write SetNIVEL1Value;
|
|
property NIVEL1IsNull: Boolean read GetNIVEL1IsNull write SetNIVEL1IsNull;
|
|
property DESCRIPCION1: String read GetDESCRIPCION1Value write SetDESCRIPCION1Value;
|
|
property DESCRIPCION1IsNull: Boolean read GetDESCRIPCION1IsNull write SetDESCRIPCION1IsNull;
|
|
property NIVEL2: String read GetNIVEL2Value write SetNIVEL2Value;
|
|
property NIVEL2IsNull: Boolean read GetNIVEL2IsNull write SetNIVEL2IsNull;
|
|
property DESCRIPCION2: String read GetDESCRIPCION2Value write SetDESCRIPCION2Value;
|
|
property DESCRIPCION2IsNull: Boolean read GetDESCRIPCION2IsNull write SetDESCRIPCION2IsNull;
|
|
property NIVEL3: String read GetNIVEL3Value write SetNIVEL3Value;
|
|
property NIVEL3IsNull: Boolean read GetNIVEL3IsNull write SetNIVEL3IsNull;
|
|
property DESCRIPCION3: String read GetDESCRIPCION3Value write SetDESCRIPCION3Value;
|
|
property DESCRIPCION3IsNull: Boolean read GetDESCRIPCION3IsNull write SetDESCRIPCION3IsNull;
|
|
|
|
public
|
|
constructor Create(aDataTable: TDADataTable); override;
|
|
destructor Destroy; override;
|
|
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses Variants, uROBinaryHelpers;
|
|
|
|
{ TAsientosDataTableRules }
|
|
constructor TAsientosDataTableRules.Create(aDataTable: TDADataTable);
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
destructor TAsientosDataTableRules.Destroy;
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetIDValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosID].AsInteger;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetIDValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_AsientosID].AsInteger := aValue;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetIDIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosID].IsNull;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetIDIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_AsientosID].AsVariant := Null;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetID_ASIENTO_COMPENSADOValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosID_ASIENTO_COMPENSADO].AsInteger;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetID_ASIENTO_COMPENSADOValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_AsientosID_ASIENTO_COMPENSADO].AsInteger := aValue;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetID_ASIENTO_COMPENSADOIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosID_ASIENTO_COMPENSADO].IsNull;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetID_ASIENTO_COMPENSADOIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_AsientosID_ASIENTO_COMPENSADO].AsVariant := Null;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetID_SUBCUENTAValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosID_SUBCUENTA].AsInteger;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetID_SUBCUENTAValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_AsientosID_SUBCUENTA].AsInteger := aValue;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetID_SUBCUENTAIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosID_SUBCUENTA].IsNull;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetID_SUBCUENTAIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_AsientosID_SUBCUENTA].AsVariant := Null;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetFECHA_ASIENTOValue: DateTime;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosFECHA_ASIENTO].AsDateTime;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetFECHA_ASIENTOValue(const aValue: DateTime);
|
|
begin
|
|
DataTable.Fields[idx_AsientosFECHA_ASIENTO].AsDateTime := aValue;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetFECHA_ASIENTOIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosFECHA_ASIENTO].IsNull;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetFECHA_ASIENTOIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_AsientosFECHA_ASIENTO].AsVariant := Null;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetCONCEPTOValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosCONCEPTO].AsString;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetCONCEPTOValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_AsientosCONCEPTO].AsString := aValue;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetCONCEPTOIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosCONCEPTO].IsNull;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetCONCEPTOIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_AsientosCONCEPTO].AsVariant := Null;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetPUNTEADOValue: SmallInt;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosPUNTEADO].AsSmallInt;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetPUNTEADOValue(const aValue: SmallInt);
|
|
begin
|
|
DataTable.Fields[idx_AsientosPUNTEADO].AsSmallInt := aValue;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetPUNTEADOIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosPUNTEADO].IsNull;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetPUNTEADOIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_AsientosPUNTEADO].AsVariant := Null;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetDEBEValue: Currency;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosDEBE].AsCurrency;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetDEBEValue(const aValue: Currency);
|
|
begin
|
|
DataTable.Fields[idx_AsientosDEBE].AsCurrency := aValue;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetDEBEIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosDEBE].IsNull;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetDEBEIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_AsientosDEBE].AsVariant := Null;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetHABERValue: Currency;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosHABER].AsCurrency;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetHABERValue(const aValue: Currency);
|
|
begin
|
|
DataTable.Fields[idx_AsientosHABER].AsCurrency := aValue;
|
|
end;
|
|
|
|
function TAsientosDataTableRules.GetHABERIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_AsientosHABER].IsNull;
|
|
end;
|
|
|
|
procedure TAsientosDataTableRules.SetHABERIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_AsientosHABER].AsVariant := Null;
|
|
end;
|
|
|
|
|
|
{ TSubCuentasDataTableRules }
|
|
constructor TSubCuentasDataTableRules.Create(aDataTable: TDADataTable);
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
destructor TSubCuentasDataTableRules.Destroy;
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetIDValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasID].AsInteger;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetIDValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_SubCuentasID].AsInteger := aValue;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetIDIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasID].IsNull;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetIDIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_SubCuentasID].AsVariant := Null;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetREF_SUBCUENTAValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasREF_SUBCUENTA].AsString;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetREF_SUBCUENTAValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_SubCuentasREF_SUBCUENTA].AsString := aValue;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetREF_SUBCUENTAIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasREF_SUBCUENTA].IsNull;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetREF_SUBCUENTAIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_SubCuentasREF_SUBCUENTA].AsVariant := Null;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetDESCRIPCIONValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasDESCRIPCION].AsString;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetDESCRIPCIONValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_SubCuentasDESCRIPCION].AsString := aValue;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetDESCRIPCIONIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasDESCRIPCION].IsNull;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetDESCRIPCIONIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_SubCuentasDESCRIPCION].AsVariant := Null;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetID_CUENTAValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasID_CUENTA].AsInteger;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetID_CUENTAValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_SubCuentasID_CUENTA].AsInteger := aValue;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetID_CUENTAIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasID_CUENTA].IsNull;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetID_CUENTAIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_SubCuentasID_CUENTA].AsVariant := Null;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetID_EJERCICIOValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasID_EJERCICIO].AsInteger;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetID_EJERCICIOValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_SubCuentasID_EJERCICIO].AsInteger := aValue;
|
|
end;
|
|
|
|
function TSubCuentasDataTableRules.GetID_EJERCICIOIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_SubCuentasID_EJERCICIO].IsNull;
|
|
end;
|
|
|
|
procedure TSubCuentasDataTableRules.SetID_EJERCICIOIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_SubCuentasID_EJERCICIO].AsVariant := Null;
|
|
end;
|
|
|
|
|
|
{ TCuentasDataTableRules }
|
|
constructor TCuentasDataTableRules.Create(aDataTable: TDADataTable);
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
destructor TCuentasDataTableRules.Destroy;
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetIDValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID].AsInteger;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetIDValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_CuentasID].AsInteger := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetIDIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetIDIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasID].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetREF_CUENTAValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasREF_CUENTA].AsString;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetREF_CUENTAValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_CuentasREF_CUENTA].AsString := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetREF_CUENTAIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasREF_CUENTA].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetREF_CUENTAIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasREF_CUENTA].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetID_EJERCICIOValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID_EJERCICIO].AsInteger;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetID_EJERCICIOValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_CuentasID_EJERCICIO].AsInteger := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetID_EJERCICIOIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID_EJERCICIO].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetID_EJERCICIOIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasID_EJERCICIO].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetDESCRIPCIONValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasDESCRIPCION].AsString;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetDESCRIPCIONValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_CuentasDESCRIPCION].AsString := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetDESCRIPCIONIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasDESCRIPCION].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetDESCRIPCIONIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasDESCRIPCION].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetID_EPIGRAFEValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID_EPIGRAFE].AsInteger;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetID_EPIGRAFEValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_CuentasID_EPIGRAFE].AsInteger := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetID_EPIGRAFEIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID_EPIGRAFE].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetID_EPIGRAFEIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasID_EPIGRAFE].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetEPIGRAFEValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasEPIGRAFE].AsString;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetEPIGRAFEValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_CuentasEPIGRAFE].AsString := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetEPIGRAFEIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasEPIGRAFE].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetEPIGRAFEIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasEPIGRAFE].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetID_BALANCEValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID_BALANCE].AsInteger;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetID_BALANCEValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_CuentasID_BALANCE].AsInteger := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetID_BALANCEIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID_BALANCE].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetID_BALANCEIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasID_BALANCE].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetBALANCEValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasBALANCE].AsString;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetBALANCEValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_CuentasBALANCE].AsString := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetBALANCEIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasBALANCE].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetBALANCEIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasBALANCE].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetID_CUENTA_ESPECIALValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID_CUENTA_ESPECIAL].AsInteger;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetID_CUENTA_ESPECIALValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_CuentasID_CUENTA_ESPECIAL].AsInteger := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetID_CUENTA_ESPECIALIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasID_CUENTA_ESPECIAL].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetID_CUENTA_ESPECIALIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasID_CUENTA_ESPECIAL].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetCUENTA_ESPECIALValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasCUENTA_ESPECIAL].AsString;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetCUENTA_ESPECIALValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_CuentasCUENTA_ESPECIAL].AsString := aValue;
|
|
end;
|
|
|
|
function TCuentasDataTableRules.GetCUENTA_ESPECIALIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasCUENTA_ESPECIAL].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasDataTableRules.SetCUENTA_ESPECIALIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasCUENTA_ESPECIAL].AsVariant := Null;
|
|
end;
|
|
|
|
|
|
{ TCuentasEspecialesDataTableRules }
|
|
constructor TCuentasEspecialesDataTableRules.Create(aDataTable: TDADataTable);
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
destructor TCuentasEspecialesDataTableRules.Destroy;
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
function TCuentasEspecialesDataTableRules.GetIDValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasEspecialesID].AsInteger;
|
|
end;
|
|
|
|
procedure TCuentasEspecialesDataTableRules.SetIDValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_CuentasEspecialesID].AsInteger := aValue;
|
|
end;
|
|
|
|
function TCuentasEspecialesDataTableRules.GetIDIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasEspecialesID].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasEspecialesDataTableRules.SetIDIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasEspecialesID].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasEspecialesDataTableRules.GetREFERENCIAValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasEspecialesREFERENCIA].AsString;
|
|
end;
|
|
|
|
procedure TCuentasEspecialesDataTableRules.SetREFERENCIAValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_CuentasEspecialesREFERENCIA].AsString := aValue;
|
|
end;
|
|
|
|
function TCuentasEspecialesDataTableRules.GetREFERENCIAIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasEspecialesREFERENCIA].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasEspecialesDataTableRules.SetREFERENCIAIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasEspecialesREFERENCIA].AsVariant := Null;
|
|
end;
|
|
|
|
function TCuentasEspecialesDataTableRules.GetDESCRIPCIONValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasEspecialesDESCRIPCION].AsString;
|
|
end;
|
|
|
|
procedure TCuentasEspecialesDataTableRules.SetDESCRIPCIONValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_CuentasEspecialesDESCRIPCION].AsString := aValue;
|
|
end;
|
|
|
|
function TCuentasEspecialesDataTableRules.GetDESCRIPCIONIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_CuentasEspecialesDESCRIPCION].IsNull;
|
|
end;
|
|
|
|
procedure TCuentasEspecialesDataTableRules.SetDESCRIPCIONIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_CuentasEspecialesDESCRIPCION].AsVariant := Null;
|
|
end;
|
|
|
|
|
|
{ TEpigrafesDataTableRules }
|
|
constructor TEpigrafesDataTableRules.Create(aDataTable: TDADataTable);
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
destructor TEpigrafesDataTableRules.Destroy;
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetIDValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesID].AsInteger;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetIDValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_EpigrafesID].AsInteger := aValue;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetIDIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesID].IsNull;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetIDIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_EpigrafesID].AsVariant := Null;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetREF_EPIGRAFEValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesREF_EPIGRAFE].AsString;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetREF_EPIGRAFEValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_EpigrafesREF_EPIGRAFE].AsString := aValue;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetREF_EPIGRAFEIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesREF_EPIGRAFE].IsNull;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetREF_EPIGRAFEIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_EpigrafesREF_EPIGRAFE].AsVariant := Null;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetDESCRIPCIONValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesDESCRIPCION].AsString;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetDESCRIPCIONValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_EpigrafesDESCRIPCION].AsString := aValue;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetDESCRIPCIONIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesDESCRIPCION].IsNull;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetDESCRIPCIONIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_EpigrafesDESCRIPCION].AsVariant := Null;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetID_EJERCICIOValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesID_EJERCICIO].AsInteger;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetID_EJERCICIOValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_EpigrafesID_EJERCICIO].AsInteger := aValue;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetID_EJERCICIOIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesID_EJERCICIO].IsNull;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetID_EJERCICIOIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_EpigrafesID_EJERCICIO].AsVariant := Null;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetID_PADREValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesID_PADRE].AsInteger;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetID_PADREValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_EpigrafesID_PADRE].AsInteger := aValue;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetID_PADREIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesID_PADRE].IsNull;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetID_PADREIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_EpigrafesID_PADRE].AsVariant := Null;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetEPIGRAFE_PADREValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesEPIGRAFE_PADRE].AsString;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetEPIGRAFE_PADREValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_EpigrafesEPIGRAFE_PADRE].AsString := aValue;
|
|
end;
|
|
|
|
function TEpigrafesDataTableRules.GetEPIGRAFE_PADREIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_EpigrafesEPIGRAFE_PADRE].IsNull;
|
|
end;
|
|
|
|
procedure TEpigrafesDataTableRules.SetEPIGRAFE_PADREIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_EpigrafesEPIGRAFE_PADRE].AsVariant := Null;
|
|
end;
|
|
|
|
|
|
{ TBalancesDataTableRules }
|
|
constructor TBalancesDataTableRules.Create(aDataTable: TDADataTable);
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
destructor TBalancesDataTableRules.Destroy;
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetIDValue: Integer;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesID].AsInteger;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetIDValue(const aValue: Integer);
|
|
begin
|
|
DataTable.Fields[idx_BalancesID].AsInteger := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetIDIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesID].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetIDIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesID].AsVariant := Null;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetREF_BALANCEValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesREF_BALANCE].AsString;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetREF_BALANCEValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_BalancesREF_BALANCE].AsString := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetREF_BALANCEIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesREF_BALANCE].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetREF_BALANCEIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesREF_BALANCE].AsVariant := Null;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetNATURALEZAValue: String;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesNATURALEZA].AsString;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetNATURALEZAValue(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_BalancesNATURALEZA].AsString := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetNATURALEZAIsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesNATURALEZA].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetNATURALEZAIsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesNATURALEZA].AsVariant := Null;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetNIVEL1Value: String;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesNIVEL1].AsString;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetNIVEL1Value(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_BalancesNIVEL1].AsString := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetNIVEL1IsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesNIVEL1].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetNIVEL1IsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesNIVEL1].AsVariant := Null;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetDESCRIPCION1Value: String;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesDESCRIPCION1].AsString;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetDESCRIPCION1Value(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_BalancesDESCRIPCION1].AsString := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetDESCRIPCION1IsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesDESCRIPCION1].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetDESCRIPCION1IsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesDESCRIPCION1].AsVariant := Null;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetNIVEL2Value: String;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesNIVEL2].AsString;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetNIVEL2Value(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_BalancesNIVEL2].AsString := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetNIVEL2IsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesNIVEL2].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetNIVEL2IsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesNIVEL2].AsVariant := Null;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetDESCRIPCION2Value: String;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesDESCRIPCION2].AsString;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetDESCRIPCION2Value(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_BalancesDESCRIPCION2].AsString := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetDESCRIPCION2IsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesDESCRIPCION2].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetDESCRIPCION2IsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesDESCRIPCION2].AsVariant := Null;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetNIVEL3Value: String;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesNIVEL3].AsString;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetNIVEL3Value(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_BalancesNIVEL3].AsString := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetNIVEL3IsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesNIVEL3].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetNIVEL3IsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesNIVEL3].AsVariant := Null;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetDESCRIPCION3Value: String;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesDESCRIPCION3].AsString;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetDESCRIPCION3Value(const aValue: String);
|
|
begin
|
|
DataTable.Fields[idx_BalancesDESCRIPCION3].AsString := aValue;
|
|
end;
|
|
|
|
function TBalancesDataTableRules.GetDESCRIPCION3IsNull: boolean;
|
|
begin
|
|
result := DataTable.Fields[idx_BalancesDESCRIPCION3].IsNull;
|
|
end;
|
|
|
|
procedure TBalancesDataTableRules.SetDESCRIPCION3IsNull(const aValue: Boolean);
|
|
begin
|
|
if aValue then
|
|
DataTable.Fields[idx_BalancesDESCRIPCION3].AsVariant := Null;
|
|
end;
|
|
|
|
|
|
initialization
|
|
RegisterDataTableRules(RID_Asientos, TAsientosDataTableRules);
|
|
RegisterDataTableRules(RID_SubCuentas, TSubCuentasDataTableRules);
|
|
RegisterDataTableRules(RID_Cuentas, TCuentasDataTableRules);
|
|
RegisterDataTableRules(RID_CuentasEspeciales, TCuentasEspecialesDataTableRules);
|
|
RegisterDataTableRules(RID_Epigrafes, TEpigrafesDataTableRules);
|
|
RegisterDataTableRules(RID_Balances, TBalancesDataTableRules);
|
|
|
|
end.
|