2007-10-08 07:58:40 +00:00
|
|
|
|
unit uFactuGES_App;
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
|
|
uses
|
2008-01-13 21:37:20 +00:00
|
|
|
|
SysUtils, Classes, Forms, uBizUsuarios, uBizEmpresas, uControllerBase,
|
2007-10-22 07:39:39 +00:00
|
|
|
|
uEmpresasController, JclFileUtils, uUsuariosController, uHostManager;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
|
|
|
|
|
type
|
2007-10-22 07:39:39 +00:00
|
|
|
|
TDoLoadModulesEvent = procedure;
|
|
|
|
|
|
TDoMainFormEvent = procedure;
|
|
|
|
|
|
|
|
|
|
|
|
IAppSplashForm = interface
|
|
|
|
|
|
['{9905DF57-4476-42E6-A7CD-B1479A84E220}']
|
|
|
|
|
|
procedure Show;
|
|
|
|
|
|
procedure Hide;
|
|
|
|
|
|
procedure Update;
|
|
|
|
|
|
function GetMensaje: String;
|
|
|
|
|
|
procedure SetMensaje(const AMensaje : String);
|
|
|
|
|
|
property Mensaje : String read GetMensaje write SetMensaje;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
IAppFactuGES = interface
|
|
|
|
|
|
['{FB6A0F3C-C1D1-462D-AFD4-2A368F85E920}']
|
|
|
|
|
|
function GetMainForm: TCustomForm;
|
|
|
|
|
|
function GetEmpresasController: IEmpresasController;
|
|
|
|
|
|
function GetUsuariosController: IUsuariosController;
|
|
|
|
|
|
function GetAppName: String;
|
|
|
|
|
|
function GetAppVersion: String;
|
|
|
|
|
|
function GetUsuarioActivo: TUsuario;
|
|
|
|
|
|
function GetEmpresaActiva: IBizEmpresa;
|
|
|
|
|
|
function GetModuleManager : THostManager;
|
|
|
|
|
|
function GetTerminated: Boolean;
|
|
|
|
|
|
|
|
|
|
|
|
function GetLoadModulesEvent : TDoLoadModulesEvent;
|
|
|
|
|
|
procedure SetLoadModulesEvent (ALoadModulesEvent : TDoLoadModulesEvent);
|
|
|
|
|
|
|
|
|
|
|
|
function GetDoMainFormEvent : TDoMainFormEvent;
|
|
|
|
|
|
procedure SetDoMainFormEvent (AMainFormEvent : TDoMainFormEvent);
|
|
|
|
|
|
|
|
|
|
|
|
function GetAppSplashForm : IAppSplashForm;
|
|
|
|
|
|
procedure SetAppSplashForm (AAppSplashForm : IAppSplashForm);
|
|
|
|
|
|
|
|
|
|
|
|
procedure CambiarEmpresa(const AIDEmpresa : Integer);
|
|
|
|
|
|
|
|
|
|
|
|
procedure ShowSplashForm;
|
|
|
|
|
|
procedure HideSplashForm;
|
|
|
|
|
|
|
|
|
|
|
|
procedure Run;
|
|
|
|
|
|
procedure Terminate;
|
|
|
|
|
|
|
|
|
|
|
|
property AppVersion : String read GetAppVersion;
|
|
|
|
|
|
property AppName : String read GetAppName;
|
|
|
|
|
|
property MainForm : TCustomForm read GetMainForm;
|
|
|
|
|
|
property EmpresaActiva : IBizEmpresa read GetEmpresaActiva;
|
|
|
|
|
|
property UsuarioActivo : TUsuario read GetUsuarioActivo;
|
|
|
|
|
|
property EmpresasController : IEmpresasController read GetEmpresasController;
|
2008-01-13 21:37:20 +00:00
|
|
|
|
property UsuariosController : IUsuariosController read GetUsuariosController;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
property AppSplashForm : IAppSplashForm read GetAppSplashForm write SetAppSplashForm;
|
|
|
|
|
|
property ModuleManager : THostManager read GetModuleManager;
|
|
|
|
|
|
property DoMainFormEvent : TDoMainFormEvent read GetDoMainFormEvent write SetDoMainFormEvent;
|
|
|
|
|
|
property DoLoadModulesEvent : TDoLoadModulesEvent read GetLoadModulesEvent write SetLoadModulesEvent;
|
|
|
|
|
|
property Terminated : Boolean read GetTerminated;
|
2007-11-19 19:13:37 +00:00
|
|
|
|
|
|
|
|
|
|
procedure ShowCapado;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TAppFactuGES = class(TInterfacedObject, IAppFactuGES)
|
2007-10-08 07:58:40 +00:00
|
|
|
|
private
|
2007-10-22 07:39:39 +00:00
|
|
|
|
FAppInfo : TJclFileVersionInfo;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
FEmpresasController : IEmpresasController;
|
|
|
|
|
|
FUsuariosController: IUsuariosController;
|
|
|
|
|
|
FEmpresaActiva: IBizEmpresa;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
FAppSplashForm : IAppSplashForm;
|
|
|
|
|
|
FHostManager : THostManager;
|
|
|
|
|
|
FTerminated : Boolean;
|
2007-11-19 19:13:37 +00:00
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
FDoMainFormEvent: TDoMainFormEvent;
|
|
|
|
|
|
FDoLoadModulesEvent: TDoMainFormEvent;
|
|
|
|
|
|
|
|
|
|
|
|
function GetMainForm: TCustomForm;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
function GetEmpresasController: IEmpresasController;
|
|
|
|
|
|
function GetUsuariosController: IUsuariosController;
|
|
|
|
|
|
function GetAppName: String;
|
|
|
|
|
|
function GetAppVersion: String;
|
2007-10-09 07:47:51 +00:00
|
|
|
|
function GetUsuarioActivo: TUsuario;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
function GetEmpresaActiva: IBizEmpresa;
|
|
|
|
|
|
function GetModuleManager : THostManager;
|
|
|
|
|
|
function GetTerminated: Boolean;
|
|
|
|
|
|
|
|
|
|
|
|
function GetLoadModulesEvent : TDoLoadModulesEvent;
|
|
|
|
|
|
procedure SetLoadModulesEvent (ALoadModulesEvent : TDoLoadModulesEvent);
|
|
|
|
|
|
|
|
|
|
|
|
function GetDoMainFormEvent : TDoMainFormEvent;
|
|
|
|
|
|
procedure SetDoMainFormEvent (AMainFormEvent : TDoMainFormEvent);
|
|
|
|
|
|
|
|
|
|
|
|
function GetAppSplashForm : IAppSplashForm;
|
|
|
|
|
|
procedure SetAppSplashForm (AAppSplashForm : IAppSplashForm);
|
|
|
|
|
|
|
|
|
|
|
|
procedure AfterLoadModule(Sender: TObject; AModuleInfo: TModuleInfo);
|
|
|
|
|
|
procedure RegisterModule(AModuleInfo : TModuleInfo);
|
2007-10-08 07:58:40 +00:00
|
|
|
|
protected
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure DoMainForm;
|
|
|
|
|
|
|
|
|
|
|
|
procedure CargarModulos;
|
|
|
|
|
|
procedure ShowSplashForm;
|
|
|
|
|
|
procedure HideSplashForm;
|
|
|
|
|
|
procedure UpdateSplashForm;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
public
|
2007-10-22 07:39:39 +00:00
|
|
|
|
constructor Create; virtual;
|
|
|
|
|
|
destructor Destroy; override;
|
|
|
|
|
|
|
|
|
|
|
|
procedure Run;
|
|
|
|
|
|
procedure Terminate;
|
|
|
|
|
|
|
|
|
|
|
|
procedure CambiarEmpresa(const AIDEmpresa : Integer);
|
|
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
property AppVersion : String read GetAppVersion;
|
|
|
|
|
|
property AppName : String read GetAppName;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
property MainForm : TCustomForm read GetMainForm;
|
|
|
|
|
|
property EmpresaActiva : IBizEmpresa read GetEmpresaActiva;
|
|
|
|
|
|
property AppSplashForm : IAppSplashForm read GetAppSplashForm write SetAppSplashForm;
|
2007-10-09 07:47:51 +00:00
|
|
|
|
property UsuarioActivo : TUsuario read GetUsuarioActivo;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
property EmpresasController : IEmpresasController read GetEmpresasController;
|
|
|
|
|
|
property UsuariosController : IUsuariosController read GetUsuariosController;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
property ModuleManager : THostManager read GetModuleManager;
|
|
|
|
|
|
property DoMainFormEvent : TDoMainFormEvent read GetDoMainFormEvent write SetDoMainFormEvent;
|
|
|
|
|
|
property DoLoadModulesEvent : TDoLoadModulesEvent read GetLoadModulesEvent write SetLoadModulesEvent;
|
|
|
|
|
|
property Terminated : Boolean read GetTerminated;
|
2007-11-19 19:13:37 +00:00
|
|
|
|
|
|
|
|
|
|
procedure ShowCapado;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
var
|
2007-10-22 07:39:39 +00:00
|
|
|
|
AppFactuGES : IAppFactuGES = nil;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
|
|
uses
|
2007-11-19 19:13:37 +00:00
|
|
|
|
Dialogs, uDialogUtils, cxControls, uUsuariosViewRegister,
|
2007-10-22 07:39:39 +00:00
|
|
|
|
uEmpresasViewRegister;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.CambiarEmpresa(const AIDEmpresa: Integer);
|
2007-10-09 07:47:51 +00:00
|
|
|
|
var
|
|
|
|
|
|
Aux : IBizEmpresa;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
begin
|
2007-10-09 07:47:51 +00:00
|
|
|
|
Aux := EmpresasController.Buscar(AIDEmpresa);
|
|
|
|
|
|
if Assigned(Aux) then
|
|
|
|
|
|
begin
|
|
|
|
|
|
Aux.DataTable.Active := True;
|
|
|
|
|
|
if not Aux.IsEmpty then
|
|
|
|
|
|
FEmpresaActiva := Aux;
|
|
|
|
|
|
end;
|
|
|
|
|
|
end;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.CargarModulos;
|
2007-10-09 07:47:51 +00:00
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
if not Assigned(FDoLoadModulesEvent) then
|
|
|
|
|
|
raise Exception.Create('Evento para la carga de los m<>dulos de la aplicaci<63>n no asignado (CargarModulos)');
|
|
|
|
|
|
|
|
|
|
|
|
FDoLoadModulesEvent();
|
2007-10-08 07:58:40 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
constructor TAppFactuGES.Create;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
FTerminated := False;
|
|
|
|
|
|
FDoMainFormEvent := NIL;
|
|
|
|
|
|
FDoLoadModulesEvent := NIL;
|
|
|
|
|
|
FAppSplashForm := NIL;
|
|
|
|
|
|
FEmpresaActiva := NIL;
|
|
|
|
|
|
FUsuariosController := NIL; // Se crea la primera vez que se usa
|
2008-01-13 21:37:20 +00:00
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
FEmpresasController := NIL; // Se crea la primera vez que se usa
|
|
|
|
|
|
|
|
|
|
|
|
FAppInfo := TJclFileVersionInfo.Create(Application.ExeName);
|
|
|
|
|
|
FHostManager := THostManager.Create(NIL);
|
|
|
|
|
|
with FHostManager do
|
2007-10-08 07:58:40 +00:00
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
OnAfterLoad := AfterLoadModule;
|
|
|
|
|
|
// Ruta por defecto de los m<>dulos
|
|
|
|
|
|
BPLPath := ExtractFilePath(Application.ExeName) + '\';
|
|
|
|
|
|
end;
|
|
|
|
|
|
end;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
destructor TAppFactuGES.Destroy;
|
|
|
|
|
|
begin
|
|
|
|
|
|
FAppSplashForm := NIL;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
FHostManager.UnloadModules;
|
|
|
|
|
|
FreeAndNIL(FHostManager);
|
|
|
|
|
|
|
|
|
|
|
|
FEmpresaActiva := NIL;
|
|
|
|
|
|
FUsuariosController := NIL;
|
|
|
|
|
|
FEmpresasController := NIL;
|
|
|
|
|
|
|
|
|
|
|
|
FreeAndNIL(FAppInfo);
|
|
|
|
|
|
inherited;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.DoMainForm;
|
|
|
|
|
|
begin
|
|
|
|
|
|
if not Assigned(FDoMainFormEvent) then
|
|
|
|
|
|
raise Exception.Create('Evento para la creaci<63>n del formulario principal no asignado (DoMainForm)');
|
|
|
|
|
|
|
|
|
|
|
|
FDoMainFormEvent();
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
function TAppFactuGES.GetMainForm: TCustomForm;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
begin
|
|
|
|
|
|
Result := Application.MainForm;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
function TAppFactuGES.GetDoMainFormEvent: TDoMainFormEvent;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := FDoMainFormEvent;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
function TAppFactuGES.GetAppName: String;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := FAppInfo.ProductName;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
function TAppFactuGES.GetAppSplashForm: IAppSplashForm;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := FAppSplashForm;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
function TAppFactuGES.GetAppVersion: String;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := FAppInfo.ProductVersion;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
function TAppFactuGES.GetEmpresaActiva: IBizEmpresa;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := FEmpresaActiva;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
function TAppFactuGES.GetEmpresasController: IEmpresasController;
|
|
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
if not Assigned(FEmpresasController) then
|
|
|
|
|
|
FEmpresasController := TEmpresasController.Create;
|
|
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
Result := FEmpresasController;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
function TAppFactuGES.GetLoadModulesEvent: TDoLoadModulesEvent;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := FDoLoadModulesEvent;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
function TAppFactuGES.GetModuleManager: THostManager;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := FHostManager;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
function TAppFactuGES.GetTerminated: Boolean;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := FTerminated;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-09 07:47:51 +00:00
|
|
|
|
function TAppFactuGES.GetUsuarioActivo: TUsuario;
|
|
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
Result := UsuariosController.CurrentUser;
|
2007-10-09 07:47:51 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
function TAppFactuGES.GetUsuariosController: IUsuariosController;
|
|
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
if not Assigned(FUsuariosController) then
|
|
|
|
|
|
FUsuariosController := TUsuariosController.Create;
|
|
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
Result := FUsuariosController;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.HideSplashForm;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
if not Assigned(FAppSplashForm) then
|
|
|
|
|
|
raise Exception.Create('AppSplashForm no asignado (HideSplashForm)');
|
|
|
|
|
|
|
|
|
|
|
|
FAppSplashForm.Hide;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.AfterLoadModule(Sender: TObject;
|
|
|
|
|
|
AModuleInfo: TModuleInfo);
|
2007-10-08 07:58:40 +00:00
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
RegisterModule(AModuleInfo);
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TAppFactuGES.RegisterModule(AModuleInfo: TModuleInfo);
|
|
|
|
|
|
begin
|
|
|
|
|
|
AppSplashForm.Mensaje := 'Cargando ''' + AModuleInfo.Module.ModuleName + '''...';
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TAppFactuGES.Run;
|
|
|
|
|
|
begin
|
|
|
|
|
|
if UsuariosController.StartLogin then
|
2007-10-08 07:58:40 +00:00
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
ShowHourglassCursor;
|
|
|
|
|
|
try
|
2007-11-14 22:23:50 +00:00
|
|
|
|
//ShowSplashForm;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
CargarModulos;
|
|
|
|
|
|
DoMainForm;
|
|
|
|
|
|
finally
|
|
|
|
|
|
HideHourglassCursor;
|
|
|
|
|
|
HideSplashForm;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
//InicializarUI;
|
|
|
|
|
|
//Application.ProcessMessages;
|
|
|
|
|
|
//Visible := True;
|
|
|
|
|
|
//AplicarPerfil;
|
|
|
|
|
|
// Application.CreateForm();
|
2007-10-08 07:58:40 +00:00
|
|
|
|
end;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
Application.Run;
|
|
|
|
|
|
Terminate;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.SetDoMainFormEvent(
|
|
|
|
|
|
AMainFormEvent: TDoMainFormEvent);
|
2007-10-08 07:58:40 +00:00
|
|
|
|
begin
|
2007-10-22 07:39:39 +00:00
|
|
|
|
FDoMainFormEvent := AMainFormEvent;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.SetAppSplashForm(AAppSplashForm: IAppSplashForm);
|
|
|
|
|
|
begin
|
|
|
|
|
|
FAppSplashForm := AAppSplashForm;
|
|
|
|
|
|
end;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.SetLoadModulesEvent(
|
|
|
|
|
|
ALoadModulesEvent: TDoLoadModulesEvent);
|
|
|
|
|
|
begin
|
|
|
|
|
|
FDoLoadModulesEvent := ALoadModulesEvent;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-11-19 19:13:37 +00:00
|
|
|
|
procedure TAppFactuGES.ShowCapado;
|
|
|
|
|
|
begin
|
|
|
|
|
|
ShowInfoMessage('Sin Acceso', 'Funcionalidad en desarrollo, disculpen las molestias');
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.ShowSplashForm;
|
|
|
|
|
|
begin
|
|
|
|
|
|
if not Assigned(FAppSplashForm) then
|
|
|
|
|
|
raise Exception.Create('AppSplashForm no asignado (ShowSplashForm)');
|
|
|
|
|
|
|
|
|
|
|
|
FAppSplashForm.Show;
|
|
|
|
|
|
FAppSplashForm.Update;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TAppFactuGES.Terminate;
|
|
|
|
|
|
begin
|
|
|
|
|
|
ModuleManager.UnloadModules;
|
|
|
|
|
|
FTerminated := True;
|
|
|
|
|
|
end;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
2007-10-22 07:39:39 +00:00
|
|
|
|
procedure TAppFactuGES.UpdateSplashForm;
|
|
|
|
|
|
begin
|
|
|
|
|
|
FAppSplashForm.Update;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
initialization
|
2007-10-08 07:58:40 +00:00
|
|
|
|
// Pongo esto aqu<71> por ahora
|
|
|
|
|
|
uUsuariosViewRegister.RegisterViews;
|
2007-10-09 07:47:51 +00:00
|
|
|
|
uEmpresasViewRegister.RegisterViews;
|
2007-10-08 07:58:40 +00:00
|
|
|
|
|
|
|
|
|
|
finalization
|
|
|
|
|
|
// Pongo esto aqu<71> por ahora
|
2007-10-24 18:54:18 +00:00
|
|
|
|
AppFactuGES := NIL;
|
|
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
uUsuariosViewRegister.UnregisterViews;
|
2007-10-09 07:47:51 +00:00
|
|
|
|
uEmpresasViewRegister.UnregisterViews;
|
2007-10-22 07:39:39 +00:00
|
|
|
|
|
2007-10-08 07:58:40 +00:00
|
|
|
|
end.
|