保险理赔模块修改

This commit is contained in:
zhanglei 2021-01-26 14:16:43 +08:00
parent 138dff863c
commit f621ab2852
2 changed files with 10 additions and 4 deletions

View File

@ -101,6 +101,7 @@
* 生成保险理赔模板
*/
function generateQuotation(){
var insurance_nos=getItemValueArray(0,"insurance_no");
var contract_nos=getItemValueArray(0,"contract_no");
var project_ids=getItemValueArray(0,"project_id");
var customer_ids=getItemValueArray(0,"customer_id");
@ -122,12 +123,14 @@
var objectType = "contractInsurance";
//生成文件关联关系
tempParam["OBJECTTYPE"]=objectType;
tempParam["insurance_no"]=insurance_nos[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["CurUserId"]="<%=CurUser.getUserID()%>";
@ -140,12 +143,12 @@
sparam+=key+"="+param[key];
}
var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","projectId="+project_ids[i]+",objecttype="+objectType);
var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","projectId="+project_ids[i]+",plan_number="+insurance_nos[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]);
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]);
if(typeof(id)=="undefined" || id.length <= 0 || id==""){
RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","projectId="+project_ids[i]+",objecttype="+objectType);
RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","projectId="+project_ids[i]+",plan_number="+insurance_nos[i]+",objecttype="+objectType);
}else{
number++;
}
@ -176,11 +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");
for(var i=0;i<contract_nos.length;i++){
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractInsuranceSignAction","claimSignInsuranceTwo",
"contractNo="+contract_nos[i]+",contractId="+contract_ids[i]+",projectId="+project_ids[i]+",subjectId="+subject_ids[i]
+",flagType=start,tempId="+tempId);
+",flagType=start,tempId="+tempId+",planNumber="+insurance_nos[i]);
if("success"==result){
number++;
}

View File

@ -1825,6 +1825,8 @@
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="insurance_username" label="被保险人姓名" type="String" length="32"/>
<attribute name="insurance_cert_id" label="被保险人身份证号" type="String" length="32"/>
</attributes>
<manager>
<managerProperties>