2007-11-28 17:40:31 +00:00
|
|
|
unit uDatosBancariosEmpresaController;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
Windows, Forms, Classes, Controls, Contnrs, SysUtils, uDADataTable,
|
2008-07-14 14:35:47 +00:00
|
|
|
uBizEmpresas, uBizEmpresasDatosBancarios, uIDataModuleEmpresas,
|
|
|
|
|
uControllerBase;
|
2007-11-28 17:40:31 +00:00
|
|
|
|
|
|
|
|
type
|
2008-07-14 14:35:47 +00:00
|
|
|
IDatosBancariosEmpresaController = interface(IControllerBase)
|
2007-11-28 17:40:31 +00:00
|
|
|
['{E9B0313E-7B16-420A-B47E-20E42E96BAC6}']
|
|
|
|
|
procedure Ver(ADatosBancarios : IBizEmpresasDatosBancarios);
|
|
|
|
|
end;
|
|
|
|
|
|
2008-07-14 14:35:47 +00:00
|
|
|
TDatosBancariosEmpresaController = class(TControllerBase, IDatosBancariosEmpresaController)
|
2007-11-28 17:40:31 +00:00
|
|
|
public
|
|
|
|
|
procedure Ver(ADatosBancarios : IBizEmpresasDatosBancarios);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
{ TDatosBancariosEmpresaController }
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
uDataModuleEmpresas, schEmpresasClient_Intf, uIEditorDatosBancarioEmpresa,
|
|
|
|
|
uEditorRegistryUtils, cxControls;
|
|
|
|
|
|
|
|
|
|
procedure TDatosBancariosEmpresaController.Ver(ADatosBancarios : IBizEmpresasDatosBancarios);
|
|
|
|
|
var
|
|
|
|
|
AEditor : IEditorDatosBancariosEmpresa;
|
|
|
|
|
begin
|
|
|
|
|
AEditor := NIL;
|
2008-11-11 18:52:28 +00:00
|
|
|
|
|
|
|
|
CreateEditor('EditorDatosBancariosEmpresa', IEditorDatosBancariosEmpresa, AEditor);
|
|
|
|
|
if Assigned(AEditor) then
|
|
|
|
|
with AEditor do
|
|
|
|
|
begin
|
|
|
|
|
try
|
|
|
|
|
DatosBancarios := ADatosBancarios;
|
|
|
|
|
Controller := Self;
|
|
|
|
|
ShowModal;
|
|
|
|
|
finally
|
|
|
|
|
Release;
|
|
|
|
|
AEditor := NIL;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
2007-11-28 17:40:31 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|