This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
LuisLeon_FactuGES2/Source/Modulos/Facturas proforma/Model/schFacturasProformaClient_Intf.pas
2013-12-09 09:40:14 +00:00

2046 lines
89 KiB
ObjectPascal

unit schFacturasProformaClient_Intf;
interface
uses
Classes, DB, schBase_Intf, SysUtils, uROClasses, uDAInterfaces, 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_ListaAnosFacturas = '{FEEF09C4-67C8-4306-BC5D-E9B624ED4218}';
RID_FacturasProforma = '{E96B0663-EB3C-45D1-8A6E-3A0178CC014A}';
RID_FacturasProforma_Detalles = '{318BEE60-3B5B-4A8C-9A41-DFD51E23B35C}';
{ Data table names }
nme_ListaAnosFacturas = 'ListaAnosFacturas';
nme_FacturasProforma = 'FacturasProforma';
nme_FacturasProforma_Detalles = 'FacturasProforma_Detalles';
{ ListaAnosFacturas fields }
fld_ListaAnosFacturasANO = 'ANO';
{ ListaAnosFacturas field indexes }
idx_ListaAnosFacturasANO = 0;
{ FacturasProforma fields }
fld_FacturasProformaID = 'ID';
fld_FacturasProformaID_EMPRESA = 'ID_EMPRESA';
fld_FacturasProformaREFERENCIA = 'REFERENCIA';
fld_FacturasProformaFECHA_FACTURA = 'FECHA_FACTURA';
fld_FacturasProformaFECHA_VENCIMIENTO = 'FECHA_VENCIMIENTO';
fld_FacturasProformaSITUACION = 'SITUACION';
fld_FacturasProformaBASE_IMPONIBLE = 'BASE_IMPONIBLE';
fld_FacturasProformaDESCUENTO = 'DESCUENTO';
fld_FacturasProformaIMPORTE_DESCUENTO = 'IMPORTE_DESCUENTO';
fld_FacturasProformaDESCRIPCION_DESCUENTO = 'DESCRIPCION_DESCUENTO';
fld_FacturasProformaIVA = 'IVA';
fld_FacturasProformaIMPORTE_IVA = 'IMPORTE_IVA';
fld_FacturasProformaRE = 'RE';
fld_FacturasProformaIMPORTE_RE = 'IMPORTE_RE';
fld_FacturasProformaIMPORTE_TOTAL = 'IMPORTE_TOTAL';
fld_FacturasProformaOBSERVACIONES = 'OBSERVACIONES';
fld_FacturasProformaID_CLIENTE = 'ID_CLIENTE';
fld_FacturasProformaNIF_CIF = 'NIF_CIF';
fld_FacturasProformaNOMBRE = 'NOMBRE';
fld_FacturasProformaID_DIRECCION = 'ID_DIRECCION';
fld_FacturasProformaCALLE = 'CALLE';
fld_FacturasProformaPOBLACION = 'POBLACION';
fld_FacturasProformaPROVINCIA = 'PROVINCIA';
fld_FacturasProformaCODIGO_POSTAL = 'CODIGO_POSTAL';
fld_FacturasProformaFECHA_ALTA = 'FECHA_ALTA';
fld_FacturasProformaFECHA_MODIFICACION = 'FECHA_MODIFICACION';
fld_FacturasProformaUSUARIO = 'USUARIO';
fld_FacturasProformaID_FORMA_PAGO = 'ID_FORMA_PAGO';
fld_FacturasProformaRECARGO_EQUIVALENCIA = 'RECARGO_EQUIVALENCIA';
fld_FacturasProformaID_TIPO_IVA = 'ID_TIPO_IVA';
fld_FacturasProformaIMPORTE_NETO = 'IMPORTE_NETO';
fld_FacturasProformaIMPORTE_PORTE = 'IMPORTE_PORTE';
fld_FacturasProformaNUM_COPIAS = 'NUM_COPIAS';
fld_FacturasProformaNUM_CORREOS = 'NUM_CORREOS';
fld_FacturasProformaDATOS_BANCARIOS = 'DATOS_BANCARIOS';
fld_FacturasProformaREFERENCIA_CLIENTE = 'REFERENCIA_CLIENTE';
fld_FacturasProformaID_PEDIDO = 'ID_PEDIDO';
fld_FacturasProformaID_FACTURA_FINAL = 'ID_FACTURA_FINAL';
{ FacturasProforma field indexes }
idx_FacturasProformaID = 0;
idx_FacturasProformaID_EMPRESA = 1;
idx_FacturasProformaREFERENCIA = 2;
idx_FacturasProformaFECHA_FACTURA = 3;
idx_FacturasProformaFECHA_VENCIMIENTO = 4;
idx_FacturasProformaSITUACION = 5;
idx_FacturasProformaBASE_IMPONIBLE = 6;
idx_FacturasProformaDESCUENTO = 7;
idx_FacturasProformaIMPORTE_DESCUENTO = 8;
idx_FacturasProformaDESCRIPCION_DESCUENTO = 9;
idx_FacturasProformaIVA = 10;
idx_FacturasProformaIMPORTE_IVA = 11;
idx_FacturasProformaRE = 12;
idx_FacturasProformaIMPORTE_RE = 13;
idx_FacturasProformaIMPORTE_TOTAL = 14;
idx_FacturasProformaOBSERVACIONES = 15;
idx_FacturasProformaID_CLIENTE = 16;
idx_FacturasProformaNIF_CIF = 17;
idx_FacturasProformaNOMBRE = 18;
idx_FacturasProformaID_DIRECCION = 19;
idx_FacturasProformaCALLE = 20;
idx_FacturasProformaPOBLACION = 21;
idx_FacturasProformaPROVINCIA = 22;
idx_FacturasProformaCODIGO_POSTAL = 23;
idx_FacturasProformaFECHA_ALTA = 24;
idx_FacturasProformaFECHA_MODIFICACION = 25;
idx_FacturasProformaUSUARIO = 26;
idx_FacturasProformaID_FORMA_PAGO = 27;
idx_FacturasProformaRECARGO_EQUIVALENCIA = 28;
idx_FacturasProformaID_TIPO_IVA = 29;
idx_FacturasProformaIMPORTE_NETO = 30;
idx_FacturasProformaIMPORTE_PORTE = 31;
idx_FacturasProformaNUM_COPIAS = 32;
idx_FacturasProformaNUM_CORREOS = 33;
idx_FacturasProformaDATOS_BANCARIOS = 34;
idx_FacturasProformaREFERENCIA_CLIENTE = 35;
idx_FacturasProformaID_PEDIDO = 36;
idx_FacturasProformaID_FACTURA_FINAL = 37;
{ FacturasProforma_Detalles fields }
fld_FacturasProforma_DetallesID = 'ID';
fld_FacturasProforma_DetallesID_FACTURA = 'ID_FACTURA';
fld_FacturasProforma_DetallesPOSICION = 'POSICION';
fld_FacturasProforma_DetallesTIPO_DETALLE = 'TIPO_DETALLE';
fld_FacturasProforma_DetallesCONCEPTO = 'CONCEPTO';
fld_FacturasProforma_DetallesCANTIDAD = 'CANTIDAD';
fld_FacturasProforma_DetallesUNIDAD_MEDIDA = 'UNIDAD_MEDIDA';
fld_FacturasProforma_DetallesIMPORTE_UNIDAD = 'IMPORTE_UNIDAD';
fld_FacturasProforma_DetallesIMPORTE_TOTAL = 'IMPORTE_TOTAL';
fld_FacturasProforma_DetallesVISIBLE = 'VISIBLE';
fld_FacturasProforma_DetallesID_ARTICULO = 'ID_ARTICULO';
fld_FacturasProforma_DetallesDESCUENTO = 'DESCUENTO';
fld_FacturasProforma_DetallesIMPORTE_PORTE = 'IMPORTE_PORTE';
fld_FacturasProforma_DetallesREFERENCIA = 'REFERENCIA';
fld_FacturasProforma_DetallesREFERENCIA_PROVEEDOR = 'REFERENCIA_PROVEEDOR';
{ FacturasProforma_Detalles field indexes }
idx_FacturasProforma_DetallesID = 0;
idx_FacturasProforma_DetallesID_FACTURA = 1;
idx_FacturasProforma_DetallesPOSICION = 2;
idx_FacturasProforma_DetallesTIPO_DETALLE = 3;
idx_FacturasProforma_DetallesCONCEPTO = 4;
idx_FacturasProforma_DetallesCANTIDAD = 5;
idx_FacturasProforma_DetallesUNIDAD_MEDIDA = 6;
idx_FacturasProforma_DetallesIMPORTE_UNIDAD = 7;
idx_FacturasProforma_DetallesIMPORTE_TOTAL = 8;
idx_FacturasProforma_DetallesVISIBLE = 9;
idx_FacturasProforma_DetallesID_ARTICULO = 10;
idx_FacturasProforma_DetallesDESCUENTO = 11;
idx_FacturasProforma_DetallesIMPORTE_PORTE = 12;
idx_FacturasProforma_DetallesREFERENCIA = 13;
idx_FacturasProforma_DetallesREFERENCIA_PROVEEDOR = 14;
type
{ IListaAnosFacturas }
IListaAnosFacturas = interface(IDAStronglyTypedDataTable)
['{CBCFE754-67D7-40A8-B21A-4450E8EC413F}']
{ Property getters and setters }
function GetANOValue: String;
procedure SetANOValue(const aValue: String);
function GetANOIsNull: Boolean;
procedure SetANOIsNull(const aValue: Boolean);
{ Properties }
property ANO: String read GetANOValue write SetANOValue;
property ANOIsNull: Boolean read GetANOIsNull write SetANOIsNull;
end;
{ TListaAnosFacturasDataTableRules }
TListaAnosFacturasDataTableRules = class(TIntfObjectDADataTableRules, IListaAnosFacturas)
private
protected
{ Property getters and setters }
function GetANOValue: String; virtual;
procedure SetANOValue(const aValue: String); virtual;
function GetANOIsNull: Boolean; virtual;
procedure SetANOIsNull(const aValue: Boolean); virtual;
{ Properties }
property ANO: String read GetANOValue write SetANOValue;
property ANOIsNull: Boolean read GetANOIsNull write SetANOIsNull;
public
constructor Create(aDataTable: TDADataTable); override;
destructor Destroy; override;
end;
{ IFacturasProforma }
IFacturasProforma = interface(IDAStronglyTypedDataTable)
['{F8DFF550-5A11-49CC-976D-93AEECB72322}']
{ Property getters and setters }
function GetIDValue: Integer;
procedure SetIDValue(const aValue: Integer);
function GetIDIsNull: Boolean;
procedure SetIDIsNull(const aValue: Boolean);
function GetID_EMPRESAValue: Integer;
procedure SetID_EMPRESAValue(const aValue: Integer);
function GetID_EMPRESAIsNull: Boolean;
procedure SetID_EMPRESAIsNull(const aValue: Boolean);
function GetREFERENCIAValue: String;
procedure SetREFERENCIAValue(const aValue: String);
function GetREFERENCIAIsNull: Boolean;
procedure SetREFERENCIAIsNull(const aValue: Boolean);
function GetFECHA_FACTURAValue: DateTime;
procedure SetFECHA_FACTURAValue(const aValue: DateTime);
function GetFECHA_FACTURAIsNull: Boolean;
procedure SetFECHA_FACTURAIsNull(const aValue: Boolean);
function GetFECHA_VENCIMIENTOValue: DateTime;
procedure SetFECHA_VENCIMIENTOValue(const aValue: DateTime);
function GetFECHA_VENCIMIENTOIsNull: Boolean;
procedure SetFECHA_VENCIMIENTOIsNull(const aValue: Boolean);
function GetSITUACIONValue: String;
procedure SetSITUACIONValue(const aValue: String);
function GetSITUACIONIsNull: Boolean;
procedure SetSITUACIONIsNull(const aValue: Boolean);
function GetBASE_IMPONIBLEValue: Currency;
procedure SetBASE_IMPONIBLEValue(const aValue: Currency);
function GetBASE_IMPONIBLEIsNull: Boolean;
procedure SetBASE_IMPONIBLEIsNull(const aValue: Boolean);
function GetDESCUENTOValue: Float;
procedure SetDESCUENTOValue(const aValue: Float);
function GetDESCUENTOIsNull: Boolean;
procedure SetDESCUENTOIsNull(const aValue: Boolean);
function GetIMPORTE_DESCUENTOValue: Currency;
procedure SetIMPORTE_DESCUENTOValue(const aValue: Currency);
function GetIMPORTE_DESCUENTOIsNull: Boolean;
procedure SetIMPORTE_DESCUENTOIsNull(const aValue: Boolean);
function GetDESCRIPCION_DESCUENTOValue: String;
procedure SetDESCRIPCION_DESCUENTOValue(const aValue: String);
function GetDESCRIPCION_DESCUENTOIsNull: Boolean;
procedure SetDESCRIPCION_DESCUENTOIsNull(const aValue: Boolean);
function GetIVAValue: Float;
procedure SetIVAValue(const aValue: Float);
function GetIVAIsNull: Boolean;
procedure SetIVAIsNull(const aValue: Boolean);
function GetIMPORTE_IVAValue: Currency;
procedure SetIMPORTE_IVAValue(const aValue: Currency);
function GetIMPORTE_IVAIsNull: Boolean;
procedure SetIMPORTE_IVAIsNull(const aValue: Boolean);
function GetREValue: Float;
procedure SetREValue(const aValue: Float);
function GetREIsNull: Boolean;
procedure SetREIsNull(const aValue: Boolean);
function GetIMPORTE_REValue: Currency;
procedure SetIMPORTE_REValue(const aValue: Currency);
function GetIMPORTE_REIsNull: Boolean;
procedure SetIMPORTE_REIsNull(const aValue: Boolean);
function GetIMPORTE_TOTALValue: Currency;
procedure SetIMPORTE_TOTALValue(const aValue: Currency);
function GetIMPORTE_TOTALIsNull: Boolean;
procedure SetIMPORTE_TOTALIsNull(const aValue: Boolean);
function GetOBSERVACIONESValue: IROStrings;
function GetOBSERVACIONESIsNull: Boolean;
procedure SetOBSERVACIONESIsNull(const aValue: Boolean);
function GetID_CLIENTEValue: Integer;
procedure SetID_CLIENTEValue(const aValue: Integer);
function GetID_CLIENTEIsNull: Boolean;
procedure SetID_CLIENTEIsNull(const aValue: Boolean);
function GetNIF_CIFValue: String;
procedure SetNIF_CIFValue(const aValue: String);
function GetNIF_CIFIsNull: Boolean;
procedure SetNIF_CIFIsNull(const aValue: Boolean);
function GetNOMBREValue: String;
procedure SetNOMBREValue(const aValue: String);
function GetNOMBREIsNull: Boolean;
procedure SetNOMBREIsNull(const aValue: Boolean);
function GetID_DIRECCIONValue: Integer;
procedure SetID_DIRECCIONValue(const aValue: Integer);
function GetID_DIRECCIONIsNull: Boolean;
procedure SetID_DIRECCIONIsNull(const aValue: Boolean);
function GetCALLEValue: String;
procedure SetCALLEValue(const aValue: String);
function GetCALLEIsNull: Boolean;
procedure SetCALLEIsNull(const aValue: Boolean);
function GetPOBLACIONValue: String;
procedure SetPOBLACIONValue(const aValue: String);
function GetPOBLACIONIsNull: Boolean;
procedure SetPOBLACIONIsNull(const aValue: Boolean);
function GetPROVINCIAValue: String;
procedure SetPROVINCIAValue(const aValue: String);
function GetPROVINCIAIsNull: Boolean;
procedure SetPROVINCIAIsNull(const aValue: Boolean);
function GetCODIGO_POSTALValue: String;
procedure SetCODIGO_POSTALValue(const aValue: String);
function GetCODIGO_POSTALIsNull: Boolean;
procedure SetCODIGO_POSTALIsNull(const aValue: Boolean);
function GetFECHA_ALTAValue: DateTime;
procedure SetFECHA_ALTAValue(const aValue: DateTime);
function GetFECHA_ALTAIsNull: Boolean;
procedure SetFECHA_ALTAIsNull(const aValue: Boolean);
function GetFECHA_MODIFICACIONValue: DateTime;
procedure SetFECHA_MODIFICACIONValue(const aValue: DateTime);
function GetFECHA_MODIFICACIONIsNull: Boolean;
procedure SetFECHA_MODIFICACIONIsNull(const aValue: Boolean);
function GetUSUARIOValue: String;
procedure SetUSUARIOValue(const aValue: String);
function GetUSUARIOIsNull: Boolean;
procedure SetUSUARIOIsNull(const aValue: Boolean);
function GetID_FORMA_PAGOValue: Integer;
procedure SetID_FORMA_PAGOValue(const aValue: Integer);
function GetID_FORMA_PAGOIsNull: Boolean;
procedure SetID_FORMA_PAGOIsNull(const aValue: Boolean);
function GetRECARGO_EQUIVALENCIAValue: SmallInt;
procedure SetRECARGO_EQUIVALENCIAValue(const aValue: SmallInt);
function GetRECARGO_EQUIVALENCIAIsNull: Boolean;
procedure SetRECARGO_EQUIVALENCIAIsNull(const aValue: Boolean);
function GetID_TIPO_IVAValue: Integer;
procedure SetID_TIPO_IVAValue(const aValue: Integer);
function GetID_TIPO_IVAIsNull: Boolean;
procedure SetID_TIPO_IVAIsNull(const aValue: Boolean);
function GetIMPORTE_NETOValue: Currency;
procedure SetIMPORTE_NETOValue(const aValue: Currency);
function GetIMPORTE_NETOIsNull: Boolean;
procedure SetIMPORTE_NETOIsNull(const aValue: Boolean);
function GetIMPORTE_PORTEValue: Currency;
procedure SetIMPORTE_PORTEValue(const aValue: Currency);
function GetIMPORTE_PORTEIsNull: Boolean;
procedure SetIMPORTE_PORTEIsNull(const aValue: Boolean);
function GetNUM_COPIASValue: SmallInt;
procedure SetNUM_COPIASValue(const aValue: SmallInt);
function GetNUM_COPIASIsNull: Boolean;
procedure SetNUM_COPIASIsNull(const aValue: Boolean);
function GetNUM_CORREOSValue: SmallInt;
procedure SetNUM_CORREOSValue(const aValue: SmallInt);
function GetNUM_CORREOSIsNull: Boolean;
procedure SetNUM_CORREOSIsNull(const aValue: Boolean);
function GetDATOS_BANCARIOSValue: String;
procedure SetDATOS_BANCARIOSValue(const aValue: String);
function GetDATOS_BANCARIOSIsNull: Boolean;
procedure SetDATOS_BANCARIOSIsNull(const aValue: Boolean);
function GetREFERENCIA_CLIENTEValue: String;
procedure SetREFERENCIA_CLIENTEValue(const aValue: String);
function GetREFERENCIA_CLIENTEIsNull: Boolean;
procedure SetREFERENCIA_CLIENTEIsNull(const aValue: Boolean);
function GetID_PEDIDOValue: Integer;
procedure SetID_PEDIDOValue(const aValue: Integer);
function GetID_PEDIDOIsNull: Boolean;
procedure SetID_PEDIDOIsNull(const aValue: Boolean);
function GetID_FACTURA_FINALValue: Integer;
procedure SetID_FACTURA_FINALValue(const aValue: Integer);
function GetID_FACTURA_FINALIsNull: Boolean;
procedure SetID_FACTURA_FINALIsNull(const aValue: Boolean);
{ Properties }
property ID: Integer read GetIDValue write SetIDValue;
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
property ID_EMPRESA: Integer read GetID_EMPRESAValue write SetID_EMPRESAValue;
property ID_EMPRESAIsNull: Boolean read GetID_EMPRESAIsNull write SetID_EMPRESAIsNull;
property REFERENCIA: String read GetREFERENCIAValue write SetREFERENCIAValue;
property REFERENCIAIsNull: Boolean read GetREFERENCIAIsNull write SetREFERENCIAIsNull;
property FECHA_FACTURA: DateTime read GetFECHA_FACTURAValue write SetFECHA_FACTURAValue;
property FECHA_FACTURAIsNull: Boolean read GetFECHA_FACTURAIsNull write SetFECHA_FACTURAIsNull;
property FECHA_VENCIMIENTO: DateTime read GetFECHA_VENCIMIENTOValue write SetFECHA_VENCIMIENTOValue;
property FECHA_VENCIMIENTOIsNull: Boolean read GetFECHA_VENCIMIENTOIsNull write SetFECHA_VENCIMIENTOIsNull;
property SITUACION: String read GetSITUACIONValue write SetSITUACIONValue;
property SITUACIONIsNull: Boolean read GetSITUACIONIsNull write SetSITUACIONIsNull;
property BASE_IMPONIBLE: Currency read GetBASE_IMPONIBLEValue write SetBASE_IMPONIBLEValue;
property BASE_IMPONIBLEIsNull: Boolean read GetBASE_IMPONIBLEIsNull write SetBASE_IMPONIBLEIsNull;
property DESCUENTO: Float read GetDESCUENTOValue write SetDESCUENTOValue;
property DESCUENTOIsNull: Boolean read GetDESCUENTOIsNull write SetDESCUENTOIsNull;
property IMPORTE_DESCUENTO: Currency read GetIMPORTE_DESCUENTOValue write SetIMPORTE_DESCUENTOValue;
property IMPORTE_DESCUENTOIsNull: Boolean read GetIMPORTE_DESCUENTOIsNull write SetIMPORTE_DESCUENTOIsNull;
property DESCRIPCION_DESCUENTO: String read GetDESCRIPCION_DESCUENTOValue write SetDESCRIPCION_DESCUENTOValue;
property DESCRIPCION_DESCUENTOIsNull: Boolean read GetDESCRIPCION_DESCUENTOIsNull write SetDESCRIPCION_DESCUENTOIsNull;
property IVA: Float read GetIVAValue write SetIVAValue;
property IVAIsNull: Boolean read GetIVAIsNull write SetIVAIsNull;
property IMPORTE_IVA: Currency read GetIMPORTE_IVAValue write SetIMPORTE_IVAValue;
property IMPORTE_IVAIsNull: Boolean read GetIMPORTE_IVAIsNull write SetIMPORTE_IVAIsNull;
property RE: Float read GetREValue write SetREValue;
property REIsNull: Boolean read GetREIsNull write SetREIsNull;
property IMPORTE_RE: Currency read GetIMPORTE_REValue write SetIMPORTE_REValue;
property IMPORTE_REIsNull: Boolean read GetIMPORTE_REIsNull write SetIMPORTE_REIsNull;
property IMPORTE_TOTAL: Currency read GetIMPORTE_TOTALValue write SetIMPORTE_TOTALValue;
property IMPORTE_TOTALIsNull: Boolean read GetIMPORTE_TOTALIsNull write SetIMPORTE_TOTALIsNull;
property OBSERVACIONES: IROStrings read GetOBSERVACIONESValue;
property OBSERVACIONESIsNull: Boolean read GetOBSERVACIONESIsNull write SetOBSERVACIONESIsNull;
property ID_CLIENTE: Integer read GetID_CLIENTEValue write SetID_CLIENTEValue;
property ID_CLIENTEIsNull: Boolean read GetID_CLIENTEIsNull write SetID_CLIENTEIsNull;
property NIF_CIF: String read GetNIF_CIFValue write SetNIF_CIFValue;
property NIF_CIFIsNull: Boolean read GetNIF_CIFIsNull write SetNIF_CIFIsNull;
property NOMBRE: String read GetNOMBREValue write SetNOMBREValue;
property NOMBREIsNull: Boolean read GetNOMBREIsNull write SetNOMBREIsNull;
property ID_DIRECCION: Integer read GetID_DIRECCIONValue write SetID_DIRECCIONValue;
property ID_DIRECCIONIsNull: Boolean read GetID_DIRECCIONIsNull write SetID_DIRECCIONIsNull;
property CALLE: String read GetCALLEValue write SetCALLEValue;
property CALLEIsNull: Boolean read GetCALLEIsNull write SetCALLEIsNull;
property POBLACION: String read GetPOBLACIONValue write SetPOBLACIONValue;
property POBLACIONIsNull: Boolean read GetPOBLACIONIsNull write SetPOBLACIONIsNull;
property PROVINCIA: String read GetPROVINCIAValue write SetPROVINCIAValue;
property PROVINCIAIsNull: Boolean read GetPROVINCIAIsNull write SetPROVINCIAIsNull;
property CODIGO_POSTAL: String read GetCODIGO_POSTALValue write SetCODIGO_POSTALValue;
property CODIGO_POSTALIsNull: Boolean read GetCODIGO_POSTALIsNull write SetCODIGO_POSTALIsNull;
property FECHA_ALTA: DateTime read GetFECHA_ALTAValue write SetFECHA_ALTAValue;
property FECHA_ALTAIsNull: Boolean read GetFECHA_ALTAIsNull write SetFECHA_ALTAIsNull;
property FECHA_MODIFICACION: DateTime read GetFECHA_MODIFICACIONValue write SetFECHA_MODIFICACIONValue;
property FECHA_MODIFICACIONIsNull: Boolean read GetFECHA_MODIFICACIONIsNull write SetFECHA_MODIFICACIONIsNull;
property USUARIO: String read GetUSUARIOValue write SetUSUARIOValue;
property USUARIOIsNull: Boolean read GetUSUARIOIsNull write SetUSUARIOIsNull;
property ID_FORMA_PAGO: Integer read GetID_FORMA_PAGOValue write SetID_FORMA_PAGOValue;
property ID_FORMA_PAGOIsNull: Boolean read GetID_FORMA_PAGOIsNull write SetID_FORMA_PAGOIsNull;
property RECARGO_EQUIVALENCIA: SmallInt read GetRECARGO_EQUIVALENCIAValue write SetRECARGO_EQUIVALENCIAValue;
property RECARGO_EQUIVALENCIAIsNull: Boolean read GetRECARGO_EQUIVALENCIAIsNull write SetRECARGO_EQUIVALENCIAIsNull;
property ID_TIPO_IVA: Integer read GetID_TIPO_IVAValue write SetID_TIPO_IVAValue;
property ID_TIPO_IVAIsNull: Boolean read GetID_TIPO_IVAIsNull write SetID_TIPO_IVAIsNull;
property IMPORTE_NETO: Currency read GetIMPORTE_NETOValue write SetIMPORTE_NETOValue;
property IMPORTE_NETOIsNull: Boolean read GetIMPORTE_NETOIsNull write SetIMPORTE_NETOIsNull;
property IMPORTE_PORTE: Currency read GetIMPORTE_PORTEValue write SetIMPORTE_PORTEValue;
property IMPORTE_PORTEIsNull: Boolean read GetIMPORTE_PORTEIsNull write SetIMPORTE_PORTEIsNull;
property NUM_COPIAS: SmallInt read GetNUM_COPIASValue write SetNUM_COPIASValue;
property NUM_COPIASIsNull: Boolean read GetNUM_COPIASIsNull write SetNUM_COPIASIsNull;
property NUM_CORREOS: SmallInt read GetNUM_CORREOSValue write SetNUM_CORREOSValue;
property NUM_CORREOSIsNull: Boolean read GetNUM_CORREOSIsNull write SetNUM_CORREOSIsNull;
property DATOS_BANCARIOS: String read GetDATOS_BANCARIOSValue write SetDATOS_BANCARIOSValue;
property DATOS_BANCARIOSIsNull: Boolean read GetDATOS_BANCARIOSIsNull write SetDATOS_BANCARIOSIsNull;
property REFERENCIA_CLIENTE: String read GetREFERENCIA_CLIENTEValue write SetREFERENCIA_CLIENTEValue;
property REFERENCIA_CLIENTEIsNull: Boolean read GetREFERENCIA_CLIENTEIsNull write SetREFERENCIA_CLIENTEIsNull;
property ID_PEDIDO: Integer read GetID_PEDIDOValue write SetID_PEDIDOValue;
property ID_PEDIDOIsNull: Boolean read GetID_PEDIDOIsNull write SetID_PEDIDOIsNull;
property ID_FACTURA_FINAL: Integer read GetID_FACTURA_FINALValue write SetID_FACTURA_FINALValue;
property ID_FACTURA_FINALIsNull: Boolean read GetID_FACTURA_FINALIsNull write SetID_FACTURA_FINALIsNull;
end;
{ TFacturasProformaDataTableRules }
TFacturasProformaDataTableRules = class(TIntfObjectDADataTableRules, IFacturasProforma)
private
f_OBSERVACIONES: IROStrings;
procedure OBSERVACIONES_OnChange(Sender: TObject);
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_EMPRESAValue: Integer; virtual;
procedure SetID_EMPRESAValue(const aValue: Integer); virtual;
function GetID_EMPRESAIsNull: Boolean; virtual;
procedure SetID_EMPRESAIsNull(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 GetFECHA_FACTURAValue: DateTime; virtual;
procedure SetFECHA_FACTURAValue(const aValue: DateTime); virtual;
function GetFECHA_FACTURAIsNull: Boolean; virtual;
procedure SetFECHA_FACTURAIsNull(const aValue: Boolean); virtual;
function GetFECHA_VENCIMIENTOValue: DateTime; virtual;
procedure SetFECHA_VENCIMIENTOValue(const aValue: DateTime); virtual;
function GetFECHA_VENCIMIENTOIsNull: Boolean; virtual;
procedure SetFECHA_VENCIMIENTOIsNull(const aValue: Boolean); virtual;
function GetSITUACIONValue: String; virtual;
procedure SetSITUACIONValue(const aValue: String); virtual;
function GetSITUACIONIsNull: Boolean; virtual;
procedure SetSITUACIONIsNull(const aValue: Boolean); virtual;
function GetBASE_IMPONIBLEValue: Currency; virtual;
procedure SetBASE_IMPONIBLEValue(const aValue: Currency); virtual;
function GetBASE_IMPONIBLEIsNull: Boolean; virtual;
procedure SetBASE_IMPONIBLEIsNull(const aValue: Boolean); virtual;
function GetDESCUENTOValue: Float; virtual;
procedure SetDESCUENTOValue(const aValue: Float); virtual;
function GetDESCUENTOIsNull: Boolean; virtual;
procedure SetDESCUENTOIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_DESCUENTOValue: Currency; virtual;
procedure SetIMPORTE_DESCUENTOValue(const aValue: Currency); virtual;
function GetIMPORTE_DESCUENTOIsNull: Boolean; virtual;
procedure SetIMPORTE_DESCUENTOIsNull(const aValue: Boolean); virtual;
function GetDESCRIPCION_DESCUENTOValue: String; virtual;
procedure SetDESCRIPCION_DESCUENTOValue(const aValue: String); virtual;
function GetDESCRIPCION_DESCUENTOIsNull: Boolean; virtual;
procedure SetDESCRIPCION_DESCUENTOIsNull(const aValue: Boolean); virtual;
function GetIVAValue: Float; virtual;
procedure SetIVAValue(const aValue: Float); virtual;
function GetIVAIsNull: Boolean; virtual;
procedure SetIVAIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_IVAValue: Currency; virtual;
procedure SetIMPORTE_IVAValue(const aValue: Currency); virtual;
function GetIMPORTE_IVAIsNull: Boolean; virtual;
procedure SetIMPORTE_IVAIsNull(const aValue: Boolean); virtual;
function GetREValue: Float; virtual;
procedure SetREValue(const aValue: Float); virtual;
function GetREIsNull: Boolean; virtual;
procedure SetREIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_REValue: Currency; virtual;
procedure SetIMPORTE_REValue(const aValue: Currency); virtual;
function GetIMPORTE_REIsNull: Boolean; virtual;
procedure SetIMPORTE_REIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_TOTALValue: Currency; virtual;
procedure SetIMPORTE_TOTALValue(const aValue: Currency); virtual;
function GetIMPORTE_TOTALIsNull: Boolean; virtual;
procedure SetIMPORTE_TOTALIsNull(const aValue: Boolean); virtual;
function GetOBSERVACIONESValue: IROStrings; virtual;
function GetOBSERVACIONESIsNull: Boolean; virtual;
procedure SetOBSERVACIONESIsNull(const aValue: Boolean); virtual;
function GetID_CLIENTEValue: Integer; virtual;
procedure SetID_CLIENTEValue(const aValue: Integer); virtual;
function GetID_CLIENTEIsNull: Boolean; virtual;
procedure SetID_CLIENTEIsNull(const aValue: Boolean); virtual;
function GetNIF_CIFValue: String; virtual;
procedure SetNIF_CIFValue(const aValue: String); virtual;
function GetNIF_CIFIsNull: Boolean; virtual;
procedure SetNIF_CIFIsNull(const aValue: Boolean); virtual;
function GetNOMBREValue: String; virtual;
procedure SetNOMBREValue(const aValue: String); virtual;
function GetNOMBREIsNull: Boolean; virtual;
procedure SetNOMBREIsNull(const aValue: Boolean); virtual;
function GetID_DIRECCIONValue: Integer; virtual;
procedure SetID_DIRECCIONValue(const aValue: Integer); virtual;
function GetID_DIRECCIONIsNull: Boolean; virtual;
procedure SetID_DIRECCIONIsNull(const aValue: Boolean); virtual;
function GetCALLEValue: String; virtual;
procedure SetCALLEValue(const aValue: String); virtual;
function GetCALLEIsNull: Boolean; virtual;
procedure SetCALLEIsNull(const aValue: Boolean); virtual;
function GetPOBLACIONValue: String; virtual;
procedure SetPOBLACIONValue(const aValue: String); virtual;
function GetPOBLACIONIsNull: Boolean; virtual;
procedure SetPOBLACIONIsNull(const aValue: Boolean); virtual;
function GetPROVINCIAValue: String; virtual;
procedure SetPROVINCIAValue(const aValue: String); virtual;
function GetPROVINCIAIsNull: Boolean; virtual;
procedure SetPROVINCIAIsNull(const aValue: Boolean); virtual;
function GetCODIGO_POSTALValue: String; virtual;
procedure SetCODIGO_POSTALValue(const aValue: String); virtual;
function GetCODIGO_POSTALIsNull: Boolean; virtual;
procedure SetCODIGO_POSTALIsNull(const aValue: Boolean); virtual;
function GetFECHA_ALTAValue: DateTime; virtual;
procedure SetFECHA_ALTAValue(const aValue: DateTime); virtual;
function GetFECHA_ALTAIsNull: Boolean; virtual;
procedure SetFECHA_ALTAIsNull(const aValue: Boolean); virtual;
function GetFECHA_MODIFICACIONValue: DateTime; virtual;
procedure SetFECHA_MODIFICACIONValue(const aValue: DateTime); virtual;
function GetFECHA_MODIFICACIONIsNull: Boolean; virtual;
procedure SetFECHA_MODIFICACIONIsNull(const aValue: Boolean); virtual;
function GetUSUARIOValue: String; virtual;
procedure SetUSUARIOValue(const aValue: String); virtual;
function GetUSUARIOIsNull: Boolean; virtual;
procedure SetUSUARIOIsNull(const aValue: Boolean); virtual;
function GetID_FORMA_PAGOValue: Integer; virtual;
procedure SetID_FORMA_PAGOValue(const aValue: Integer); virtual;
function GetID_FORMA_PAGOIsNull: Boolean; virtual;
procedure SetID_FORMA_PAGOIsNull(const aValue: Boolean); virtual;
function GetRECARGO_EQUIVALENCIAValue: SmallInt; virtual;
procedure SetRECARGO_EQUIVALENCIAValue(const aValue: SmallInt); virtual;
function GetRECARGO_EQUIVALENCIAIsNull: Boolean; virtual;
procedure SetRECARGO_EQUIVALENCIAIsNull(const aValue: Boolean); virtual;
function GetID_TIPO_IVAValue: Integer; virtual;
procedure SetID_TIPO_IVAValue(const aValue: Integer); virtual;
function GetID_TIPO_IVAIsNull: Boolean; virtual;
procedure SetID_TIPO_IVAIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_NETOValue: Currency; virtual;
procedure SetIMPORTE_NETOValue(const aValue: Currency); virtual;
function GetIMPORTE_NETOIsNull: Boolean; virtual;
procedure SetIMPORTE_NETOIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_PORTEValue: Currency; virtual;
procedure SetIMPORTE_PORTEValue(const aValue: Currency); virtual;
function GetIMPORTE_PORTEIsNull: Boolean; virtual;
procedure SetIMPORTE_PORTEIsNull(const aValue: Boolean); virtual;
function GetNUM_COPIASValue: SmallInt; virtual;
procedure SetNUM_COPIASValue(const aValue: SmallInt); virtual;
function GetNUM_COPIASIsNull: Boolean; virtual;
procedure SetNUM_COPIASIsNull(const aValue: Boolean); virtual;
function GetNUM_CORREOSValue: SmallInt; virtual;
procedure SetNUM_CORREOSValue(const aValue: SmallInt); virtual;
function GetNUM_CORREOSIsNull: Boolean; virtual;
procedure SetNUM_CORREOSIsNull(const aValue: Boolean); virtual;
function GetDATOS_BANCARIOSValue: String; virtual;
procedure SetDATOS_BANCARIOSValue(const aValue: String); virtual;
function GetDATOS_BANCARIOSIsNull: Boolean; virtual;
procedure SetDATOS_BANCARIOSIsNull(const aValue: Boolean); virtual;
function GetREFERENCIA_CLIENTEValue: String; virtual;
procedure SetREFERENCIA_CLIENTEValue(const aValue: String); virtual;
function GetREFERENCIA_CLIENTEIsNull: Boolean; virtual;
procedure SetREFERENCIA_CLIENTEIsNull(const aValue: Boolean); virtual;
function GetID_PEDIDOValue: Integer; virtual;
procedure SetID_PEDIDOValue(const aValue: Integer); virtual;
function GetID_PEDIDOIsNull: Boolean; virtual;
procedure SetID_PEDIDOIsNull(const aValue: Boolean); virtual;
function GetID_FACTURA_FINALValue: Integer; virtual;
procedure SetID_FACTURA_FINALValue(const aValue: Integer); virtual;
function GetID_FACTURA_FINALIsNull: Boolean; virtual;
procedure SetID_FACTURA_FINALIsNull(const aValue: Boolean); virtual;
{ Properties }
property ID: Integer read GetIDValue write SetIDValue;
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
property ID_EMPRESA: Integer read GetID_EMPRESAValue write SetID_EMPRESAValue;
property ID_EMPRESAIsNull: Boolean read GetID_EMPRESAIsNull write SetID_EMPRESAIsNull;
property REFERENCIA: String read GetREFERENCIAValue write SetREFERENCIAValue;
property REFERENCIAIsNull: Boolean read GetREFERENCIAIsNull write SetREFERENCIAIsNull;
property FECHA_FACTURA: DateTime read GetFECHA_FACTURAValue write SetFECHA_FACTURAValue;
property FECHA_FACTURAIsNull: Boolean read GetFECHA_FACTURAIsNull write SetFECHA_FACTURAIsNull;
property FECHA_VENCIMIENTO: DateTime read GetFECHA_VENCIMIENTOValue write SetFECHA_VENCIMIENTOValue;
property FECHA_VENCIMIENTOIsNull: Boolean read GetFECHA_VENCIMIENTOIsNull write SetFECHA_VENCIMIENTOIsNull;
property SITUACION: String read GetSITUACIONValue write SetSITUACIONValue;
property SITUACIONIsNull: Boolean read GetSITUACIONIsNull write SetSITUACIONIsNull;
property BASE_IMPONIBLE: Currency read GetBASE_IMPONIBLEValue write SetBASE_IMPONIBLEValue;
property BASE_IMPONIBLEIsNull: Boolean read GetBASE_IMPONIBLEIsNull write SetBASE_IMPONIBLEIsNull;
property DESCUENTO: Float read GetDESCUENTOValue write SetDESCUENTOValue;
property DESCUENTOIsNull: Boolean read GetDESCUENTOIsNull write SetDESCUENTOIsNull;
property IMPORTE_DESCUENTO: Currency read GetIMPORTE_DESCUENTOValue write SetIMPORTE_DESCUENTOValue;
property IMPORTE_DESCUENTOIsNull: Boolean read GetIMPORTE_DESCUENTOIsNull write SetIMPORTE_DESCUENTOIsNull;
property DESCRIPCION_DESCUENTO: String read GetDESCRIPCION_DESCUENTOValue write SetDESCRIPCION_DESCUENTOValue;
property DESCRIPCION_DESCUENTOIsNull: Boolean read GetDESCRIPCION_DESCUENTOIsNull write SetDESCRIPCION_DESCUENTOIsNull;
property IVA: Float read GetIVAValue write SetIVAValue;
property IVAIsNull: Boolean read GetIVAIsNull write SetIVAIsNull;
property IMPORTE_IVA: Currency read GetIMPORTE_IVAValue write SetIMPORTE_IVAValue;
property IMPORTE_IVAIsNull: Boolean read GetIMPORTE_IVAIsNull write SetIMPORTE_IVAIsNull;
property RE: Float read GetREValue write SetREValue;
property REIsNull: Boolean read GetREIsNull write SetREIsNull;
property IMPORTE_RE: Currency read GetIMPORTE_REValue write SetIMPORTE_REValue;
property IMPORTE_REIsNull: Boolean read GetIMPORTE_REIsNull write SetIMPORTE_REIsNull;
property IMPORTE_TOTAL: Currency read GetIMPORTE_TOTALValue write SetIMPORTE_TOTALValue;
property IMPORTE_TOTALIsNull: Boolean read GetIMPORTE_TOTALIsNull write SetIMPORTE_TOTALIsNull;
property OBSERVACIONES: IROStrings read GetOBSERVACIONESValue;
property OBSERVACIONESIsNull: Boolean read GetOBSERVACIONESIsNull write SetOBSERVACIONESIsNull;
property ID_CLIENTE: Integer read GetID_CLIENTEValue write SetID_CLIENTEValue;
property ID_CLIENTEIsNull: Boolean read GetID_CLIENTEIsNull write SetID_CLIENTEIsNull;
property NIF_CIF: String read GetNIF_CIFValue write SetNIF_CIFValue;
property NIF_CIFIsNull: Boolean read GetNIF_CIFIsNull write SetNIF_CIFIsNull;
property NOMBRE: String read GetNOMBREValue write SetNOMBREValue;
property NOMBREIsNull: Boolean read GetNOMBREIsNull write SetNOMBREIsNull;
property ID_DIRECCION: Integer read GetID_DIRECCIONValue write SetID_DIRECCIONValue;
property ID_DIRECCIONIsNull: Boolean read GetID_DIRECCIONIsNull write SetID_DIRECCIONIsNull;
property CALLE: String read GetCALLEValue write SetCALLEValue;
property CALLEIsNull: Boolean read GetCALLEIsNull write SetCALLEIsNull;
property POBLACION: String read GetPOBLACIONValue write SetPOBLACIONValue;
property POBLACIONIsNull: Boolean read GetPOBLACIONIsNull write SetPOBLACIONIsNull;
property PROVINCIA: String read GetPROVINCIAValue write SetPROVINCIAValue;
property PROVINCIAIsNull: Boolean read GetPROVINCIAIsNull write SetPROVINCIAIsNull;
property CODIGO_POSTAL: String read GetCODIGO_POSTALValue write SetCODIGO_POSTALValue;
property CODIGO_POSTALIsNull: Boolean read GetCODIGO_POSTALIsNull write SetCODIGO_POSTALIsNull;
property FECHA_ALTA: DateTime read GetFECHA_ALTAValue write SetFECHA_ALTAValue;
property FECHA_ALTAIsNull: Boolean read GetFECHA_ALTAIsNull write SetFECHA_ALTAIsNull;
property FECHA_MODIFICACION: DateTime read GetFECHA_MODIFICACIONValue write SetFECHA_MODIFICACIONValue;
property FECHA_MODIFICACIONIsNull: Boolean read GetFECHA_MODIFICACIONIsNull write SetFECHA_MODIFICACIONIsNull;
property USUARIO: String read GetUSUARIOValue write SetUSUARIOValue;
property USUARIOIsNull: Boolean read GetUSUARIOIsNull write SetUSUARIOIsNull;
property ID_FORMA_PAGO: Integer read GetID_FORMA_PAGOValue write SetID_FORMA_PAGOValue;
property ID_FORMA_PAGOIsNull: Boolean read GetID_FORMA_PAGOIsNull write SetID_FORMA_PAGOIsNull;
property RECARGO_EQUIVALENCIA: SmallInt read GetRECARGO_EQUIVALENCIAValue write SetRECARGO_EQUIVALENCIAValue;
property RECARGO_EQUIVALENCIAIsNull: Boolean read GetRECARGO_EQUIVALENCIAIsNull write SetRECARGO_EQUIVALENCIAIsNull;
property ID_TIPO_IVA: Integer read GetID_TIPO_IVAValue write SetID_TIPO_IVAValue;
property ID_TIPO_IVAIsNull: Boolean read GetID_TIPO_IVAIsNull write SetID_TIPO_IVAIsNull;
property IMPORTE_NETO: Currency read GetIMPORTE_NETOValue write SetIMPORTE_NETOValue;
property IMPORTE_NETOIsNull: Boolean read GetIMPORTE_NETOIsNull write SetIMPORTE_NETOIsNull;
property IMPORTE_PORTE: Currency read GetIMPORTE_PORTEValue write SetIMPORTE_PORTEValue;
property IMPORTE_PORTEIsNull: Boolean read GetIMPORTE_PORTEIsNull write SetIMPORTE_PORTEIsNull;
property NUM_COPIAS: SmallInt read GetNUM_COPIASValue write SetNUM_COPIASValue;
property NUM_COPIASIsNull: Boolean read GetNUM_COPIASIsNull write SetNUM_COPIASIsNull;
property NUM_CORREOS: SmallInt read GetNUM_CORREOSValue write SetNUM_CORREOSValue;
property NUM_CORREOSIsNull: Boolean read GetNUM_CORREOSIsNull write SetNUM_CORREOSIsNull;
property DATOS_BANCARIOS: String read GetDATOS_BANCARIOSValue write SetDATOS_BANCARIOSValue;
property DATOS_BANCARIOSIsNull: Boolean read GetDATOS_BANCARIOSIsNull write SetDATOS_BANCARIOSIsNull;
property REFERENCIA_CLIENTE: String read GetREFERENCIA_CLIENTEValue write SetREFERENCIA_CLIENTEValue;
property REFERENCIA_CLIENTEIsNull: Boolean read GetREFERENCIA_CLIENTEIsNull write SetREFERENCIA_CLIENTEIsNull;
property ID_PEDIDO: Integer read GetID_PEDIDOValue write SetID_PEDIDOValue;
property ID_PEDIDOIsNull: Boolean read GetID_PEDIDOIsNull write SetID_PEDIDOIsNull;
property ID_FACTURA_FINAL: Integer read GetID_FACTURA_FINALValue write SetID_FACTURA_FINALValue;
property ID_FACTURA_FINALIsNull: Boolean read GetID_FACTURA_FINALIsNull write SetID_FACTURA_FINALIsNull;
public
constructor Create(aDataTable: TDADataTable); override;
destructor Destroy; override;
end;
{ IFacturasProforma_Detalles }
IFacturasProforma_Detalles = interface(IDAStronglyTypedDataTable)
['{B411FAE4-15F3-4FFB-B84A-6E0BFDF91CE9}']
{ Property getters and setters }
function GetIDValue: Integer;
procedure SetIDValue(const aValue: Integer);
function GetIDIsNull: Boolean;
procedure SetIDIsNull(const aValue: Boolean);
function GetID_FACTURAValue: Integer;
procedure SetID_FACTURAValue(const aValue: Integer);
function GetID_FACTURAIsNull: Boolean;
procedure SetID_FACTURAIsNull(const aValue: Boolean);
function GetPOSICIONValue: Integer;
procedure SetPOSICIONValue(const aValue: Integer);
function GetPOSICIONIsNull: Boolean;
procedure SetPOSICIONIsNull(const aValue: Boolean);
function GetTIPO_DETALLEValue: String;
procedure SetTIPO_DETALLEValue(const aValue: String);
function GetTIPO_DETALLEIsNull: Boolean;
procedure SetTIPO_DETALLEIsNull(const aValue: Boolean);
function GetCONCEPTOValue: String;
procedure SetCONCEPTOValue(const aValue: String);
function GetCONCEPTOIsNull: Boolean;
procedure SetCONCEPTOIsNull(const aValue: Boolean);
function GetCANTIDADValue: Currency;
procedure SetCANTIDADValue(const aValue: Currency);
function GetCANTIDADIsNull: Boolean;
procedure SetCANTIDADIsNull(const aValue: Boolean);
function GetUNIDAD_MEDIDAValue: String;
procedure SetUNIDAD_MEDIDAValue(const aValue: String);
function GetUNIDAD_MEDIDAIsNull: Boolean;
procedure SetUNIDAD_MEDIDAIsNull(const aValue: Boolean);
function GetIMPORTE_UNIDADValue: Currency;
procedure SetIMPORTE_UNIDADValue(const aValue: Currency);
function GetIMPORTE_UNIDADIsNull: Boolean;
procedure SetIMPORTE_UNIDADIsNull(const aValue: Boolean);
function GetIMPORTE_TOTALValue: Currency;
procedure SetIMPORTE_TOTALValue(const aValue: Currency);
function GetIMPORTE_TOTALIsNull: Boolean;
procedure SetIMPORTE_TOTALIsNull(const aValue: Boolean);
function GetVISIBLEValue: SmallInt;
procedure SetVISIBLEValue(const aValue: SmallInt);
function GetVISIBLEIsNull: Boolean;
procedure SetVISIBLEIsNull(const aValue: Boolean);
function GetID_ARTICULOValue: Integer;
procedure SetID_ARTICULOValue(const aValue: Integer);
function GetID_ARTICULOIsNull: Boolean;
procedure SetID_ARTICULOIsNull(const aValue: Boolean);
function GetDESCUENTOValue: Float;
procedure SetDESCUENTOValue(const aValue: Float);
function GetDESCUENTOIsNull: Boolean;
procedure SetDESCUENTOIsNull(const aValue: Boolean);
function GetIMPORTE_PORTEValue: Currency;
procedure SetIMPORTE_PORTEValue(const aValue: Currency);
function GetIMPORTE_PORTEIsNull: Boolean;
procedure SetIMPORTE_PORTEIsNull(const aValue: Boolean);
function GetREFERENCIAValue: String;
procedure SetREFERENCIAValue(const aValue: String);
function GetREFERENCIAIsNull: Boolean;
procedure SetREFERENCIAIsNull(const aValue: Boolean);
function GetREFERENCIA_PROVEEDORValue: String;
procedure SetREFERENCIA_PROVEEDORValue(const aValue: String);
function GetREFERENCIA_PROVEEDORIsNull: Boolean;
procedure SetREFERENCIA_PROVEEDORIsNull(const aValue: Boolean);
{ Properties }
property ID: Integer read GetIDValue write SetIDValue;
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
property ID_FACTURA: Integer read GetID_FACTURAValue write SetID_FACTURAValue;
property ID_FACTURAIsNull: Boolean read GetID_FACTURAIsNull write SetID_FACTURAIsNull;
property POSICION: Integer read GetPOSICIONValue write SetPOSICIONValue;
property POSICIONIsNull: Boolean read GetPOSICIONIsNull write SetPOSICIONIsNull;
property TIPO_DETALLE: String read GetTIPO_DETALLEValue write SetTIPO_DETALLEValue;
property TIPO_DETALLEIsNull: Boolean read GetTIPO_DETALLEIsNull write SetTIPO_DETALLEIsNull;
property CONCEPTO: String read GetCONCEPTOValue write SetCONCEPTOValue;
property CONCEPTOIsNull: Boolean read GetCONCEPTOIsNull write SetCONCEPTOIsNull;
property CANTIDAD: Currency read GetCANTIDADValue write SetCANTIDADValue;
property CANTIDADIsNull: Boolean read GetCANTIDADIsNull write SetCANTIDADIsNull;
property UNIDAD_MEDIDA: String read GetUNIDAD_MEDIDAValue write SetUNIDAD_MEDIDAValue;
property UNIDAD_MEDIDAIsNull: Boolean read GetUNIDAD_MEDIDAIsNull write SetUNIDAD_MEDIDAIsNull;
property IMPORTE_UNIDAD: Currency read GetIMPORTE_UNIDADValue write SetIMPORTE_UNIDADValue;
property IMPORTE_UNIDADIsNull: Boolean read GetIMPORTE_UNIDADIsNull write SetIMPORTE_UNIDADIsNull;
property IMPORTE_TOTAL: Currency read GetIMPORTE_TOTALValue write SetIMPORTE_TOTALValue;
property IMPORTE_TOTALIsNull: Boolean read GetIMPORTE_TOTALIsNull write SetIMPORTE_TOTALIsNull;
property VISIBLE: SmallInt read GetVISIBLEValue write SetVISIBLEValue;
property VISIBLEIsNull: Boolean read GetVISIBLEIsNull write SetVISIBLEIsNull;
property ID_ARTICULO: Integer read GetID_ARTICULOValue write SetID_ARTICULOValue;
property ID_ARTICULOIsNull: Boolean read GetID_ARTICULOIsNull write SetID_ARTICULOIsNull;
property DESCUENTO: Float read GetDESCUENTOValue write SetDESCUENTOValue;
property DESCUENTOIsNull: Boolean read GetDESCUENTOIsNull write SetDESCUENTOIsNull;
property IMPORTE_PORTE: Currency read GetIMPORTE_PORTEValue write SetIMPORTE_PORTEValue;
property IMPORTE_PORTEIsNull: Boolean read GetIMPORTE_PORTEIsNull write SetIMPORTE_PORTEIsNull;
property REFERENCIA: String read GetREFERENCIAValue write SetREFERENCIAValue;
property REFERENCIAIsNull: Boolean read GetREFERENCIAIsNull write SetREFERENCIAIsNull;
property REFERENCIA_PROVEEDOR: String read GetREFERENCIA_PROVEEDORValue write SetREFERENCIA_PROVEEDORValue;
property REFERENCIA_PROVEEDORIsNull: Boolean read GetREFERENCIA_PROVEEDORIsNull write SetREFERENCIA_PROVEEDORIsNull;
end;
{ TFacturasProforma_DetallesDataTableRules }
TFacturasProforma_DetallesDataTableRules = class(TIntfObjectDADataTableRules, IFacturasProforma_Detalles)
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_FACTURAValue: Integer; virtual;
procedure SetID_FACTURAValue(const aValue: Integer); virtual;
function GetID_FACTURAIsNull: Boolean; virtual;
procedure SetID_FACTURAIsNull(const aValue: Boolean); virtual;
function GetPOSICIONValue: Integer; virtual;
procedure SetPOSICIONValue(const aValue: Integer); virtual;
function GetPOSICIONIsNull: Boolean; virtual;
procedure SetPOSICIONIsNull(const aValue: Boolean); virtual;
function GetTIPO_DETALLEValue: String; virtual;
procedure SetTIPO_DETALLEValue(const aValue: String); virtual;
function GetTIPO_DETALLEIsNull: Boolean; virtual;
procedure SetTIPO_DETALLEIsNull(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 GetCANTIDADValue: Currency; virtual;
procedure SetCANTIDADValue(const aValue: Currency); virtual;
function GetCANTIDADIsNull: Boolean; virtual;
procedure SetCANTIDADIsNull(const aValue: Boolean); virtual;
function GetUNIDAD_MEDIDAValue: String; virtual;
procedure SetUNIDAD_MEDIDAValue(const aValue: String); virtual;
function GetUNIDAD_MEDIDAIsNull: Boolean; virtual;
procedure SetUNIDAD_MEDIDAIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_UNIDADValue: Currency; virtual;
procedure SetIMPORTE_UNIDADValue(const aValue: Currency); virtual;
function GetIMPORTE_UNIDADIsNull: Boolean; virtual;
procedure SetIMPORTE_UNIDADIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_TOTALValue: Currency; virtual;
procedure SetIMPORTE_TOTALValue(const aValue: Currency); virtual;
function GetIMPORTE_TOTALIsNull: Boolean; virtual;
procedure SetIMPORTE_TOTALIsNull(const aValue: Boolean); virtual;
function GetVISIBLEValue: SmallInt; virtual;
procedure SetVISIBLEValue(const aValue: SmallInt); virtual;
function GetVISIBLEIsNull: Boolean; virtual;
procedure SetVISIBLEIsNull(const aValue: Boolean); virtual;
function GetID_ARTICULOValue: Integer; virtual;
procedure SetID_ARTICULOValue(const aValue: Integer); virtual;
function GetID_ARTICULOIsNull: Boolean; virtual;
procedure SetID_ARTICULOIsNull(const aValue: Boolean); virtual;
function GetDESCUENTOValue: Float; virtual;
procedure SetDESCUENTOValue(const aValue: Float); virtual;
function GetDESCUENTOIsNull: Boolean; virtual;
procedure SetDESCUENTOIsNull(const aValue: Boolean); virtual;
function GetIMPORTE_PORTEValue: Currency; virtual;
procedure SetIMPORTE_PORTEValue(const aValue: Currency); virtual;
function GetIMPORTE_PORTEIsNull: Boolean; virtual;
procedure SetIMPORTE_PORTEIsNull(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 GetREFERENCIA_PROVEEDORValue: String; virtual;
procedure SetREFERENCIA_PROVEEDORValue(const aValue: String); virtual;
function GetREFERENCIA_PROVEEDORIsNull: Boolean; virtual;
procedure SetREFERENCIA_PROVEEDORIsNull(const aValue: Boolean); virtual;
{ Properties }
property ID: Integer read GetIDValue write SetIDValue;
property IDIsNull: Boolean read GetIDIsNull write SetIDIsNull;
property ID_FACTURA: Integer read GetID_FACTURAValue write SetID_FACTURAValue;
property ID_FACTURAIsNull: Boolean read GetID_FACTURAIsNull write SetID_FACTURAIsNull;
property POSICION: Integer read GetPOSICIONValue write SetPOSICIONValue;
property POSICIONIsNull: Boolean read GetPOSICIONIsNull write SetPOSICIONIsNull;
property TIPO_DETALLE: String read GetTIPO_DETALLEValue write SetTIPO_DETALLEValue;
property TIPO_DETALLEIsNull: Boolean read GetTIPO_DETALLEIsNull write SetTIPO_DETALLEIsNull;
property CONCEPTO: String read GetCONCEPTOValue write SetCONCEPTOValue;
property CONCEPTOIsNull: Boolean read GetCONCEPTOIsNull write SetCONCEPTOIsNull;
property CANTIDAD: Currency read GetCANTIDADValue write SetCANTIDADValue;
property CANTIDADIsNull: Boolean read GetCANTIDADIsNull write SetCANTIDADIsNull;
property UNIDAD_MEDIDA: String read GetUNIDAD_MEDIDAValue write SetUNIDAD_MEDIDAValue;
property UNIDAD_MEDIDAIsNull: Boolean read GetUNIDAD_MEDIDAIsNull write SetUNIDAD_MEDIDAIsNull;
property IMPORTE_UNIDAD: Currency read GetIMPORTE_UNIDADValue write SetIMPORTE_UNIDADValue;
property IMPORTE_UNIDADIsNull: Boolean read GetIMPORTE_UNIDADIsNull write SetIMPORTE_UNIDADIsNull;
property IMPORTE_TOTAL: Currency read GetIMPORTE_TOTALValue write SetIMPORTE_TOTALValue;
property IMPORTE_TOTALIsNull: Boolean read GetIMPORTE_TOTALIsNull write SetIMPORTE_TOTALIsNull;
property VISIBLE: SmallInt read GetVISIBLEValue write SetVISIBLEValue;
property VISIBLEIsNull: Boolean read GetVISIBLEIsNull write SetVISIBLEIsNull;
property ID_ARTICULO: Integer read GetID_ARTICULOValue write SetID_ARTICULOValue;
property ID_ARTICULOIsNull: Boolean read GetID_ARTICULOIsNull write SetID_ARTICULOIsNull;
property DESCUENTO: Float read GetDESCUENTOValue write SetDESCUENTOValue;
property DESCUENTOIsNull: Boolean read GetDESCUENTOIsNull write SetDESCUENTOIsNull;
property IMPORTE_PORTE: Currency read GetIMPORTE_PORTEValue write SetIMPORTE_PORTEValue;
property IMPORTE_PORTEIsNull: Boolean read GetIMPORTE_PORTEIsNull write SetIMPORTE_PORTEIsNull;
property REFERENCIA: String read GetREFERENCIAValue write SetREFERENCIAValue;
property REFERENCIAIsNull: Boolean read GetREFERENCIAIsNull write SetREFERENCIAIsNull;
property REFERENCIA_PROVEEDOR: String read GetREFERENCIA_PROVEEDORValue write SetREFERENCIA_PROVEEDORValue;
property REFERENCIA_PROVEEDORIsNull: Boolean read GetREFERENCIA_PROVEEDORIsNull write SetREFERENCIA_PROVEEDORIsNull;
public
constructor Create(aDataTable: TDADataTable); override;
destructor Destroy; override;
end;
implementation
uses Variants, uROBinaryHelpers;
{ TListaAnosFacturasDataTableRules }
constructor TListaAnosFacturasDataTableRules.Create(aDataTable: TDADataTable);
begin
inherited;
end;
destructor TListaAnosFacturasDataTableRules.Destroy;
begin
inherited;
end;
function TListaAnosFacturasDataTableRules.GetANOValue: String;
begin
result := DataTable.Fields[idx_ListaAnosFacturasANO].AsString;
end;
procedure TListaAnosFacturasDataTableRules.SetANOValue(const aValue: String);
begin
DataTable.Fields[idx_ListaAnosFacturasANO].AsString := aValue;
end;
function TListaAnosFacturasDataTableRules.GetANOIsNull: boolean;
begin
result := DataTable.Fields[idx_ListaAnosFacturasANO].IsNull;
end;
procedure TListaAnosFacturasDataTableRules.SetANOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_ListaAnosFacturasANO].AsVariant := Null;
end;
{ TFacturasProformaDataTableRules }
constructor TFacturasProformaDataTableRules.Create(aDataTable: TDADataTable);
var
StrList: TStringList;
begin
inherited;
StrList := TStringList.Create;
StrList.OnChange := OBSERVACIONES_OnChange;
f_OBSERVACIONES := NewROStrings(StrList,True);
end;
destructor TFacturasProformaDataTableRules.Destroy;
begin
inherited;
end;
procedure TFacturasProformaDataTableRules.OBSERVACIONES_OnChange(Sender: TObject);
begin
if DataTable.Editing then DataTable.Fields[idx_FacturasProformaOBSERVACIONES].AsVariant := TStringList(Sender).Text;
end;
function TFacturasProformaDataTableRules.GetIDValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProformaID].AsInteger;
end;
procedure TFacturasProformaDataTableRules.SetIDValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProformaID].AsInteger := aValue;
end;
function TFacturasProformaDataTableRules.GetIDIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaID].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetIDIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaID].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetID_EMPRESAValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProformaID_EMPRESA].AsInteger;
end;
procedure TFacturasProformaDataTableRules.SetID_EMPRESAValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProformaID_EMPRESA].AsInteger := aValue;
end;
function TFacturasProformaDataTableRules.GetID_EMPRESAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaID_EMPRESA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetID_EMPRESAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaID_EMPRESA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetREFERENCIAValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaREFERENCIA].AsString;
end;
procedure TFacturasProformaDataTableRules.SetREFERENCIAValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaREFERENCIA].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetREFERENCIAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaREFERENCIA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetREFERENCIAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaREFERENCIA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetFECHA_FACTURAValue: DateTime;
begin
result := DataTable.Fields[idx_FacturasProformaFECHA_FACTURA].AsDateTime;
end;
procedure TFacturasProformaDataTableRules.SetFECHA_FACTURAValue(const aValue: DateTime);
begin
DataTable.Fields[idx_FacturasProformaFECHA_FACTURA].AsDateTime := aValue;
end;
function TFacturasProformaDataTableRules.GetFECHA_FACTURAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaFECHA_FACTURA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetFECHA_FACTURAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaFECHA_FACTURA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetFECHA_VENCIMIENTOValue: DateTime;
begin
result := DataTable.Fields[idx_FacturasProformaFECHA_VENCIMIENTO].AsDateTime;
end;
procedure TFacturasProformaDataTableRules.SetFECHA_VENCIMIENTOValue(const aValue: DateTime);
begin
DataTable.Fields[idx_FacturasProformaFECHA_VENCIMIENTO].AsDateTime := aValue;
end;
function TFacturasProformaDataTableRules.GetFECHA_VENCIMIENTOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaFECHA_VENCIMIENTO].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetFECHA_VENCIMIENTOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaFECHA_VENCIMIENTO].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetSITUACIONValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaSITUACION].AsString;
end;
procedure TFacturasProformaDataTableRules.SetSITUACIONValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaSITUACION].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetSITUACIONIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaSITUACION].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetSITUACIONIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaSITUACION].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetBASE_IMPONIBLEValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProformaBASE_IMPONIBLE].AsCurrency;
end;
procedure TFacturasProformaDataTableRules.SetBASE_IMPONIBLEValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProformaBASE_IMPONIBLE].AsCurrency := aValue;
end;
function TFacturasProformaDataTableRules.GetBASE_IMPONIBLEIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaBASE_IMPONIBLE].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetBASE_IMPONIBLEIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaBASE_IMPONIBLE].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetDESCUENTOValue: Float;
begin
result := DataTable.Fields[idx_FacturasProformaDESCUENTO].AsFloat;
end;
procedure TFacturasProformaDataTableRules.SetDESCUENTOValue(const aValue: Float);
begin
DataTable.Fields[idx_FacturasProformaDESCUENTO].AsFloat := aValue;
end;
function TFacturasProformaDataTableRules.GetDESCUENTOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaDESCUENTO].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetDESCUENTOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaDESCUENTO].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_DESCUENTOValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_DESCUENTO].AsCurrency;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_DESCUENTOValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProformaIMPORTE_DESCUENTO].AsCurrency := aValue;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_DESCUENTOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_DESCUENTO].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_DESCUENTOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaIMPORTE_DESCUENTO].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetDESCRIPCION_DESCUENTOValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaDESCRIPCION_DESCUENTO].AsString;
end;
procedure TFacturasProformaDataTableRules.SetDESCRIPCION_DESCUENTOValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaDESCRIPCION_DESCUENTO].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetDESCRIPCION_DESCUENTOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaDESCRIPCION_DESCUENTO].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetDESCRIPCION_DESCUENTOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaDESCRIPCION_DESCUENTO].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetIVAValue: Float;
begin
result := DataTable.Fields[idx_FacturasProformaIVA].AsFloat;
end;
procedure TFacturasProformaDataTableRules.SetIVAValue(const aValue: Float);
begin
DataTable.Fields[idx_FacturasProformaIVA].AsFloat := aValue;
end;
function TFacturasProformaDataTableRules.GetIVAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaIVA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetIVAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaIVA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_IVAValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_IVA].AsCurrency;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_IVAValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProformaIMPORTE_IVA].AsCurrency := aValue;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_IVAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_IVA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_IVAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaIMPORTE_IVA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetREValue: Float;
begin
result := DataTable.Fields[idx_FacturasProformaRE].AsFloat;
end;
procedure TFacturasProformaDataTableRules.SetREValue(const aValue: Float);
begin
DataTable.Fields[idx_FacturasProformaRE].AsFloat := aValue;
end;
function TFacturasProformaDataTableRules.GetREIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaRE].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetREIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaRE].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_REValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_RE].AsCurrency;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_REValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProformaIMPORTE_RE].AsCurrency := aValue;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_REIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_RE].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_REIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaIMPORTE_RE].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_TOTALValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_TOTAL].AsCurrency;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_TOTALValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProformaIMPORTE_TOTAL].AsCurrency := aValue;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_TOTALIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_TOTAL].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_TOTALIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaIMPORTE_TOTAL].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetOBSERVACIONESValue: IROStrings;
begin
result := f_OBSERVACIONES;
result.Text := DataTable.Fields[idx_FacturasProformaOBSERVACIONES].AsString;
end;
function TFacturasProformaDataTableRules.GetOBSERVACIONESIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaOBSERVACIONES].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetOBSERVACIONESIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaOBSERVACIONES].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetID_CLIENTEValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProformaID_CLIENTE].AsInteger;
end;
procedure TFacturasProformaDataTableRules.SetID_CLIENTEValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProformaID_CLIENTE].AsInteger := aValue;
end;
function TFacturasProformaDataTableRules.GetID_CLIENTEIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaID_CLIENTE].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetID_CLIENTEIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaID_CLIENTE].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetNIF_CIFValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaNIF_CIF].AsString;
end;
procedure TFacturasProformaDataTableRules.SetNIF_CIFValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaNIF_CIF].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetNIF_CIFIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaNIF_CIF].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetNIF_CIFIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaNIF_CIF].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetNOMBREValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaNOMBRE].AsString;
end;
procedure TFacturasProformaDataTableRules.SetNOMBREValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaNOMBRE].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetNOMBREIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaNOMBRE].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetNOMBREIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaNOMBRE].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetID_DIRECCIONValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProformaID_DIRECCION].AsInteger;
end;
procedure TFacturasProformaDataTableRules.SetID_DIRECCIONValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProformaID_DIRECCION].AsInteger := aValue;
end;
function TFacturasProformaDataTableRules.GetID_DIRECCIONIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaID_DIRECCION].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetID_DIRECCIONIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaID_DIRECCION].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetCALLEValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaCALLE].AsString;
end;
procedure TFacturasProformaDataTableRules.SetCALLEValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaCALLE].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetCALLEIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaCALLE].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetCALLEIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaCALLE].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetPOBLACIONValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaPOBLACION].AsString;
end;
procedure TFacturasProformaDataTableRules.SetPOBLACIONValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaPOBLACION].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetPOBLACIONIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaPOBLACION].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetPOBLACIONIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaPOBLACION].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetPROVINCIAValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaPROVINCIA].AsString;
end;
procedure TFacturasProformaDataTableRules.SetPROVINCIAValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaPROVINCIA].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetPROVINCIAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaPROVINCIA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetPROVINCIAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaPROVINCIA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetCODIGO_POSTALValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaCODIGO_POSTAL].AsString;
end;
procedure TFacturasProformaDataTableRules.SetCODIGO_POSTALValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaCODIGO_POSTAL].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetCODIGO_POSTALIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaCODIGO_POSTAL].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetCODIGO_POSTALIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaCODIGO_POSTAL].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetFECHA_ALTAValue: DateTime;
begin
result := DataTable.Fields[idx_FacturasProformaFECHA_ALTA].AsDateTime;
end;
procedure TFacturasProformaDataTableRules.SetFECHA_ALTAValue(const aValue: DateTime);
begin
DataTable.Fields[idx_FacturasProformaFECHA_ALTA].AsDateTime := aValue;
end;
function TFacturasProformaDataTableRules.GetFECHA_ALTAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaFECHA_ALTA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetFECHA_ALTAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaFECHA_ALTA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetFECHA_MODIFICACIONValue: DateTime;
begin
result := DataTable.Fields[idx_FacturasProformaFECHA_MODIFICACION].AsDateTime;
end;
procedure TFacturasProformaDataTableRules.SetFECHA_MODIFICACIONValue(const aValue: DateTime);
begin
DataTable.Fields[idx_FacturasProformaFECHA_MODIFICACION].AsDateTime := aValue;
end;
function TFacturasProformaDataTableRules.GetFECHA_MODIFICACIONIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaFECHA_MODIFICACION].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetFECHA_MODIFICACIONIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaFECHA_MODIFICACION].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetUSUARIOValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaUSUARIO].AsString;
end;
procedure TFacturasProformaDataTableRules.SetUSUARIOValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaUSUARIO].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetUSUARIOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaUSUARIO].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetUSUARIOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaUSUARIO].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetID_FORMA_PAGOValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProformaID_FORMA_PAGO].AsInteger;
end;
procedure TFacturasProformaDataTableRules.SetID_FORMA_PAGOValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProformaID_FORMA_PAGO].AsInteger := aValue;
end;
function TFacturasProformaDataTableRules.GetID_FORMA_PAGOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaID_FORMA_PAGO].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetID_FORMA_PAGOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaID_FORMA_PAGO].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetRECARGO_EQUIVALENCIAValue: SmallInt;
begin
result := DataTable.Fields[idx_FacturasProformaRECARGO_EQUIVALENCIA].AsSmallInt;
end;
procedure TFacturasProformaDataTableRules.SetRECARGO_EQUIVALENCIAValue(const aValue: SmallInt);
begin
DataTable.Fields[idx_FacturasProformaRECARGO_EQUIVALENCIA].AsSmallInt := aValue;
end;
function TFacturasProformaDataTableRules.GetRECARGO_EQUIVALENCIAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaRECARGO_EQUIVALENCIA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetRECARGO_EQUIVALENCIAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaRECARGO_EQUIVALENCIA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetID_TIPO_IVAValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProformaID_TIPO_IVA].AsInteger;
end;
procedure TFacturasProformaDataTableRules.SetID_TIPO_IVAValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProformaID_TIPO_IVA].AsInteger := aValue;
end;
function TFacturasProformaDataTableRules.GetID_TIPO_IVAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaID_TIPO_IVA].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetID_TIPO_IVAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaID_TIPO_IVA].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_NETOValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_NETO].AsCurrency;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_NETOValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProformaIMPORTE_NETO].AsCurrency := aValue;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_NETOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_NETO].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_NETOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaIMPORTE_NETO].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_PORTEValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_PORTE].AsCurrency;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_PORTEValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProformaIMPORTE_PORTE].AsCurrency := aValue;
end;
function TFacturasProformaDataTableRules.GetIMPORTE_PORTEIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaIMPORTE_PORTE].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetIMPORTE_PORTEIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaIMPORTE_PORTE].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetNUM_COPIASValue: SmallInt;
begin
result := DataTable.Fields[idx_FacturasProformaNUM_COPIAS].AsSmallInt;
end;
procedure TFacturasProformaDataTableRules.SetNUM_COPIASValue(const aValue: SmallInt);
begin
DataTable.Fields[idx_FacturasProformaNUM_COPIAS].AsSmallInt := aValue;
end;
function TFacturasProformaDataTableRules.GetNUM_COPIASIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaNUM_COPIAS].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetNUM_COPIASIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaNUM_COPIAS].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetNUM_CORREOSValue: SmallInt;
begin
result := DataTable.Fields[idx_FacturasProformaNUM_CORREOS].AsSmallInt;
end;
procedure TFacturasProformaDataTableRules.SetNUM_CORREOSValue(const aValue: SmallInt);
begin
DataTable.Fields[idx_FacturasProformaNUM_CORREOS].AsSmallInt := aValue;
end;
function TFacturasProformaDataTableRules.GetNUM_CORREOSIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaNUM_CORREOS].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetNUM_CORREOSIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaNUM_CORREOS].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetDATOS_BANCARIOSValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaDATOS_BANCARIOS].AsString;
end;
procedure TFacturasProformaDataTableRules.SetDATOS_BANCARIOSValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaDATOS_BANCARIOS].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetDATOS_BANCARIOSIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaDATOS_BANCARIOS].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetDATOS_BANCARIOSIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaDATOS_BANCARIOS].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetREFERENCIA_CLIENTEValue: String;
begin
result := DataTable.Fields[idx_FacturasProformaREFERENCIA_CLIENTE].AsString;
end;
procedure TFacturasProformaDataTableRules.SetREFERENCIA_CLIENTEValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProformaREFERENCIA_CLIENTE].AsString := aValue;
end;
function TFacturasProformaDataTableRules.GetREFERENCIA_CLIENTEIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaREFERENCIA_CLIENTE].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetREFERENCIA_CLIENTEIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaREFERENCIA_CLIENTE].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetID_PEDIDOValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProformaID_PEDIDO].AsInteger;
end;
procedure TFacturasProformaDataTableRules.SetID_PEDIDOValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProformaID_PEDIDO].AsInteger := aValue;
end;
function TFacturasProformaDataTableRules.GetID_PEDIDOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaID_PEDIDO].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetID_PEDIDOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaID_PEDIDO].AsVariant := Null;
end;
function TFacturasProformaDataTableRules.GetID_FACTURA_FINALValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProformaID_FACTURA_FINAL].AsInteger;
end;
procedure TFacturasProformaDataTableRules.SetID_FACTURA_FINALValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProformaID_FACTURA_FINAL].AsInteger := aValue;
end;
function TFacturasProformaDataTableRules.GetID_FACTURA_FINALIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProformaID_FACTURA_FINAL].IsNull;
end;
procedure TFacturasProformaDataTableRules.SetID_FACTURA_FINALIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProformaID_FACTURA_FINAL].AsVariant := Null;
end;
{ TFacturasProforma_DetallesDataTableRules }
constructor TFacturasProforma_DetallesDataTableRules.Create(aDataTable: TDADataTable);
begin
inherited;
end;
destructor TFacturasProforma_DetallesDataTableRules.Destroy;
begin
inherited;
end;
function TFacturasProforma_DetallesDataTableRules.GetIDValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesID].AsInteger;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetIDValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProforma_DetallesID].AsInteger := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetIDIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesID].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetIDIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesID].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetID_FACTURAValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesID_FACTURA].AsInteger;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetID_FACTURAValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProforma_DetallesID_FACTURA].AsInteger := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetID_FACTURAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesID_FACTURA].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetID_FACTURAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesID_FACTURA].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetPOSICIONValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesPOSICION].AsInteger;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetPOSICIONValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProforma_DetallesPOSICION].AsInteger := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetPOSICIONIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesPOSICION].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetPOSICIONIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesPOSICION].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetTIPO_DETALLEValue: String;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesTIPO_DETALLE].AsString;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetTIPO_DETALLEValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProforma_DetallesTIPO_DETALLE].AsString := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetTIPO_DETALLEIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesTIPO_DETALLE].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetTIPO_DETALLEIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesTIPO_DETALLE].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetCONCEPTOValue: String;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesCONCEPTO].AsString;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetCONCEPTOValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProforma_DetallesCONCEPTO].AsString := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetCONCEPTOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesCONCEPTO].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetCONCEPTOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesCONCEPTO].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetCANTIDADValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesCANTIDAD].AsCurrency;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetCANTIDADValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProforma_DetallesCANTIDAD].AsCurrency := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetCANTIDADIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesCANTIDAD].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetCANTIDADIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesCANTIDAD].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetUNIDAD_MEDIDAValue: String;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesUNIDAD_MEDIDA].AsString;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetUNIDAD_MEDIDAValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProforma_DetallesUNIDAD_MEDIDA].AsString := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetUNIDAD_MEDIDAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesUNIDAD_MEDIDA].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetUNIDAD_MEDIDAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesUNIDAD_MEDIDA].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetIMPORTE_UNIDADValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_UNIDAD].AsCurrency;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetIMPORTE_UNIDADValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_UNIDAD].AsCurrency := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetIMPORTE_UNIDADIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_UNIDAD].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetIMPORTE_UNIDADIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_UNIDAD].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetIMPORTE_TOTALValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_TOTAL].AsCurrency;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetIMPORTE_TOTALValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_TOTAL].AsCurrency := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetIMPORTE_TOTALIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_TOTAL].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetIMPORTE_TOTALIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_TOTAL].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetVISIBLEValue: SmallInt;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesVISIBLE].AsSmallInt;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetVISIBLEValue(const aValue: SmallInt);
begin
DataTable.Fields[idx_FacturasProforma_DetallesVISIBLE].AsSmallInt := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetVISIBLEIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesVISIBLE].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetVISIBLEIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesVISIBLE].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetID_ARTICULOValue: Integer;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesID_ARTICULO].AsInteger;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetID_ARTICULOValue(const aValue: Integer);
begin
DataTable.Fields[idx_FacturasProforma_DetallesID_ARTICULO].AsInteger := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetID_ARTICULOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesID_ARTICULO].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetID_ARTICULOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesID_ARTICULO].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetDESCUENTOValue: Float;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesDESCUENTO].AsFloat;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetDESCUENTOValue(const aValue: Float);
begin
DataTable.Fields[idx_FacturasProforma_DetallesDESCUENTO].AsFloat := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetDESCUENTOIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesDESCUENTO].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetDESCUENTOIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesDESCUENTO].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetIMPORTE_PORTEValue: Currency;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_PORTE].AsCurrency;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetIMPORTE_PORTEValue(const aValue: Currency);
begin
DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_PORTE].AsCurrency := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetIMPORTE_PORTEIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_PORTE].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetIMPORTE_PORTEIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesIMPORTE_PORTE].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetREFERENCIAValue: String;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesREFERENCIA].AsString;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetREFERENCIAValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProforma_DetallesREFERENCIA].AsString := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetREFERENCIAIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesREFERENCIA].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetREFERENCIAIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesREFERENCIA].AsVariant := Null;
end;
function TFacturasProforma_DetallesDataTableRules.GetREFERENCIA_PROVEEDORValue: String;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesREFERENCIA_PROVEEDOR].AsString;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetREFERENCIA_PROVEEDORValue(const aValue: String);
begin
DataTable.Fields[idx_FacturasProforma_DetallesREFERENCIA_PROVEEDOR].AsString := aValue;
end;
function TFacturasProforma_DetallesDataTableRules.GetREFERENCIA_PROVEEDORIsNull: boolean;
begin
result := DataTable.Fields[idx_FacturasProforma_DetallesREFERENCIA_PROVEEDOR].IsNull;
end;
procedure TFacturasProforma_DetallesDataTableRules.SetREFERENCIA_PROVEEDORIsNull(const aValue: Boolean);
begin
if aValue then
DataTable.Fields[idx_FacturasProforma_DetallesREFERENCIA_PROVEEDOR].AsVariant := Null;
end;
initialization
RegisterDataTableRules(RID_ListaAnosFacturas, TListaAnosFacturasDataTableRules);
RegisterDataTableRules(RID_FacturasProforma, TFacturasProformaDataTableRules);
RegisterDataTableRules(RID_FacturasProforma_Detalles, TFacturasProforma_DetallesDataTableRules);
end.