git-svn-id: https://192.168.0.254/svn/Proyectos.AlonsoYSal_FactuGES/trunk@5 9a1d36f3-7752-2d40-8ccb-50eb49674c68
74 lines
1.5 KiB
ObjectPascal
74 lines
1.5 KiB
ObjectPascal
unit uPluginControllerCuentas;
|
|
|
|
interface
|
|
|
|
uses
|
|
uModuleController, uInterfaces, uHostManager, Menus, Classes, ActnList,
|
|
ImgList, Controls, PngImageList;
|
|
|
|
type
|
|
IMCCuentas = interface(IInterface)
|
|
['{269979BB-DCF8-41FD-8F46-57022242FE86}']
|
|
end;
|
|
|
|
TModuleCuentas = class(TModuleController, IMCCuentas)
|
|
actCuentas: TAction;
|
|
menu: TMenuItem;
|
|
ExtraImages: TPngImageList;
|
|
LargeImages: TPngImageList;
|
|
MainMenu: TMainMenu;
|
|
ModuleActionList: TActionList;
|
|
Contabilidad1: TMenuItem;
|
|
SmallImages: TPngImageList;
|
|
N1: TMenuItem;
|
|
procedure actCuentasExecute(Sender: TObject);
|
|
public
|
|
end;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
|
|
uses
|
|
Forms, Dialogs, uGUIBase, SysUtils, uDataModuleCuentas, uBizCuentas,
|
|
uEditorCuentas;
|
|
|
|
function GetModule : TModuleController;
|
|
begin
|
|
Result := TModuleCuentas.Create(NIL);
|
|
end;
|
|
|
|
exports
|
|
GetModule name GET_MODULE_FUNC;
|
|
|
|
{
|
|
******************************* TModuleContactos *******************************
|
|
}
|
|
|
|
procedure TModuleCuentas.actCuentasExecute(Sender: TObject);
|
|
var
|
|
aObj: IEditorCuentas;
|
|
ACuentas : IBizCuenta;
|
|
begin
|
|
ACuentas := dmCuentas.GetItems;
|
|
aObj := TfEditorCuentas.Create(Application);
|
|
try
|
|
with aObj do
|
|
begin
|
|
Cuentas := ACuentas;
|
|
ShowEmbedded;
|
|
end;
|
|
finally
|
|
ACuentas := NIL;
|
|
aObj := NIL;
|
|
end;
|
|
end;
|
|
|
|
initialization
|
|
RegisterModuleClass(TModuleCuentas);
|
|
|
|
finalization
|
|
UnRegisterModuleClass(TModuleCuentas);
|
|
|
|
end.
|