Para controllar las barras activas de cada una de las empresas
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@378 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
32bd811f27
commit
e07c33266a
@ -209,6 +209,7 @@ end;
|
||||
procedure TfPantallaPrincipal.RefrescarUI;
|
||||
var
|
||||
ATitulo : String;
|
||||
i: Integer;
|
||||
begin
|
||||
ATitulo := AppFactuGES.GetAppFullName;
|
||||
|
||||
@ -232,6 +233,13 @@ begin
|
||||
TBXStatusBar1.Panels[2].Caption := AppFactuGES.TiendaActiva.NOMBRE
|
||||
else
|
||||
TBXStatusBar1.Panels[2].Caption := 'Sin tienda por defecto';
|
||||
|
||||
// Comprobar que el panel lateral tiene la empresa activa
|
||||
if Assigned(AppFactuGES.EmpresaActiva) then
|
||||
for i := 0 to JvNavigationPane.PageCount - 1 do
|
||||
if (JvNavigationPane.Pages[i].Tag = AppFactuGES.EmpresaActiva.ID) and
|
||||
(JvNavigationPane.ActivePageIndex <> i) then
|
||||
JvNavigationPane.ActivePageIndex := i;
|
||||
end;
|
||||
|
||||
procedure TfPantallaPrincipal.ReleaseEmbedded;
|
||||
@ -601,6 +609,7 @@ end;
|
||||
procedure TfPantallaPrincipal.Listadeempresas1_OLDClick(Sender: TObject);
|
||||
begin
|
||||
AppFactuGES.SeleccionarEmpresa;
|
||||
RefrescarUI;
|
||||
end;
|
||||
|
||||
procedure TfPantallaPrincipal.actConexionExecute(Sender: TObject);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user