Update of /cvsroot/oscarmcmaster/oscar_mcmaster/web/report
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15594/report
Modified Files:
reportonbilleddxgrp.jsp reportonbilledphcp.jsp
Log Message:
update
Index: reportonbilleddxgrp.jsp
===================================================================
RCS file: /cvsroot/oscarmcmaster/oscar_mcmaster/web/report/reportonbilleddxgrp.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** reportonbilleddxgrp.jsp 11 Jan 2005 22:37:32 -0000 1.1
--- reportonbilleddxgrp.jsp 25 Apr 2005 17:16:59 -0000 1.2
***************
*** 1,25 ****
! <!--
/*
! *
* 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
*/
-->
--- 1,25 ----
! <!--
/*
! *
* 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
*/
-->
***************
*** 56,64 ****
String level1 = request.getParameter("level1");
String level2 = request.getParameter("level2");
! String sql = "insert into dxphcpgroup(dxcode, level1, level2, description) values(" + dxcode + ", '" +
! StringEscapeUtils.escapeSql(level1.trim()) + "', '" + StringEscapeUtils.escapeSql(level2) + "', '" +
StringEscapeUtils.escapeSql(description.trim()) + "')";
dbObj.updateDBRecord(sql);
}
}
--- 56,74 ----
String level1 = request.getParameter("level1");
String level2 = request.getParameter("level2");
! String sql = "insert into dxphcpgroup(dxcode, level1, level2, description) values(" + dxcode + ", '" +
! StringEscapeUtils.escapeSql(level1.trim()) + "', '" + StringEscapeUtils.escapeSql(level2.trim()) + "', '" +
StringEscapeUtils.escapeSql(description.trim()) + "')";
dbObj.updateDBRecord(sql);
+ } else {
+ String description = request.getParameter("description");
+ String level1 = request.getParameter("level1");
+ String level2 = request.getParameter("level2");
+ String sql = "update dxphcpgroup set level1='" + StringEscapeUtils.escapeSql(level1.trim())
+ + "', level2='" + StringEscapeUtils.escapeSql(level2.trim())
+ + "', description='" + StringEscapeUtils.escapeSql(description.trim())
+ + "' where dxcode=" + dxcode ;
+
+ dbObj.updateDBRecord(sql);
}
}
***************
*** 71,75 ****
<link rel="stylesheet" href="../receptionist/receptionistapptstyle.css">
<script language="JavaScript">
!
<!--
function setfocus() {
--- 81,85 ----
<link rel="stylesheet" href="../receptionist/receptionistapptstyle.css">
<script language="JavaScript">
!
<!--
function setfocus() {
***************
*** 80,86 ****
form.submit();
}
//-->
!
</script>
</head>
--- 90,102 ----
form.submit();
}
+ function fillIn(dxcode, level1, level2, description) {
+ document.forms[0].dxcode.value=dxcode;
+ document.forms[0].level1.value=level1;
+ document.forms[0].level2.value=level2;
+ document.forms[0].description.value=description;
+ }
//-->
!
</script>
</head>
***************
*** 128,132 ****
for (int i = 0; i < vec.size(); i++) {
boolean bNewCat = false;
! String curCatName = ((Properties)vec.get(i)).getProperty("level1", "").toUpperCase() + " - " +
((Properties)vec.get(i)).getProperty("level2", "");
--- 144,148 ----
for (int i = 0; i < vec.size(); i++) {
boolean bNewCat = false;
! String curCatName = ((Properties)vec.get(i)).getProperty("level1", "").toUpperCase() + " - " +
((Properties)vec.get(i)).getProperty("level2", "");
***************
*** 154,158 ****
%>
<tr bgcolor="<%=color%>">
! <td align="right">
<%= ((Properties)vec.get(i)).getProperty("dxcode", "") %>
</td>
--- 170,175 ----
%>
<tr bgcolor="<%=color%>">
! <td align="right"
! onClick="fillIn('<%= ((Properties)vec.get(i)).getProperty("dxcode", "") %>', '<%= StringEscapeUtils.escapeJavaScript(((Properties)vec.get(i)).getProperty("level1", "")) %>','<%= StringEscapeUtils.escapeJavaScript(((Properties)vec.get(i)).getProperty("level2", "")) %>','<%= StringEscapeUtils.escapeJavaScript(((Properties)vec.get(i)).getProperty("description", "")) %>')">
<%= ((Properties)vec.get(i)).getProperty("dxcode", "") %>
</td>
Index: reportonbilledphcp.jsp
===================================================================
RCS file: /cvsroot/oscarmcmaster/oscar_mcmaster/web/report/reportonbilledphcp.jsp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** reportonbilledphcp.jsp 13 Apr 2005 22:19:37 -0000 1.5
--- reportonbilledphcp.jsp 25 Apr 2005 17:16:59 -0000 1.6
***************
*** 40,43 ****
--- 40,44 ----
String providerNo = null;
String providerName = "";
+ int[] total = {0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0};
String[] providerNoName = {"providerNoDoctor", "providerNoResident", "providerNoNP", "providerNoSW"};
***************
*** 131,136 ****
</tr>
</table>
- <table width="100%" border="0" bgcolor="ivory" cellspacing="1" cellpadding="1">
<form name="myform" action="reportonbilledphcp.jsp" method="POST" onSubmit="return ( onSub());">
<tr bgcolor="lightsteelblue">
<td>
--- 132,137 ----
</tr>
</table>
<form name="myform" action="reportonbilledphcp.jsp" method="POST" onSubmit="return ( onSub());">
+ <table width="100%" border="0" bgcolor="ivory" cellspacing="1" cellpadding="1">
<tr bgcolor="lightsteelblue">
<td>
***************
*** 151,158 ****
<td nowrap>
start
! <input type="text" name="startDate" id="startDate" value="" size="10" readonly>
<img src="../images/cal.gif" id="startDate_cal">
end
! <input type="text" name="endDate" id="endDate" value="" size="10" readonly>
<img src="../images/cal.gif" id="endDate_cal">
</td>
--- 152,159 ----
<td nowrap>
start
! <input type="text" name="startDate" id="startDate" value="<%=startDate!=null?startDate:""%>" size="10" readonly>
<img src="../images/cal.gif" id="startDate_cal">
end
! <input type="text" name="endDate" id="endDate" value="<%=endDate!=null?endDate:""%>" size="10" readonly>
<img src="../images/cal.gif" id="endDate_cal">
</td>
***************
*** 224,229 ****
</td>
</tr>
- </form>
</table>
<%
out.flush();
--- 225,230 ----
</td>
</tr>
</table>
+ </form>
<%
out.flush();
***************
*** 944,948 ****
<td><%=getNumAndCalTotal(props.getProperty(vServiceCode.get(i) + "vis71_" + vServiceDesc.get(i)), 21)%></td>
</tr>
! <% } %>
<tr bgcolor="<%=tdTitleColor%>">
<TH colspan="2" width="10%">
--- 945,974 ----
<td><%=getNumAndCalTotal(props.getProperty(vServiceCode.get(i) + "vis71_" + vServiceDesc.get(i)), 21)%></td>
</tr>
! <%
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat" + vServiceDesc.get(i)), 0);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis" + vServiceDesc.get(i)), 1);
!
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "patSexF" + vServiceDesc.get(i)), 2);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "visSexF" + vServiceDesc.get(i)), 3);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "patSexM" + vServiceDesc.get(i)), 4);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "visSexM" + vServiceDesc.get(i)), 5);
!
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat0_1" + vServiceDesc.get(i)), 6);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis0_1" + vServiceDesc.get(i)), 7);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat2_11" + vServiceDesc.get(i)), 8);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis2_11" + vServiceDesc.get(i)), 9);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat12_20" + vServiceDesc.get(i)), 10);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis12_20" + vServiceDesc.get(i)), 11);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat21_34" + vServiceDesc.get(i)), 12);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis21_34" + vServiceDesc.get(i)), 13);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat35_50" + vServiceDesc.get(i)), 14);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis35_50" + vServiceDesc.get(i)), 15);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat51_64" + vServiceDesc.get(i)), 16);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis51_64" + vServiceDesc.get(i)), 17);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat65_70" + vServiceDesc.get(i)), 18);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis65_70" + vServiceDesc.get(i)), 19);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "pat71_" + vServiceDesc.get(i)), 20);
! total=getNumAndCalTotal(total,props.getProperty(vServiceCode.get(i) + "vis71_" + vServiceDesc.get(i)), 21);
! } %>
<tr bgcolor="<%=tdTitleColor%>">
<TH colspan="2" width="10%">
***************
*** 1058,1066 ****
</tr>
<tr align="center">
! <td colspan="2" align="right">Total:</td>
<% for(int i=0; i<total.length; i++) { %>
<td><%=total[i]%></td>
<% } %>
</tr>
</table>
<%
--- 1084,1098 ----
</tr>
<tr align="center">
! <td colspan="2" align="right">Sub. Total:</td>
<% for(int i=0; i<total.length; i++) { %>
<td><%=total[i]%></td>
<% } %>
</tr>
+ <!--tr align="center">
+ <td colspan="2" align="right">Total:</td>
+ < %for(int i=0; i<total1.length; i++) { %>
+ <td>< %=total1[i]%></td>
+ < % } %>
+ </tr-->
</table>
<%
***************
*** 1072,1083 ****
</script>
</body>
! <%! int[] total = {0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0};
%>
<%! String getNumAndCalTotal(String str, int i) {
String ret = str;
int j = Integer.parseInt(str);
! total[i] += j;
return ret;
}
%>
</html:html>
--- 1104,1122 ----
</script>
</body>
! <%! int[] total1 = {0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0};
%>
<%! String getNumAndCalTotal(String str, int i) {
String ret = str;
int j = Integer.parseInt(str);
! total1[i] += j;
return ret;
}
+
+ int[] getNumAndCalTotal(int[] sTotal, String str, int i) {
+ //String ret = str;
+ int j = Integer.parseInt(str);
+ sTotal[i] += j;
+ return sTotal;
+ }
%>
</html:html>
|