From 604da16b6c116b841aec700b1e13ff9dced5929d Mon Sep 17 00:00:00 2001 From: Piyankara N W M G P Date: Wed, 24 Jul 2024 17:54:27 +0530 Subject: [PATCH] Signed-off-by: Piyankara N W M G P closes Issue#6559 --- .../lab/PatientInvestigationController.java | 25 ++++- src/main/resources/META-INF/persistence.xml | 4 +- src/main/webapp/lab/accept_samples.xhtml | 20 ++++ src/main/webapp/lab/collect_samples.xhtml | 20 ++++ src/main/webapp/lab/divide_samples.xhtml | 20 ++++ .../lab/generate_barcodes_for_lab.xhtml | 19 ++++ src/main/webapp/lab/reject_samples.xhtml | 20 ++++ src/main/webapp/lab/revert_samples.xhtml | 20 ++++ src/main/webapp/lab/sample_at_lab_index.xhtml | 85 +++++++++++++++++ src/main/webapp/lab/sample_index.xhtml | 53 ++++++----- src/main/webapp/lab/sent_to_lab.xhtml | 13 +++ src/main/webapp/resources/ezcomp/menu.xhtml | 91 ++++++++++--------- 12 files changed, 316 insertions(+), 74 deletions(-) create mode 100644 src/main/webapp/lab/accept_samples.xhtml create mode 100644 src/main/webapp/lab/collect_samples.xhtml create mode 100644 src/main/webapp/lab/divide_samples.xhtml create mode 100644 src/main/webapp/lab/generate_barcodes_for_lab.xhtml create mode 100644 src/main/webapp/lab/reject_samples.xhtml create mode 100644 src/main/webapp/lab/revert_samples.xhtml create mode 100644 src/main/webapp/lab/sample_at_lab_index.xhtml create mode 100644 src/main/webapp/lab/sent_to_lab.xhtml diff --git a/src/main/java/com/divudi/bean/lab/PatientInvestigationController.java b/src/main/java/com/divudi/bean/lab/PatientInvestigationController.java index ca68b449ee..462602c82e 100644 --- a/src/main/java/com/divudi/bean/lab/PatientInvestigationController.java +++ b/src/main/java/com/divudi/bean/lab/PatientInvestigationController.java @@ -1134,7 +1134,30 @@ public String navigateToCollelcted() { listPatientInvestigationsWhereSamplingCompleting(); return "/lab/patient_investigations_collected?faces-redirect=true"; } - + public String navigateToSentToLab(){ + return "/lab/sent_to_lab?faces-redirect=true"; + } + +// Navigation Lab sampling at lab for barcode generate page + public String navigateToGenerateBarcodesForLab(){ + return "/lab/generate_barcodes_for_lab?faces-redirect=true"; + } + + public String navigateToCollectSamples(){ + return "/lab/collect_samples?faces-redirect=true"; + } + public String navigateToAcceptSamples(){ + return "/lab/accept_samples?faces-redirect=true"; + } + public String navigateToRejectSamples(){ + return "/lab/reject_samples?faces-redirect=true"; + } + public String navigateToRevertSamples(){ + return "/lab/revert_samples?faces-redirect=true"; + } + public String navigateToDivideSamples(){ + return "/lab/divide_samples?faces-redirect=true"; + } public void prepareToSample() { String temSql; Map temMap = new HashMap(); diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml index 6d8623993e..42fe5625f4 100644 --- a/src/main/resources/META-INF/persistence.xml +++ b/src/main/resources/META-INF/persistence.xml @@ -2,14 +2,14 @@ - jdbc/arogya + jdbc/hims false - jdbc/arogyaAudit + jdbc/himsAduit false diff --git a/src/main/webapp/lab/accept_samples.xhtml b/src/main/webapp/lab/accept_samples.xhtml new file mode 100644 index 0000000000..8103a6d806 --- /dev/null +++ b/src/main/webapp/lab/accept_samples.xhtml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + diff --git a/src/main/webapp/lab/collect_samples.xhtml b/src/main/webapp/lab/collect_samples.xhtml new file mode 100644 index 0000000000..4655ff9616 --- /dev/null +++ b/src/main/webapp/lab/collect_samples.xhtml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + diff --git a/src/main/webapp/lab/divide_samples.xhtml b/src/main/webapp/lab/divide_samples.xhtml new file mode 100644 index 0000000000..b1670b801c --- /dev/null +++ b/src/main/webapp/lab/divide_samples.xhtml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + diff --git a/src/main/webapp/lab/generate_barcodes_for_lab.xhtml b/src/main/webapp/lab/generate_barcodes_for_lab.xhtml new file mode 100644 index 0000000000..31729ee468 --- /dev/null +++ b/src/main/webapp/lab/generate_barcodes_for_lab.xhtml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + diff --git a/src/main/webapp/lab/reject_samples.xhtml b/src/main/webapp/lab/reject_samples.xhtml new file mode 100644 index 0000000000..45fe692674 --- /dev/null +++ b/src/main/webapp/lab/reject_samples.xhtml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + diff --git a/src/main/webapp/lab/revert_samples.xhtml b/src/main/webapp/lab/revert_samples.xhtml new file mode 100644 index 0000000000..b10a3445e6 --- /dev/null +++ b/src/main/webapp/lab/revert_samples.xhtml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + diff --git a/src/main/webapp/lab/sample_at_lab_index.xhtml b/src/main/webapp/lab/sample_at_lab_index.xhtml new file mode 100644 index 0000000000..25647ac3d8 --- /dev/null +++ b/src/main/webapp/lab/sample_at_lab_index.xhtml @@ -0,0 +1,85 @@ + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + +
+
+
+
+ + + +
+
+
+
+
+
+ diff --git a/src/main/webapp/lab/sample_index.xhtml b/src/main/webapp/lab/sample_index.xhtml index 567ff86705..ea8005118b 100644 --- a/src/main/webapp/lab/sample_index.xhtml +++ b/src/main/webapp/lab/sample_index.xhtml @@ -7,7 +7,7 @@ - +
@@ -15,7 +15,8 @@ @@ -23,46 +24,44 @@ class="w-100" ajax="false" value="Collected Samples" - action="#{patientInvestigationController.navigateToCollelcted()}" /> - + icon="fa fa-vials" + action="#{patientInvestigationController.navigateToCollelcted()}"> - + value="Sent to Lab" + icon="fa fa-flask" + action="#{patientInvestigationController.navigateToSentToLab()}"> -
- + +
- -
-
- - -
- -
-
diff --git a/src/main/webapp/lab/sent_to_lab.xhtml b/src/main/webapp/lab/sent_to_lab.xhtml new file mode 100644 index 0000000000..87e19b3d3c --- /dev/null +++ b/src/main/webapp/lab/sent_to_lab.xhtml @@ -0,0 +1,13 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/resources/ezcomp/menu.xhtml b/src/main/webapp/resources/ezcomp/menu.xhtml index 54dc7a7edc..05ea2b32f3 100644 --- a/src/main/webapp/resources/ezcomp/menu.xhtml +++ b/src/main/webapp/resources/ezcomp/menu.xhtml @@ -397,12 +397,15 @@ + + + + - @@ -629,7 +632,7 @@ actionListener="#{searchController.makeListNull()}" rendered="#{webUserController.hasPrivilege('PharmacyDisbursementRequest') and !configOptionApplicationController.getBooleanValueByKey('Pharmacy Transer Request With Approval')}" icon="fas fa-hand-holding-medical"> - + - + @@ -1282,9 +1285,9 @@ + icon="fas fa-refresh" + ajax="false" + action="#{financialTransactionController.refreshCashNetTotalForMenu()}" />