From d8ebc39463d09398f7cd8b27e3d02eb812e15253 Mon Sep 17 00:00:00 2001 From: Dr M H B Ariyaratne Date: Mon, 12 Aug 2024 04:26:53 +0530 Subject: [PATCH] Closes #6847 Signed-off-by: Dr M H B Ariyaratne --- .../com/divudi/ejb/PatientReportBean.java | 10 +- .../admin/lims/investigation_format.xhtml | 252 +++++++++--------- 2 files changed, 138 insertions(+), 124 deletions(-) diff --git a/src/main/java/com/divudi/ejb/PatientReportBean.java b/src/main/java/com/divudi/ejb/PatientReportBean.java index f831b467f4..16569a04dd 100644 --- a/src/main/java/com/divudi/ejb/PatientReportBean.java +++ b/src/main/java/com/divudi/ejb/PatientReportBean.java @@ -132,8 +132,14 @@ public String getDefaultVarcharValue(InvestigationItem item, Patient patient) { } public String getDefaultMemoValue(InvestigationItem item, Patient patient) { - //TODO: Create Logic - return ""; + String defaultValue = ""; + if(item==null){ + return defaultValue; + } + if(item.getHtmltext()!=null){ + defaultValue=item.getHtmltext(); + } + return defaultValue; } public byte[] getDefaultImageValue(InvestigationItem item, Patient patient) { diff --git a/src/main/webapp/admin/lims/investigation_format.xhtml b/src/main/webapp/admin/lims/investigation_format.xhtml index e0801d4cbb..0b6fe91fa4 100644 --- a/src/main/webapp/admin/lims/investigation_format.xhtml +++ b/src/main/webapp/admin/lims/investigation_format.xhtml @@ -9,27 +9,19 @@ - - - - - - - - - - - - - - - - - + + + +
+
+
+ + + - + @@ -343,7 +335,7 @@ @@ -354,7 +346,7 @@ @@ -629,113 +621,129 @@ +
+
+ + + + + + + + + +
+ + + + + +
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + +
+
+
+ + + +
+ + +
+
+
+ + + + +
+ + +
+
+
+ +
+
+ +
+
+ + +
+ +
+ + + + + + + + + + + - - - -

- - Press Following Keys for Making Changes - -
- Up Arrow - Move Up
- Down Arrow - Move Down
- Left Arrow - Move Left
- Right Arrow - Move Right
- d - delete
- b - bold
- i - italic
- n - remove bold and italic
- r - align right
- l - align left
- c - align centre
- j - justified
- g - grow font
- s - shrink font
- w - widen
- o - narrower
- t - taller
- h - shorter
-

-
- - - - - - - - - - - -
- - - - - - - -
- - - - - - - - - -
- -
- -
- - - - - - - - - - - - - - - - - -
-
-
-
-
-
+
-

#{investigationItemController.currentInvestigation.reportFormat}

+