[Oscarmcmaster-cvscommit] oscar_mcmaster/web/billing/CA/ON addEditServiceCode.jsp,1.5,1.6
open source web-based Electronic Medical Record (EMR) system
Brought to you by:
davidhcchan,
jaygallagher
From: Yi Li <yi...@us...> - 2005-07-27 02:44:44
|
Update of /cvsroot/oscarmcmaster/oscar_mcmaster/web/billing/CA/ON In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15052/billing/CA/ON Modified Files: addEditServiceCode.jsp Log Message: update for perc code input Index: addEditServiceCode.jsp =================================================================== RCS file: /cvsroot/oscarmcmaster/oscar_mcmaster/web/billing/CA/ON/addEditServiceCode.jsp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** addEditServiceCode.jsp 24 Mar 2005 23:30:38 -0000 1.5 --- addEditServiceCode.jsp 27 Jul 2005 02:44:06 -0000 1.6 *************** *** 46,49 **** --- 46,54 ---- if (request.getParameter("submit") != null && request.getParameter("submit").equals("Save")) { // check the input data + // if input the perc code, + String valuePara = request.getParameter("value"); + if(request.getParameter("percentage").length()>0 && valuePara.trim().equals("") ) { + valuePara = ".00"; + } if(request.getParameter("action").startsWith("edit")) { *************** *** 52,56 **** if(serviceCode.equals(request.getParameter("action").substring("edit".length()))) { String sql = "update billingservice set description='" + StringEscapeUtils.escapeSql(request.getParameter("description")) + "', "; ! sql += " value='" + request.getParameter("value") + "', "; sql += " percentage='" + request.getParameter("percentage") + "', "; sql += " billingservice_date='" + request.getParameter("billingservice_date") + "' "; --- 57,61 ---- if(serviceCode.equals(request.getParameter("action").substring("edit".length()))) { String sql = "update billingservice set description='" + StringEscapeUtils.escapeSql(request.getParameter("description")) + "', "; ! sql += " value='" + valuePara + "', "; sql += " percentage='" + request.getParameter("percentage") + "', "; sql += " billingservice_date='" + request.getParameter("billingservice_date") + "' "; *************** *** 103,107 **** sql += serviceCode + "', '"; sql += request.getParameter("description") + "', '"; ! sql += request.getParameter("value") + "', '"; sql += request.getParameter("percentage") + "', '"; sql += request.getParameter("billingservice_date") + "' )"; --- 108,112 ---- sql += serviceCode + "', '"; sql += request.getParameter("description") + "', '"; ! sql += valuePara + "', '"; sql += request.getParameter("percentage") + "', '"; sql += request.getParameter("billingservice_date") + "' )"; |