You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
FZ/lis-module-grp-claim-web/src/main/webapp/g_claim/LLClaimCheckSurveyInput.js

490 lines
19 KiB

/***************************************************************
* <p>ProName:LLClaimCheckSurveyInput.jsp</p>
* <p>Title:调查复核</p>
* <p>Description:调查复核</p>
* <p>Copyright:Copyright (c) 2012</p>
* <p>Company:Sinosoft</p>
* @author : nsk
* @version : 8.0
* @date : 2025-01-23
****************************************************************/
var showInfo;
var tSQLInfo;
var turnPage = new turnPageClass();
var InqAllList
/**
* 查询调查申请信息
*/
function getApply(){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimCheckSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimCheckSurveySql1");
tSQLInfo.addSubPara(mInqNo);
tSQLInfo.addSubPara(mRgtNo);
var arr = easyExecSql(tSQLInfo.getString(),1, 0, 1);
fm.RgtNo.value = arr[0][0];
fm.grpName.value = arr[0][1];
fm.InsuredName.value = arr[0][2];
fm.IdNo.value = arr[0][3];
fm.InqType.value = arr[0][4];
fm.ApplyDate.value = arr[0][5];
fm.ApplyPer.value = arr[0][6];
fm.ApplyPerName.value = arr[0][7];
fm.InitDept.value = arr[0][8];
fm.InitDeptName.value = arr[0][9]
fm.InqRCode.value = arr[0][10];
fm.InqRCodeName.value = arr[0][11];
fm.SurveyFlowState.value = arr[0][12];
fm.SurveyFlowStateName.value = arr[0][13];
fm.InqDept.value = arr[0][14];
fm.InqDeptName.value = arr[0][15];
fm.InqItem.value = arr[0][16];
fm.Remark1.value = arr[0][17];
}
/**
* 获取本次调查下所有本地和异地调查调查序号
*/
function getALLInqNo(){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimCheckSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimCheckSurveySql2");
tSQLInfo.addSubPara(mInqNo);
tSQLInfo.addSubPara(mRgtNo);
tSQLInfo.addSubPara(mInqNo);
InqAllList = easyExecSql(tSQLInfo.getString());
}
/**
* 获取调查过程录入信息列表
*/
function getLLSurveyCourse(){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimCheckSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimCheckSurveySql3");
tSQLInfo.addSubPara(mRgtNo);
tSQLInfo.addSubPara(InqAllList);
turnPage.queryModal(tSQLInfo.getString(),LLSurveyCourseGrid);
}
/**
* 获取调查附件信息
*/
function getSurveyAttachment(){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimCheckSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimCheckSurveySql4");
tSQLInfo.addSubPara(InqAllList);
tSQLInfo.addSubPara(mRgtNo);
turnPage.queryModal(tSQLInfo.getString(),SurveyAttachmentGrid);
}
/**
* 获取调查费用表信息
*/
function getLLSurveyFee(){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimCheckSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimCheckSurveySql5");
tSQLInfo.addSubPara(mRgtNo);
tSQLInfo.addSubPara(InqAllList);
turnPage.queryModal(tSQLInfo.getString(),LLSurveyFeeGrid);
}
/**
* 获取调查录入总费用
*/
function getSumSurveyFee(){
var maxRow = LLSurveyFeeGrid.mulLineCount;
var SumFee = 0;
for (var i=1 ;i<=maxRow;i++){
SumFee = parseInt(SumFee)+parseInt(LLSurveyFeeGrid.getRowColData(i-1,3));
}
fm.SumApplyFee.value = SumFee;
}
/**
* 获取录入人、录入日期和调查结论
*/
function getApplyPerAndDateAndIdea(){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimCheckSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimCheckSurveySql6");
tSQLInfo.addSubPara(mRgtNo);
tSQLInfo.addSubPara(mInqNo);
var arr = easyExecSql(tSQLInfo.getString())
if (arr != null){
fm.SurveyPerson.value = arr[0][0];
fm.SurveyDate.value = arr[0][1];
fm.InqConclusion.value = arr[0][2];
}
}
/**
* 获取复核结论
*/
function getConclusion(){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimCheckSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimCheckSurveySql7");
tSQLInfo.addSubPara(mRgtNo);
tSQLInfo.addSubPara(mInqNo);
var arr = easyExecSql(tSQLInfo.getString())
if (arr != null){
fm.CheckResult.value = arr[0][0];
fm.MasFlag.value = arr[0][1];
fm.CheckConclusion.value = arr[0][2];
showOneCodeName("llchecksurveyconfirm","CheckResult","CheckResultName");
showOneCodeName("trueflag","MasFlag","MasFlagName");
}
}
/**
*保单查询
*/
function policyQuery(){
var strUrl="./LLClaimQueryPolicyMain.jsp?CustomerNo="+mCustomerNo+"&RgtNo="+mRgtNo+"&Mode=1";
var tWidth=1000;
var tHeight=600;
var tTop=(window.screen.availHeight-30-tHeight)/2; //获得窗口的垂直位置;
var tLeft=(window.screen.availWidth-10-tWidth)/2; //获得窗口的水平位置;
window.open(strUrl,"保单查询",'width='+tWidth+',height='+tHeight+',top='+tTop+',left='+tLeft+',toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
}
/**
* 出险人详细信息查询
*/
function showInsuredInfoLCPol() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimSurveySql14");
tSQLInfo.addSubPara(mRgtNo);
tSQLInfo.addSubPara(mRgtNo);
var tSSRS = easyExecSql(tSQLInfo.getString());
var name = tSSRS[0][0];
var birthday = tSSRS[0][1];
var sex = tSSRS[0][2];
var idtype = tSSRS[0][3];
var idno = tSSRS[0][4];
var customerNo = tSSRS[0][5];
var strUrl="./LCContInsuredInfoMain.jsp?CustomerNo="+customerNo+"&CustomerName="+name+"&Gender="+sex+"&BirthDay="+birthday+"&IDType="+idtype+"&IDNo="+idno+"&Mode=1";
var tWidth=1000;
var tHeight=600;
var tTop=(window.screen.availHeight-30-tHeight)/2; //获得窗口的垂直位置;
var tLeft=(window.screen.availWidth-10-tWidth)/2; //获得窗口的水平位置;
window.open(strUrl,"赔案查询",'width='+tWidth+',height='+tHeight+',top='+tTop+',left='+tLeft+',toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
}
/**
*保全查询
*/
function edorQuery(){
var strUrl="./LLClaimQueryEdorMain.jsp?CustomerNo="+mCustomerNo+"&Mode=1";
var tWidth=1000;
var tHeight=600;
var tTop=(window.screen.availHeight-30-tHeight)/2; //获得窗口的垂直位置;
var tLeft=(window.screen.availWidth-10-tWidth)/2; //获得窗口的水平位置;
window.open(strUrl,"保全查询",'width='+tWidth+',height='+tHeight+',top='+tTop+',left='+tLeft+',toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
}
/**
*既往赔案查询
*/
function clmPastCaseQuery (){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimSurveySql14");
tSQLInfo.addSubPara(mRgtNo);
tSQLInfo.addSubPara(mRgtNo);
var tSSRS = easyExecSql(tSQLInfo.getString());
var name = tSSRS[0][0];
var birthday = tSSRS[0][1];
var sex = tSSRS[0][2];
var idtype = tSSRS[0][3];
var idno = tSSRS[0][4];
var customerNo = tSSRS[0][5];
var strUrl="./LLClaimLastCaseMain.jsp?CustomerNo="+customerNo+"&CustomerName="+name+"&Gender="+sex+"&BirthDay="+birthday+"&IDType="+idtype+"&IDNo="+idno+"&Mode=1";
var tWidth=1000;
var tHeight=600;
var tTop=(window.screen.availHeight-30-tHeight)/2; //获得窗口的垂直位置;
var tLeft=(window.screen.availWidth-10-tWidth)/2; //获得窗口的水平位置;
window.open(strUrl,"赔案查询",'width='+tWidth+',height='+tHeight+',top='+tTop+',left='+tLeft+',toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
}
/**
* 影像件查询
*/
function queryEasyscan() {
var tRgtNo =fm.RgtNo.value;
window.open("../es_common/ImageQueryGrpMain.jsp?BussType=G_CM&BussNo="+tRgtNo,null , 'width='+screen.availWidth+',height='+screen.availHeight+',top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
}
/**
* 展示调查过程信息
*/
function showLLSurveyCourseGridClick(){
var tSelNo = LLSurveyCourseGrid.getSelNo()-1;
if (tSelNo<0){
i18nAlert("请先选择一条调查过程信息!", "");
return false;
}
fm.InqMode.value = LLSurveyCourseGrid.getRowColData(tSelNo,2);
fm.InqModeName.value = LLSurveyCourseGrid.getRowColData(tSelNo,3);
fm.InqSite.value = LLSurveyCourseGrid.getRowColData(tSelNo,4);
fm.InqDate.value = LLSurveyCourseGrid.getRowColData(tSelNo,5);
fm.ApplySPer.value = LLSurveyCourseGrid.getRowColData(tSelNo,11);
fm.ApplySPerName.value = LLSurveyCourseGrid.getRowColData(tSelNo,12);
fm.InqPer1.value = LLSurveyCourseGrid.getRowColData(tSelNo,6);
fm.InqPer2.value = LLSurveyCourseGrid.getRowColData(tSelNo,7);
fm.InqByPer.value = LLSurveyCourseGrid.getRowColData(tSelNo,8);
fm.InqCourse.value = LLSurveyCourseGrid.getRowColData(tSelNo,9);
fm.SurveyCompany.value = LLSurveyCourseGrid.getRowColData(tSelNo,13);
if (fm.ApplySPer.value == "1"){
SurveyCompanyI.style.display = "";
SurveyCompanyII.style.display = "";
}else{
SurveyCompanyI.style.display = "none";
SurveyCompanyII.style.display = "none";
fm.SurveyCompany.value = "";
fm.SurveyCompanyName.value = "";
}
showOneCodeName("surveycompany","SurveyCompany","SurveyCompanyName");
}
/**
* 展示调查附件信息
*/
function showSurveyAttachment() {
var tSelNo = SurveyAttachmentGrid.getSelNo()-1;
if (tSelNo<0){
i18nAlert("请先选择一条调查附件信息!","");
return false;
}
fm.AffixName.value = SurveyAttachmentGrid.getRowColData(tSelNo,3);
fm.OriginalLogo.value = SurveyAttachmentGrid.getRowColData(tSelNo,5);
fm.OriginalLogoName.value = SurveyAttachmentGrid.getRowColData(tSelNo,6);
fm.AffixNumber.value = SurveyAttachmentGrid.getRowColData(tSelNo,7);
}
/**
* 展示调查费用信息
*/
function showLLSurveyFeeClick() {
var tSelNo = LLSurveyFeeGrid.getSelNo()-1;
if (tSelNo<0){
i18nAlert("请先选择一条调查费用信息!","");
return false;
}
fm.FeeType.value = LLSurveyFeeGrid.getRowColData(tSelNo,2);
fm.FeeTypeName.value = LLSurveyFeeGrid.getRowColData(tSelNo,1);
fm.FeeSum.value = LLSurveyFeeGrid.getRowColData(tSelNo,3);
fm.FeeDate.value = LLSurveyFeeGrid.getRowColData(tSelNo,4);
fm.Payee.value = LLSurveyFeeGrid.getRowColData(tSelNo,5);
fm.PayeeType.value = LLSurveyFeeGrid.getRowColData(tSelNo,7);
fm.PayeeTypeName.value = LLSurveyFeeGrid.getRowColData(tSelNo,6);
fm.Remark2.value = LLSurveyFeeGrid.getRowColData(tSelNo,8);
fm.ApplySPer1.value = LLSurveyFeeGrid.getRowColData(tSelNo,10);
fm.ApplySPerName1.value = LLSurveyFeeGrid.getRowColData(tSelNo,11);
}
//查看文件
function viewAttachmentClick()
{
var selno = SurveyAttachmentGrid.getSelNo()-1;
if (selno <0)
{
i18nAlert("请先选择一条信息再点击\"查看文件\"", "LIS-04795");
return;
}
var filepath = SurveyAttachmentGrid.getRowColData(selno,10);
var fileName1 = SurveyAttachmentGrid.getRowColData(selno,4);
if(fileName1==null||fileName1=="") {
i18nAlert("未上传文件,请先上传文件!", "LIS-04796");
return false;
}
//window.location = "../API/grp_common/jsp/download/APIDOWNLOAD?FilePath="+filepath+"&FileName="+fileName1;
downloadFile(filepath,fileName1,"../API/grp_common/jsp/download/APIDOWNLOAD");
}
/**
* 复核确认
*/
function CheckClickConfirm(){
if (fm.CheckResult.value == "" || fm.CheckResult.value == null){
i18nAlert("请填写复核结论","");
return;
}
if (fm.CheckConclusion.value == "" || fm.CheckConclusion.value == null){
i18nAlert("请填写复核意见","");
return;
}
fm.Operate.value = "REVIEWCONFIRM"
fm.action="../API/grp_claim/g_claim/LLSurveyReviewConfirmSave/ADD";
submitForm();
}
/**
* 返回
*/
function goBack(){
location.href = "LLClaimSurveyCheckInput.jsp";
}
//2025-04-08 先在这 实现 理赔调查报告打印 后期迁移 by lisy
/**
* 理赔调查报告打印
* @constructor
*/
function researchReportPrint() {
fm.Operate.value = "ClmReportPrint"
fm.action = '../API/grp_claim/g_claim/LLClmResearchReportPrintSave/ADD';
submitForm1();
}
/**
* 打印提交数据
*/
function submitForm1() {
var showStr = i18nMessage("正在处理数据,请您稍候并且不要修改屏幕上的值或链接其他页面!", "LIS-04535");
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content="+ encodeURIComponent(showStr);
//showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
var name='提示'; //网页名称,可为空;
var iWidth=550; //弹出窗口的宽度;
var iHeight=250; //弹出窗口的高度;
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.submit();
ajaxSubmit2(document.getElementById("fm"),afterSubmit1);
}
/**
* 打印提交数据后返回操作
*/
function afterSubmit1(FlagStr, content,filepath) {
if (typeof (showInfo) == "object" && typeof (showInfo) != "unknown") {
showInfo.close();
}
if (FlagStr == "Fail") {
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(content);
//showDialogWindow(urlStr, 1);
var name = '提示'; //网页名称,可为空;
var iWidth = 550; //弹出窗口的宽度;
var iHeight = 300; //弹出窗口的高度;
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();
} else {
var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content=" + encodeURIComponent(content);
//showDialogWindow(urlStr, 1);
var name = '提示'; //网页名称,可为空;
var iWidth = 550; //弹出窗口的宽度;
var iHeight = 300; //弹出窗口的高度;
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);
window.open(filepath.filepath);
// window.location = encodeURI("../API/grp_common/jsp/download/APIDOWNLOAD?FilePath=" + filepath.filepath )
goBack();
showInfo.focus();
}
}
/**
* 提交数据
*/
function submitForm() {
var showStr = i18nMessage("正在处理数据,请您稍候并且不要修改屏幕上的值或链接其他页面!", "LIS-04535");
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content="+ encodeURIComponent(showStr);
//showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
var name='提示'; //网页名称,可为空;
var iWidth=550; //弹出窗口的宽度;
var iHeight=250; //弹出窗口的高度;
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.submit();
ajaxSubmit2(document.getElementById("fm"),afterSubmit);
}
//提交后操作,服务器数据返回后执行的操作
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: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();
} 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);
goBack()
showInfo.focus();
}
}
function getDiFLLSurveyConcloseGrid(){
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_claim.LLClaimCheckSurveySql");
tSQLInfo.setModule("grp_claim");
tSQLInfo.setSqlId("LLClaimCheckSurveySql8");
tSQLInfo.addSubPara(mRgtNo);
tSQLInfo.addSubPara(mInqNo);
turnPage.queryModal(tSQLInfo.getString(),DiFLLSurveyConcloseGrid)
}
function showDiFLLSurveyConclose(){
var tSelNo = DiFLLSurveyConcloseGrid.getSelNo() - 1;
fm.DIFSurveyPerson.value = DiFLLSurveyConcloseGrid.getRowColData(tSelNo,2);
fm.DIFSurveyDate.value = DiFLLSurveyConcloseGrid.getRowColData(tSelNo,3);
fm.DIFInqConclusion.value = DiFLLSurveyConcloseGrid.getRowColData(tSelNo,4);
}