unit schAlmacenesServer_Intf; interface uses Classes, DB, SysUtils, uROClasses, uDADataTable, uDABusinessProcessor, schAlmacenesClient_Intf; const { Delta 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_ALMACENESDelta = '{4FFAA3A8-AB4A-4DD2-A296-B9114795E2AE}'; type { IALMACENESDelta } IALMACENESDelta = interface(IALMACENES) ['{4FFAA3A8-AB4A-4DD2-A296-B9114795E2AE}'] { Property getters and setters } function GetOldCODIGOEMPRESAValue : Integer; function GetOldCODIGOValue : Integer; function GetOldFECHAALTAValue : DateTime; function GetOldUSUARIOValue : String; function GetOldNOMBREValue : String; function GetOldCALLEValue : String; function GetOldPROVINCIAValue : String; function GetOldPOBLACIONValue : String; function GetOldCODIGOPOSTALValue : String; function GetOldTELEFONOValue : String; function GetOldMOVILValue : String; function GetOldFAXValue : String; function GetOldPERSONACONTACTOValue : String; function GetOldOBSERVACIONESValue : IROStrings; { Properties } property OldCODIGOEMPRESA : Integer read GetOldCODIGOEMPRESAValue; property OldCODIGO : Integer read GetOldCODIGOValue; property OldFECHAALTA : DateTime read GetOldFECHAALTAValue; property OldUSUARIO : String read GetOldUSUARIOValue; property OldNOMBRE : String read GetOldNOMBREValue; property OldCALLE : String read GetOldCALLEValue; property OldPROVINCIA : String read GetOldPROVINCIAValue; property OldPOBLACION : String read GetOldPOBLACIONValue; property OldCODIGOPOSTAL : String read GetOldCODIGOPOSTALValue; property OldTELEFONO : String read GetOldTELEFONOValue; property OldMOVIL : String read GetOldMOVILValue; property OldFAX : String read GetOldFAXValue; property OldPERSONACONTACTO : String read GetOldPERSONACONTACTOValue; property OldOBSERVACIONES : IROStrings read GetOldOBSERVACIONESValue; end; { TALMACENESBusinessProcessorRules } TALMACENESBusinessProcessorRules = class(TDABusinessProcessorRules, IALMACENES, IALMACENESDelta) private protected { Property getters and setters } function GetCODIGOEMPRESAValue: Integer; virtual; function GetOldCODIGOEMPRESAValue: Integer; virtual; procedure SetCODIGOEMPRESAValue(const aValue: Integer); virtual; function GetCODIGOValue: Integer; virtual; function GetOldCODIGOValue: Integer; virtual; procedure SetCODIGOValue(const aValue: Integer); virtual; function GetFECHAALTAValue: DateTime; virtual; function GetOldFECHAALTAValue: DateTime; virtual; procedure SetFECHAALTAValue(const aValue: DateTime); virtual; function GetUSUARIOValue: String; virtual; function GetOldUSUARIOValue: String; virtual; procedure SetUSUARIOValue(const aValue: String); virtual; function GetNOMBREValue: String; virtual; function GetOldNOMBREValue: String; virtual; procedure SetNOMBREValue(const aValue: String); virtual; function GetCALLEValue: String; virtual; function GetOldCALLEValue: String; virtual; procedure SetCALLEValue(const aValue: String); virtual; function GetPROVINCIAValue: String; virtual; function GetOldPROVINCIAValue: String; virtual; procedure SetPROVINCIAValue(const aValue: String); virtual; function GetPOBLACIONValue: String; virtual; function GetOldPOBLACIONValue: String; virtual; procedure SetPOBLACIONValue(const aValue: String); virtual; function GetCODIGOPOSTALValue: String; virtual; function GetOldCODIGOPOSTALValue: String; virtual; procedure SetCODIGOPOSTALValue(const aValue: String); virtual; function GetTELEFONOValue: String; virtual; function GetOldTELEFONOValue: String; virtual; procedure SetTELEFONOValue(const aValue: String); virtual; function GetMOVILValue: String; virtual; function GetOldMOVILValue: String; virtual; procedure SetMOVILValue(const aValue: String); virtual; function GetFAXValue: String; virtual; function GetOldFAXValue: String; virtual; procedure SetFAXValue(const aValue: String); virtual; function GetPERSONACONTACTOValue: String; virtual; function GetOldPERSONACONTACTOValue: String; virtual; procedure SetPERSONACONTACTOValue(const aValue: String); virtual; function GetOBSERVACIONESValue: IROStrings; virtual; function GetOldOBSERVACIONESValue: IROStrings; virtual; procedure SetOBSERVACIONESValue(const aValue: IROStrings); virtual; { Properties } property CODIGOEMPRESA : Integer read GetCODIGOEMPRESAValue write SetCODIGOEMPRESAValue; property OldCODIGOEMPRESA : Integer read GetOldCODIGOEMPRESAValue; property CODIGO : Integer read GetCODIGOValue write SetCODIGOValue; property OldCODIGO : Integer read GetOldCODIGOValue; property FECHAALTA : DateTime read GetFECHAALTAValue write SetFECHAALTAValue; property OldFECHAALTA : DateTime read GetOldFECHAALTAValue; property USUARIO : String read GetUSUARIOValue write SetUSUARIOValue; property OldUSUARIO : String read GetOldUSUARIOValue; property NOMBRE : String read GetNOMBREValue write SetNOMBREValue; property OldNOMBRE : String read GetOldNOMBREValue; property CALLE : String read GetCALLEValue write SetCALLEValue; property OldCALLE : String read GetOldCALLEValue; property PROVINCIA : String read GetPROVINCIAValue write SetPROVINCIAValue; property OldPROVINCIA : String read GetOldPROVINCIAValue; property POBLACION : String read GetPOBLACIONValue write SetPOBLACIONValue; property OldPOBLACION : String read GetOldPOBLACIONValue; property CODIGOPOSTAL : String read GetCODIGOPOSTALValue write SetCODIGOPOSTALValue; property OldCODIGOPOSTAL : String read GetOldCODIGOPOSTALValue; property TELEFONO : String read GetTELEFONOValue write SetTELEFONOValue; property OldTELEFONO : String read GetOldTELEFONOValue; property MOVIL : String read GetMOVILValue write SetMOVILValue; property OldMOVIL : String read GetOldMOVILValue; property FAX : String read GetFAXValue write SetFAXValue; property OldFAX : String read GetOldFAXValue; property PERSONACONTACTO : String read GetPERSONACONTACTOValue write SetPERSONACONTACTOValue; property OldPERSONACONTACTO : String read GetOldPERSONACONTACTOValue; property OBSERVACIONES : IROStrings read GetOBSERVACIONESValue write SetOBSERVACIONESValue; property OldOBSERVACIONES : IROStrings read GetOldOBSERVACIONESValue; public constructor Create(aBusinessProcessor: TDABusinessProcessor); override; destructor Destroy; override; end; implementation uses Variants, uROBinaryHelpers; { TALMACENESBusinessProcessorRules } constructor TALMACENESBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor); begin inherited; end; destructor TALMACENESBusinessProcessorRules.Destroy; begin inherited; end; function TALMACENESBusinessProcessorRules.GetCODIGOEMPRESAValue: Integer; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESCODIGOEMPRESA]; end; function TALMACENESBusinessProcessorRules.GetOldCODIGOEMPRESAValue: Integer; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESCODIGOEMPRESA]; end; procedure TALMACENESBusinessProcessorRules.SetCODIGOEMPRESAValue(const aValue: Integer); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESCODIGOEMPRESA] := aValue; end; function TALMACENESBusinessProcessorRules.GetCODIGOValue: Integer; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESCODIGO]; end; function TALMACENESBusinessProcessorRules.GetOldCODIGOValue: Integer; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESCODIGO]; end; procedure TALMACENESBusinessProcessorRules.SetCODIGOValue(const aValue: Integer); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESCODIGO] := aValue; end; function TALMACENESBusinessProcessorRules.GetFECHAALTAValue: DateTime; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESFECHAALTA]; end; function TALMACENESBusinessProcessorRules.GetOldFECHAALTAValue: DateTime; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESFECHAALTA]; end; procedure TALMACENESBusinessProcessorRules.SetFECHAALTAValue(const aValue: DateTime); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESFECHAALTA] := aValue; end; function TALMACENESBusinessProcessorRules.GetUSUARIOValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESUSUARIO]; end; function TALMACENESBusinessProcessorRules.GetOldUSUARIOValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESUSUARIO]; end; procedure TALMACENESBusinessProcessorRules.SetUSUARIOValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESUSUARIO] := aValue; end; function TALMACENESBusinessProcessorRules.GetNOMBREValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESNOMBRE]; end; function TALMACENESBusinessProcessorRules.GetOldNOMBREValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESNOMBRE]; end; procedure TALMACENESBusinessProcessorRules.SetNOMBREValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESNOMBRE] := aValue; end; function TALMACENESBusinessProcessorRules.GetCALLEValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESCALLE]; end; function TALMACENESBusinessProcessorRules.GetOldCALLEValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESCALLE]; end; procedure TALMACENESBusinessProcessorRules.SetCALLEValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESCALLE] := aValue; end; function TALMACENESBusinessProcessorRules.GetPROVINCIAValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESPROVINCIA]; end; function TALMACENESBusinessProcessorRules.GetOldPROVINCIAValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESPROVINCIA]; end; procedure TALMACENESBusinessProcessorRules.SetPROVINCIAValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESPROVINCIA] := aValue; end; function TALMACENESBusinessProcessorRules.GetPOBLACIONValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESPOBLACION]; end; function TALMACENESBusinessProcessorRules.GetOldPOBLACIONValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESPOBLACION]; end; procedure TALMACENESBusinessProcessorRules.SetPOBLACIONValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESPOBLACION] := aValue; end; function TALMACENESBusinessProcessorRules.GetCODIGOPOSTALValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESCODIGOPOSTAL]; end; function TALMACENESBusinessProcessorRules.GetOldCODIGOPOSTALValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESCODIGOPOSTAL]; end; procedure TALMACENESBusinessProcessorRules.SetCODIGOPOSTALValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESCODIGOPOSTAL] := aValue; end; function TALMACENESBusinessProcessorRules.GetTELEFONOValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESTELEFONO]; end; function TALMACENESBusinessProcessorRules.GetOldTELEFONOValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESTELEFONO]; end; procedure TALMACENESBusinessProcessorRules.SetTELEFONOValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESTELEFONO] := aValue; end; function TALMACENESBusinessProcessorRules.GetMOVILValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESMOVIL]; end; function TALMACENESBusinessProcessorRules.GetOldMOVILValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESMOVIL]; end; procedure TALMACENESBusinessProcessorRules.SetMOVILValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESMOVIL] := aValue; end; function TALMACENESBusinessProcessorRules.GetFAXValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESFAX]; end; function TALMACENESBusinessProcessorRules.GetOldFAXValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESFAX]; end; procedure TALMACENESBusinessProcessorRules.SetFAXValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESFAX] := aValue; end; function TALMACENESBusinessProcessorRules.GetPERSONACONTACTOValue: String; begin result := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESPERSONACONTACTO]; end; function TALMACENESBusinessProcessorRules.GetOldPERSONACONTACTOValue: String; begin result := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESPERSONACONTACTO]; end; procedure TALMACENESBusinessProcessorRules.SetPERSONACONTACTOValue(const aValue: String); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESPERSONACONTACTO] := aValue; end; function TALMACENESBusinessProcessorRules.GetOBSERVACIONESValue: IROStrings; begin result := NewROStrings(); result.Text := BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESOBSERVACIONES]; end; function TALMACENESBusinessProcessorRules.GetOldOBSERVACIONESValue: IROStrings; begin result := NewROStrings(); result.Text := BusinessProcessor.CurrentChange.OldValueByName[fld_ALMACENESOBSERVACIONES]; end; procedure TALMACENESBusinessProcessorRules.SetOBSERVACIONESValue(const aValue: IROStrings); begin BusinessProcessor.CurrentChange.NewValueByName[fld_ALMACENESOBSERVACIONES] := aValue.Text; end; initialization RegisterBusinessProcessorRules(RID_ALMACENESDelta, TALMACENESBusinessProcessorRules); end.