您的位置:首页 > 其它

aaaaaaa

2012-04-05 16:34 232 查看
<%@ taglib uri="PageConfig.tld" prefix="PageConfig" %>

<PageConfig:pageConfig version="V2" />

<%@ include file="/ls/pub/PageTop.jsp" %>

<%@ page import="java.util.*" %>

<%@ page import="com.ebao.life.bean.pub.common.*" %>

<%@ page import="com.ebao.life.bean.pub.code.*" %>

<%@ taglib uri="StrRes.tld" prefix="StrRes" %>

<%

try{

//caseInfo

HashMap htData=(HashMap)request.getAttribute("MedicalFee_CaseInfo");

if(htData==null)htData=new HashMap();

//policyList

ArrayList policyList=(ArrayList)request.getAttribute("MedicalFee_PolicyInfo");

if(policyList==null)policyList=new ArrayList();

//productList

ArrayList productList=(ArrayList)request.getAttribute("MedicalFee_ProductInfo");

if(productList==null)productList=new ArrayList();

//liabList

ArrayList liabList=(ArrayList)request.getAttribute("MedicalFee_LiabIds");

if(liabList==null)liabList=new ArrayList();

//is from subscribe at cqhz00001830

String referer=request.getAttribute("referer")==null?"":request.getAttribute("referer").toString();

boolean isReadOnly="subscribe".equalsIgnoreCase(referer)||"viewlog".equalsIgnoreCase(referer);

//out.print("test"+referer+isReadOnly);

String sUrl = UrlMap.mapServletUrl("com.ebao.life.claim.std.medicalfee.ReqProcServlet");

ArrayList sameCaseList= request.getAttribute("sameHospitalCase")==null?(new ArrayList()):((ArrayList)request.getAttribute("sameHospitalCase"));

String curProductId = request.getAttribute("curProductId") == null?"": (String)request.getAttribute("curProductId");

boolean isHaveAutoCal = false;

if("11018".equals(curProductId)||"11030".equals(curProductId)||"13015".equals(curProductId)) {

isHaveAutoCal = true;

}

boolean caseIdTrigger="true".equals(request.getAttribute("caseIdTrigger"))?true:false;

ArrayList listForAutoCal = new ArrayList();

String defaultLiabId = "";

for (int i = 0; i < liabList.size(); i++) {

HashMap htRow = (HashMap) liabList.get(i);

String liabId=(String)htRow.get("liab_id");

if(i==0) {

defaultLiabId = liabId;

}

listForAutoCal.add(liabId);

}

boolean isAutoCal = false;

if((request.getAttribute("isAutoCal"))!=null) {

isAutoCal = ((Boolean)request.getAttribute("isAutoCal")).booleanValue();

}

%>

<html>

<head>

<title><StrRes:StrRes id="MSG_108462"/></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>

<script type="text/javascript">

window.onerror=function(sMessage,sUrl,sLine){

alert("An error occurred:"+sMessage+"\nLine:"+sLine);

//no return true;

return true;

}

</script>

<script language=javascript src="/life/public/js/CheckData.js"></script>

<script language=javascript src="/life/claim/common/CodeName.js"></script>

<script language=javascript src="/life/public/js/AckyerImage.js"></script>

<style type="text/css">

table#receiptType1 td,table#receiptType td{white-space:nowrap; align:right}

</style>

<SCRIPT LANGUAGE=javascript>

function showCasePolicyInfo(caseNo) {

if(caseNo=="")

return;

form1.curPolicyId.value="";

form1.target="_parent";

form1.sAction.value = "showFrame";

form1.submit();

}

function showProductInfo(caseId,policyId) {

if(form1.curCaseNo==null)

{

if(form1.curCaseId.value=="")

return;

}else {

if(form1.curCaseNo.value==""&&form1.curCaseId.value=="")

return;

}

form1.curPolicyId.value=policyId;

form1.curItemId.value="";

form1.submit();

}

function showLiabInfo(caseId,itemId) {

if(form1.curCaseNo==null)

{

if(form1.curCaseId.value==""||form1.curPolicyId.value=="")

return;

}else {

if(form1.curCaseNo.value==""&&form1.curCaseId.value==""||form1.curPolicyId.value=="")

return;

}

form1.curItemId.value=itemId;

form1.submit();

}

function checkLiabFee(liabid){

var elementName = "";

var elementObj = "";

var billAmount = 0;

var copayAmount = 0;

var otherAmount = 0;

elementName = "bill_amount_"+liabid;

elementObj = document.getElementsByName(elementName)[0];

billAmount = parseFloat(elementObj.value);

elementName = "copay_amount_"+liabid;

elementObj = document.getElementsByName(elementName)[0];

copayAmount = parseFloat(elementObj.value);

if(copayAmount > billAmount){

alert("自费金额必须小于等于帐单金额!");

elementObj.focus();

elementObj.select();

return false;

}

elementName = "other_amount_"+liabid;

elementObj = document.getElementsByName(elementName)[0];

otherAmount = parseFloat(elementObj.value);

if(otherAmount > billAmount){

alert("其他给付必须小于等于帐单金额!");

elementObj.focus();

elementObj.select();

return false;

}

return true;

}

function checkPass(){

try{

if(typeof (form1.medical_liab_id.length) =="undefined"){

return checkLiabFee(form1.medical_liab_id.value);

}else{

for(var i =0;i<form1.medical_liab_id.length;i++) {

if(!checkLiabFee(form1.medical_liab_id[i].value)){

break;

return false;

}

}//end for

return true;

}//end else

}catch(exObj){

alert("doCheckPass function error!:"+exObj.name+"\n"+exObj.message);

}

return true;

}

function doSubmit() {

if(form1.is_auto_cal_other_pay.value=="Y"&&(form1.other_sum==null||form1.other_sum.value=="")) {

alert("请输入其他给付总金额");

form1.other_sum.focus();

return;

}

<%

for(int i=0; i<listForAutoCal.size(); i++) {

String s = (String)listForAutoCal.get(i);

%>

if((form1.bill_amount_<%=s%>!=null&&form1.bill_amount_<%=s%>.value!="")&&(form1.copay_amount_<%= s%>==null||form1.copay_amount_<%= s%>.value=="")) {

form1.copay_amount_<%= s%>.value=0;

}

<%}%>

systemAutoCal();

if (form1.curCaseId.value==""||form1.curPolicyId.value==""||form1.curItemId.value=="") return;

if(!checkPass())return;

form1.sAction.value = "SaveMedicalBillInfo";

form1.submit();

}

function numberCheck(obj,errorMessage){

var regNumber=/^\s*(\d*(\d+\.\d+)?)\s*$/;//可以接受空格输入

var objd = obj;

if(typeof(obj)!="undefined" ){

if(regNumber.test(objd.value)){

//alert("the input string is:"+objd.value);

objd.value=objd.value.replace(regNumber,"$1");

//if(objd.value=="")

//objd.value = 0;

return true;

}else{

alert(errorMessage);

objd.select();

objd.focus();

return false;

}

}else {

return false;

}

}

function doCalcuBillFee(){

try{

var elementName ="";

var elementObj = "";

if(typeof (form1.medical_liab_id.length) =="undefined"){

elementName = "bill_amount_"+form1.medical_liab_id.value;

form1.bill_sum.value = document.getElementsByName(elementName)[0].value;

}else{

var sum =0;

for(var i =0;i<form1.medical_liab_id.length;i++) {

elementName ="bill_amount_"+form1.medical_liab_id[i].value;

elementObj = document.getElementsByName(elementName)[0];

if(elementObj.value!=null&&elementObj.value!=""){

sum += parseFloat(elementObj.value);

}

}//end for

form1.bill_sum.value =Math.round(sum*100)/100;

systemAutoCal();

}//end if

}catch(exObj){

alert("doCalcuBillFee method error!:"+exObj.name+"\n"+exObj.message);

}

}

function calcuBillFee(obj){

try{

if(numberCheck(obj,"帐单金额必须为数字!")){

doCalcuBillFee();

}

}catch(exObj){

alert("calcuBillFee method error!:"+exObj.name+"\n"+exObj.message);

}

}

function doCalcuCopayFee(){

try{

var elementName ="";

var elementObj ="";

if(typeof(form1.medical_liab_id.length)=="undefined"){

elementName = "copay_amount_"+form1.medical_liab_id.value;

form1.copay_sum.value = document.getElementsByName(elementName)[0].value;

}else{

var sum =0;

for(var i =0;i<form1.medical_liab_id.length;i++) {

elementName ="copay_amount_"+form1.medical_liab_id[i].value;

elementObj = document.getElementsByName(elementName)[0];

if(elementObj.value!=null && elementObj.value!=""){

sum+= parseFloat(elementObj.value);

}

}//end for

form1.copay_sum.value =Math.round(sum*100)/100;

systemAutoCal();

}//end if

}catch(exObj){

alert("doCalcuCopayFee method error!:"+exObj.name+"\n"+exObj.message);

}

}

function calcuCopayFee(obj,liabid){

try{

if(numberCheck(obj,"自费金额必须为数字!")){

var billAmountElement = document.getElementsByName("bill_amount_"+liabid)[0];

if(obj.value!=""&& billAmountElement!=null && billAmountElement.value!=""){

var billamount = parseFloat(billAmountElement.value);

var copayfee = parseFloat(obj.value);

if(copayfee > billamount){

alert("自费金额不能大于帐单金额");

//obj.focus();

//obj.select();

return ;

}

}else if(obj.value!=""){

alert("帐单金额不能为空!");

billAmountElement.focus();

obj.value= "";

return;

}

doCalcuCopayFee();

}

}catch(exObj){

alert("calcuCopayFee method error!:"+exObj.name+"\n"+exObj.message);

}

}

function doCalcuOtherFee(){

try{

var elementName ="";

var elmentObj = "";

if(typeof(form1.medical_liab_id.length)=="undefined"){

elementName = "other_amount_"+form1.medical_liab_id.value;

form1.other_sum.value = document.getElementsByName(elementName)[0].value;

}else{

var sum =0;

for(var i =0;i<form1.medical_liab_id.length;i++) {

elementName ="other_amount_"+form1.medical_liab_id[i].value;

elementObj = document.getElementsByName(elementName)[0];

if(elementObj.value!=null && elementObj.value!=""){

sum += parseFloat(elementObj.value);

}

}//end for

form1.other_sum.value =Math.round(sum*100)/100;

}//end if

}catch(exObj){

alert("doCalcuOtherFee method error!:"+exObj.name+"\n"+exObj.message);

}

}

function calcuOtherFee(obj,liabid){

if(form1.is_auto_cal_other_pay.value!="Y") {

try{

if(numberCheck(obj,"其他给付必须为数字!")){

//其他给付不能大于帐单金额

var billAmountElement = document.getElementsByName("bill_amount_"+liabid)[0];

if(obj.value!=""&& billAmountElement!=null && billAmountElement.value!=""){

var billamount = parseFloat(billAmountElement.value);

var otherfee = parseFloat(obj.value);

if(otherfee > billamount){

alert("其他给付金额不能大于帐单金额");

//obj.focus();

//obj.select();

return ;

}

}else if(obj.value!=""){

alert("帐单金额不能为空!");

billAmountElement.focus();

obj.value ="";

return;

}

doCalcuOtherFee();

}

}catch(exObj){

alert("calcuOtherFee method error!:"+exObj.name+exObj.message);

}

}

}

function calcuFeeSum(){

<%if(liabList.size()>0){

if(!isReadOnly){

%>

systemAutoCalControl();

<%}%>

doCalcuBillFee();

//alert("calcuBillFee done!"+form1.bill_sum.value);

doCalcuCopayFee();

doCalcuOtherFee();

<%}%>

<%if(isReadOnly){%>

form1.referer.value="subscribe";

<%}else{%>

form1.referer.value="";

<%}%>

}

function Exit(){

//by sunby 返回审核页面,不直接关闭

<%if(!isReadOnly){%>

form1.target="_parent";

form1.action = "<%= UrlMap.mapServletUrl("com.ebao.life.claim.std.audit.AuditServlet")%>"+"?case_id="+form1.curCaseId.value+"&sAction=display_audit_policy_list";

form1.submit();

<%}else{%>

if (window.top) {

if (window.top.parent) {

window.top.close();

} else {

window.open('/life/main.jsp','_parent')

}

}else {

if (window.parent) {

window.close();

} else {

window.open('/life/main.jsp','_parent')

}

}

<%}%>

}

//TODO

function nextForward(obj){

}

function systemAutoCal() {

try {

<%if(!isReadOnly){

if(isHaveAutoCal) {%>

if(form1.autoCal.checked) {

var otherAdd = 0;

var k = parseFloat(form1.bill_sum.value) - parseFloat(form1.copay_sum.value);

if(form1.other_sum!=null&&form1.other_sum.value!="") {

<%

for(int i=0; i<listForAutoCal.size(); i++) {

String s = (String)listForAutoCal.get(i);

%>

if(k!=0&&form1.bill_amount_<%=s%>!=null&&form1.bill_amount_<%=s%>.value!=""&&form1.copay_amount_<%= s%>!=null&&form1.copay_amount_<%=s%>.value!="") {

form1.other_amount_<%= s%>.value = Math.round(((parseFloat(form1.bill_amount_<%= s%>.value) - parseFloat(form1.copay_amount_<%= s%>.value)) * parseFloat(form1.other_sum.value) / k) * 100) / 100;

<%if(!s.equals(defaultLiabId)) {%>

otherAdd = otherAdd + parseFloat(form1.other_amount_<%= s%>.value);

<%}%>

}else if(!(form1.bill_amount_<%=s%>!=null&&form1.bill_amount_<%=s%>.value!=""&&form1.copay_amount_<%= s%>!=null&&form1.copay_amount_<%=s%>.value!="")){

form1.other_amount_<%= s%>.value = "";

}else if(k==0&&(form1.bill_amount_<%=s%>!=null&&form1.bill_amount_<%=s%>.value!=""&&form1.copay_amount_<%= s%>!=null&&form1.copay_amount_<%=s%>.value!="")) {

form1.other_amount_<%= s%>.value = 0;

}

<%}%>

//将第一项的值置为 其他给付总金额-其他给付分项金额之和-第一项的其他给付

form1.other_amount_<%= defaultLiabId%>.value = Math.round((form1.other_sum.value - otherAdd)*100)/100;

}

}

<%}

}%>

return;

} catch(exObj){

alert("systemAutoCal method error!:"+exObj.name+exObj.message);

}

}

function systemAutoCalControl() {

<%if(isHaveAutoCal) {%>

if(form1.autoCal.checked) {

form1.is_auto_cal_other_pay.value="Y";

form1.other_sum.readOnly="";

} else {

form1.is_auto_cal_other_pay.value="N";

form1.other_sum.readOnly="readOnly";

}

<%for(int i=0; i<listForAutoCal.size(); i++) {

String s = (String)listForAutoCal.get(i);

%>

if(form1.autoCal.checked) {

form1.other_amount_<%= s%>.readOnly="readOnly";

} else {

form1.other_amount_<%= s%>.readOnly="";

}

<%}

}%>

systemAutoCal();

return;

}

function validateNumber(obj,m)

{

if(!numberCheck(obj,'"'+m+'"'+'必须为数字!'))

{

return;

}

}

function checkDateFmt() {

return DateObj2StandardFmt(window.event.srcElement);

}

function doSelect(obj)

{

var typeOfReceipt=obj.options[obj.selectedIndex].value;

var tempArray=[1,3,6,7];

var partAHtml1='';

var partAHtml2='';

var partCHtml1='';

var partCHtml2='';

var partCHtml3='';

var partCHtml4='';

var partCHtml5='';

var partCHtml6='';

var partCHtml7='';

partAHtml1+=" <table width='100%' cellspacing='0' cellpadding='0' id='receiptTypeA' align='center' border='0'> \n";

partAHtml1+=" <tr> \n";

partAHtml1+=" <td>门诊发生日期 <input type='text' value='' size='10' name='hospital_code' onblur='checkDateFmt()' /> \n";

partAHtml1+=" <td>医院代码 <input type='text' value='' size='10' name='hospital_code'/>  <input size='20' type='text' value='' name='hospital_name'/></td> \n";

partAHtml1+=" </tr> \n";

partAHtml1+=" <tr> \n";

partAHtml1+=" <td>手术代码 <input type='text' value='' size='10' name='operation_code'/>  <input size='20' type='text' value='' name='operation_name'/></td> \n";

partAHtml1+=" </tr> \n";

partAHtml1+=" </table> \n";

partAHtml2+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeA' align='center' > \n";

partAHtml2+=" <tr> \n";

partAHtml2+=" <td>入院日期 <input type='text' value='' name='clinic_date' onblur='checkDateFmt()' /></td> \n";

partAHtml2+=" <td>出院日期 <input type='text' value='' name='hospital_code' onblur='checkDateFmt()' /></td> \n";

partAHtml2+=" <td>住院天数 <input type='text' value='' name='hospital_stay' onblur='validateNumber(this,"住院天数")'/></td> \n";

partAHtml2+=" </tr> \n";

partAHtml2+=" <tr> \n";

partAHtml2+=" <td>医院代码 <input type='text' value='' name='hospital_code' size='10'/>  <input size='20' type='text' value='' name='operation_name'/></td> \n";

partAHtml2+=" <td>手术代码 <input type='text' value='' name='operation_code' size='10'/>  <input size='20' type='text' value='' name='operation_name'/></td> \n";

partAHtml2+=" </tr> \n";

partAHtml2+=" </table> \n";

partCHtml1+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeB' align='center' > \n";

partCHtml1+=" <tr> \n";

partCHtml1+=" <td>费用总金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"费用总金额")' /></td> \n";

partCHtml1+=" <td>自费总额<input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"自费总额")' /></td> \n";

partCHtml1+=" <td>非社保给付 <input size='10' type='text' value='' name='non_social_insurance' onblur='validateNumber(this,"非社保给付")' /></td> \n";

partCHtml1+=" </tr> \n";

partCHtml1+=" </table> \n";

partCHtml2+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeB' align='center' > ";

partCHtml2+=" <tr> ";

partCHtml2+=" <td>住院发生金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"住院发生金额")' /></td> ";

partCHtml2+=" <td>自费总额<input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"自费总额")' /></td> ";

partCHtml2+=" <td>非社保给付 <input size='10' type='text' value='' name='non_social_insurance' onblur='validateNumber(this,"非社保给付")' /></td> ";

partCHtml2+=" </tr> ";

partCHtml2+=" </table> ";

partCHtml3+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeB' align='center' > \n";

partCHtml3+=" <tr colspan='4'> \n";

partCHtml3+=" <td>门诊发生金额 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"门诊发生金额")' /></td> \n";

partCHtml3+=" <td>医疗保险范围内金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"医疗保险范围内金额")' /></td> \n";

partCHtml3+=" <td>医疗保险基金支付金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"医疗保险基金支付金额")' /></td> \n";

partCHtml3+=" </tr> \n";

partCHtml3+=" <tr> \n";

partCHtml3+=" <td>自付一 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"自付一")' /></td> \n";

partCHtml3+=" <td>自付二 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"自付二")' /></td> \n";

partCHtml3+=" <td>自费 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"自费")' /></td> \n";

partCHtml3+=" <td>非社保给付 <input size='10' type='text' value='' name='non_social_insurance' onblur='validateNumber(this,"非社保给付")' /></td> \n";

partCHtml3+=" </tr> \n";

partCHtml3+=" </table> \n";

partCHtml4+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeB' align='center' > \n";

partCHtml4+=" <tr> \n";

partCHtml4+=" <td>住院发生金额 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"住院发生金额")' /></td> \n";

partCHtml4+=" <td>医疗保险范围内金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"医疗保险范围内金额")' /></td> \n";

partCHtml4+=" <td>统筹基金支付金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"统筹基金支付金额")' /></td> \n";

partCHtml4+=" </tr> \n";

partCHtml4+=" <tr> \n";

partCHtml4+=" <td>自付一 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"自付一")' /></td> \n";

partCHtml4+=" <td>个人支付自费金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"个人支付自费金额")' /></td> \n";

partCHtml4+=" <td>个人支付自付二金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"个人支付自付二金额")' /></td> \n";

partCHtml4+=" <td>非社保给付 <input size='10' type='text' value='' name='non_social_insurance' onblur='validateNumber(this,"非社保给付")' /></td> \n";

partCHtml4+=" </tr> \n";

partCHtml4+=" </table> \n";

partCHtml5+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeB' align='center' > \n";

partCHtml5+=" <tr> \n";

partCHtml5+=" <td>住院发生金额 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"住院发生金额")' /></td> \n";

partCHtml5+=" <td>自费总额 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"自费总额")' /></td> \n";

partCHtml5+=" <td>新农合报销金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"新农合报销金额")' /></td> \n";

partCHtml5+=" <td>非社保给付 <input size='10' type='text' value='' name='non_social_insurance' onblur='validateNumber(this,"非社保给付")' /></td> \n";

partCHtml5+=" </tr> \n";

partCHtml5+=" </table> \n";

partCHtml6+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeB' align='center' > \n";

partCHtml6+=" <tr> \n";

partCHtml6+=" <td>门诊特殊病发生金额 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"门诊特殊病发生金额")' /></td> \n";

partCHtml6+=" <td>医疗保险范围内金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"医疗保险范围内金额")' /></td> \n";

partCHtml6+=" <td>医疗保险基金支付金额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"医疗保险基金支付金额")' /></td> \n";

partCHtml6+=" </tr> \n";

partCHtml6+=" <tr> \n";

partCHtml6+=" <td>统筹基金支付金额 <input size='10' type='text' value='' name='co_ordinationfund' onblur='validateNumber(this,"统筹基金支付金额")' /></td> \n";

partCHtml6+=" <td>大额互助资金(住院)支付 <input size='10' type='text' value='' name='mutual_payment' onblur='validateNumber(this,"大额互助资金(住院)支付")' /></td> \n";

partCHtml6+=" <td>非社保给付<input size='10' type='text' value='' name='non_social_insurance' onblur='validateNumber(this,"非社保给付")' /></td> \n";

partCHtml6+=" </tr> \n";

partCHtml6+=" <tr> \n";

partCHtml6+=" <td>个人支付自付一 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"个人支付自付一")' /></td> \n";

partCHtml6+=" <td>个人支付自付二 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"个人支付自付二")' /></td> \n";

partCHtml6+=" <td>个人支付自费金额<input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"个人支付自费金额")' /></td> \n";

partCHtml6+=" </tr> \n";

partCHtml6+=" </table> \n";

partCHtml7+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeB' align='center' > \n";

partCHtml7+=" <tr> \n";

partCHtml7+=" <td>收据金额 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"收据金额")' /></td> \n";

partCHtml7+=" <td>大额互助资金(门诊)支付-本次支付 <input size='10' type='text' value='' name='mutualfund_pay_a' onblur='validateNumber(this,"大额互助资金(门诊)支付-本次支付")' /></td> \n";

partCHtml7+=" </tr> \n";

partCHtml7+=" <tr> \n";

partCHtml7+=" <td>大额互助资金(门诊)支付-年度内累计支付 <input size='10' type='text' value='' name='mutualfund_pay_b' onblur='validateNumber(this,"大额互助资金(门诊)支付-年度内累计支付")' /></td> \n";

partCHtml7+=" <td>自付-小计 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"自付-小计")' /></td> \n";

partCHtml7+=" </tr> \n";

partCHtml7+=" <tr> \n";

partCHtml7+=" <td>统筹基金本次支付 <input size='10' type='text' value='' name='co_ordinationfund' onblur='validateNumber(this,"统筹基金本次支付")' /></td> \n";

partCHtml7+=" <td>统筹基金年度内累次支付 <input size='10' type='text' value='' name='overall_financing_yearpayment' onblur='validateNumber(this,"统筹基金年度内累次支付")' /></td> \n";

partCHtml7+=" <td>自付二小计 <input size='10' type='text' value='' name='total_payment_b' onblur='validateNumber(this,"自付二小计")' /></td> \n";

partCHtml7+=" </tr> \n";

partCHtml7+=" <tr> \n";

partCHtml7+=" <td>自费 <input size='10' type='text' value='' name='own_expense' onblur='validateNumber(this,"自费")' /></td> \n";

partCHtml7+=" <td>非社保给付 <input size='10' type='text' value='' name='non_social_insurance' onblur='validateNumber(this,"非社保给付")' /></td> \n";

partCHtml7+=" </tr> \n";

partCHtml7+=" </table> \n";

for(var i=0;i<tempArray.length;i++)

{

if(typeOfReceipt==tempArray[i])

{

var all=obj.parentNode.parentNode.nextSibling.childNodes;

obj.parentNode.parentNode.nextSibling.removeChild(all[all.length-1]);

var td=document.createElement('td');

td.innerHTML=partAHtml1;

obj.parentNode.parentNode.nextSibling.appendChild(td);

break;

}

}

if(i>=tempArray.length)

{ var nodes=obj.parentNode.parentNode.nextSibling.childNodes;

obj.parentNode.parentNode.nextSibling.removeChild(nodes[nodes.length-1]);

var td=document.createElement('td');

td.innerHTML=partAHtml2;

obj.parentNode.parentNode.nextSibling.appendChild(td);

}

var td=document.createElement('td');

var partCRow=obj.parentNode.parentNode.nextSibling.nextSibling.nextSibling;

var nodes=partCRow.childNodes;

partCRow.removeChild(nodes[nodes.length-1]);

switch(typeOfReceipt)

{

case '1':

{

td.innerHTML=partCHtml1;

break;

}

case '2':

{

td.innerHTML=partCHtml2;

break;

}

case '3':

{

td.innerHTML=partCHtml3;

break;

}

case '4':

{

td.innerHTML=partCHtml4;

break;

}

case '5':

{

td.innerHTML=partCHtml5;

break;

}

case '6':

{

td.innerHTML=partCHtml6;

break;

}

case '7':

{

td.innerHTML=partCHtml7;

break;

}

}

partCRow.appendChild(td);

}

function receiptChange(v)

{

var receipt=document.getElementById("receipt");

if(v.checked==true)

{

receipt.style.display="block";

}

else

{

receipt.style.display="none";

}

}

function addPartB(obj)

{

var contentHTML="";

var count=1;

if(document.getElementsByName('receiptName')!=null)

{

count=document.getElementsByName('receiptName').length;

}

if(obj!=null)

{

var v=obj.parentNode.parentNode.parentNode.parentNode.parentNode;

}

contentHTML+="<table width='100%' name='contentTb' bordercolorlight='#000000' bordercolordark='#FFFFFF' id='contentTb'"+count+" align='center' cellspacing='0' cellpadding='4' class='table5' border='1'> ";

contentHTML+=" <tr align='center' class='table7a' cellspacing='0'> ";

contentHTML+=" <td class='table6'><div align='center'>项目</div></td> ";

contentHTML+=" <td class='table6'><div align='center'>金额</div></td> ";

contentHTML+=" <td class='table6'><div align='center'>自费</div></td> ";

contentHTML+=" <td class='table6'><div align='center'>项目</div></td> ";

contentHTML+=" <td class='table6'><div align='center'>金额</div></td> ";

contentHTML+=" <td class='table6'><div align='center'>自费</div></td> ";

contentHTML+=" <td class='table6'><div align='center'>项目</div></td> ";

contentHTML+=" <td class='table6'><div align='center'>金额</div></td> ";

contentHTML+=" <td class='table6'><div align='center'>自费</div></td> ";

contentHTML+=" <td class='table6'> </td> ";

contentHTML+=" </tr> ";

contentHTML+=" ";

contentHTML+=" <tr align='center' class='table7a'> ";

contentHTML+=" <td class='table6'><select> ";

contentHTML+=" <option> ";

contentHTML+=" 1 ";

contentHTML+=" </option> ";

contentHTML+=" <option> ";

contentHTML+=" 2 ";

contentHTML+=" </option> ";

contentHTML+=" </select></td> ";

contentHTML+=" <td class='table6'><input size='10' type='text' value='' name='hospital_money' onblur='validateNumber(this,"金额")' /></td> ";

contentHTML+=" <td class='table6'><input size='10'type='text' value='' name='own_expense' onblur='validateNumber(this,"自费")' /></td> ";

contentHTML+=" <td class='table6'><select> ";

contentHTML+=" <option> ";

contentHTML+=" 1 ";

contentHTML+=" </option> ";

contentHTML+=" <option> ";

contentHTML+=" 2 ";

contentHTML+=" </option> ";

contentHTML+=" </select width='10'></td> ";

contentHTML+=" <td class='table6'><input size='10' type='text' value='' name='hospital_money' onblur='validateNumber(this,"金额")' /></td> ";

contentHTML+=" <td class='table6'><input size='10' type='text' value='' name='own_expense' onblur='validateNumber(this,"自费")' /></td> ";

contentHTML+=" <td class='table6'><select> ";

contentHTML+=" <option> ";

contentHTML+=" 1 ";

contentHTML+=" </option> ";

contentHTML+=" <option> ";

contentHTML+=" 2 ";

contentHTML+=" </option> ";

contentHTML+=" </select></td> ";

contentHTML+=" <td class='table6'><input size='10' type='text' value='' name='hospital_money' onblur='validateNumber(this,"金额")' /></td> ";

contentHTML+=" <td class='table6'><input size='10' type='text' value='' name='own_expense' onblur='validateNumber(this,"自费")' /></td> ";

contentHTML+=" <td class='table6'><input type='button' style='visibility:visible;' onclick='addPartB(this)' value='增加' ></td> ";

contentHTML+=" </tr> ";

contentHTML+=" </table> ";

if(obj!=null) {

v.innerHTML+=contentHTML;

obj.style.visibility='hidden';

}

else

{

document.getElementById('partBCol'+count).innerHTML+=contentHTML;

}

}

function addReceipt()

{

var receiptHTMLs="";

var count=1;

if(document.getElementsByName('receiptName')!=null)

{

count=1+document.getElementsByName('receiptName').length;

}

receiptHTMLs+="<table width='100%' border='1' cellspacing='0' cellpadding='2' bordercolor='#999999' style='display:block;margin:2 2 2 2;border:1px solid;' \n";

receiptHTMLs+=" <tr> \n";

receiptHTMLs+=" <td><input type='text' color='black' size='5' border='0' name='receiptName' id='receiptName"+count+"' value='收据"+count+"' readonly/><input type='button' onclick='deleteTable(this)' value='删除此收据'/></td> \n";

receiptHTMLs+=" </tr> \n";

receiptHTMLs+=" <tr> \n";

receiptHTMLs+=" <td> 收据类型 \n";

receiptHTMLs+=" <select onchange='doSelect(this)' id='receiptSelect'> \n";

receiptHTMLs+=" <option value='1'> \n";

receiptHTMLs+=" 非医保门诊 \n";

receiptHTMLs+=" </option> \n";

receiptHTMLs+=" <option value='2'> \n";

receiptHTMLs+=" 非医保住院 \n";

receiptHTMLs+=" </option> \n";

receiptHTMLs+=" <option value='3'> \n";

receiptHTMLs+=" 医保门诊 \n";

receiptHTMLs+=" </option> \n";

receiptHTMLs+=" <option value='4'> \n";

receiptHTMLs+=" 医保住院 \n";

receiptHTMLs+=" </option> \n";

receiptHTMLs+=" <option value='5'> \n";

receiptHTMLs+=" 新农合住院 \n";

receiptHTMLs+=" </option> \n";

receiptHTMLs+=" <option value='6'> \n";

receiptHTMLs+=" 医保特殊病 \n";

receiptHTMLs+=" </option> \n";

receiptHTMLs+=" <option value='7'> \n";

receiptHTMLs+=" 医保审批表 \n";

receiptHTMLs+=" </option> \n";

receiptHTMLs+=" </select> \n";

receiptHTMLs+="         收据编号 <input type='text' value='' name='receipt_no'/> \n";

receiptHTMLs+=" </td> \n";

receiptHTMLs+=" <tr id='partARow"+count+"'> \n";

receiptHTMLs+=" </tr> \n";

receiptHTMLs+=" <tr id='partBRow"+count+"'> \n";

receiptHTMLs+=" <td id='partBCol"+count+"'> ";

receiptHTMLs+=" </td> ";

receiptHTMLs+=" </tr> \n";

receiptHTMLs+=" <tr id='partCRow"+count+"'> \n";

receiptHTMLs+=" </tr> \n";

receiptHTMLs+=" </table> ";

document.getElementById('receipt').innerHTML+=receiptHTMLs;

alert(receiptHTMLs);

addPartA();

addPartB();

addPartC();

}

function deleteTable(r)

{

var r1=r.parentNode.parentNode.parentNode.parentNode;

r1.parentNode.removeChild(r1);

var receiptNames=document.getElementsByName('receiptName');

refreshReceiptId();

for(var i=0;i<receiptNames.length;i++)

{

receiptNames[i].innerText='收据'+(i+1);

}

}

function addPartA()

{

var partAHtml1="";

var count=1;

if(document.getElementsByName('receiptName')!=null)

{

count=document.getElementsByName('receiptName').length;

alert('bbb'+count);

}

partAHtml1+=" <table width='100%' cellspacing='0' cellpadding='0' id='receiptTypeA'"+count+" align='center' border='0'> \n";

partAHtml1+=" <tr> \n";

partAHtml1+=" <td>门诊发生日期 <input type='text' value='' name='clinic_date' onblur='checkDateFmt()' /></td> \n";

partAHtml1+=" <td>医院代码 <input type='text' border='1' value='' size='5' name='hospital_code'/>  <input size='20' border='1' type='text' value='' name='hospital_name'/></td> \n";

partAHtml1+=" </tr> \n";

partAHtml1+=" <tr> \n";

partAHtml1+=" <td>手术代码 <input type='text' value='' size='5' name='operation_code'/>  <input size='20' type='text' value='' name='operation_name'/></td> \n";

partAHtml1+=" </tr> \n";

partAHtml1+=" </table> \n";

var td=document.createElement('td');

td.innerHTML=partAHtml1;

document.getElementById("partARow"+count).appendChild(td);

}

function addPartC()

{

var partCHtml1="";

var count=1;

if(document.getElementsByName('receiptName')!=null)

{

count=document.getElementsByName('receiptName').length;

}

partCHtml1+=" <table width='100%' border='0' cellspacing='0' cellpadding='0' id='receiptTypeB' align='center' style='display:block'> \n";

partCHtml1+=" <tr> \n";

partCHtml1+=" <td>费用总金额 <input size='10' type='text' value='' name='clinic_date' onblur='validateNumber(this,"费用总金额")' /></td> \n";

partCHtml1+=" <td>自费总额 <input size='10' type='text' value='' name='hospital_code' onblur='validateNumber(this,"自费总额")' /></td> \n";

partCHtml1+=" <td>非社保给付 <input size='10' type='text' value='' name='non_social_insurance' onblur='validateNumber(this,"非社保给付")' /></td> \n";

partCHtml1+=" </tr> \n";

partCHtml1+=" </table> \n";

var td=document.createElement('td');

td.innerHTML=partCHtml1;

alert("jkjk:::partCRow"+count);

document.getElementById("partCRow"+count).appendChild(td);

}

function refreshReceiptId()

{

receiptNames=getElementsByName_iefix('span','receiptName');

for(var i=0;i<receiptNames.length;i++)

{

receiptNames[i].id='receiptName'+(i+1);

}

partCRows=document.getElementsByName('partCRow');

for(i=0;i<partCRows.length;i++)

{

partCRows[i].id='partCRow'+(i+1);

}

}

function getElementsByName_iefix(tag, name) {

var elem = document.getElementsByTagName(tag);

var arr = new Array();

for(i = 0,iarr = 0; i < elem.length; i++) {

att = elem[i].getAttribute("name");

if(att == name) {

  arr[iarr] = elem[i];

iarr++;

}

}

return arr;

}

</SCRIPT>

<body bgcolor="#808080" leftmargin="0" topmargin="10" marginwidth="0" marginheight="0" onLoad="calcuFeeSum();addReceipt();">

<form name="form1" method="post" action="<%= sUrl %>">

<input type="hidden" name="sAction" value="">

<input type="hidden" name="referer" value="<%=referer%>">

<input type="hidden" name="curCaseId" value="<%=request.getAttribute("curCaseId")%>">

<input type="hidden" name="reversal_list_id" value="<%=request.getAttribute("reversal_list_id")==null?"-1":request.getAttribute("reversal_list_id")%>">

<input type="hidden" name="curPolicyId" value="<%=request.getAttribute("curPolicyId")%>">

<input type="hidden" name="curItemId" value="<%=request.getAttribute("curItemId")%>">

<input type="hidden" name="is_auto_cal_other_pay" value='<%=isAutoCal?"Y":"N"%>'>

<table width="870" align="center" height="24" cellpadding="4" cellspacing="0" border="0">

<tr>

<td bgcolor="#444488"><font color="#FFFFFF" class="title01"><StrRes:StrRes id="MSG_108462"/></font></td>

</tr>

</table>

<!-- here caseInfo -->

<table width="870" align="center" cellpadding="0" cellspacing="0" border="1" bgcolor="#cccccc" bordercolorlight="#000000" bordercolordark="#FFFFFF" >

<tr>

<td height="30" align="center">

<div align="left"><br>

</div>

<table width="97%" border="1" cellspacing="0" cellpadding="4" bordercolor="#999999">

<% if(!caseIdTrigger){ %>

<tr>

<td><b><StrRes:StrRes id="MSG_22634"/></b><input name="curCaseNo" value="<%=request.getAttribute("curCaseNo")%>" onBlur="showCasePolicyInfo(this.value);"></td>

</tr>

<% } %>

<tr>

<td>

<table border="1" cellpadding="4" align="center" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="100%">

<tr>

<td width="14%"><StrRes:StrRes id="MSG_399"/></td>

<td width="31%" bgcolor="#FFFFFF">  <%= htData.get("case_no") %> </td>

<td width="13%"><StrRes:StrRes id="MSG_426"/></td>

<td width="42%" bgcolor="#FFFFFF"> <%=CodeTable.getCodeDesc("T_CASE_STATUS",htData.get("case_status"),request)%> </td>

</tr>

<tr>

<td width="14%"><StrRes:StrRes id="MSG_408"/></td>

<td width="31%" bgcolor="#FFFFFF"> <%=CodeTable.getCodeDesc("T_CASE_LEVEL",htData.get("case_level"),request)%></td>

<td width="13%"><StrRes:StrRes id="MSG_7606"/></td>

<td width="42%" bgcolor="#FFFFFF"> <%=CodeTable.getCodeDesc("T_CLAIM_TYPE",htData.get("claim_type"),request)%> </td>

</tr>

<tr>

<td width="14%"> <StrRes:StrRes id="MSG_5015"/></td>

<td width="31%" bgcolor="#FFFFFF"> <%= htData.get("real_name") %> </td>

<td width="14%"> <StrRes:StrRes id="MSG_106502"/></td>

<td width="31%" bgcolor="#FFFFFF">  <%=CodeTable.getCodeDesc("T_ACCIDENT_STATUS",htData.get("accident_status"),request)%> </td>

</tr>

<tr>

<td width="14%"><StrRes:StrRes id="MSG_5005"/></td>

<td width="31%" bgcolor="#FFFFFF"> <%= htData.get("accident_time") %> </td>

<td width="13%"><StrRes:StrRes id="MSG_5011"/></td>

<td width="42%" bgcolor="#FFFFFF"> <%=CodeTable.getCodeDesc("T_ACCIDENT_TYPE",htData.get("accident_type"),request)%></td>

</tr>

<tr>

<td width="14%"><StrRes:StrRes id="MSG_5013"/></td>

<td width="31%" bgcolor="#FFFFFF"> <%=CodeTable.getCodeDesc("T_ACCIDENT",htData.get("accident_id"),request)%> </td>

<td width="13%"><StrRes:StrRes id="MSG_7567"/></td>

<td width="42%" bgcolor="#FFFFFF"> <%= htData.get("accident_desc") %> </td>

</tr>

<tr>

<td width="14%"><StrRes:StrRes id="MSG_3879"/></td>

<td width="31%" bgcolor="#FFFFFF"> <%= htData.get("hospital") %> </td>

<td width="13%"><StrRes:StrRes id="MSG_7595"/></td>

<td width="42%" bgcolor="#FFFFFF"> <%= htData.get("start_date") %></td>

</tr>

<tr>

<td width="14%"><StrRes:StrRes id="MSG_1653"/></td>

<td width="31%" bgcolor="#FFFFFF"> <%= htData.get("end_date") %></td>

<td width="13%"><StrRes:StrRes id="MSG_7570"/></td>

<td width="42%" bgcolor="#FFFFFF"> <%= htData.get("diagnose_date") %> </td>

</tr>

<tr>

<td width="14%"><StrRes:StrRes id="MSG_7596"/></td>

<td width="31%" bgcolor="#FFFFFF"> <%= htData.get("operation_date") %></td>

<td width="13%"><StrRes:StrRes id="MSG_7607"/></td>

<td width="42%" bgcolor="#FFFFFF"> <%= htData.get("claim_sum") %></td>

</tr>

</table>

</td>

</tr>

</table>

<br>

<table id="table1" width="97%" border="1" cellspacing="0" cellpadding="4" bordercolor="#999999">

<tr>

<td>

<input type="checkbox" onclick="receiptChange(this)" checked>

 <b>医疗费用收据录入</b>

</td>

</tr>

<tr>

<td id='receipt' cellspacing='1'>

</td>

</tr>

<tr align="center" id="buttons">

<td>

<input type="button" onclick="addReceipt()" value="增加收据" /><input type="button" value="暂存" /><input type="button" value="隐藏" /><input type="button" value="生成账单数据" />

</td>

</tr>

</table>

<!-- here policyListInfo -->

<% if(policyList.size()>0) { %>

<br>

<table width="97%" border="1" cellspacing="0" cellpadding="2" bordercolor="#9999999">

<tr>

<td><b><StrRes:StrRes id="MSG_5022"/></b></td>

</tr>

<tr>

<td>

<table align="center" b width="100%" >

<tr>

<td colspan="2">

<table border="1" cellpadding="4" align="center" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="100%">

<tr>

<td>

<div align="center"><StrRes:StrRes id="MSG_7387"/></div>

</td>

<td>

<div align="center"><StrRes:StrRes id="MSG_526"/></div>

</td>

<td>

<div align="center"><StrRes:StrRes id="MSG_3131"/></div>

</td>

<td>

<div align="center"><StrRes:StrRes id="MSG_561"/></div>

</td>

</tr>

<%

for (int i = 0; i < policyList.size(); i++) {

HashMap htRow = (HashMap) policyList.get(i);

%>

<tr>

<td bgcolor="#FFFFFF">

<div align="center">

<input type="radio" name="policy_id" value="<%= htRow.get("policy_id") %>" onClick="showProductInfo(null,this.value)" <%=htRow.get("policy_id").equals(request.getAttribute("curPolicyId"))?"checked":""%> >

</div>

</td>

<td bgcolor="#FFFFFF">

<div align="center"><a href="<%= UrlMap.mapServletUrl("com.ebao.life.query.servlet.QueryServlet")%>?sAction=DISPLAY_TABLE&QUERY_TABLE_NAME=T_CONTRACT_MASTER&POLICY_ID=<%= htRow.get("policy_id")%>" target="_blank"><%=htRow.get("policy_code")%>
 </a></div>

</td>

<td bgcolor="#FFFFFF">

<div align="center"><%=CodeTable.getCodeDesc("T_CHANNEL_TYPE",htRow.get("policy_type"),request)%></div>

</td>

<td bgcolor="#FFFFFF">

<div align="center"><%= htRow.get("validate_date") %></div>

</td>

</tr>

<%

}

%>

</table>

</td>

</tr>

</table>

</td>

</tr>

</table>

<% } %>

<!-- here productListInfo -->

<% if(productList.size()>0) { %>

<br>

<table width="97%" border="1" cellspacing="0" cellpadding="2" bordercolor="#9999999">

<tr>

<td><b><StrRes:StrRes id="MSG_5761"/></b></td>

</tr>

<tr>

<td>

<table align="center" b width="100%" >

<tr>

<td colspan="2">

<table border="1" cellpadding="4" align="center" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="100%">

<tr>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_7387" /></div></td>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_5763" /></div></td>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_5718" /></div></td>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_5745" /></div></td>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_12891" /></div></td>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_674" /></div></td>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_650" /></div></td>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_2660" />/<StrRes:StrRes id="MSG_2105" /></div></td>

<td class="table6"><StrRes:StrRes id="MSG_5777" /></td>

<td class="table6"><div align="center"><StrRes:StrRes id="MSG_7608" /></div></td>

</tr>

<%

for (int i = 0; i < productList.size(); i++) {

HashMap oneProduct = (HashMap) productList.get(i);

%>

<tr>

<td class="table6"><div align="center">

<input type="radio" name="radioitem" value="<%= oneProduct.get("item_id")%>" <%=oneProduct.get("item_id").equals(request.getAttribute("curItemId"))? "checked" : "" %> onClick="showLiabInfo(null,this.value);">

</div></td>

<td class="table6"><div align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"><%= oneProduct.get("product_num") %></FONT></div></td>

<td class="table6"><div align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"><%= oneProduct.get("internal_id") %></FONT></div></td>

<td class="table6"><div align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"><%= oneProduct.get("product_abbr") %></FONT></div></td>

<td class="table6"><div align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"><%= ((String)oneProduct.get("validate_date")).substring(0, 10) %></FONT></div></td>

<td class="table6"><div align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"> <%= ((String)oneProduct.get("pay_to_date")).substring(0, 10) %> </font></div></td>

<td class="table6"align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"> <%= (oneProduct.get("amount") != null) ? oneProduct.get("amount") : "" %> </FONT> </td>

<td class="table6"><%

String levelStr = "";

String unitStr = (String) oneProduct.get("unit");

String levelDesc = (String) oneProduct.get("benefit_level");

String languageId = StringResource.getLanguageId(request);

if (unitStr != null && !"0".equals(unitStr) && !"".equals(unitStr)) {

if (languageId.equals("211")) {

// simple chinese

levelStr = unitStr +" 份";

} else if (languageId.equals("011")){

//english

levelStr = unitStr +" unit(s)";

}

}

if (levelDesc != null && !"".equals(levelDesc)) {

if (!"".equals(levelStr)) {

levelStr += " / ";

}

if (languageId.equals("211")) {

//simple chinese

levelStr = levelDesc +" 档";

} else if (languageId.equals("011")) {

levelStr = "Level "+ levelDesc;

}

} else {

levelStr = "--";

}

%>

<div align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"> <%= levelStr %></FONT> </div></td>

<td class="table6"><div align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"><%=CodeTable.getCodeDesc("T_LIABILITY_STATUS",oneProduct.get("liability_state"),request)%></FONT></div></td>

<td class="table6"><div align="center"><font color="<%= "2".equals(oneProduct.get("register_conclusion")) ? "#FF0000" : "#000000" %>"><%= ((String)oneProduct.get("end_date")).substring(0, 10) %></FONT></div></td>

</tr>

<%

}

%>

</table>

</td>

</tr>

</table>

</td>

</tr>

</table>

<% } %>

<!-- here liabListInfo -->

<% if(liabList.size()>0) { %>

<br>

<table width="97%" border="1" cellspacing="0" cellpadding="2" bordercolor="#9999999">

<td>

<table width="100%" border="0">

<tr>

<td width="79%"><b>账单录入</b></td>

<td width="21%">

<%if(isHaveAutoCal) {%>

<input type="checkbox" name="autoCal" <%=isReadOnly?"disabled":""%> <%=isAutoCal?"checked":""%> onClick="systemAutoCalControl()">其他给付系统自动理算

<%}%>

</td>

</tr>

</table></td>

<tr>

<td>

<table align="center" b width="100%" >

<%

String strCaseList = "";

HashMap sameCaseInfo;

for(int i = 0;i<sameCaseList.size();i++){

sameCaseInfo = new HashMap();

sameCaseInfo = (HashMap)sameCaseList.get(i);

if(i==0){

strCaseList = strCaseList + "<a href='/life/servlet/com.ebao.life.query.servlet.QueryServlet?sAction=DISPLAY_TABLE&QUERY_TABLE_NAME=T_CLAIM_CASE&CASE_ID="+sameCaseInfo.get("case_id")+"' target='_blank'>"+sameCaseInfo.get("case_no")+"</a>";

}else{

strCaseList = strCaseList + ","+"<a href='/life/servlet/com.ebao.life.query.servlet.QueryServlet?sAction=DISPLAY_TABLE&QUERY_TABLE_NAME=T_CLAIM_CASE&CASE_ID="+sameCaseInfo.get("case_id")+"' target='_blank'>"+sameCaseInfo.get("case_no")+"</a>";

}

}

%>

<%if(strCaseList != null && !"".equals(strCaseList)) {%>

<tr>

<td colspan="2">

<font color="#FF0000">本次住院与案件<%= strCaseList%>的住院为同一次住院</font></td>

</tr>

<%}%>

<tr>

<td colspan="2">

<table border="1" cellpadding="4" align="center" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="100%">

<tr>

<td class="table6">

<div align="center"><StrRes:StrRes id="MSG_16102"/></div>

</td>

<td class="table6">

<div align="center"><StrRes:StrRes id="MSG_108464"/></div>

</td>

<td class="table6">

<div align="center"><StrRes:StrRes id="MSG_108465"/></div>

</td>

<td class="table6">

<div align="center"><StrRes:StrRes id="MSG_108466"/></div>

</td>

<td class="table6">

<div align="center"><StrRes:StrRes id="MSG_108467"/></div>

</td>

<td class="table6">

<div align="center"><StrRes:StrRes id="MSG_892"/></div>

</td>

</tr>

<tr>

<td class="table6" width="24%" align="center">汇总金额</td>

<td class="table6"><input type="text" name="bill_sum" value="" readonly="true"></td>

<td class="table6"><input type="text" name="copay_sum" value="" readonly="true"></td>

<td class="table6"><input type="text" name="copay_cause" value="" readonly="true"></td>

<td class="table6"><input type="text" name="other_sum" value="" readonly="true" onBlur="systemAutoCal()"></td>

<td class="table6"><textarea name="other_cuase" disabled="true"></textarea></td>

</tr>

<%

for (int i = 0; i < liabList.size(); i++) {

HashMap htRow = (HashMap) liabList.get(i);

String liabId=(String)htRow.get("liab_id");

%>

<tr>

<td class="table6" width="24%" >

<div align="center">

<input type="hidden" name="medical_liab_id" value="<%=liabId%>">

<input type="hidden" name="list_id_<%=liabId%>" value="<%=htRow.get("list_id")%>">

<%=CodeTable.getCodeDesc("T_LIABILITY",htRow.get("liab_id"),request)%>

</div>

</td>

<td class="table6" >

<div align="center">

<input name="bill_amount_<%=liabId%>" value="<%=htRow.get("bill_amount")%>" <%=isReadOnly?"readonly":""%> onBlur="calcuBillFee(this);">

</div>

</td>

<td class="table6" >

<div align="center">

<input name="copay_amount_<%=liabId%>" value="<%=htRow.get("copay_amount")%>" <%=isReadOnly?"readonly":""%> onKeyUp="nextForward(this);"onBlur="calcuCopayFee(this,<%=liabId%>)">

</div>

</td>

<td class="table6" >

<div align="center">

<input name="copay_cause_<%=liabId%>" value="<%=htRow.get("copay_cause")%>" <%=isReadOnly?"readonly":""%> onKeyUp="nextForward(this);">

</div>

</td>

<td class="table6" >

<div align="center">

<input name="other_amount_<%=liabId%>" value="<%=htRow.get("other_amount")%>" <%=isReadOnly?"readonly":""%> onBlur="calcuOtherFee(this,<%=liabId%>);">

</div>

</td>

<td class="table6" >

<div align="center">

<textarea name="note_<%=liabId%>" rows="2" onKeyUp="nextForward(this);" <%=isReadOnly?"readonly":""%>><%=htRow.get("note")!=null?htRow.get("note"):""%></textarea>

</div>

</td>

</tr>

<%

}

%>

</table>

</td>

</tr>

</table>

</td>

</tr>

</table>

<% } %>

<!-- end -->

<br>

<table width="97%" border="1" cellspacing="0" cellpadding="2" bordercolor="#9999999">

<tr class="table4">

<td>

<table align="center" b width="100%" >

<tr>

<td colspan="2" align="center">

<table align="center" cellspacing="0" class="table5">

<tr align="center" class="table7a">

<%if(!isReadOnly){%>

<td class="table6"><div align="center">

<input type=button value="<StrRes:StrRes id="MSG_458"/>" onclick="doSubmit()" <%=liabList.size()>0?"":"disabled"%> >

</div></td>

<%}%>

<%if(!isReadOnly){%>

<td class="table6"><div align="center">

<input type=button value="返回" onclick="Exit()">

</div></td>

<%}else{%>

<td class="table6"><div align="center">

<input type=button value="关闭" onclick="Exit()">

</div></td>

<%}%>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

</table>

<!-- end -->

</td>

</tr>

</table>

</form>

</body>

</html>

<%

} catch (Exception ex) {

ex.printStackTrace(response.getWriter());

}

%>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: