From 192f8ebf01da42dd99595ef300fba86eda582d45 Mon Sep 17 00:00:00 2001 From: zhanglei Date: Wed, 27 Jan 2021 10:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E9=99=A9=E7=90=86=E8=B5=94=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/Tenwa/insurance/insuranceList.jsp | 18 ++++++++--------- .../tenwa/insurance/InsuranceInfoHandler.java | 20 +++++++------------ 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/WebContent/Tenwa/insurance/insuranceList.jsp b/WebContent/Tenwa/insurance/insuranceList.jsp index 730adf377..e875b707d 100644 --- a/WebContent/Tenwa/insurance/insuranceList.jsp +++ b/WebContent/Tenwa/insurance/insuranceList.jsp @@ -67,7 +67,7 @@ function view(){ var sUrl = "/Tenwa/insurance/insuranceInfo.jsp"; - var id = getItemValue(0,getRow(0),'id'); + var id = getItemValue(0,getRow(0),'insurance_id'); if(typeof(id)=="undefined" || id.length==0 ){ alert("请选择一条信息!"); return ; @@ -101,7 +101,7 @@ * 生成保险理赔模板 */ function generateQuotation(){ - var insurance_nos=getItemValueArray(0,"insurance_no"); + var insurance_ids=getItemValueArray(0,"insurance_id"); var contract_nos=getItemValueArray(0,"contract_no"); var project_ids=getItemValueArray(0,"project_id"); var customer_ids=getItemValueArray(0,"customer_id"); @@ -123,14 +123,14 @@ var objectType = "contractInsurance"; //生成文件关联关系 tempParam["OBJECTTYPE"]=objectType; - tempParam["insurance_no"]=insurance_nos[i]; + tempParam["insurance_no"]=insurance_ids[i]; tempParam["contract_no"]=contract_nos[i]; tempParam["contract_id"]=contract_ids[i]; tempParam["project_id"]=project_ids[i]; tempParam["PROJ_ID"]=project_ids[i];//注意变量名,不要改 tempParam["CONTRACT_ID"]=contract_ids[i];//注意变量名,不要改 tempParam["CUST_ID"]=customer_ids[i];//注意变量名,不要改 - tempParam["PLAN_NUMBER"]=insurance_nos[i];//注意变量名,不要改 + tempParam["PLAN_NUMBER"]=insurance_ids[i];//注意变量名,不要改 //生成模板固定参数 tempParam["CurUserId"]="<%=CurUser.getUserID()%>"; @@ -143,12 +143,12 @@ sparam+=key+"="+param[key]; } - var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","projectId="+project_ids[i]+",plan_number="+insurance_nos[i]+",objecttype="+objectType); + var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","projectId="+project_ids[i]+",plan_number="+insurance_ids[i]+",objecttype="+objectType); var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam); // word转pdf - var id = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractInsuranceSignAction","wordToPdfInsurance","contractNo="+contract_nos[i]+",contractId="+contract_ids[i]+",projectId="+project_ids[i]+",subjectId="+subject_ids[i]+",planNumber="+insurance_nos[i]); + var id = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractInsuranceSignAction","wordToPdfInsurance","contractNo="+contract_nos[i]+",contractId="+contract_ids[i]+",projectId="+project_ids[i]+",subjectId="+subject_ids[i]+",planNumber="+insurance_ids[i]); if(typeof(id)=="undefined" || id.length <= 0 || id==""){ - RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","projectId="+project_ids[i]+",plan_number="+insurance_nos[i]+",objecttype="+objectType); + RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","projectId="+project_ids[i]+",plan_number="+insurance_ids[i]+",objecttype="+objectType); }else{ number++; } @@ -179,12 +179,12 @@ var subject_ids=getItemValueArray(0,"subject_id"); var contract_ids=getItemValueArray(0,"contract_id"); var subject_ids=getItemValueArray(0,"subject_id"); - var insurance_nos=getItemValueArray(0,"insurance_no"); + var insurance_ids=getItemValueArray(0,"insurance_id"); for(var i=0;i'" + bo.getAttribute("id").getString() + "'").setParameter("insurance_no", bo.getAttribute("insurance_no").getString()).getSingleResult(false); - if (bx != null) { - this.errors = "保险单号重复"; - return false; - } - } +// if (!isInsert) { +// BizObject bx = JBOFactory.createBizObjectQuery(LB_CONTRACT_INSURANCE_INFO.CLASS_NAME, "insurance_no=:insurance_no and id<>'" + bo.getAttribute("id").getString() + "'").setParameter("insurance_no", bo.getAttribute("insurance_no").getString()).getSingleResult(false); +// if (bx != null) { +// this.errors = "保险单号重复"; +// return false; +// } +// } } catch (Exception e) { e.printStackTrace(); }