/*************************************************************** *

ProName:LLClaimPolDeal.js

*

Title:保单结算

*

Description:保单结算

*

Copyright:Copyright (c) 2024

*

Company:Sinosoft

* @author : nsk * @version : 8.0 * @date : 2024-12-17 ****************************************************************/ var showInfo; var tSQLInfo = new SqlClass(); var turnPage = new turnPageClass(); //查询保单结算结果 function initQuery() { //alert(pContNo); /* var strSql = " select a.FeeOperationType," +" (select e.BalTypeDesc from LLBalanceRela e where e.BalType=a.FeeOperationType and e.SubBalType=a.SubFeeOperationType and e.FinaType=a.FeeFinaType)," +" a.SubFeeOperationType," +" (select f.SubBalTypeDesc from LLBalanceRela f where f.SubBalType=a.SubFeeOperationType)," +" a.contno,a.PolNo,RiskCode,GetDate,a.Pay " +" from LLBalance a where 1=1 " +" and a.ClmNo in ('" + fm.ClmNo.value + "')" +" and substr(a.FeeOperationType,1,1) in ('C') " ; //显示所有数据 var arr = easyExecSql(strSql); if (arr) { displayMultiline(arr,PolCalResultGrid); } else { initPolCalResultGrid(); //计算结果 }*/ tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimPolDealSql"); tSQLInfo.setSqlId("LLClaimPolDealSql1"); tSQLInfo.addSubPara(mClmNo); turnPage.queryModal(tSQLInfo.getString(),PolCalResultGrid); /* var PaySql = " select FeeOperationType from llbalance where clmno in ('" + fm.ClmNo.value + "') and FeeOperationType='C14'"; var Payarr = easyExecSql(PaySql);*/ tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimPolDealSql"); tSQLInfo.setSqlId("LLClaimPolDealSql2"); tSQLInfo.addSubPara(mClmNo); var Payarr = easyExecSql(tSQLInfo.getString()); if (Payarr) { //判断生存受益人与身故受益人是否同一人 /* var BnfSql = " select 1 from llbbnf b where b.clmno in ('" + fm.ClmNo.value + "') and bnftype='1' and trim(b.name)" +" not in (nvl((select name from lcbnf where bnfgrade ='1' and contno in (select contno from llclaimdetail where clmno in ('" + fm.ClmNo.value + "')))," +" (select name from lcinsured where contno in (select contno from llclaimdetail where clmno in ('" + fm.ClmNo.value + "')))))"; var Bnfarr = easyExecSql(BnfSql);*/ tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimPolDealSql"); tSQLInfo.setSqlId("LLClaimPolDealSql3"); tSQLInfo.addSubPara(mClmNo); var Bnfarr = easyExecSql(tSQLInfo.getString()); if (Bnfarr) { i18nAlert("生存受益人与身故受益人非同一人,请告知客户,金额全部由身故受益人领取!"); } } } function initQueryDeferInterest() { //alert(pContNo); /* var strSql = "select floor(sysdate - a.rgtdate),a.acceptdays,a.deferdays,sum(b.pay) from llregister a,llbalance b where " +" a.rgtno = b.clmno " +" and b.clmno = '" + fm.ClmNo.value + "'" +" and b.subfeeoperationtype = 'C1001' group by a.rgtdate,a.acceptdays,a.deferdays,b.clmno" ;*/ tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimPolDealSql"); tSQLInfo.setSqlId("LLClaimPolDealSql4"); tSQLInfo.addSubPara(mClmNo); turnPage.queryModal(tSQLInfo.getString(),DeferInterestResultGrid); /* if (arr) { displayMultiline(arr,DeferInterestResultGrid); } else { initDeferInterestResultGrid(); //计算结果 }*/ } //公共函数--提交到后台操作 function submitForm() { if(!KillTwoWindows(fm.ClmNo.value,'30')) { return false; } /**========================================================================= 2007-10-12延期给付利息添加 ========================================================================= */ fm.deferDays.value = 0; //延期天数 fm.canInt.value = "N"; //是否修改延期天数标志 if (DeferInterestResultGrid.mulLineCount == null || DeferInterestResultGrid.mulLineCount == '' || DeferInterestResultGrid.mulLineCount == 0) //没有延期的显示可能是第一次保单结算可能没有延期利息 { var showStr = "正在向后台提交数据,请您稍候并且不要修改屏幕上的值或链接其他页面"; var urlStr ="../common/jsp/MessagePage.jsp?picture=C&content=" + showStr ; // showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=350; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); // fm.hideOperate.value = mOperate; /* fm.action = "./LLClaimPolDealSave.jsp?CanInt="+canInt+"&deferDays="+deferDays; fm.submit(); //提交*/ ajaxSubmit2(document.getElementById("fm"),afterSubmit); } else { fm.canInt.value = "Y"; if (DeferInterestResultGrid.getRowColData(0,3) == null || DeferInterestResultGrid.getRowColData(0,3)=='') { i18nAlert("延期天数为空!或者赔案没有延期!"); return; } fm.deferDays.value = parseInt(DeferInterestResultGrid.getRowColData(0,3)); /* var strSql = "select floor(sysdate - rgtdate) from llregister where rgtno = '" +fm.ClmNo.value+"'" ;*/ tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimPolDealSql"); tSQLInfo.setSqlId("LLClaimPolDealSql5"); //显示所有数据 var caldays = parseInt(easyExecSql(tSQLInfo.getString())); if (caldays >= deferDays){ var showStr = "正在向后台提交数据,请您稍候并且不要修改屏幕上的值或链接其他页面"; var urlStr ="../common/jsp/MessagePage.jsp?picture=C&content=" + showStr ; // showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=350; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); // fm.hideOperate.value = mOperate; // fm.action = "./LLClaimPolDealSave.jsp?CanInt="+canInt+"&deferDays="+deferDays; // fm.submit(); //提交 ajaxSubmit2(document.getElementById("fm"),afterSubmit); } else { i18nAlert("延期天数不能大于系统理算天数!"); } } /**========================================================================= 2007-10-12延期给付利息添加结束 ========================================================================= */ } //公共函数--Save页面--服务器数据返回后执行的操作 function afterSubmit( FlagStr, content ) { showInfo.close(); if (FlagStr == "FAIL" ) { var urlStr="../common/jsp/MessagePage.jsp?picture=C&content=" + content ; // showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:350px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=350; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); mOperate = ''; } else { var urlStr="../common/jsp/MessagePage.jsp?picture=S&content=" + content ; // showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:350px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=350; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); /**========================================================================= 2007-10-12延期给付利息添加 ========================================================================= */ initQueryDeferInterest(); /**========================================================================= 2007-10-12延期给付利息添加结束 ========================================================================= */ initQuery(); } } function KillTwoWindows(tClmNo,tClmState1,tClmState2) { tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimCommonQuerySql"); tSQLInfo.setSqlId("LLClaimCommonQuerySql31"); tSQLInfo.addSubPara(tClmNo); var tClmState = easyExecSql(tSQLInfo.getString()); if(tClmState1!=tClmState&&tClmState2!=tClmState) { i18nAlert("赔案状态已发生变化,请重新登陆后操作!"); return false; } return true; } function doGoBack() { top.opener.afterMatchDutyPayQuery(); //暂时先注掉,等审核匹配结算信息查询完成之后直接调用 top.close(); }