From be46189d975641978e9f6d70c7b2f2cd9506ee02 Mon Sep 17 00:00:00 2001 From: mgarcianun Date: Wed, 4 Dec 2019 00:11:01 +0100 Subject: [PATCH] =?UTF-8?q?Menu=20din=C3=A1mico=20en=20funci=C3=B3n=20de?= =?UTF-8?q?=20si=20el=20usuario=20est=C3=A1=20logeado=20o=20no.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyHealth/docroot/WEB-INF/faces-config.xml | 46 ++++++- 1.sources/MyHealth/docroot/header.xhtml | 20 ++-- .../src/TO/PrimaryHealthCareCenterTO.java | 16 +-- .../src/managedbean/common/MenuMBean.java | 113 ++++++++++++++---- .../managedbean/systemAdmin/LoginMBean.java | 14 ++- 5 files changed, 159 insertions(+), 50 deletions(-) diff --git a/1.sources/MyHealth/docroot/WEB-INF/faces-config.xml b/1.sources/MyHealth/docroot/WEB-INF/faces-config.xml index f8b8e6a..ffcf652 100644 --- a/1.sources/MyHealth/docroot/WEB-INF/faces-config.xml +++ b/1.sources/MyHealth/docroot/WEB-INF/faces-config.xml @@ -15,7 +15,7 @@ AddPatient /profile/AddPatient.xhtml - + AddFamilyDoctor /profile/AddFamilyDoctor.xhtml @@ -51,12 +51,16 @@ UpdatePatient /profile/UpdatePatient.xhtml + + UpdateProfile + /profile/UpdateProfile.xhtml + changecap /profile/ChangePrimaryHealthCareCenter.xhtml - MedicalTests + AddMedicalTest /medicaltest/MedicalTests.xhtml @@ -64,8 +68,44 @@ /visit/VisitView.xhtml - ManageSpecialties + ManageCAPs /systemAdmin/ManageSpecialties.xhtml + + ManageMedicalSpecialties + /systemAdmin/ManageSpecialties.xhtml + + + AddUserAdmin + /systemAdmin/ManageSpecialties.xhtml + + + ScheduleVisit + /visit/VisitView.xhtml + + + QueryVisit + /visit/VisitView.xhtml + + + MedicaltestManage + /mdicaltest/MedicalTests.xhtml + + + QueryDoctorBySpecialty + /mdicaltest/MedicalTests.xhtml + + + ListDoctorsbySpecialty + /mdicaltest/MedicalTests.xhtml + + + AskQuestion + /mdicaltest/MedicalTests.xhtml + + + AnswerQuestion + /mdicaltest/MedicalTests.xhtml + diff --git a/1.sources/MyHealth/docroot/header.xhtml b/1.sources/MyHealth/docroot/header.xhtml index 5c52793..6b06d69 100644 --- a/1.sources/MyHealth/docroot/header.xhtml +++ b/1.sources/MyHealth/docroot/header.xhtml @@ -12,14 +12,19 @@ function handleLoginRequest(xhr, status, args) { + $('#loginSpin').slideUp(); + if(args.validationFailed || !args.loggedIn) { PF('dlgLogin').jq.effect("shake", {times:5}, 100); } else { PF('dlgLogin').hide(); - $('#loginLink').fadeOut(); } } + + function showSpinner() { + $('#loginSpin').slideDown(); + }
@@ -29,10 +34,11 @@