|
28 | 28 |
|
29 | 29 | <%@ include file="/common/messages.jsp" %>
|
30 | 30 | <%@ page import="org.oscarehr.common.model.Facility" %>
|
| 31 | +<%@ page import="java.util.List" %> |
| 32 | + |
31 | 33 | <div class="tabs" id="tabs">
|
32 | 34 | <table cellpadding="3" cellspacing="0" border="0">
|
33 | 35 | <tr>
|
|
121 | 123 | if (request.getAttribute("program") != null) {
|
122 | 124 | %>
|
123 | 125 |
|
124 |
| - <% if (request.getAttribute("program") != null && ((org.oscarehr.common.model.Program) request.getAttribute("program")).getFacilityId().equals(((org.oscarehr.common.model.Facility) request.getAttribute("facility")).getId())) { %> |
125 |
| - <display:column sortable="true" sortProperty="name" |
126 |
| - title="Program Name"> |
127 |
| - <a |
128 |
| - href="<html:rewrite action="/PMmodule/ProgramManagerView"/>?id=<c:out value="${program.id}"/>"><c:out |
129 |
| - value="${program.name}"/></a> |
130 |
| - </display:column> |
131 |
| - <% } else { %> |
132 |
| - <display:column sortable="true" sortProperty="name" |
133 |
| - title="Program Name"> |
134 |
| - <c:out value="${program.name}"/> |
135 |
| - </display:column> |
136 |
| - <% } %> |
| 126 | + <c:choose> |
| 127 | + <c:when test="${program.facilityId == facility.id}"> |
| 128 | + <display:column sortable="true" sortProperty="name" title="Program Name"> |
| 129 | + <a href="${pageContext.request.contextPath}/PMmodule/ProgramManagerView?id=${program.id}"> |
| 130 | + <c:out value="${program.name}" /> |
| 131 | + </a> |
| 132 | + </display:column> |
| 133 | + </c:when> |
| 134 | + <c:otherwise> |
| 135 | + <display:column sortable="true" sortProperty="name" title="Program Name"> |
| 136 | + <c:out value="${program.name}" /> |
| 137 | + </display:column> |
| 138 | + </c:otherwise> |
| 139 | + </c:choose> |
137 | 140 |
|
138 | 141 | <display:column property="type" sortable="true" title="Program Type"/>
|
139 | 142 | <display:column property="queueSize" sortable="true"
|
|
161 | 164 | <th>Bed Program</th>
|
162 | 165 | <th>Discharge Date/Time</th>
|
163 | 166 | </tr>
|
164 |
| - <% for (org.oscarehr.common.model.Client client : (List<org.oscarehr.common.model.Client>) request.getAttribute("associatedClients")) { %> |
165 |
| - <% String styleColor = ""; %> |
166 |
| - <% if (client.isInOneDay()) { %> |
167 |
| - <% styleColor = "style=\"color:red;\""; %> |
168 |
| - <% } %> |
| 167 | + <c:forEach var="client" items="${associatedClients}"> |
| 168 | + |
| 169 | + <%String styleColor = ""; %> |
| 170 | + <c:if test="${client.inOneDay}"> |
| 171 | + <%styleColor = "style=\"color:red;\"";%> |
| 172 | + </c:if> |
169 | 173 | <tr class="b" <%=styleColor%>>
|
170 | 174 | <td><c:out value="${client.name}"/></td>
|
171 | 175 | <td><c:out value="${client.dob}"/></td>
|
172 | 176 | <td><c:out value="${client.programName}"/></td>
|
173 | 177 | <td><c:out value="${client.dischargeDate}"/></td>
|
174 | 178 | </tr>
|
175 |
| - <% } %> |
| 179 | + |
| 180 | + </c:forEach> |
176 | 181 | </table>
|
177 | 182 |
|
178 | 183 |
|
|
0 commit comments