2011-11-14 17:40:41 +00:00
|
|
|
|
unit uPluginFormasPago;
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
|
uModuleController, uInterfaces, uHostManager, Menus, Classes, ActnList,
|
|
|
|
|
|
ImgList, Controls, PngImageList;
|
|
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
IMCFormasPago = interface(IInterface)
|
|
|
|
|
|
['{255E8D6B-282A-48CC-9807-E49C7D31FD2D}']
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
TPluginFormasPago = class(TModuleController, IMCFormasPago)
|
|
|
|
|
|
actFormasPago: TAction;
|
|
|
|
|
|
ExtraImages: TPngImageList;
|
|
|
|
|
|
LargeImages: TPngImageList;
|
|
|
|
|
|
MainMenu: TMainMenu;
|
|
|
|
|
|
ModuleActionList: TActionList;
|
|
|
|
|
|
SmallImages: TPngImageList;
|
|
|
|
|
|
Ventas1: TMenuItem;
|
|
|
|
|
|
FormasPago1: TMenuItem;
|
|
|
|
|
|
procedure actFormasPagoExecute(Sender: TObject);
|
|
|
|
|
|
public
|
|
|
|
|
|
constructor Create(AOwner: TComponent); override;
|
|
|
|
|
|
destructor Destroy; override;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
|
|
uses
|
2024-04-19 15:09:52 +00:00
|
|
|
|
Forms, Dialogs, SysUtils, uFactuGES_App,
|
2011-11-14 17:40:41 +00:00
|
|
|
|
uFormasPagoController, uBizFormasPago, uFormasPagoViewRegister;
|
|
|
|
|
|
|
|
|
|
|
|
function GetModule : TModuleController;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := TPluginFormasPago.Create(NIL);
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
exports
|
|
|
|
|
|
GetModule name GET_MODULE_FUNC;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TPluginFormasPago.actFormasPagoExecute(Sender: TObject);
|
|
|
|
|
|
var
|
|
|
|
|
|
AFormasPagoController : IFormasPagoController;
|
|
|
|
|
|
AFormasPago : IBizFormaPago;
|
|
|
|
|
|
begin
|
|
|
|
|
|
AFormasPagoController := TFormasPagoController.Create;
|
|
|
|
|
|
AFormasPago := (AFormasPagoController.BuscarTodos as IBizFormaPago);
|
|
|
|
|
|
AFormasPagoController.VerTodos(AFormasPago);
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
constructor TPluginFormasPago.Create(AOwner: TComponent);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
uFormasPagoViewRegister.RegisterViews;
|
2024-04-19 15:09:52 +00:00
|
|
|
|
|
|
|
|
|
|
//Los usuarios SOLO PRESUPUESTOS ver<65>n solo clientes y presupuestos de la empresa asignada o todas
|
|
|
|
|
|
if ((AppFactuGES.UsuarioActivo.ID_PERFIL >= CTE_PERFIL_PRESUPUESTOS_INI)
|
|
|
|
|
|
and (AppFactuGES.UsuarioActivo.ID_PERFIL <= CTE_PERFIL_PRESUPUESTOS_FIN)) then
|
|
|
|
|
|
begin
|
|
|
|
|
|
actFormasPago.Enabled := False;
|
|
|
|
|
|
actFormasPago.Visible := False;
|
|
|
|
|
|
end;
|
2011-11-14 17:40:41 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
destructor TPluginFormasPago.Destroy;
|
|
|
|
|
|
begin
|
|
|
|
|
|
uFormasPagoViewRegister.UnregisterViews;
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
initialization
|
|
|
|
|
|
RegisterModuleClass(TPluginFormasPago);
|
|
|
|
|
|
|
|
|
|
|
|
finalization
|
|
|
|
|
|
UnRegisterModuleClass(TPluginFormasPago);
|
|
|
|
|
|
|
|
|
|
|
|
end.
|