Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3292,10 +3292,17 @@ public static boolean determineNoteRole(CaseManagementNote note, String provider
boolean programSet = false;

if (note.getProgram_no() != null && note.getProgram_no().length() > 0 && !"null".equals(note.getProgram_no())) {
ProgramProvider pp = programProviderDao.getProgramProvider(note.getProviderNo(), Long.valueOf(note.getProgram_no()));
if (pp != null) {
note.setReporter_caisi_role(String.valueOf(pp.getRoleId()));
programSet = true;
try {
Long programId = Long.valueOf(note.getProgram_no());
if (programId > 0) {
ProgramProvider pp = programProviderDao.getProgramProvider(note.getProviderNo(), programId);
if (pp != null) {
note.setReporter_caisi_role(String.valueOf(pp.getRoleId()));
programSet = true;
}
}
} catch (NumberFormatException e) {
// Invalid program number format, skip program provider lookup
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/main/webapp/WEB-INF/classes/struts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,9 @@
<action name="oscarResearch/oscarDxResearch/setupDxResearch" class="ca.openosp.openo.dxresearch.pageUtil.dxSetupResearch2Action">
<result name="success">/oscarResearch/oscarDxResearch/dxResearch.jsp</result>
</action>
<action name="oscarResearch/dxresearch/setupDxResearch" class="ca.openosp.openo.dxresearch.pageUtil.dxSetupResearch2Action">
<result name="success">/oscarResearch/oscarDxResearch/dxResearch.jsp</result>
</action>
<action name="oscarResearch/oscarDxResearch/dxResearch" class="ca.openosp.openo.dxresearch.pageUtil.dxResearch2Action">
<result name="codeSearch">/oscarResearch/oscarDxResearch/dxcodeSearch.do</result>
<result name="success">/oscarResearch/oscarDxResearch/setupDxResearch.do</result>
Expand All @@ -1473,6 +1476,9 @@
<action name="oscarResearch/oscarDxResearch/dxResearchUpdate" class="ca.openosp.openo.dxresearch.pageUtil.dxResearchUpdate2Action">
<result name="success">/oscarResearch/oscarDxResearch/setupDxResearch.do</result>
</action>
<action name="oscarResearch/dxresearch/dxResearchUpdate" class="ca.openosp.openo.dxresearch.pageUtil.dxResearchUpdate2Action">
<result name="success">/oscarResearch/oscarDxResearch/setupDxResearch.do</result>
</action>
<action name="oscarResearch/oscarDxResearch/dxResearchLoadQuickList" class="ca.openosp.openo.dxresearch.pageUtil.dxResearchLoadQuickList2Action">
<result name="success">/oscarResearch/oscarDxResearch/dxResearchSelectQuickList.jsp</result>
</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
href="${pageContext.servletContext.contextPath}/library/bootstrap/3.0.0/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" media="all"
href="${pageContext.servletContext.contextPath}/library/bootstrap/3.0.0/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" type="text/css" href="dxResearch.css">
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/oscarResearch/oscarDxResearch/dxResearch.css">

<script type="text/javascript">
//<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<title><fmt:setBundle basename="oscarResources"/><fmt:message key="oscarResearch.oscarDxResearch.dxCustomization.title"/></title>
<script type="text/javascript" src="${pageContext.servletContext.contextPath}/js/global.js"></script>
<base href="<%= request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/" %>">
<link rel="stylesheet" type="text/css" href="dxResearch.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/oscarResearch/oscarDxResearch/dxResearch.css"/>

</head>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
int Count = 0;
%>

<link rel="stylesheet" type="text/css" href="dxResearch.css">
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/oscarResearch/oscarDxResearch/dxResearch.css">
<html>
<head>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/global.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>


<link rel="stylesheet" type="text/css" href="dxResearch.css">
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/oscarResearch/oscarDxResearch/dxResearch.css">
<html>
<head>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/global.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="dxResearch.css">
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/oscarResearch/oscarDxResearch/dxResearch.css">
<script type="text/javascript" src="<%= request.getContextPath() %>/js/global.js"></script>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/js/jquery_css/smoothness/jquery-ui-1.10.2.custom.min.css"/>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/jquery-1.9.1.js"></script>
Expand Down Expand Up @@ -99,7 +99,7 @@
</script>

</head>
<link rel="stylesheet" type="text/css" href="dxResearch.css">
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/oscarResearch/oscarDxResearch/dxResearch.css">
<body class="BodyStyle" vlink="#0000FF" rightmargin="0" leftmargin="0"
topmargin="0" marginwidth="0" marginheight="0" onload="setfocus()" bgcolor="#EEEEFF">
<!-- -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<link rel="stylesheet" type="text/css" href="dxResearch.css">
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/oscarResearch/oscarDxResearch/dxResearch.css">
<html>
<head>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/global.js"></script>
Expand Down
Loading