Update of /cvsroot/oscarmcmaster/oscar_mcmaster/web/billing/CA/BC
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10723/billing/CA/BC
Modified Files:
billingTeleplanGroupReport.jsp
Log Message:
add javascript to ignore double click form button and change the display color
Index: billingTeleplanGroupReport.jsp
===================================================================
RCS file: /cvsroot/oscarmcmaster/oscar_mcmaster/web/billing/CA/BC/billingTeleplanGroupReport.jsp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** billingTeleplanGroupReport.jsp 3 Jan 2005 05:43:11 -0000 1.4
--- billingTeleplanGroupReport.jsp 27 Feb 2005 20:14:23 -0000 1.5
***************
*** 1,8 ****
! <%
! if(session.getValue("user") == null) response.sendRedirect("../../../logout.jsp");
String user_no = (String) session.getAttribute("user");
! %>
! <%@ page import="java.util.*, java.sql.*, oscar.*, java.net.*" errorPage="errorpage.jsp" %>
<%@ include file="../../../admin/dbconnection.jsp" %>
<jsp:useBean id="apptMainBean" class="oscar.AppointmentMainBean" scope="session" />
--- 1,8 ----
! <%
! if(session.getAttribute("user") == null) response.sendRedirect("../../../logout.jsp");
String user_no = (String) session.getAttribute("user");
! %>
! <%@ page import="java.util.*, java.sql.*, oscar.util.*" errorPage="errorpage.jsp" %>
<%@ include file="../../../admin/dbconnection.jsp" %>
<jsp:useBean id="apptMainBean" class="oscar.AppointmentMainBean" scope="session" />
***************
*** 20,24 ****
String thisyear = (request.getParameter("year")==null || request.getParameter("year").compareTo("")==0) ? String.valueOf(curYear) : request.getParameter("year");
! String yearColor = "";
yearArray[0] = String.valueOf(curYear);
yearArray[1] = String.valueOf(curYear-1);
--- 20,24 ----
String thisyear = (request.getParameter("year")==null || request.getParameter("year").compareTo("")==0) ? String.valueOf(curYear) : request.getParameter("year");
! String yearColor = "";
yearArray[0] = String.valueOf(curYear);
yearArray[1] = String.valueOf(curYear-1);
***************
*** 26,30 ****
yearArray[3] = String.valueOf(curYear-3);
yearArray[4] = String.valueOf(curYear-4);
!
if (thisyear.compareTo(yearArray[0])==0) yearColor="#B1D3EF";
if (thisyear.compareTo(yearArray[1])==0) yearColor="#BBBBBB";
--- 26,30 ----
yearArray[3] = String.valueOf(curYear-3);
yearArray[4] = String.valueOf(curYear-4);
!
if (thisyear.compareTo(yearArray[0])==0) yearColor="#B1D3EF";
if (thisyear.compareTo(yearArray[1])==0) yearColor="#BBBBBB";
***************
*** 47,76 ****
if (curMonth == 12) monthCode = "L";
String ohipdownload = oscarVariables.getProperty("HOME_DIR") ;;
! session.setAttribute("ohipdownload", ohipdownload);
%>
! <!--
/*
! *
* 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
*/
-->
--- 47,76 ----
if (curMonth == 12) monthCode = "L";
String ohipdownload = oscarVariables.getProperty("HOME_DIR") ;;
! session.setAttribute("ohipdownload", ohipdownload);
%>
! <!--
/*
! *
* 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
*/
-->
***************
*** 85,88 ****
--- 85,97 ----
this.focus();
}
+ var checkSubmitFlg = false;
+ function checkSubmit() {
+ if (checkSubmitFlg == true) {
+ return false;
+ }
+ checkSubmitFlg = true;
+ document.forms[0].Submit.disabled = true;
+ return true;
+ }
function findObj(n, d) { //v4.0
***************
*** 96,107 ****
function showHideLayers() { //v3.0
var i,p,v,obj,args=showHideLayers.arguments;
! for (i=0; i<(args.length-2); i+=3){
! if ((obj=findObj(args[i]))!=null) {
v=args[i+2];
! if (obj.style) {
! obj=obj.style;
! v=(v=='show')?'visible':(v='hide')?'hidden':v;
}
! obj.visibility=v;
}
}
--- 105,116 ----
function showHideLayers() { //v3.0
var i,p,v,obj,args=showHideLayers.arguments;
! for (i=0; i<(args.length-2); i+=3){
! if ((obj=findObj(args[i]))!=null) {
v=args[i+2];
! if (obj.style) {
! obj=obj.style;
! v=(v=='show')?'visible':(v='hide')?'hidden':v;
}
! obj.visibility=v;
}
}
***************
*** 113,124 ****
<body bgcolor="#FFFFFF" text="#000000">
<div id="Layer1" style="position:absolute; left:90px; top:35px; width:0px; height:12px; z-index:1"></div>
! <div id="Layer2" style="position:absolute; left:45px; top:61px; width:129px; height:123px; z-index:2; background-color: #EEEEFF; layer-background-color: #6666FF; border: 1px none #000000; visibility: hidden;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
! <tr bgcolor="#DDDDEE">
! <td align='CENTER'><font size="2" face="Tahoma, Geneva, Arial, Helvetica, san-serif"><strong>Last
5 Years</strong></font></td>
</tr>
<% for (int i=0; i<5;i++) { %>
! <tr>
<td align='CENTER'><font size="2" face="Tahoma, Geneva, Arial, Helvetica, san-serif"><a href="billingTeleplanGroupReport.jsp?year=<%=yearArray[i]%>">YEAR <%=yearArray[i]%></a></font></td>
</tr>
--- 122,133 ----
<body bgcolor="#FFFFFF" text="#000000">
<div id="Layer1" style="position:absolute; left:90px; top:35px; width:0px; height:12px; z-index:1"></div>
! <div id="Layer2" style="position:absolute; left:45px; top:61px; width:129px; height:123px; z-index:2; background-color: #EEEEFF; layer-background-color: #6666FF; border: 1px none #000000; visibility: hidden;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
! <tr bgcolor="#DDDDEE">
! <td align='CENTER'><font size="2" face="Tahoma, Geneva, Arial, Helvetica, san-serif"><strong>Last
5 Years</strong></font></td>
</tr>
<% for (int i=0; i<5;i++) { %>
! <tr>
<td align='CENTER'><font size="2" face="Tahoma, Geneva, Arial, Helvetica, san-serif"><a href="billingTeleplanGroupReport.jsp?year=<%=yearArray[i]%>">YEAR <%=yearArray[i]%></a></font></td>
</tr>
***************
*** 129,134 ****
<tr bgcolor="#486ebd">
<th align='LEFT'>
! <input type='button' name='print' value='Print' onClick='window.print()'> </th>
! <th align='CENTER' ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">
Teleplan Group Report - <%=thisyear%></font></th>
<th align='RIGHT'><input type='button' name='close' value='Close' onClick='window.close()'></th>
--- 138,143 ----
<tr bgcolor="#486ebd">
<th align='LEFT'>
! <input type='button' name='print' value='Print' onClick='window.print()'> </th>
! <th align='CENTER' ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">
Teleplan Group Report - <%=thisyear%></font></th>
<th align='RIGHT'><input type='button' name='close' value='Close' onClick='window.close()'></th>
***************
*** 138,148 ****
<table width="100%" border="0" bgcolor="#E6F0F7">
! <form name="form1" method="post" action="genTeleplanGroupReport.jsp">
! <tr>
! <td width="220"><b><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><a href="#" onClick="showHideLayers('Layer2','','show');">Show
Archive</a> </font></b></td>
! <td width="220"><b><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Select
provider </font></b></td>
! <td width="254"><b><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">
<select name="provider">
<option value="all">All Providers</option>
--- 147,157 ----
<table width="100%" border="0" bgcolor="#E6F0F7">
! <form name="form1" method="post" action="genTeleplanGroupReport.jsp" onsubmit="return checkSubmit();">
! <tr>
! <td width="220"><b><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><a href="#" onClick="showHideLayers('Layer2','','show');">Show
Archive</a> </font></b></td>
! <td width="220"><b><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Select
provider </font></b></td>
! <td width="254"><b><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">
<select name="provider">
<option value="all">All Providers</option>
***************
*** 150,154 ****
String proLast="";
String proOHIP="";
! String specialty_code;
String billinggroup_no;
int Count = 0;
--- 159,163 ----
String proLast="";
String proOHIP="";
! String specialty_code;
String billinggroup_no;
int Count = 0;
***************
*** 159,168 ****
proFirst = rslocal.getString("first_name");
proLast = rslocal.getString("last_name");
! proOHIP = rslocal.getString("ohip_no");
billinggroup_no= rslocal.getString("billing_no");//SxmlMisc.getXmlContent(rslocal.getString("comments"),"<xml_p_billinggroup_no>","</xml_p_billinggroup_no>");
specialty_code = SxmlMisc.getXmlContent(rslocal.getString("comments"),"<xml_p_specialty_code>","</xml_p_specialty_code>");
%>
<option value="<%=proOHIP%>,<%=specialty_code%>|<%=billinggroup_no%>" ><%=proLast%>,<%=proFirst%></option>
! <%
}
--- 168,177 ----
proFirst = rslocal.getString("first_name");
proLast = rslocal.getString("last_name");
! proOHIP = rslocal.getString("ohip_no");
billinggroup_no= rslocal.getString("billing_no");//SxmlMisc.getXmlContent(rslocal.getString("comments"),"<xml_p_billinggroup_no>","</xml_p_billinggroup_no>");
specialty_code = SxmlMisc.getXmlContent(rslocal.getString("comments"),"<xml_p_specialty_code>","</xml_p_specialty_code>");
%>
<option value="<%=proOHIP%>,<%=specialty_code%>|<%=billinggroup_no%>" ><%=proLast%>,<%=proFirst%></option>
! <%
}
***************
*** 171,182 ****
</select>
</font></b></td>
! <td width="181"><b><!--<font face="Arial, Helvetica, sans-serif" size="2">Select
billing center</font>--></b></td>
! <td width="254"><font face="Arial, Helvetica, sans-serif" size="2">
<!-- <select name="billcenter">
!
<%-- String centerCode="";
String centerDesc="";
!
int Count1 = 0;
ResultSet rsCenter;
--- 180,191 ----
</select>
</font></b></td>
! <td width="181"><b><!--<font face="Arial, Helvetica, sans-serif" size="2">Select
billing center</font>--></b></td>
! <td width="254"><font face="Arial, Helvetica, sans-serif" size="2">
<!-- <select name="billcenter">
!
<%-- String centerCode="";
String centerDesc="";
!
int Count1 = 0;
ResultSet rsCenter;
***************
*** 186,190 ****
centerCode = rsCenter.getString("billcenter_code");
centerDesc = rsCenter.getString("billcenter_desc");
!
%>
<option value="<%=centerCode%>" <%=oscarVariables.getProperty("billcenter").compareTo(centerCode)==0?"selected":""%>><%=centerDesc%></option>
--- 195,199 ----
centerCode = rsCenter.getString("billcenter_code");
centerDesc = rsCenter.getString("billcenter_desc");
!
%>
<option value="<%=centerCode%>" <%=oscarVariables.getProperty("billcenter").compareTo(centerCode)==0?"selected":""%>><%=centerDesc%></option>
***************
*** 192,196 ****
</select>-->
</td>
! <td width="277"> <font color="#003366">
<input type="submit" name="Submit" value="Create Report">
<input type="hidden" name="monthCode" value="<%=monthCode%>">
--- 201,205 ----
</select>-->
</td>
! <td width="277"> <font color="#003366">
<input type="submit" name="Submit" value="Create Report">
<input type="hidden" name="monthCode" value="<%=monthCode%>">
***************
*** 200,204 ****
</font></td>
</tr>
! <tr>
<td colspan="4">
<font color="#003366">
--- 209,213 ----
</font></td>
</tr>
! <tr>
<td colspan="4">
<font color="#003366">
***************
*** 209,233 ****
<b><font face="Arial, Helvetica, sans-serif" size="2"></font></b>
<font face="Arial, Helvetica, sans-serif" size="2"> </font>
! </font>
</td>
</tr>
</form>
</table>
! <table width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor="<%=yearColor%>">
! <tr>
! <td colspan="6"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">
<b>Activity List </b></font></td>
</tr>
! <tr>
<th width="12%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Provider</font></th>
<th width="14%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Group Number</font></th>
<th width="20%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Creation Date </font></th>
<th width="15%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Claims/Records</font></th>
! <th width="15%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">MSP Filename</font></th>
<th><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">HTML Filename</font></th>
</tr>
!
<%
String pro_ohip="", pro_group="", updatedate="", cr="", oFile="", hFile="";
String[] paramYear = new String[2];
--- 218,243 ----
<b><font face="Arial, Helvetica, sans-serif" size="2"></font></b>
<font face="Arial, Helvetica, sans-serif" size="2"> </font>
! </font>
</td>
</tr>
</form>
</table>
! <table width="100%" border="1" cellspacing="0" cellpadding="0">
! <tr bgcolor="<%=yearColor%>">
! <td colspan="6"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">
<b>Activity List </b></font></td>
</tr>
! <tr bgcolor="<%=yearColor%>">
<th width="12%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Provider</font></th>
<th width="14%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Group Number</font></th>
<th width="20%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Creation Date </font></th>
<th width="15%"><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">Claims/Records</font></th>
! <th width="15%"><font face="Arial, Helvetica, sans-serif" size="2" color="blue">MSP Filename</font></th>
<th><font face="Arial, Helvetica, sans-serif" size="2" color="#003366">HTML Filename</font></th>
</tr>
!
<%
String pro_ohip="", pro_group="", updatedate="", cr="", oFile="", hFile="";
+ String strToday = UtilDateUtilities.DateToString(UtilDateUtilities.now(), "yyyy-MM-dd");
String[] paramYear = new String[2];
***************
*** 238,242 ****
rslocal = apptMainBean.queryResults(paramYear, "search_billactivity");
while(rslocal.next()){
! pro_ohip = rslocal.getString("providerohipno");
pro_group = rslocal.getString("groupno");
updatedate = rslocal.getString("updatedatetime");
--- 248,252 ----
rslocal = apptMainBean.queryResults(paramYear, "search_billactivity");
while(rslocal.next()){
! pro_ohip = rslocal.getString("providerohipno");
pro_group = rslocal.getString("groupno");
updatedate = rslocal.getString("updatedatetime");
***************
*** 246,250 ****
%>
! <tr>
<td><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><%=pro_ohip%></font></td>
<td><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><%=pro_group%></font></td>
--- 256,260 ----
%>
! <tr bgcolor="<%=updatedate.startsWith(strToday)? "#E6F0F7" : yearColor %>" align="center">
<td><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><%=pro_ohip%></font></td>
<td><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><%=pro_group%></font></td>
***************
*** 253,258 ****
<td><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><a href="../../../servlet/OscarDownload?homepath=ohipdownload&filename=<%=oFile%>" target="_blank"><%=oFile%></a></font></td>
<td><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><a href="../../../servlet/OscarDownload?homepath=ohipdownload&filename=<%=hFile%>" target="_blank"><%=hFile%></a></font></td>
! </tr>
! <%
}
apptMainBean.closePstmtConn();
--- 263,268 ----
<td><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><a href="../../../servlet/OscarDownload?homepath=ohipdownload&filename=<%=oFile%>" target="_blank"><%=oFile%></a></font></td>
<td><font face="Arial, Helvetica, sans-serif" size="2" color="#003366"><a href="../../../servlet/OscarDownload?homepath=ohipdownload&filename=<%=hFile%>" target="_blank"><%=hFile%></a></font></td>
! </tr>
! <%
}
apptMainBean.closePstmtConn();
|