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

ProName:LSQuotProjUWDetailInput.js

*

Title:项目询价核保明细

*

Description:项目询价核保明细

*

Copyright:Copyright (c) 2012

*

Company:Sinosoft

* @author : zhoufz * @version : 8.0 * @date : 2014-03-31 ****************************************************************/ var showInfo; var turnPage = new turnPageClass();//系统使用 var turnPage1 = new turnPageClass(); var turnPage2 = new turnPageClass(); var turnPage3 = new turnPageClass(); var turnPage4 = new turnPageClass(); var turnPage5 = new turnPageClass(); var turnPage6 = new turnPageClass(); var mOperate = "";//操作状态 var tSQLInfo = new SqlClass(); var tTranPremMode;//保费分摊方式 var tPlanDetailOpen; function initQuotStep1() { fm3.QuotNo.value = tQuotNo; fm3.QuotBatNo.value = tQuotBatNo; //初始化基础信息 initBasicInfo(); } function initBasicInfo() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql5"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var tBasicArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tBasicArr == null) { return false; } else { fm3.QuotNo.value=tBasicArr[0][0]; //3m2.QuotBatNo.value=tBasicArr[0][1]; fm3.GrpName.value=tBasicArr[0][1]; fm3.GrpNature.value=tBasicArr[0][2]; fm3.GrpNatureName.value=tBasicArr[0][3]; fm3.IDType.value=tBasicArr[0][4]; fm3.IDTypeName.value=tBasicArr[0][5]; fm3.IDNo.value=tBasicArr[0][6]; fm3.BusiCategory.value=tBasicArr[0][7]; fm3.BusiCategoryName.value=tBasicArr[0][8]; fm3.Address.value=tBasicArr[0][9]; fm3.SaleChnl.value=tBasicArr[0][10]; fm3.SaleChnlName.value=tBasicArr[0][11]; fm3.AgentCom.value=tBasicArr[0][12]; fm3.AgentComName.value=tBasicArr[0][13]; fm3.AgentCode.value=tBasicArr[0][14]; fm3.AgentCodeName.value=tBasicArr[0][15]; fm3.OperSource.value=tBasicArr[0][16]; fm3.OperSourceName.value=tBasicArr[0][17]; fm3.ForceChkNum.value=tBasicArr[0][18]; fm3.ForceChkNumName.value=tBasicArr[0][19]; fm3.ProdType.value=tBasicArr[0][20]; fm3.ProdTypeName.value=tBasicArr[0][21]; fm3.ForceChkProfessRate.value=tBasicArr[0][22]; fm3.ForceChkProfessRateName.value=tBasicArr[0][23]; fm3.PrePrem.value=tBasicArr[0][24]; fm3.IsFreeRisk.value=tBasicArr[0][25]; fm3.IsFreeRiskName.value=tBasicArr[0][26]; fm3.IsAllowSubQuot.value=tBasicArr[0][27]; fm3.IsAllowSubQuotName.value=tBasicArr[0][28]; fm3.PayIntv.value=tBasicArr[0][29]; fm3.PayIntvName.value=tBasicArr[0][30]; fm3.IsCoinsurance.value=tBasicArr[0][31]; fm3.IsCoinsuranceName.value=tBasicArr[0][32]; fm3.IsSubQuot.value=tBasicArr[0][33]; if(fm3.IsSubQuot.value == '1'){ document.getElementById("MainQuotNodiv").style.display=''; document.getElementById("MainQuotNo1").style.display = ''; document.getElementById("MainQuotNo2").style.display = ''; } fm3.IsSubQuotName.value=tBasicArr[0][34]; fm3.BlanketFlag.value=tBasicArr[0][35]; fm3.BlanketFlagName.value=tBasicArr[0][36]; fm3.IsContinueInsure.value=tBasicArr[0][37]; if(fm3.IsContinueInsure.value =='1'){ document.getElementById("GrpContNo1").style.display=''; document.getElementById("GrpContNo2").style.display=''; fm3.GrpContNo.value=tBasicArr[0][39]; } fm3.IsContinueInsureName.value=tBasicArr[0][38]; fm3.MainQuotNo.value=tBasicArr[0][40]; fm3.CustomerIntro.value=tBasicArr[0][41]; fm3.IsWait.value = tBasicArr[0][42]; if (tBasicArr[0][42]=='1'){ $("#IsWaitName").val('有等待期'); }else if (tBasicArr[0][42]=='0'){ $("#IsWaitName").val('无等待期'); } } } function querySupplement1(){ tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql56"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var tArrSupplement = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArrSupplement==null) { }else{ fm3.InPatientAmnt.value = tArrSupplement[0][0]; fm3.OutPatientAmnt.value = tArrSupplement[0][1]; } } /** * 询价基本信息查询 */ function queryQuotBasic() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql2"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var strQueryResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (strQueryResult != null) { fm3.ProjQuotNo.value = tQuotNo; fm3.ProjQuotBatNo.value = tQuotBatNo; fm3.ProjName.value = strQueryResult[0][0]; fm3.TargetCust.value = strQueryResult[0][1]; fm3.NumPeople.value = strQueryResult[0][2]; fm3.ProjPrePrem.value = strQueryResult[0][3]; fm3.PreLossRatio.value = strQueryResult[0][4]; fm3.Partner.value = strQueryResult[0][5]; fm3.ExpiryDate.value = strQueryResult[0][6]; tTranProdType = strQueryResult[0][7]; fm3.ProjProdTypeName.value = strQueryResult[0][8]; fm3.ProjBlanketFlagName.value = strQueryResult[0][10]; fm3.ProjDesc.value = strQueryResult[0][11]; fm3.ElasticFlag.value = strQueryResult[0][12]; fm3.ElasticFlagName.value = strQueryResult[0][13]; if (tTranProdType == "00") { document.getElementById("tdElasticFlag1").style.display = ''; document.getElementById("tdElasticFlag2").style.display = ''; document.getElementById("tdElasticFlag3").style.display = ''; document.getElementById("tdElasticFlag4").style.display = ''; document.getElementById("tdElasticFlag5").style.display = 'none'; document.getElementById("tdElasticFlag6").style.display = 'none'; } else { document.getElementById("tdElasticFlag1").style.display = 'none'; document.getElementById("tdElasticFlag2").style.display = 'none'; document.getElementById("tdElasticFlag3").style.display = ''; document.getElementById("tdElasticFlag4").style.display = ''; document.getElementById("tdElasticFlag5").style.display = ''; document.getElementById("tdElasticFlag6").style.display = ''; } } } function queryPlanDetailInformation() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql54"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); initPlanDetailInfoGrid(); turnPage2.queryModal(tSQLInfo.getString(), PlanDetailInfoGrid, 2, 1);//第三位表示使用大数据量,2--大于200小于1000 } /** * 询价保障层级划分标准查询 */ function queryPlanDiv() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql5"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); var tElementCode;//因子编码 var tElementName;//因子名称 var tControlFlag;//是否有录入框 var tIsSelected;//是否选中 var tOElementValue;//原始值 var tNElementValue;//询价值 var tInnerHTML0 = ""; var tInnerHTML1 = "
保障层级划分标准"; for (var i = 0; i < tArr.length; i++) { tElementCode = tArr[i][0]; tElementName = tArr[i][1]; tControlFlag = tArr[i][2]; tIsSelected = tArr[i][3]; tOElementValue = tArr[i][4]; tNElementValue = tArr[i][5]; tInnerHTML1 += "" + tElementName; } else {//询价中保存了该因子 tInnerHTML1 += " checked>" + tElementName; } if (tControlFlag == '1') {//存在录入框 tInnerHTML1 += '";//存在录入框的,置为只读模式 } else { tInnerHTML1 += ""; } } tInnerHTML1 += "
"; tInnerHTML0 = tInnerHTML0 + tInnerHTML1; document.getElementById("divPlanDiv").innerHTML = tInnerHTML0; } /** * 项目型询价缴费方式查询 */ function queryPayIntv() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql7"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var tArrPayIntv = easyExecSql(tSQLInfo.getString(), 1, 0, 1); var tElementCode;//因子编码 var tElementName;//因子名称 var tIsSelected;//是否选中 var tPayIntv;//缴费方式 var tInnerHTML0 = ""; var tInnerHTML1 = "
缴费方式*"; for (var i = 0; i < tArrPayIntv.length; i++) { tElementCode = tArrPayIntv[i][0]; tElementName = tArrPayIntv[i][1]; tIsSelected = tArrPayIntv[i][2]; tPayIntv = tArrPayIntv[i][3]; tInnerHTML1 += "" + tElementName; } else {//询价中保存了该因子 tInnerHTML1 += " checked>" + tElementName; } } tInnerHTML1 += "
"; tInnerHTML0 = tInnerHTML0 + tInnerHTML1; document.getElementById("divPayIntvDiv").innerHTML = tInnerHTML0; } /** * 项目型询价适用机构查询 */ function queryCom() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql8"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); if (!noDiv(turnPage3, ComListGrid, tSQLInfo.getString())) { initComListGrid(); return false; } if (ComListGrid.mulLineCount > 0) { document.getElementById('divComInfo').style.display = ''; } } /** * 项目型询价关联询价号查询 */ function queryRelaQuot() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql9"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); if (!noDiv(turnPage5, RelaQuotListGrid, tSQLInfo.getString())) { initRelaQuotListGrid(); return false; } if (RelaQuotListGrid.mulLineCount > 0) { document.getElementById('RelaQuotFlag').checked = true; document.getElementById('divRelaQuotInfo').style.display = ''; } } /** * 初始化第二步信息 */ function initQuotStep2() { queryPlanInfo(); pubInitQuotStep2(fm3, tQuotType, tTranProdType, null, fmEngin); if (tTranProdType == "01") { queryEnginInfo(fm3); showEnginFactorDiv(tQuotNo, tQuotBatNo, '0000000000', '000', '0'); } } function queryPlanDetailInformation() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql54"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); initPlanDetailInfoGrid(); turnPage2.queryModal(tSQLInfo.getString(), PlanDetailInfoGrid, 2, 1);//第三位表示使用大数据量,2--大于200小于1000 } //根据方案编码查询询价方案明细信息 function queryPlanDetailInformationByPlanCode() { var tSelNo = PlanInfoGrid.getSelNo() - 1; cPlanCode = PlanInfoGrid.getRowColData(tSelNo, 2); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql327"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.addSubPara(cPlanCode); tSQLInfo.setModule("grp_quotation"); initPlanDetailInfoGrid(); turnPage2.queryModal(tSQLInfo.getString(), PlanDetailInfoGrid, 2, 1);//第三位表示使用大数据量,2--大于200小于1000 } function querySupplement() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql66"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var tArrSupplement = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArrSupplement == null) { } else { fm3.InPatientAmnt.value = tArrSupplement[0][0]; fm3.OutPatientAmnt.value = tArrSupplement[0][1]; } } function querySaleInfoGrid() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql70"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); turnPage3.queryModal(tSQLInfo.getString(), SaleInfoGrid, 2, 1);//第三位表示使用大数据量,2--大于200小于1000 } function querySpecialAgreementAndDate() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql305"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var tArrSpecialAgreementAndDate = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArrSpecialAgreementAndDate==null) { } else { fm3.SpecialAgreement.value = tArrSpecialAgreementAndDate[0][0]; fm3.ApproveSpecailAgreement.value = tArrSpecialAgreementAndDate[0][3]; if (tArrSpecialAgreementAndDate[0][1] == "90"){ document.getElementById("quotplandiv00").checked = true; }else if (tArrSpecialAgreementAndDate[0][1] == "180"){ document.getElementById("quotplandiv01").checked = true; }else if (tArrSpecialAgreementAndDate[0][1] == "365"){ document.getElementById("quotplandiv02").checked = true; }else{ document.getElementById("quotplandiv99").checked = true; document.getElementById("quotplandiv99Value").style.display=''; document.getElementById("quotplandiv99ValueOut").style.display=''; // document.getElementById("spanTime").style.display=''; document.getElementById("quotplandiv99Value").value = tArrSpecialAgreementAndDate[0][1]; } if(tArrSpecialAgreementAndDate[0][2] == 1){ fm3.UseSpecialAgreementFlag.value=true; fm3.ApproveSpecailAgreement.readOnly=true; } else { fm3.UseSpecialAgreementFlag.value=false; fm3.ApproveSpecailAgreement.readOnly=false; } } } /** * 初始化方案信息查询 */ function queryPlanInfo() { if (tTranProdType == "00") {//普通 tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql14"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); initPlanInfoGrid(); turnPage1.queryModal(tSQLInfo.getString(), PlanInfoGrid, 2, 1); } else if (tTranProdType == "01") {//建工 tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql61"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); initPlanInfoGrid(); turnPage1.queryModal(tSQLInfo.getString(), PlanInfoGrid, 2, 1); } } function showResult() { var tSelNo = ExamineGrid.getSelNo() - 1; if (tSelNo < 0) { i18nAlert("请选择一条数据!", "LIS-99999"); return false; } var type = ExamineGrid.getRowColData(tSelNo, 4); if(type == 1){ window.open("./LSQuotUWRatesMain.jsp?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID, "核保规则", 'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0'); } if(type == 2){ window.open("./LSQuotUWSaleExpensesMain.jsp?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID, "核保规则", 'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0'); } return true; } /** * 选择记录后处理 */ function showPlanInfo() { if (tTranProdType == "00") { var tSelNo = PlanInfoGrid.getSelNo() - 1; cPlanCode = PlanInfoGrid.getRowColData(tSelNo, 2); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql53"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.addSubPara(cPlanCode); tSQLInfo.setModule("grp_quotation"); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArr == null) { } else { fm3.PlanCode.value = tArr[0][1]; fm3.PlanDesc.value = tArr[0][2]; fm3.InsuPeriod.value = tArr[0][3]; fm3.InsuPeriodFlag.value = tArr[0][4]; fm3.InsuPeriodFlagName.value = tArr[0][5]; fm3.MinAge.value = tArr[0][6] == "-1" ? "" : tArr[0][6] fm3.MaxAge.value = tArr[0][7] == "-1" ? "" : tArr[0][7] fm3.AvgAge.value = tArr[0][8] == "-1" ? "" : tArr[0][8] fm3.Profession1.value = tArr[0][9]; fm3.Profession2.value = tArr[0][10]; fm3.Profession3.value = tArr[0][11]; fm3.Profession4.value = tArr[0][12]; fm3.Profession5.value = tArr[0][13]; fm3.Profession6.value = tArr[0][14]; fm3.NumPeople.value = tArr[0][15] fm3.PremMode.value = tArr[0][16]; fm3.PremModeName.value = tArr[0][17]; fm3.MaleRate.value = tArr[0][18]; fm3.FemaleRate.value = tArr[0][19]; fm3.RetireRate.value = tArr[0][20] == "-1" ? "" : tArr[0][20]; fm3.EnterPriseBurden.value = tArr[0][21] == "-1" ? "" : tArr[0][21]; fm3.PersonBurden.value = tArr[0][22] == "-1" ? "" : tArr[0][22]; fm3.MinSalary.value = tArr[0][23] == "-1" ? "" : tArr[0][23]; fm3.MaxSalary.value = tArr[0][24] == "-1" ? "" : tArr[0][24]; fm3.AvgSalary.value = tArr[0][25] == "-1" ? "" : tArr[0][25]; fm3.SysPlanCode.value = tArr[0][0]; } } else if (tTranProdType == "01") { var tSelNo = PlanInfoGrid.getSelNo() - 1; cPlanCode = PlanInfoGrid.getRowColData(tSelNo, 2); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql62"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.addSubPara(cPlanCode); tSQLInfo.setModule("grp_quotation"); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArr == null) { } else { fm3.SysPlanCode.value = tArr[0][0]; fm3.PlanCode.value = tArr[0][1]; fm3.PlanDesc.value = tArr[0][2]; fm3.InsuPeriod.value = tArr[0][3]; fm3.InsuPeriodFlag.value = tArr[0][4]; fm3.InsuPeriodFlagName.value = tArr[0][5]; fm3.PremCalType.value = tArr[0][6]; fm3.PremCalTypeName.value = tArr[0][7]; if (tArr[0][6] == "3") { fm3.PlanPeople.value = tArr[0][8]; document.getElementById("PlanPeople").readOnly = false; document.getElementById("EnginCost").readOnly = true; document.getElementById("EnginArea").readOnly = true; document.getElementById("EnginCost").value = ''; document.getElementById("EnginArea").value = ''; } if (tArr[0][6] == "1") { fm3.EnginCost.value = tArr[0][8]; document.getElementById("PlanPeople").readOnly = true; document.getElementById("PlanPeople").value = ''; document.getElementById("EnginCost").readOnly = false; document.getElementById("EnginArea").readOnly = true; document.getElementById("EnginArea").value = ''; } if (tArr[0][6] == "2") { fm3.EnginArea.value = tArr[0][8]; document.getElementById("PlanPeople").value = ''; document.getElementById("PlanPeople").readOnly = true; document.getElementById("EnginCost").value = ''; document.getElementById("EnginCost").readOnly = true; document.getElementById("EnginArea").readOnly = false; } fm3.SafeSupUWCondition.value = tArr[0][9] fm3.SafeSupUWConditionName.value = tArr[0][10] } } queryPlanDetailInformationByPlanCode(); } /** * 选择单多职业类别 */ function chooseOccupFlag(cQuotFlag) { pubChooseOccupFlag(fmPlan, cQuotFlag); } /** * 增加方案 */ function addSpecailAgreement() { /*fmPlan.action = "./LSQuotProjPlanSave.jsp?Operate=ADDPLAN&QuotNo="+ tQuotNo +"&QuotBatNo="+ tQuotBatNo +"&QuotType="+ tQuotType +"&MissionID="+ tMissionID +"&SubMissionID="+ tSubMissionID +"&ActivityID="+ tActivityID +"&TranProdType="+ tTranProdType;*/ fm3.action = "../API/grp_quotation/g_quot/LSQuotUWDetailUpdateSpecailAgreement/UPDATE?Operate=TCADDSpecailAgreement&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&QuotType=" + tQuotType + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&TranProdType=" + tTranProdType; submitForm(fm3, true); } /** * 修改方案 */ function modifyPlan() { var tSelNo = PlanInfoGrid.getSelNo() - 1; if (tSelNo < 0) { i18nAlert("请选择要修改的方案记录!", "LIS-03314"); return false; } dealRedundant(fmPlan, tQuotType, tTranProdType); if (!verifyForm('fmPlan')) { return false; } if (!pubBeforeModifyPlan(fmPlan, tTranProdType)) { return false; } if (!pubBeforeSubmit(fmPlan, tQuotType, tTranProdType)) {//提交前的公用校验 return false; } fmPub.Operate.value = "MODIFYPLAN"; /*fmPlan.action = "./LSQuotProjPlanSave.jsp?Operate=MODIFYPLAN&QuotNo="+ tQuotNo +"&QuotBatNo="+ tQuotBatNo +"&QuotType="+ tQuotType +"&MissionID="+ tMissionID +"&SubMissionID="+ tSubMissionID +"&ActivityID="+ tActivityID +"&TranProdType="+ tTranProdType;*/ fmPlan.action = "../API/grp_quotation/g_quot/LSQuotProjPlanSave/UPDATE?Operate=MODIFYPLAN&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&QuotType=" + tQuotType + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&TranProdType=" + tTranProdType; submitForm(fmPlan, mOperate, true); } function replyPrem() { fmPub.Operate.value = "MODIFYPREM"; fm3.action = "../API/grp_quotation/g_quot/LSQuotETPlanDetailSave/MODIFYPREM?Operate=MODIFYPREM&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&QuotType=" + tQuotType + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&TranProdType=" + tTranProdType; submitForm(fm3, true); } function UWReInsureRule() { if (fm3.UWInsureType.value == '3' && tManageCom != '86') { alert("当选择3-风险自留时,分公司不许操作,且必须上报总公司"); return false; } //请保存分保相关信息后录入分保规则 tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql32"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arr == null) { alert("请保存分保信息后,录入分保规则。"); return false; } var tLoadFlag = "0"; //0 - 录入保存 1 -查询 window.open("./FBRuleDetailMain.jsp?QuotNo=" + tQuotNo + "&ManageCom=" + tManageCom + "&IsLeaveCountry=" + fm3.UWIsExit.value + "&FBType=" + fm3.UWInsureType.value + "&OtherFBType=" + fm3.UWOtherFBType.value + "&LoadFlag=" + tLoadFlag + "&FBCode=" + fm3.UWInsureNum.value, "分保规则", 'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0'); } function queryFBInfo() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql31"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arr!=null) { if (arr[0][0] != null && arr[0][0] != "") { fm3.UWInsureType.value = arr[0][0]; fm3.UWInsureTypeName.value = arr[0][1]; if (arr[0][0] == '2') { document.getElementById("UWInsureNumdiv").style.display = ''; fm3.UWInsureNum.value = arr[0][2]; } if (arr[0][0] == '5') { fm3.UWInsureTypeName.value = '其他方式'; document.getElementById("OtherFBType").style.display = ''; // fm3.OtherFBType.value = arr[0][1]; } fm3.UWIsExit.value = arr[0][3]; if (arr[0][3] == '1') { fm3.UWIsExitName.value = '是'; } else if (arr[0][2] == '0') { fm3.UWIsExitName.value = '否'; } fm3.UWIsShortInsure.value = arr[0][4]; if (arr[0][4] == '1') { fm3.UWIsShortInsureName.value = '允许'; } else if (arr[0][4] == '0') { fm3.UWIsShortInsureName.value = '不允许'; } } // queryCostAndAmnt(); return; } fm3.UWIsExit.value = '0'; fm3.UWIsExitName.value = '否'; } /** * 下拉后处理 */ function afterCodeSelect(cCodeType, Field) { // if (cCodeType == 'InsureType') { // if (Field.value == "5") { // document.getElementById("OtherFBType").style.display = ''; // document.getElementById("UWInsureNumTitlediv").style.display = 'none'; // document.getElementById("UWInsureNumdiv").style.display = 'none'; // fm3.UWInsureNum.value = ""; // } else { // document.getElementById("OtherFBType").style.display = 'none'; // fm3.OtherFBType.value = ""; // // if (Field.value == "2") { // document.getElementById("UWInsureNumTitlediv").style.display = ''; // document.getElementById("UWInsureNumdiv").style.display = ''; // } else { // document.getElementById("UWInsureNumTitlediv").style.display = 'none'; // document.getElementById("UWInsureNumdiv").style.display = 'none'; // fm3.UWInsureNum.value = ""; // } // } // // // } } /** * 方案明细维护 */ function planDetailOpen() { tPlanDetailOpen = window.open("./LSQuotETPlanDetailMain.jsp?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID, "1", "height==800,width=1000,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0"); } /** * 方案明细一览 */ function showAllDetail() { tAllDetailOpen = window.open("./LSQuotPlanAllDetailMain.jsp?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID, "1", "height==800,width=1000,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0"); } /** * 产品参数维护 */ function showProdParam() { window.open("./LSProdParamMain.jsp?ObjType=QUOT&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID, "产品参数维护", 'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0'); } /** * 其他部门意见展示 */ function showOtherOpinion() { var tSelNo = OtherOpinionGrid.getSelNo() - 1; fm2.OpinionType.value = OtherOpinionGrid.getRowColData(tSelNo, 2); fm2.OpinionTypeName.value = OtherOpinionGrid.getRowColData(tSelNo, 3); fm2.OpinionDesc.value = OtherOpinionGrid.getRowColData(tSelNo, 4); } /** * 其他部门意见附件下载 */ function downFile(parm1, parm2) { var tFilePath = fm2.all(parm1).all('OtherOpinionGrid6').value; var tFileName = fm2.all(parm1).all('OtherOpinionGrid7').value; if (tFilePath == null || tFilePath == "") { return false; } // window.location = "../common/jsp/download.jsp?FilePath="+tFilePath+"&FileName="+tFileName; downloadFile(tFilePath,tFileName,"../API/grp_common/jsp/download/DOWNLOAD"); } /** * 各环节意见、结论查询 */ function queryProcess() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql19"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var strQueryResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (strQueryResult != null) { fm3.SubUWOpinion.value = strQueryResult[0][0]; fm3.SubUWConclu.value = strQueryResult[0][1]; fm3.SubUWConcluName.value = strQueryResult[0][2]; fm3.UWUWOpinion.value = strQueryResult[0][3]; fm3.UWUWConclu.value = strQueryResult[0][4]; fm3.UWUWConcluName.value = strQueryResult[0][5]; if (strQueryResult[0][5] == "1") { fm3.UWUrgentFlag.value = "1"; fm3.UWUrgentFlag_CK.checked = true; } else { fm3.UWUrgentFlag.value = "0"; fm3.UWUrgentFlag_CK.checked = false; } fm3.ReinsArrange.value = strQueryResult[0][7]; fm3.ReinsArrangeName.value = strQueryResult[0][8]; fm3.UWOpinion.value = strQueryResult[0][9]; fm3.UWConclu.value = strQueryResult[0][10]; fm3.UWConcluName.value = strQueryResult[0][11]; fm1.UWManagerOpinion.value = strQueryResult[0][12]; fm1.UWManagerConclu.value = strQueryResult[0][13]; fm1.UWManagerConcluName.value = strQueryResult[0][14]; fm1.UWFinalOpinion.value = strQueryResult[0][15]; fm1.UWFinalConclu.value = strQueryResult[0][16]; fm1.UWFinalConcluName.value = strQueryResult[0][17]; fm1.SubFinalOpinion.value = strQueryResult[0][18]; fm1.SubFinalConclu.value = strQueryResult[0][19]; fm1.SubFinalConcluName.value = strQueryResult[0][20]; } } /** * 综合意见保存 */ function UWOpinionSave() { mOperate = "UWOPINIONSAVE"; if (!beforeSubmit()) { return false; } fm3.action = "../API/grp_quotation/g_quot/LSQuotUWDetailSave/UPDATE?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&Operate=" + mOperate + "&TranProdType=" + tTranProdType; submitForm(fm3, mOperate); } /** * 询价核保提交 */ function UWSubmit() { mOperate = "UWSUBMIT"; // if (!beforeSubmit()) { // return false; // } if (fm3.UWUWConclu.value == 1) { if (!i18nConfirm("确定要核保提交吗?", "LIS-01007")) { return false; } window.open("./LSQuotQueryUserAddMain.jsp", "审核人清单", 'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0'); } else { } } /** * 回目录 */ function ReturnList() { if (tActivityID == "0800100005") { location.href = "./LSQuotUWExamineEndInput.jsp"; } } /** * 提交数据 */ function submitForm(obj, dynamic) { 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"); //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(); if(dynamic != null && dynamic === true){ ajaxSubmit(obj); } else { ajaxSubmit2(obj); } } /** * 提交后操作,服务器数据返回后执行的操作 */ function afterSubmit(FlagStr, content) { if (typeof (showInfo) == "object") { showInfo.close(); } if (FlagStr == "Fail") { var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(content); //showModalDialog(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; //获得窗口的水平位置 var 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 { if (mOperate == "PRINT") { var tFileName = content.substring(content.lastIndexOf('/') + 1, content.length); var tFilePath = content; downloadFile(tFilePath,tFileName,"../API/grp_common/jsp/download/DOWNLOAD"); } else { var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content=" + encodeURIComponent(content); //showModalDialog(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; //获得窗口的水平位置 var 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(); if (mOperate == "OPINIONDELETE" || mOperate == "OPINIONMODIFY" || mOperate == "OPINIONADD") { fm2.OpinionType.value = ""; fm2.OpinionTypeName.value = ""; fm2.OpinionDesc.value = ""; fm2.all("UploadPath").outerHTML = fm2.all("UploadPath").outerHTML; queryOtherOpinion(); } else if (mOperate == "UWOPINIONSAVE") { } else if (mOperate == "UWSUBMIT") { ReturnList(); } else { initForm(); } } } } /** * 提交前的校验、计算 */ function beforeSubmit() { if (mOperate == "UWOPINIONSAVE") { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql31"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arr == null) { alert("请录入分保信息,再进行综合意见保存"); return false; } if (tActivityID == "0800100002" && fm3.UWUWOpinion.value == "") { i18nAlert("分公司综合意见不能为空!", "LIS-04714"); return false; } else if (tActivityID == "0800100003" && fm3.UWOpinion.value == "") { i18nAlert("总公司综合意见不能为空!", "LIS-04718"); return false; } else if (tActivityID == "0800100004") { } } if (mOperate == "UWSUBMIT") { if (tActivityID == "0800100002") { if (fm3.UWUWOpinion.value == "") { i18nAlert("分公司综合意见不能为空!", "LIS-04714"); return false; } if (fm3.UWUWConclu.value == "") { i18nAlert("分公司核保结论不能为空!", "LIS-04722"); return false; } } else if (tActivityID == "0800100003") {//调整该处顺序,并进行区别校验 if (fm3.UWConclu.value == "") { i18nAlert("总公司核保结论不能为空!", "LIS-04723"); return false; } var tUWConclu = fm3.UWConclu.value; if (tUWConclu == "0") {//同意 if (fm3.UWOpinion.value == "") { i18nAlert("总公司综合意见不能为空!", "LIS-04718"); return false; } } } else if (tActivityID == "0800100005") { if (fm1.UWManagerOpinion.value == "") { i18nAlert("核保经理意见不能为空!", "LIS-04724"); return false; } if (fm1.UWManagerConclu.value == "") { i18nAlert("核保经理结论不能为空!", "LIS-04725"); return false; } } } return true; } function quotInfoSubmit(UserCode, ComCode) { if (fm3.ExamConclu.value != "3"){ if (fm3.ExamOpinion.value == "") { alert("请输入审批意见"); return false; } } if (fm3.ExamConclu.value == "") { alert("请输入审批结论"); return false; } if (fm3.ExamOpinion.value.length>1500){ alert("审批意见长度不超过1500字") return false; } var allpass = ""; tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql40"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arr != null) { allpass = '1' } tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql582"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arr != null) { allpass = '1' } // 是否超过核保费率权限 var IsOverUWRateAuditAuth = ""; tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql41"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arrIsOverUWRateAuditAuth = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arrIsOverUWRateAuditAuth != null) { if (arrIsOverUWRateAuditAuth[0][0]=='1'){ IsOverUWRateAuditAuth='1' } } //是否超过销售费用权限 var IsOverSaleFeeAuditAuth = ""; tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql42"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arrIsOverSaleFeeAuditAuth = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arrIsOverSaleFeeAuditAuth != null) { if (arrIsOverSaleFeeAuditAuth[0][0]=='1'){ IsOverSaleFeeAuditAuth='1' } } mOperate = 'UWSUBMIT'; if (fm3.ExamConclu.value == '1' && allpass == '1') { fm3.action = "../API/grp_quotation/g_quot/LSQuotUWDetailSave/UPDATE?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&Operate=" + mOperate + "&TranProdType=" + tTranProdType + "&UWUserCode=" + UserCode+"&OperateManageCom="+tOperateManageCom; submitForm(fm3); } else if (fm3.ExamConclu.value == '3') { //退回无需选择审核人 fm3.action = "../API/grp_quotation/g_quot/LSQuotUWDetailSave/UPDATE?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&Operate=" + mOperate + "&TranProdType=" + tTranProdType; submitForm(fm3); } else if (fm3.ExamConclu.value == '2') {//拒绝也无需选择审核人 fm3.action = "../API/grp_quotation/g_quot/LSQuotUWDetailSave/UPDATE?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&Operate=" + mOperate + "&TranProdType=" + tTranProdType; submitForm(fm3); } else if (fm3.ExamConclu.value == '1' && allpass != '1') {//同意 if (UserCode == '0' && ComCode == '0') { //超权限判断及友好提示 if("86"!=tManageCom){ var arrIsOverAuditAuthReasonFlag = false; var arrIsOverAuditAuthReason = "\""; var arrIsOverUWRateAuditAuthReason = ""; tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql579"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arrIsOverUWRateAuditAuthReason = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arrIsOverUWRateAuditAuthReason != null && arrIsOverUWRateAuditAuthReason != "") { arrIsOverAuditAuthReasonFlag = true; arrIsOverAuditAuthReason = arrIsOverAuditAuthReason + arrIsOverUWRateAuditAuthReason[0][0]; } var arrIsOverSaleFeeAuditAuthReason = ""; tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql580"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arrIsOverSaleFeeAuditAuthReason = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arrIsOverSaleFeeAuditAuthReason != null && arrIsOverSaleFeeAuditAuthReason != "") { arrIsOverAuditAuthReasonFlag = true; arrIsOverAuditAuthReason = arrIsOverAuditAuthReason + arrIsOverSaleFeeAuditAuthReason[0][0]; } arrIsOverAuditAuthReason = arrIsOverAuditAuthReason.replace(/;/g,"\n"); //arrIsOverAuditAuthReason = arrIsOverAuditAuthReason.replace(/\n/g,"
") if (arrIsOverAuditAuthReasonFlag){ if (!confirm("该询价已触发"+arrIsOverAuditAuthReason+"您无法终结,是否继续?")){ return false; } } } var strUrl = "LSQuotQueryUserAddMain.jsp?QuotNo=" + tQuotNo + "&ActionFlag=0&IsHealthy=" + IsHealthy +"&IsOverUWRateAuditAuth="+IsOverUWRateAuditAuth+"&IsOverSaleFeeAuditAuth="+IsOverSaleFeeAuditAuth+"&OperateManageCom="+tOperateManageCom; // +"&QuotBatNo="+ tQuotBatNo +"&QuotType="+ tQuotType +"&MissionID="+ tMissionID +"&SubMissionID="+ tSubMissionID +"&ActivityID="+ tActivityID +"&TranProdType="+ tTranProdType +"&Coinsurance="+ tCoinsurance+"&usercode="+UserCode+"&comCode="+ComCode; window.open(strUrl, "审核人增加", 'height=600,width=600,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no'); } else { fm3.action = "../API/grp_quotation/g_quot/LSQuotUWDetailSave/UPDATE?QuotType=" + tQuotType + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&Operate=" + mOperate + "&TranProdType=" + tTranProdType + "&UWUserCode=" + UserCode +"&UWComCode="+ComCode+"&OperateManageCom="+tOperateManageCom; submitForm(fm3); } } } function queryExamineInfo(){ tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql36"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); turnPage.queryModal(tSQLInfo.getString(), ExamineGrid, 2, 1); } function queryUWAuditProcess() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql33"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arrAudit = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arrAudit != null && arrAudit != "") { fm3.UWUWOpinion.value = arrAudit[0][0] } } /** * 展示再保信息 */ function showReinsInfo() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql23"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var tResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tResult != null) { var tReinsType = tResult[0][0]; if (tReinsType == "2") { document.getElementById("tdFacul1").style.display = ""; document.getElementById("tdFacul2").style.display = ""; document.getElementById("tdFacul3").style.display = ""; document.getElementById("tdFacul4").style.display = ""; document.getElementById("tdFacul5").style.display = "none"; document.getElementById("tdFacul6").style.display = "none"; document.getElementById("tdFacul7").style.display = "none"; document.getElementById("tdFacul8").style.display = "none"; fm3.FaculReason.value = tResult[0][1]; fm3.FaculReasonName.value = tResult[0][2]; if (tResult[0][1] == "15") { document.getElementById("FaculOtherDesc").value = tResult[0][3]; document.getElementById("tFaculOtherDesc").style.display = ""; } } else { document.getElementById("tdFacul1").style.display = "none"; document.getElementById("tdFacul2").style.display = "none"; document.getElementById("tdFacul3").style.display = "none"; document.getElementById("tdFacul4").style.display = "none"; document.getElementById("tdFacul5").style.display = ""; document.getElementById("tdFacul6").style.display = ""; document.getElementById("tdFacul7").style.display = ""; document.getElementById("tdFacul8").style.display = ""; fm3.FaculReason.value = ""; fm3.FaculReasonName.value = ""; document.getElementById("FaculOtherDesc").value = ""; document.getElementById("tFaculOtherDesc").style.display = "none"; } } } function showHiddenTime(quotplandiv99) { if (quotplandiv99 == "quotplandiv99") { document.getElementById("quotplandiv99Value").style.display = ''; document.getElementById("quotplandiv99ValueOut").style.display = ''; // document.getElementById("spanTime").style.display = ''; } else { document.getElementById("quotplandiv99Value").style.display = 'none'; document.getElementById("quotplandiv99ValueOut").style.display = 'none'; document.getElementById("quotplandiv99Value").value = ""; // document.getElementById("spanTime").style.display = 'none'; } } function selectSpecialPact() { fm3.UseSpecialAgreementFlag.value = true; var strUrl = "LSQuotQuerySpecialAgreementMain.jsp?QuotNo=" + tQuotNo+"&ActivityID="+tActivityID; window.open(strUrl, "特殊约定模板查询", 'height=600,width=600,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no'); } function cancelStipulationBtn() { fm3.UseSpecialAgreementFlag.value = false; fm3.ApproveSpecailAgreement.readOnly = false; } function UWReInsureSave() { if (fm3.UWInsureType.value == '2') { if (fm3.UWInsureNum.value == "") { alert("分保方式选择临分时,请输入分保编码。"); return false; } else { //取数据库查询分保编码是否重复 } } else if (fm3.UWInsureType.value == '5') { if (fm3.OtherFBType.value == "") { alert("分保方式选择其他方式时,请输入其他方式。"); return false; } } if (fm3.UWIsShortInsure.value == "") { alert("请录入是否允许短险投保标识"); return false; } mOperate = "UpdateFBInfo"; // tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql31"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arr!=null) { if (arr[0][0] != null && arr[0][0] != "") { if (fm3.UWInsureType.value != arr[0][0] || fm3.UWIsExit.value != arr[0][3] || fm3.OtherFBType.value != arr[0][1]) { if (!confirm("修改分保相关信息,则会删除分保规则信息,是否确定?")) { return false; } else { mOperate = "delUpdateFBInfo"; } } } } fm3.action = "../API/grp_quotation/g_quot/LSQuotUWDetailUpdateFBInfo/UPDATE?Operate=" + mOperate + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&QuotType=" + tQuotType + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&TranProdType=" + tTranProdType; submitForm(fm3, true); } function queryCostAndAmnt(){ //查出成本率和保额和这个人的进行比较如果超过则置成临分且不允许修改 //!!!G_NB 保额那个暂时处理不了 因为 暂时没有鉴定这个险种的字段 (‘个人寿险保额’,‘个人意外险保额’,‘个人重疾保额’,‘个人医疗险保额’) tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql35"); tSQLInfo.addSubPara(tOperator); tSQLInfo.setModule("grp_quotation"); var arrSettingRate = easyExecSql(tSQLInfo.getString(), 1, 0, 1); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql34"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arrCostRate = easyExecSql(tSQLInfo.getString(), 1, 0, 1); fm3.UWInsureType.value = "1"; fm3.UWInsureTypeName.value = "按合约"; for (let i = 0; i < arrCostRate.length; i++) { if(arrCostRate[i][0]>arrSettingRate[0][0]){ document.getElementById("UWInsureType").value="2"; document.getElementById("UWInsureTypeName").value="临分"; document.getElementById("UWInsureNumTitlediv").style.display = ''; document.getElementById("UWInsureNumdiv").style.display = ''; document.getElementById("UWInsureType").style.pointerEvents="none" document.getElementById("UWInsureTypeName").style.pointerEvents="none" } } } function queryOpinion() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql74"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArr == null) { } else { // document.getElementById("BranchInsureType").value = tArr[0][0]; // document.getElementById("BranchInsureTypeName").value = tArr[0][1]; if (tArr[0][0] == '2') { // document.getElementById("BranchInsureNumTitlediv").style.display = ''; // document.getElementById("BranchInsureNumdiv").style.display = ''; // document.getElementById("BranchInsureNum").value = tArr[0][2]; } if (tArr[0][0] == '5') { // document.getElementById("BranchInsureTypeName").value = '其他方式'; // document.getElementById("OtherFBType").style.display = ''; // fm3.OtherFBType.value = tArr[0][1]; } document.getElementById("BranchIsExit").value = tArr[0][3]; document.getElementById("BranchIsExitName").value = tArr[0][4]; document.getElementById("BranchIsShortInsure").value = tArr[0][5]; document.getElementById("BranchIsShortInsureName").value = tArr[0][6]; document.getElementById("BranchUWOpinion").value = tArr[0][7]; document.getElementById("BranchUWConclu").value = tArr[0][8]; document.getElementById("BranchUWConcluName").value = tArr[0][9]; } } function querySaleInfo(){ tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql37"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var tSaleArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tSaleArr == null) { return false; } else { fm3.SaleAuditOpinion.value = tSaleArr[0][0]; fm3.SaleAuditConclu.value = tSaleArr[0][1]; fm3.SaleAuditConcluName.value = tSaleArr[0][2]; } } function queryManageControlDiv(){ tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql43"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (arr!=null){ if (arr[0][0] == '86'){ document.getElementById("divBranchUW").style.display='none' } } } function queryUWInfo() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql309"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArr == null) { } else { document.getElementById("UWInsureType").value = tArr[0][0]; document.getElementById("UWInsureTypeName").value = tArr[0][1]; if (tArr[0][0] == '2') { document.getElementById("UWInsureNumTitlediv").style.display = ''; document.getElementById("UWInsureNumdiv").style.display = ''; document.getElementById("UWInsureNum").value = tArr[0][2]; } if (tArr[0][0] == '5') { document.getElementById("UWInsureTypeName").value = '其他方式'; document.getElementById("UWOtherFBType").style.display = ''; fm3.UWOtherFBType.value = tArr[0][1]; } document.getElementById("UWIsExit").value = tArr[0][3]; document.getElementById("UWIsExitName").value = tArr[0][4]; document.getElementById("UWIsShortInsure").value = tArr[0][5]; document.getElementById("UWIsShortInsureName").value = tArr[0][6]; document.getElementById("UWOpinion").value = tArr[0][7]; document.getElementById("UWConclu").value = tArr[0][8]; document.getElementById("UWConcluName").value = tArr[0][9]; } } /** * 查询工程信息 */ function queryEnginInfo(cObj) { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql23"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.addSubPara(tQuotBatNo); tSQLInfo.setModule("grp_quotation"); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArr == null) { //不做处理 } else { $("#EnginName").val(tArr[0][0]); $("#EnginType").val(tArr[0][1]); $("#EnginTypeName").val(tArr[0][2]); $("#EnginDesc").val(tArr[0][3]); } } function selectMedOptions() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql105"); tSQLInfo.setModule("grp_quotation"); tSQLInfo.addSubPara(tQuotNo); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if(tArr==null||tArr[0][0]==null){ alert("含有补充医疗险种,且该险种的“赔付比例”的“约定方式”为“详见附件”时才能录入!"); return false; } var strUrl = "LSQuotQueryMedOptionsMain.jsp?QuotNo=" + tQuotNo+"&SaveFlag=0"; window.open(strUrl, "补充医疗赔付比例方案信息", 'height=600,width=600,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no'); } function BranchReInsureRule() { // if (fm3.BranchInsureType.value == '3' && tManageCom != '86') { // alert("当选择3-风险自留时,分公司不许操作,且必须上报总公司"); // return false; // } //请保存分保相关信息后录入分保规则 // tSQLInfo = new SqlClass(); // tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); // tSQLInfo.setSqlId("LSQuotUWSql32"); // tSQLInfo.addSubPara(tQuotNo); // tSQLInfo.setModule("grp_quotation"); // var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); // if (arr == null) { // alert("请保存分保信息后,录入分保规则。"); // return false; // } // if (fm3.BranchInsureType.value=='2'){ // tSQLInfo = new SqlClass(); // tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); // tSQLInfo.setSqlId("LSQuotUWSql53"); // tSQLInfo.addSubPara(tQuotNo); // tSQLInfo.setModule("grp_quotation"); // var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); // if (arr == null) { // alert("请保存分保编码"); // return false; // } // } // if (fm3.BranchInsureType.value=='5'){ // tSQLInfo = new SqlClass(); // tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); // tSQLInfo.setSqlId("LSQuotUWSql54"); // tSQLInfo.addSubPara(tQuotNo); // tSQLInfo.setModule("grp_quotation"); // var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); // if (arr[0][0] !=fm3.OtherFBType.value) { // alert("当选择其他方式时,请录入后保存"); // return false; // } // } var tLoadFlag = "0"; //0 - 录入保存 1 -查询 window.open("./FBRuleDetailMain.jsp?QuotNo=" + tQuotNo + "&ManageCom=" + tManageCom + "&IsLeaveCountry=" + fm3.BranchIsExit.value + "&FBType=" + fm3.UWInsureType.value + "&OtherFBType=" + fm3.UWOtherFBType.value + "&LoadFlag=" + tLoadFlag + "&FBCode=" + fm3.UWInsureNum.value, "分保规则", 'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0'); } function AuditOpinion(parm1){ var tAuditOpinion=$("#"+parm1).find("input[name=ExamineGrid10]").val(); if (tAuditOpinion !=""){ var showStr = i18nMessage("审核意见: " + tAuditOpinion, ""); var urlStr = "../common/jsp/MessagePage666.jsp?content=" + encodeURIComponent(showStr); //showInfo = window.showModelessDialog(urlStr, window, "status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); //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(); } } function queryAllCostRate(){ tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotUWSql"); tSQLInfo.setSqlId("LSQuotUWSql683"); tSQLInfo.addSubPara(tQuotNo); tSQLInfo.setModule("grp_quotation"); var allCostRate = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (allCostRate!=null){ $("#riskCostRate").val(allCostRate[0][0]==''?0:allCostRate[0][0]); $("#planCostRate").val(allCostRate[0][1]==''?0:allCostRate[0][1]); $("#wholePrdCostRate").val(allCostRate[0][2]==''?0:allCostRate[0][2]); $("#past1").val(allCostRate[0][3]==''?0:allCostRate[0][3]); $("#past2").val(allCostRate[0][4]==''?0:allCostRate[0][4]); $("#finalCostRate").val(allCostRate[0][5]); } }