diff --git a/Source/Cliente/uPantallaPrincipal.dfm b/Source/Cliente/uPantallaPrincipal.dfm index 8e6ede03..e0e0fb46 100644 --- a/Source/Cliente/uPantallaPrincipal.dfm +++ b/Source/Cliente/uPantallaPrincipal.dfm @@ -268,21 +268,21 @@ object fPantallaPrincipal: TfPantallaPrincipal OnExecute = actAcercaExecute end object actMenuCompras: TAction - Category = 'Compras' + Category = 'Menus' Caption = 'Compras' OnExecute = actMenuComprasExecute OnUpdate = actMenuComprasUpdate end - object actLogisticaMenu: TAction - Category = 'Log'#237'stica' + object actMenuLogistica: TAction + Category = 'Menus' Caption = 'Log'#237'stica' - OnExecute = actLogisticaMenuExecute + OnExecute = actMenuLogisticaExecute OnUpdate = actMenuComprasUpdate end - object actVentasMenu: TAction - Category = 'Ventas' + object actMenuVentas: TAction + Category = 'Menus' Caption = 'Ventas' - OnExecute = actVentasMenuExecute + OnExecute = actMenuVentasExecute OnUpdate = actMenuComprasUpdate end object actVerPanel: TAction @@ -297,6 +297,11 @@ object fPantallaPrincipal: TfPantallaPrincipal OnExecute = actVerBarraEstadoExecute OnUpdate = actVerBarraEstadoUpdate end + object actMenuEmpresa: TAction + Category = 'Menus' + Caption = 'Empresa' + OnUpdate = actMenuComprasUpdate + end end object ModulesSmallImageList: TPngImageList PngImages = < @@ -609,7 +614,7 @@ object fPantallaPrincipal: TfPantallaPrincipal end object Logstica1: TMenuItem Tag = 3000 - Action = actLogisticaMenu + Action = actMenuLogistica object N7: TMenuItem Tag = 200 Caption = '-' @@ -633,7 +638,7 @@ object fPantallaPrincipal: TfPantallaPrincipal end object Ventas1: TMenuItem Tag = 5000 - Action = actVentasMenu + Action = actMenuVentas object N3: TMenuItem Tag = 200 Caption = '-' diff --git a/Source/Cliente/uPantallaPrincipal.pas b/Source/Cliente/uPantallaPrincipal.pas index 5a85e8d6..926f6cd3 100644 --- a/Source/Cliente/uPantallaPrincipal.pas +++ b/Source/Cliente/uPantallaPrincipal.pas @@ -63,8 +63,8 @@ type Compras1: TMenuItem; Ventas1: TMenuItem; actMenuCompras: TAction; - actLogisticaMenu: TAction; - actVentasMenu: TAction; + actMenuLogistica: TAction; + actMenuVentas: TAction; Logstica1: TMenuItem; pagInicio: TJvNavPanelPage; Panel1: TPanel; @@ -88,6 +88,7 @@ type N8: TMenuItem; N9: TMenuItem; N10: TMenuItem; + actMenuEmpresa: TAction; procedure FormCreate(Sender: TObject); procedure Salir1Click(Sender: TObject); procedure actSalirExecute(Sender: TObject); @@ -99,8 +100,8 @@ type procedure ApplicationEventsException(Sender: TObject; E: Exception); procedure actMenuComprasExecute(Sender: TObject); procedure actMenuComprasUpdate(Sender: TObject); - procedure actLogisticaMenuExecute(Sender: TObject); - procedure actVentasMenuExecute(Sender: TObject); + procedure actMenuLogisticaExecute(Sender: TObject); + procedure actMenuVentasExecute(Sender: TObject); procedure actActualizacionesExecute(Sender: TObject); procedure actVerPanelUpdate(Sender: TObject); procedure actVerPanelExecute(Sender: TObject); @@ -195,7 +196,7 @@ procedure TfPantallaPrincipal.RefrescarUI; var ATitulo : String; begin - ATitulo := AppFactuGES.AppName + ' ' + AppFactuGES.AppVersion; + ATitulo := AppFactuGES.GetAppFullName; if Assigned(AppFactuGES.EmpresaActiva) then ATitulo := AppFactuGES.EmpresaActiva.NOMBRE + ' - ' + ATitulo; @@ -232,7 +233,7 @@ begin Close; end; -procedure TfPantallaPrincipal.actVentasMenuExecute(Sender: TObject); +procedure TfPantallaPrincipal.actMenuVentasExecute(Sender: TObject); begin // end; @@ -311,8 +312,10 @@ var AListaEmpresas : IBizEmpresa; i : Integer; begin - for i := 0 to AppFactuGES.ModuleManager.ModulesCount - 1 do - MainMenuController.RegisterModule(AppFactuGES.ModuleManager.Modules[i]); + ShowHourglassCursor; + try + for i := 0 to AppFactuGES.ModuleManager.ModulesCount - 1 do + MainMenuController.RegisterModule(AppFactuGES.ModuleManager.Modules[i]); MainMenuController.SortMenuByTag; MainMenuController.InitMainMenu; @@ -343,6 +346,9 @@ begin end; RefrescarUI; + finally + HideHourglassCursor; + end; end; @@ -356,7 +362,7 @@ begin (Sender as TAction).Enabled := Assigned(AppFactuGES.EmpresaActiva); end; -procedure TfPantallaPrincipal.actLogisticaMenuExecute(Sender: TObject); +procedure TfPantallaPrincipal.actMenuLogisticaExecute(Sender: TObject); begin // end; diff --git a/Source/Modulos/Referencias/Controller/Referencias_controller.dpk b/Source/Modulos/Referencias/Controller/Referencias_controller.dpk index a14a98d7..74c3a70a 100644 Binary files a/Source/Modulos/Referencias/Controller/Referencias_controller.dpk and b/Source/Modulos/Referencias/Controller/Referencias_controller.dpk differ diff --git a/Source/Modulos/Referencias/Controller/Referencias_controller.dproj b/Source/Modulos/Referencias/Controller/Referencias_controller.dproj index 475f5e72..99ed94bc 100644 --- a/Source/Modulos/Referencias/Controller/Referencias_controller.dproj +++ b/Source/Modulos/Referencias/Controller/Referencias_controller.dproj @@ -40,21 +40,35 @@ Delphi.Personality Package -FalseTrueFalseTrueFalseFalseTrueFalse1000FalseFalseFalseFalseFalse308212521.0.0.01.0.0.0Referencias_controller.dpk +FalseTrueFalseFalseFalseFalseTrueFalse1000FalseFalseFalseFalseFalse308212521.0.0.01.0.0.0Referencias_controller.dpk MainSource - - - + + + + + + + + + + + + + + + + + + -