diff --git a/Source/Modulos/Contactos/Controller/uAgentesController.pas b/Source/Modulos/Contactos/Controller/uAgentesController.pas
index 83051c7..38bc90b 100644
--- a/Source/Modulos/Contactos/Controller/uAgentesController.pas
+++ b/Source/Modulos/Contactos/Controller/uAgentesController.pas
@@ -28,6 +28,7 @@ type
function Buscar(const ID: Integer): IBizContacto; override;
function BuscarTodos: IBizContacto; override;
function Nuevo : IBizContacto; override;
+ function Guardar(AContacto : IBizContacto): Boolean; override;
procedure Ver(AContacto : IBizContacto); override;
procedure VerTodos(AContactos: IBizContacto); override;
function ElegirContacto(AContactos : IBizContacto;
@@ -171,6 +172,15 @@ begin
Result := True;
end;
+function TAgentesController.Guardar(AContacto: IBizContacto): Boolean;
+begin
+ if inherited Guardar(AContacto) then
+ begin
+ (AContacto as IBizAgente).ObjetivosAlbaranes.DataTable.Refresh;
+ (AContacto as IBizAgente).ObjetivosFacturas.DataTable.Refresh;
+ end;
+end;
+
function TAgentesController.Nuevo: IBizContacto;
var
AContacto : IBizAgente;
diff --git a/Source/Modulos/Contactos/Controller/uContactosController.pas b/Source/Modulos/Contactos/Controller/uContactosController.pas
index d1b1da5..1f32bec 100644
--- a/Source/Modulos/Contactos/Controller/uContactosController.pas
+++ b/Source/Modulos/Contactos/Controller/uContactosController.pas
@@ -45,7 +45,7 @@ type
procedure Eliminar(const ID : Integer); overload; virtual;
function Eliminar(AContacto : IBizContacto): Boolean; overload; virtual;
- function Guardar(AContacto : IBizContacto): Boolean;
+ function Guardar(AContacto : IBizContacto): Boolean; virtual;
procedure DescartarCambios(AContacto : IBizContacto); virtual;
function Existe(const ID: Integer) : Boolean; virtual;
procedure Anadir(AContacto : IBizContacto); virtual;
diff --git a/Source/Modulos/Contactos/Model/uBizAgentesServer.pas b/Source/Modulos/Contactos/Model/uBizAgentesServer.pas
index feb9d65..dc5f7ac 100644
--- a/Source/Modulos/Contactos/Model/uBizAgentesServer.pas
+++ b/Source/Modulos/Contactos/Model/uBizAgentesServer.pas
@@ -24,7 +24,7 @@ implementation
uses
uDataModuleServer, uDAClasses, SysUtils, DateUtils,
- schContactosClient_Intf, uBusinessUtils;
+ schContactosClient_Intf, uBusinessUtils, Dialogs;
const
REF_AGENTES = 'REF_AGENTES';
@@ -82,7 +82,7 @@ begin
ParamByName('ID_AGENTE').Value := aChange.NewValueByName[fld_AgentesID];
ParamByName('FECHA_ALTA_EMPRESA').Value := aChange.NewValueByName[fld_AgentesFECHA_ALTA_EMPRESA];
ParamByName('FECHA_BAJA').Value := aChange.NewValueByName[fld_AgentesFECHA_BAJA];
- ParamByName('CAUSA_BAJA').Value := aChange.NewValueByName[fld_AgentesCAUSA_BAJA];
+ ParamByName('CAUSA_BAJA').Value := aChange.NewValueByName[fld_AgentesCAUSA_BAJA];
Execute;
end;
finally
diff --git a/Source/Servidor/FactuGES_Server.dproj b/Source/Servidor/FactuGES_Server.dproj
index 63351d2..9c371d7 100644
--- a/Source/Servidor/FactuGES_Server.dproj
+++ b/Source/Servidor/FactuGES_Server.dproj
@@ -35,7 +35,13 @@
Delphi.Personality
-FalseTrueFalse/standaloneTrueFalse4210FalseFalseFalseFalseFalse308212524.2.1.04.2.1.0lunes, 30 de enero de 2012 15:13
+FalseTrueFalse/standaloneTrueFalse4210FalseFalseFalseFalseFalse308212524.2.1.04.2.1.0martes, 31 de enero de 2012 10:21
+
+
+
+
+
+
ExpressPrinting System by Developer Express Inc.
FactuGES_Server.dprFalse