unit uPluginInfVentasArticulo;

interface

uses
  uModuleController, uInterfaces, uHostManager, Menus, Classes, ActnList,
  ImgList, Controls, PngImageList;

type
  IMCInfVentasArticulo = interface(IInterface)
  ['{6AB7F54B-AEAD-4317-907C-B54758666AB8}']
  end;

  TPluginInfVentasArticulo = class(TModuleController, IMCInfVentasArticulo)
    actVentasArticulo: TAction;
    ExtraImages: TPngImageList;
    LargeImages: TPngImageList;
    MainMenu: TMainMenu;
    ModuleActionList: TActionList;
    SmallImages: TPngImageList;
    HistoricoMovimientos1: TMenuItem;
    HistoricoMovimiento1: TMenuItem;
    N1: TMenuItem;
    procedure actVentasArticuloExecute(Sender: TObject);
  public
    constructor Create(AOwner: TComponent); override;
    destructor Destroy; override;
  end;

implementation

{$R *.dfm}

uses
  Forms, Dialogs, SysUtils;
//  uHistoricoMovimientosController, uBizHistoricoMovimientos, uHistoricoMovimientosViewRegister;

function GetModule : TModuleController;
begin
  Result := TPluginInfVentasArticulo.Create(NIL);
end;

exports
  GetModule name GET_MODULE_FUNC;

procedure TPluginInfVentasArticulo.actVentasArticuloExecute(Sender: TObject);
{var
  AHistoricoMovimientosController : IHistoricoMovimientosController;
  AHistoricoMovimientos : IBizHistoricoMovimientos;
}
begin
showmessage('Hola');
{  AHistoricoMovimientosController := THistoricoMovimientosController.Create;
  AHistoricoMovimientos := (AHistoricoMovimientosController.BuscarTodos as IBizHistoricoMovimientos);
  AHistoricoMovimientosController.VerTodos(AHistoricoMovimientos);
}
end;

constructor TPluginVentasArticulo.Create(AOwner: TComponent);
begin
  inherited;
//  uInfVentasArticuloViewRegister.RegisterViews;
end;

destructor TPluginVentasArticulo.Destroy;
begin
//  uInfVentasArticuloViewRegister.UnregisterViews;
  inherited;
end;

initialization
  RegisterModuleClass(TPluginInfVentasArticulo);

finalization
  UnRegisterModuleClass(TPluginInfVentasArticulo);

end.
