Update of /cvsroot/oscarmcmaster/oscar_mcmaster/web/billing/CA/ON
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25750/billing/CA/ON
Modified Files:
billingShortcutPg1.jsp billingDigSearch.jsp
Log Message:
update javascript for dx search
Index: billingDigSearch.jsp
===================================================================
RCS file: /cvsroot/oscarmcmaster/oscar_mcmaster/web/billing/CA/ON/billingDigSearch.jsp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** billingDigSearch.jsp 21 Feb 2004 06:31:19 -0000 1.2
--- billingDigSearch.jsp 14 May 2005 16:18:47 -0000 1.3
***************
*** 1,29 ****
! <!--
/*
! *
* Copyright (c) 2001-2002. Department of Family Medicine, McMaster University. All Rights Reserved. *
! * This software is published under the GPL GNU General Public License.
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version. *
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License
! * along with this program; if not, write to the Free Software
! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
! *
* <OSCAR TEAM>
! *
! * This software was written for the
! * Department of Family Medicine
! * McMaster Unviersity
! * Hamilton
! * Ontario, Canada
*/
-->
! <%
if(session.getValue("user") == null)
response.sendRedirect("../logout.jsp");
--- 1,29 ----
! <!--
/*
! *
* Copyright (c) 2001-2002. Department of Family Medicine, McMaster University. All Rights Reserved. *
! * This software is published under the GPL GNU General Public License.
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version. *
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License
! * along with this program; if not, write to the Free Software
! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
! *
* <OSCAR TEAM>
! *
! * This software was written for the
! * Department of Family Medicine
! * McMaster Unviersity
! * Hamilton
! * Ontario, Canada
*/
-->
! <%
if(session.getValue("user") == null)
response.sendRedirect("../logout.jsp");
***************
*** 36,45 ****
<%@ include file="dbBilling.jsp" %>
<% String search = "",search2 = "";
! search = request.getParameter("search");
if (search.compareTo("") == 0){
search = "search_diagnostic_code";
}
!
!
String codeName = request.getParameter("name");
--- 36,45 ----
<%@ include file="dbBilling.jsp" %>
<% String search = "",search2 = "";
! search = request.getParameter("search");
if (search.compareTo("") == 0){
search = "search_diagnostic_code";
}
!
!
String codeName = request.getParameter("name");
***************
*** 51,55 ****
// if (intCode == -1){
!
%>
--- 51,55 ----
// if (intCode == -1){
!
%>
***************
*** 63,69 ****
<!--
function CodeAttach(File2) {
!
self.close();
self.opener.document.serviceform.xml_diagnostic_detail.value = File2;
}
-->
--- 63,73 ----
<!--
function CodeAttach(File2) {
!
self.close();
+ <%if(request.getParameter("name2")!=null) {%>
+ self.opener.<%=request.getParameter("name2")%> = File2.substring(0,3);
+ <%} else {%>
self.opener.document.serviceform.xml_diagnostic_detail.value = File2;
+ <%}%>
}
-->
***************
*** 78,97 ****
</tr>
</table>
! <pre><% String coderange=request.getParameter("coderange");
String codedesc =request.getParameter("codedesc");
if (codedesc != null){
if (codedesc.compareTo("") == 0) {
!
codeName = coderange;
// search = "search_diagnostic_code";
!
} else
{
codeName = codedesc;
// search = "search_diagnostic_text";
!
}
}
! %></pre>
--- 82,101 ----
</tr>
</table>
! <pre><% String coderange=request.getParameter("coderange");
String codedesc =request.getParameter("codedesc");
if (codedesc != null){
if (codedesc.compareTo("") == 0) {
!
codeName = coderange;
// search = "search_diagnostic_code";
!
} else
{
codeName = codedesc;
// search = "search_diagnostic_text";
!
}
}
! %></pre>
***************
*** 114,128 ****
<form name="diagcode" id="diagcode" method="post" action="billingDigUpdate.jsp">
<table width="600" border="1">
!
! <tr bgcolor="#CCCCFF">
<td width="12%"><b><font face="Arial, Helvetica, sans-serif" size="2"><bean:message key="billing.billingDigSearch.formCode"/></font></b></td>
<td width="88%"><b><font face="Arial, Helvetica, sans-serif" size="2"><bean:message key="billing.billingDigSearch.formDescription"/></font></b></td>
</tr>
!
!
! <% ResultSet rslocal = null;
ResultSet rslocal2 = null;
String Dcode="", DcodeDesc="", Dcode2="", DcodeDesc2="";
! String codeName2="";
String color="";
int Count = 0;
--- 118,132 ----
<form name="diagcode" id="diagcode" method="post" action="billingDigUpdate.jsp">
<table width="600" border="1">
!
! <tr bgcolor="#CCCCFF">
<td width="12%"><b><font face="Arial, Helvetica, sans-serif" size="2"><bean:message key="billing.billingDigSearch.formCode"/></font></b></td>
<td width="88%"><b><font face="Arial, Helvetica, sans-serif" size="2"><bean:message key="billing.billingDigSearch.formDescription"/></font></b></td>
</tr>
!
!
! <% ResultSet rslocal = null;
ResultSet rslocal2 = null;
String Dcode="", DcodeDesc="", Dcode2="", DcodeDesc2="";
! String codeName2="";
String color="";
int Count = 0;
***************
*** 148,152 ****
sBuffer.deleteCharAt(k);
sBuffer.insert(k,"");
! textCode = sBuffer.toString();
}
if (numCode.compareTo("")==0){
--- 152,156 ----
sBuffer.deleteCharAt(k);
sBuffer.insert(k,"");
! textCode = sBuffer.toString();
}
if (numCode.compareTo("")==0){
***************
*** 159,168 ****
else{
//search text only
! codeName = "%" + textCode;
search = "search_diagnostic_text";
searchType="N";
}
}else{
!
if(textCode.compareTo("")==0){
// search number only
--- 163,172 ----
else{
//search text only
! codeName = "%" + textCode;
search = "search_diagnostic_text";
searchType="N";
}
}else{
!
if(textCode.compareTo("")==0){
// search number only
***************
*** 173,177 ****
else{
//search both text and number only
! codeName = "%" + textCode;
codeName2 = numCode;
search = "search_diagnostic_text";
--- 177,181 ----
else{
//search both text and number only
! codeName = "%" + textCode;
codeName2 = numCode;
search = "search_diagnostic_text";
***************
*** 180,186 ****
}
}
!
if (searchType.length() == 1) {
!
// Retrieving Provider
--- 184,190 ----
}
}
!
if (searchType.length() == 1) {
!
// Retrieving Provider
***************
*** 200,209 ****
}
%>
!
! <tr bgcolor="<%=color%>">
<td width="12%"><font face="Arial, Helvetica, sans-serif" size="2"><a href="javascript:CodeAttach('<%=Dcode%>|<%=DcodeDesc%>')"><%=Dcode%><a></font></td>
<td width="88%"><font face="Arial, Helvetica, sans-serif" size="2"><input type="text" name="<%=Dcode%>" value="<%=DcodeDesc%>" size="60"><input type="submit" name="update" value="<bean:message key="billing.billingDigSearch.btnUpdate"/> <%=Dcode%>"></font></td>
</tr>
! <%
}
} else
--- 204,213 ----
}
%>
!
! <tr bgcolor="<%=color%>">
<td width="12%"><font face="Arial, Helvetica, sans-serif" size="2"><a href="javascript:CodeAttach('<%=Dcode%>|<%=DcodeDesc%>')"><%=Dcode%><a></font></td>
<td width="88%"><font face="Arial, Helvetica, sans-serif" size="2"><input type="text" name="<%=Dcode%>" value="<%=DcodeDesc%>" size="60"><input type="submit" name="update" value="<bean:message key="billing.billingDigSearch.btnUpdate"/> <%=Dcode%>"></font></td>
</tr>
! <%
}
} else
***************
*** 223,234 ****
}
%>
!
! <tr bgcolor="<%=color%>">
<td width="12%"><font face="Arial, Helvetica, sans-serif" size="2"><a href="javascript:CodeAttach('<%=Dcode%>|<%=DcodeDesc%>')"><%=Dcode%><a></font></td>
<td width="88%"><font face="Arial, Helvetica, sans-serif" size="2"><input type="text" name="<%=Dcode%>" value="<%=DcodeDesc%>" size="60"><input type="submit" name="update" value="<bean:message key="billing.billingDigSearch.btnUpdate"/> <%=Dcode%>"></font></td>
</tr>
! <%
}
!
rslocal2 = null;
rslocal2 = apptMainBean.queryResults(codeName2+ "%", search2);
--- 227,238 ----
}
%>
!
! <tr bgcolor="<%=color%>">
<td width="12%"><font face="Arial, Helvetica, sans-serif" size="2"><a href="javascript:CodeAttach('<%=Dcode%>|<%=DcodeDesc%>')"><%=Dcode%><a></font></td>
<td width="88%"><font face="Arial, Helvetica, sans-serif" size="2"><input type="text" name="<%=Dcode%>" value="<%=DcodeDesc%>" size="60"><input type="submit" name="update" value="<bean:message key="billing.billingDigSearch.btnUpdate"/> <%=Dcode%>"></font></td>
</tr>
! <%
}
!
rslocal2 = null;
rslocal2 = apptMainBean.queryResults(codeName2+ "%", search2);
***************
*** 245,269 ****
}
%>
!
! <tr bgcolor="<%=color%>">
<td width="12%"><font face="Arial, Helvetica, sans-serif" size="2"><a href="javascript:CodeAttach('<%=Dcode2%>|<%=DcodeDesc2%>')"><%=Dcode2%><a></font></td>
<td width="88%"><font face="Arial, Helvetica, sans-serif" size="2"><input type="text" name="<%=Dcode2%>" value="<%=DcodeDesc2%>" size="60"><input type="submit" name="update" value="<bean:message key="billing.billingDigSearch.btnUpdate"/> <%=Dcode2%>"></font></td>
</tr>
! <%
}
}
%>
!
<% if (intCount == 0 ) { %>
! <tr bgcolor="<%=color%>">
<td colspan="2"><font face="Arial, Helvetica, sans-serif" size="2"><bean:message key="billing.billingDigSearch.msgNoMatch"/>. <%// =i%></font></td>
!
</tr>
<% }%>
!
<% if (intCount == 1) { %>
<script LANGUAGE="JavaScript">
<!--
! CodeAttach('<%=Dcode%>|<%=DcodeDesc%>');
-->
--- 249,273 ----
}
%>
!
! <tr bgcolor="<%=color%>">
<td width="12%"><font face="Arial, Helvetica, sans-serif" size="2"><a href="javascript:CodeAttach('<%=Dcode2%>|<%=DcodeDesc2%>')"><%=Dcode2%><a></font></td>
<td width="88%"><font face="Arial, Helvetica, sans-serif" size="2"><input type="text" name="<%=Dcode2%>" value="<%=DcodeDesc2%>" size="60"><input type="submit" name="update" value="<bean:message key="billing.billingDigSearch.btnUpdate"/> <%=Dcode2%>"></font></td>
</tr>
! <%
}
}
%>
!
<% if (intCount == 0 ) { %>
! <tr bgcolor="<%=color%>">
<td colspan="2"><font face="Arial, Helvetica, sans-serif" size="2"><bean:message key="billing.billingDigSearch.msgNoMatch"/>. <%// =i%></font></td>
!
</tr>
<% }%>
!
<% if (intCount == 1) { %>
<script LANGUAGE="JavaScript">
<!--
! CodeAttach('<%=Dcode%>|<%=DcodeDesc%>');
-->
Index: billingShortcutPg1.jsp
===================================================================
RCS file: /cvsroot/oscarmcmaster/oscar_mcmaster/web/billing/CA/ON/billingShortcutPg1.jsp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** billingShortcutPg1.jsp 11 Apr 2005 18:11:45 -0000 1.6
--- billingShortcutPg1.jsp 14 May 2005 16:18:47 -0000 1.7
***************
*** 459,464 ****
t0 = escape("document.forms[0].elements[\'"+d+"\'].value");
t1 = escape("document.forms[0].elements[\'"+name2+"\'].value");
! rs('att',('searchRefDoc.jsp?param='+t0+'¶m2='+t1),600,600,1);
! //awnd.focus();
}
--- 459,470 ----
t0 = escape("document.forms[0].elements[\'"+d+"\'].value");
t1 = escape("document.forms[0].elements[\'"+name2+"\'].value");
! awnd=rs('att',('searchRefDoc.jsp?param='+t0+'¶m2='+t1),600,600,1);
! awnd.focus();
! }
! function dxScriptAttach(name2) {
! f0 = escape(document.forms[0].dxCode.value);
! f1 = escape("document.forms[0].elements[\'"+name2+"\'].value");
! awnd=rs('att','billingDigSearch.jsp?name='+f0 + '&search=&name2='+f1,600,600,1);
! awnd.focus();
}
***************
*** 572,576 ****
<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td>
<a href="#" onClick="showHideLayers('Layer2','','show','Layer1','','hide'); return false;">Dx</a><br>
! <input type="text" name="dxCode" size="5" maxlength="5" value="<%=request.getParameter("dxCode")!=null?request.getParameter("dxCode"):dxCode%>">
</td><td>
Cal.% mode<br>
--- 578,582 ----
<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td>
<a href="#" onClick="showHideLayers('Layer2','','show','Layer1','','hide'); return false;">Dx</a><br>
! <input type="text" name="dxCode" size="5" maxlength="5" onDblClick="dxScriptAttach('dxCode')" value="<%=request.getParameter("dxCode")!=null?request.getParameter("dxCode"):dxCode%>">
</td><td>
Cal.% mode<br>
|