Tecsitel_FactuGES2/Source/Modulos/Recibos de cliente/Plugin/uPluginRecibosCliente.pas
2007-11-05 17:59:28 +00:00

75 lines
1.8 KiB
ObjectPascal

unit uPluginRecibosCliente;
interface
uses
uModuleController, uInterfaces, uHostManager, Menus, Classes, ActnList,
ImgList, Controls, PngImageList;
type
IMCRecibosCliente = interface(IInterface)
['{9078C6E6-6733-4CD8-BCBF-DEC48A322CF7}']
end;
TPluginRecibosCliente = class(TModuleController, IMCRecibosCliente)
actRecibosCliente: TAction;
ExtraImages: TPngImageList;
LargeImages: TPngImageList;
MainMenu: TMainMenu;
ModuleActionList: TActionList;
SmallImages: TPngImageList;
Compras1: TMenuItem;
RecibosdeCliente1: TMenuItem;
procedure actRecibosClienteExecute(Sender: TObject);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
end;
implementation
{$R *.dfm}
uses
Forms, Dialogs, SysUtils,
uRecibosClienteController, uBizRecibosCliente, uRecibosClienteViewRegister;
function GetModule : TModuleController;
begin
Result := TPluginRecibosCliente.Create(NIL);
end;
exports
GetModule name GET_MODULE_FUNC;
procedure TPluginRecibosCliente.actRecibosClienteExecute(Sender: TObject);
var
ARecibosClienteController : IRecibosClienteController;
ARecibosCliente : IBizRecibosCliente;
begin
ARecibosClienteController := TRecibosClienteController.Create;
ARecibosCliente := (ARecibosClienteController.BuscarTodos as IBizRecibosCliente);
ARecibosClienteController.VerTodos(ARecibosCliente);
end;
constructor TPluginRecibosCliente.Create(AOwner: TComponent);
begin
inherited;
uRecibosClienteViewRegister.RegisterViews;
end;
destructor TPluginRecibosCliente.Destroy;
begin
uRecibosClienteViewRegister.UnregisterViews;
inherited;
end;
initialization
RegisterModuleClass(TPluginRecibosCliente);
finalization
UnRegisterModuleClass(TPluginRecibosCliente);
end.