2007-10-03 16:03:28 +00:00
|
|
|
unit uDatosBancariosEmpresaController;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
Windows, Forms, Classes, Controls, Contnrs, SysUtils, uDADataTable,
|
2008-11-10 19:38:27 +00:00
|
|
|
uBizEmpresas, uBizEmpresasDatosBancarios, uIDataModuleEmpresas,
|
|
|
|
|
uControllerBase;
|
2007-10-03 16:03:28 +00:00
|
|
|
|
|
|
|
|
type
|
2008-11-10 19:38:27 +00:00
|
|
|
IDatosBancariosEmpresaController = interface(IControllerBase)
|
2007-10-03 16:03:28 +00:00
|
|
|
['{E9B0313E-7B16-420A-B47E-20E42E96BAC6}']
|
|
|
|
|
procedure Ver(ADatosBancarios : IBizEmpresasDatosBancarios);
|
|
|
|
|
end;
|
|
|
|
|
|
2008-11-10 19:38:27 +00:00
|
|
|
TDatosBancariosEmpresaController = class(TControllerBase, IDatosBancariosEmpresaController)
|
2007-10-03 16:03:28 +00:00
|
|
|
private
|
|
|
|
|
FDataModule : IDataModuleEmpresas;
|
|
|
|
|
public
|
|
|
|
|
procedure Ver(ADatosBancarios : IBizEmpresasDatosBancarios);
|
2008-11-10 19:38:27 +00:00
|
|
|
constructor Create; override;
|
2007-10-03 16:03:28 +00:00
|
|
|
destructor Destroy; override;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
{ TDatosBancariosEmpresaController }
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
uDataModuleEmpresas, schEmpresasClient_Intf, uIEditorDatosBancarioEmpresa,
|
|
|
|
|
uEditorRegistryUtils, cxControls;
|
|
|
|
|
|
|
|
|
|
constructor TDatosBancariosEmpresaController.Create;
|
|
|
|
|
begin
|
|
|
|
|
inherited;
|
2007-10-22 07:39:39 +00:00
|
|
|
// FDataModule := TDataModuleEmpresas.Create(Nil);
|
2007-10-03 16:03:28 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
destructor TDatosBancariosEmpresaController.Destroy;
|
|
|
|
|
begin
|
|
|
|
|
FDataModule := Nil;
|
|
|
|
|
inherited;
|
|
|
|
|
end;
|
|
|
|
|
|
2007-11-18 18:42:04 +00:00
|
|
|
procedure TDatosBancariosEmpresaController.Ver(ADatosBancarios : IBizEmpresasDatosBancarios);
|
2007-10-03 16:03:28 +00:00
|
|
|
var
|
|
|
|
|
AEditor : IEditorDatosBancariosEmpresa;
|
|
|
|
|
begin
|
|
|
|
|
AEditor := NIL;
|
2008-11-11 16:22:18 +00:00
|
|
|
CreateEditor('EditorDatosBancariosEmpresa', IEditorDatosBancariosEmpresa, AEditor);
|
|
|
|
|
if Assigned(AEditor) then
|
|
|
|
|
begin
|
2008-11-13 13:10:32 +00:00
|
|
|
try
|
|
|
|
|
AEditor.DatosBancarios := ADatosBancarios;
|
|
|
|
|
AEditor.Controller := Self;
|
|
|
|
|
AEditor.ShowModal;
|
|
|
|
|
finally
|
|
|
|
|
AEditor.Release;
|
|
|
|
|
AEditor := NIL;
|
|
|
|
|
end;
|
2007-10-03 16:03:28 +00:00
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|