private void setTooltip(PatientDiagnosisEDischargeVo voPatDiag) { if (voPatDiag != null && voPatDiag.getStatusHistoryIsNotNull() && voPatDiag.getStatusHistory().size() > 0) { PatientDiagnosisStatusVoCollection collVo = voPatDiag.getStatusHistory(); String tooltip = ""; String setFont = "<FONT FACE='Times New Roman' SIZE='2'>"; String endFont = "</FONT>"; String table = "<TABLE CELLPADDING='1' CELLSPACING='1' BORDER='3' ><TR><TD BGCOLOR=\'#BBBBFF\' ALIGN='LEFT'>"; String endStatus = endFont + "<B></TD></TR><TR>"; String dateTime = "<TD colspan=1 width=60% align=\'LEFT\'> " + setFont; String hcp = endFont + "</TD><TD colspan=1 width=60% align=\'LEFT\'>" + setFont; String end = endFont + "</TD></TR><TR></TABLE>"; for (int i = 0; i < collVo.size(); i++) { tooltip += table + setFont + "<B>" + (i + 1) + ". " + collVo.get(i).getStatus() + endStatus + endFont + dateTime + collVo.get(i).getAuthoringDateTime() + hcp + collVo.get(i).getAuthoringHCP() + end; } } }
private void setTooltip(PatientDiagnosisVo vo) { if (vo != null && vo.getStatusHistoryIsNotNull() && vo.getStatusHistory().size() > 0) { PatientDiagnosisStatusVoCollection collVo = vo.getStatusHistory().sort(SortOrder.DESCENDING); String tooltip = ""; String setFont = "<FONT FACE='Times New Roman' SIZE='2'>"; String endFont = "</FONT>"; String table = "<TABLE CELLPADDING='1' CELLSPACING='1' BORDER='3' ><TR><TD BGCOLOR=\'#BBBBFF\' ALIGN='LEFT'>"; String endStatus = endFont + "<B></TD></TR><TR>"; String dateTime = "<TD colspan=1 width=60% align=\'LEFT\'> " + setFont; String hcp = endFont + "</TD><TD colspan=1 width=60% align=\'LEFT\'>" + setFont; String end = endFont + "</TD></TR><TR></TABLE>"; for (int i = 0; i < collVo.size(); i++) { tooltip += table + setFont + "<B>" + (i + 1) + ". " + collVo.get(i).getStatus() + endStatus + endFont + dateTime + collVo.get(i).getAuthoringDateTime() + hcp + collVo.get(i).getAuthoringHCP() + end; } form.ctnDetails().imbStatus().setTooltip(tooltip); } else form.ctnDetails().imbStatus().setTooltip("No history"); //wdev-17357 }