/***************************************************************
*
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.setModule("grp_quotation");
tSQLInfo.setResourceName("g_quot.LSQuotProjBasicSql");
tSQLInfo.setSqlId("LSQuotProjBasicSql1");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
var tBasicArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (tBasicArr == null) {
return false;
} else {
$("#ProjName").val(tBasicArr[0][1]);
$("#AgentCom").val(tBasicArr[0][2]);
$("#AgentComName").val(tBasicArr[0][3]);
$("#SaleChnl").val(tBasicArr[0][4]);
$("#SaleChnlName").val(tBasicArr[0][5]);
$("#OperSource").val(tBasicArr[0][6]);
$("#OperSourceName").val(tBasicArr[0][7]);
$("#ForceChkProfessRate").val(tBasicArr[0][8]);
$("#ForceChkProfessRateName").val(tBasicArr[0][9]);
$("#ProdType").val(tBasicArr[0][10]);
$("#ProdTypeName").val(tBasicArr[0][11]);
$("#IsCoinsurance").val(tBasicArr[0][12]);
$("#IsCoinsuranceName").val(tBasicArr[0][13]);
$("#PayIntv").val(tBasicArr[0][14]);
$("#PayIntvName").val(tBasicArr[0][15]);
$("#CustomerIntro").val(tBasicArr[0][16]);
$("#IsContinueInsure").val(tBasicArr[0][17]);
$("#IsContinueInsureName").val(tBasicArr[0][18]);
$("#ForceChkNum").val(tBasicArr[0][20]);
$("#ForceChkNumName").val(tBasicArr[0][21]);
$("#IsWait").val(tBasicArr[0][22]);
if (tBasicArr[0][22]=='1'){
$("#IsWaitName").val('有等待期');
}else if (tBasicArr[0][22]=='0'){
$("#IsWaitName").val('无等待期');
}
}
//关联适用机构
tSQLInfo = new SqlClass();
tSQLInfo.setModule("grp_quotation");
tSQLInfo.setResourceName("g_quot.LSQuotProjBasicSql");
tSQLInfo.setSqlId("LSQuotProjBasicSql3");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
if (!noDiv(turnPage2, AppOrgCodeGrid, tSQLInfo.getString())) {
initAppOrgCodeGrid();
return false;
}
}
/**
* 询价基本信息查询
*/
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 querySaleChannel() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql3");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.addSubPara("");
tSQLInfo.setModule("grp_quotation");
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
var tElementCode;//因子编码
var tElementName;//因子名称
var tIsSelected;//是否被选中
var tInnerHTML0 = "";
tInnerHTML0 = tInnerHTML0 + tInnerHTML1;
document.getElementById("divSaleChannel").innerHTML = tInnerHTML0;
}
/**
* 询价中介机构查询
*/
function queryQuotAgency() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql4");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.setModule("grp_quotation");
if (!noDiv(turnPage4, AgencyListGrid, tSQLInfo.getString())) {
initAgencyListGrid();
return false;
}
if (AgencyListGrid.mulLineCount > 0) {
document.getElementById('divAgencyInfo').style.display = '';
}
}
/**
* 适用机构查询
*/
function queryOrgCode() {
tSQLInfo = new SqlClass();
tSQLInfo.setModule("grp_quotation");
tSQLInfo.setResourceName("g_quot.LSQuotProjBasicSql");
tSQLInfo.setSqlId("LSQuotProjBasicSql3");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
if (!noDiv(turnPage2, AppOrgCodeGrid, tSQLInfo.getString())) {
initAppOrgCodeGrid();
return false;
}
}
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 = "";
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 = "";
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() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotSql");
tSQLInfo.setSqlId("LSQuotSql25");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.setModule("grp_quotation");
initPlanInfoGrid();
turnPage1.queryModal(tSQLInfo.getString(), PlanInfoGrid, 1, 1);//第三位表示使用大数据量
}
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;
var tPlanCode = PlanInfoGrid.getRowColData(tSelNo, 1);
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotSql");
tSQLInfo.setSqlId("LSQuotSql327");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.addSubPara(tPlanCode);
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 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 = '';
// document.getElementById("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 querySpecialAgreementAndDate() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotSql");
tSQLInfo.setSqlId("LSQuotSql306");
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 queryPlanInfo1() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotSql");
tSQLInfo.setSqlId("LSQuotSql25");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.setModule("grp_quotation");
initPlanInfoGrid();
turnPage6.queryModal(tSQLInfo.getString(), PlanInfoGrid, 2, 1);
}
/**
* 选择后处理
*/
function showPlanInfo() {
var tSelNo = PlanInfoGrid.getSelNo() - 1;
var tPlanCode = PlanInfoGrid.getRowColData(tSelNo, 1);
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotSql");
tSQLInfo.setSqlId("LSQuotSql65");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.addSubPara(tPlanCode);
tSQLInfo.setModule("grp_quotation");
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if(tArr!=null){
fm3.PlanCode.value ="";
fm3.PlanDesc.value ="";
fm3.InsuPeriod.value ="";
fm3.InsuPeriodFlag.value ="";
fm3.InsuPeriodFlagName.value ="";
fm3.MinAge.value ="";
fm3.MaxAge.value ="";
fm3.MinPeople.value ="";
fm3.Profession1.checked='';
fm3.Profession2.checked='';
fm3.Profession3.checked='';
fm3.Profession4.checked='';
fm3.Profession5.checked='';
fm3.Profession6.checked='';
fm3.PremMode.value ="";
fm3.PremModeName.value="";
if(tArr[0][15]=='3'){
fm3.EnterPriseBurden.value ="";
fm3.PersonBurden.value ="";
}
fm3.MaleRate.value ="";
fm3.FemaleRate.value ="";
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.MinAge.value = tArr[0][6];
fm3.MaxAge.value = tArr[0][7];
fm3.MinPeople.value = tArr[0][8];
tArr[0][9]=='N'?fm3.Profession1.value:fm3.Profession1.checked =true;
tArr[0][10]=='N'?fm3.Profession2.value:fm3.Profession2.checked=true;
tArr[0][11]=='N'?fm3.Profession3.value:fm3.Profession3.checked=true;
tArr[0][12]=='N'?fm3.Profession4.value:fm3.Profession4.checked=true;
tArr[0][13]=='N'?fm3.Profession5.value:fm3.Profession5.checked=true;
tArr[0][14]=='N'?fm3.Profession6.value:fm3.Profession6.checked=true;
fm3.PremMode.value = tArr[0][15];
fm3.PremModeName.value = tArr[0][16];
fm3.MaleRate.value = tArr[0][19];
fm3.FemaleRate.value = tArr[0][20];
if(tArr[0][15]=='3'){
fm3.EnterPriseBurden.value = tArr[0][17];
fm3.PersonBurden.value = tArr[0][18];
}
}
}
/**
* 选择单多职业类别
*/
function chooseOccupFlag(cQuotFlag) {
pubChooseOccupFlag(fmPlan, cQuotFlag);
}
/**
* 增加方案
*/
function addSpecailAgreement() {
if (fm3.ApproveSpecailAgreement.value.length >3000){
alert("特别约定长度不能超过3000字符!");
return false;
}
if (document.getElementById("quotplandiv99Value").value != "") {
if (document.getElementById("quotplandiv99Value").value <= tCurrentDate) {
alert("询价有效期日期需大于当前日期");
return false;
}
if(!isWithinOneYear(document.getElementById("quotplandiv99Value").value,tCurrentDate)){
alert("询价有效期日期需小于一年");
return false;
}
fm3.hiddenQuotTime.value = document.getElementById("quotplandiv99Value").value
} else {
if (document.getElementById("quotplandiv99").checked == true) {
alert("请填写询价有效期日期");
return false;
}else {
fm3.hiddenQuotTime.value = document.querySelector('input[name="quotplandiv00"]:checked').value;
}
}
/*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 isWithinOneYear(date1, date2) {
// 将输入转换为Date对象
const d1 = new Date(date1);
const d2 = new Date(date2);
// 计算时间差(毫秒)
const timeDiff = Math.abs(d2.getTime() - d1.getTime());
// 转换为天数并比较
const dayDiff = timeDiff / (1000 * 60 * 60 * 24);
return dayDiff < 365;
}
/**
* 修改方案
*/
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";mOperate="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.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;
}
//请保存分保相关信息后录入分保规则
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.UWInsureType.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.UWInsureType.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.UWOtherFBType.value) {
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.BranchInsureType.value = arr[0][0];
// if (arr[0][0] == '2') {
// document.getElementById("BranchInsureNumdiv").style.display = '';
// fm3.BranchInsureNum.value = arr[0][2];
// }
// if (arr[0][0] == '5') {
// fm3.BranchInsureTypeName.value = '其他方式';
// document.getElementById("OtherFBType").style.display = '';
// fm3.OtherFBType.value = arr[0][1];
// }
fm3.BranchIsExit.value = arr[0][3];
if (fm3.BranchIsExit.value == null || fm3.BranchIsExit.value == '') {
fm3.BranchIsExit.value ='0';
}
if (arr[0][3] == '1') {
fm3.BranchIsExitName.value = '是';
} else if (arr[0][2] == '0') {
fm3.BranchIsExitName.value = '否';
}
fm3.BranchIsShortInsure.value = arr[0][4];
if (fm3.BranchIsShortInsure.value == null || fm3.BranchIsShortInsure.value == '') {
fm3.BranchIsShortInsure.value ='0';
}
if (arr[0][4] == '1') {
fm3.BranchIsShortInsureName.value = '允许';
} else if (arr[0][4] == '0') {
fm3.BranchIsShortInsureName.value = '不允许';
}
}
//queryCostAndAmnt();
return;
}
fm3.BranchIsExit.value = '0';
fm3.BranchIsExitName.value = '否';
}
/**
* 下拉后处理
*/
function afterCodeSelect(cCodeType, Field) {
if (cCodeType == 'fbtype') {
if (Field.value == "5") {
document.getElementById("UWOtherFBType").style.display = '';
document.getElementById("UWInsureNumTitlediv").style.display = 'none';
document.getElementById("UWInsureNumdiv").style.display = 'none';
// fm3.BranchInsureNum.value = "";
} else {
document.getElementById("UWOtherFBType").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.BranchInsureNum.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 queryUWMainPoint() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql21");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.setModule("grp_quotation");
turnPage1.queryModal(tSQLInfo.getString(), UWMainPointGrid, 2, 1);
}
/**
* 其他部门意见展示
*/
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.BranchUWOpinion.value = strQueryResult[0][3];
fm3.BranchUWConclu.value = strQueryResult[0][4];
fm3.BranchUWConcluName.value = strQueryResult[0][5];
if (strQueryResult[0][5] == "1") {
fm3.BranchUrgentFlag.value = "1";
fm3.BranchUrgentFlag_CK.checked = true;
} else {
fm3.BranchUrgentFlag.value = "0";
fm3.BranchUrgentFlag_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.BranchFinalOpinion.value = strQueryResult[0][15];
fm1.BranchFinalConclu.value = strQueryResult[0][16];
fm1.BranchFinalConcluName.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.BranchUWConclu.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 == "0800100002") {
location.href = "./LSQuotSubUWQueryInput.jsp";
} else if (tActivityID == "0800100003") {
location.href = "./LSQuotBranchUWQueryInput.jsp";
} else if (tActivityID == "0800100004") {
location.href = "./LSQuotUWQueryInput.jsp";
} else if (tActivityID == "0800100005") {
location.href = "./LSQuotUWExamineEndInput.jsp";
}
}
/**
* 是否加急勾选框
*/
function FlagCheck() {
if (fm3.BranchUrgentFlag_CK.checked) {
fm3.BranchUrgentFlag.value = '1';
} else {
fm3.BranchUrgentFlag.value = '0';
}
}
function downTemplate() {
fm3.action = "../API/grp_quotation/g_quot/DownLoad/UPDATE?Operate=ADDSpecailAgreement&QuotNo=" + tQuotNo ;
submitForm12();
}
function submitForm12()
{
var i = 0;
var showStr=i18nMessage("正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04525");
var urlStr="../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(showStr);
//showInfo=window.open(urlStr,"newwindow","height=250;width=550;top=0;left= 0;toolbar=no;menubar=no;scrollbars=no; resizable=no;alwaysRaised:yes;");
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();
showInfo.close();
//document.getElementById("fm").submit(); //提交
//存在动态变量,无法使用ajaxSubmit2
ajaxSubmit(document.getElementById("fm3"),afterClickLogon);
// ajaxSubmit(document.getElementById("fm"));
}
function afterClickLogon(flagStr,content,result){
var tPath = result.Path1;
var tFileName = tPath.substring(tPath.lastIndexOf("/") + 1);
afterSubmit(flagStr, content);
downloadFile(tPath,tFileName,"../API/grp_common/jsp/download/DOWNLOAD");
}
/**
* 提交数据
*/
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;
// window.location = "../common/jsp/download.jsp?FilePath="+tFilePath+"&FileName="+tFileName;
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 (fm3.UWOpinion.value.lenth>1500){
alert("总公司综合意见长度不能超过1500字")
return false;
}
if (tActivityID == "0800100002" && fm3.BranchUWOpinion.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.BranchUWOpinion.value == "") {
i18nAlert("分公司综合意见不能为空!", "LIS-04714");
return false;
}
if (fm3.BranchUWConclu.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.UWRuleFlag.value != "1") {
// alert("请先点击投保规则配置!");
// return false;
// }
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotSql");
tSQLInfo.setSqlId("LSQuotSql97");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.setModule("grp_quotation");
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (tArr != null ) {
alert("该询价申请处于临分挂起状态,不允许操作!");
return false;
}
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql70");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.setModule("grp_quotation");
var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (fm3.UWConclu.value == '1' ) {
if (arr == null || arr[0][0] == '' || arr[0][0] == null) {
alert("请先保存规则配置");
return false;
}
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotSql");
tSQLInfo.setSqlId("LSQuotSql434");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.setModule("grp_quotation");
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (tArr == null) {
alert("请录入本单成本率!");
return false;
}
}
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql71");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.setModule("grp_quotation");
var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if(fm3.UWConclu.value == "1"){
if (arr == null || arr[0][0] == '' || arr[0][0] ==null) {
alert("请先保存分保类型");
return false;
}
}
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql38");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.setModule("grp_quotation");
var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if(arr ==null){
if(fm3.UWOpinion!='3'){
// alert("请先保存总公司核保意见");
// return false;
}
}
if(fm3.UWConclu.value=="" ){
alert("请输入总公司核保结论");
return false;
}
if (fm3.UWConclu.value == "1") {
if (fm3.UWInsureType.value == '2') {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql577");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.setModule("grp_quotation");
var tResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if(tResult == null){
alert("分保方式选择临分时,请填写分保规则");
return false;
}
}
if (fm3.ProdType.value == '01'){
}else {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql584");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.setModule("grp_quotation");
var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (arr == null) {
alert("请先点击投保规则配置!");
return false;
}
}
}
//此处判断 是否超过只分公司核保权限, 如果只超过的分公司核保权限 则直接选择审批终结人 如果超核保和销售权限 则选择销售费用审核人
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) {
}
var AuditEnd="";
var SaleAudit="";
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 && arrIsOverUWRateAuditAuth != null) {
if (arrIsOverUWRateAuditAuth[0][0]=='1' && arrIsOverSaleFeeAuditAuth[0][0]=='1'){
//选择销售费用审核人
SaleAudit="1";
}
}else if (arrIsOverUWRateAuditAuth != null && arrIsOverSaleFeeAuditAuth == null){
if (arrIsOverUWRateAuditAuth[0][0]=='1'){
//选择审批终结审核人
AuditEnd="1";
}
}else if (arrIsOverSaleFeeAuditAuth == null && arrIsOverUWRateAuditAuth == null){
//则是总公司出单 也选择审批终结审核人
SaleAudit="1";
}
//另一种情况是 同时超过两个权限 但是通过总公司审核都通过后 再次进入到总公司核保 则直接选择审批终结
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) {
AuditEnd = '1'
}
mOperate = 'UWSUBMIT'
if (fm3.UWConclu.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.UWConclu.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.UWConclu.value == '4'){
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+ "&OperateManageCom=" + tOperateManageCom;;
submitForm(fm3);
} else if (fm3.UWConclu.value == '1') {//同意
if (UserCode == '0' && ComCode == '0') {
var strUrl = "LSQuotQueryUserAddMain.jsp?QuotNo=" + tQuotNo + "&ActionFlag=0&IsHealthy=" + IsHealthy + "&AuditEnd="+AuditEnd+"&SaleAudit="+SaleAudit+"&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 queryBranchAuditProcess() {
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.BranchUWOpinion.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 faculPlanInput() {
if (fm3.ReinsArrange.value != "2") {
i18nAlert("再保安排非临分,不可录入临分方案!", "LIS-04838");
return false;
}
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql24");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.setModule("grp_quotation");
var tResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (tResult == null) {
i18nAlert("请先保存综合意见信息!", "LIS-04839");
return false;
} else {
var tReinsType = tResult[0][0];
if (tReinsType != '2') {
i18nAlert("再保安排非临分,请重新保存综合意见信息!", "LIS-04840");
return false;
}
}
var tFlag = "";
if (tActivityID == "0800100004") {
tFlag = "1";
} else {
tFlag = "0";
}
window.open("../reinsure/RIFaculPreceptMain.jsp?QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&Flag=" + tFlag, "再保临分方案配置", 'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
}
/**
* 总公司核保环节,如果是临分再保,提交审核时校验临分方案信息
*/
function checkFaculPlan() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql23");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.addSubPara(tQuotBatNo);
tSQLInfo.setModule("grp_quotation");
var tArrResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (tArrResult == null) {
i18nAlert("请先保存综合意见信息!", "LIS-04841");
return false;
} else {
var tReinsArrange = tArrResult[0][0];
if (fm3.ReinsArrange.value != tReinsArrange) {
i18nAlert("再保安排已发生改变,请保存综合意见信息!", "LIS-04842");
return false;
}
if (tReinsArrange == "2") {
var tState = tArrResult[0][4];
if (tState == "1") {//0--未录入,1--录入未完毕,2--录入完毕
i18nAlert("临分方案未录入完毕,请完善!", "LIS-04843");
return false;
}
}
}
return true;
}
function HangUp(flag) {
}
function showHangUp(flag) {
fm3.action = "../API/grp_quotation/g_quot/LSQuotHangUpSave/UPDATE?Operate=" + flag + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&QuotType=" + tQuotType + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&TranProdType=" + tTranProdType;
submitForm(fm3,true);
}
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("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 BranchReInsureSave() {
// if (fm3.UWInsureType.value == '2') {
// if (fm3.BranchInsureNum.value == "") {
// alert("分保方式选择临分时,请输入分保编码。");
// return false;
// } else {
// //取数据库查询分保编码是否重复
// }
// } else if (fm3.UWInsureType.value == '5') {
// if (fm3.OtherFBType.value == "") {
// alert("分保方式选择其他方式时,请输入其他方式。");
// return false;
// }
// }
// if (fm3.BranchIsShortInsure.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.BranchInsureType.value != arr[0][0] || fm3.BranchIsExit.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.BranchInsureType.value = "1";
// fm3.BranchInsureTypeName.value = "按合约";
// fm3.UWInsureType.value = "1";
// fm3.UWInsureTypeName.value = "按合约";
for (let i = 0; i < arrCostRate.length; i++) {
// if(arrCostRate[i][0]>arrSettingRate[0][0] && tManageCom != '86'){
// document.getElementById("BranchInsureType").value="2";
// document.getElementById("BranchInsureTypeName").value="临分";
// document.getElementById("BranchInsureNumTitlediv").style.display = '';
// document.getElementById("BranchInsureNumdiv").style.display = '';
// return;
// }
if(arrCostRate[i][0]>arrSettingRate[0][0] && tManageCom == '86'){
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"
return;
}
}
}
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 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 UWSave(){
if (fm3.UWIsShortInsure.value == "") {
alert("请录入是否允许短险投保标识");
return false;
}
if (fm3.UWIsShortInsure.value == "1") {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql55");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.setModule("grp_quotation");
var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (arr != null) {
alert("短险投保标识为允许时,保险期限必须等于1年");
return false;
}
}
if (fm3.UWIsShortInsure.value == "1") {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
tSQLInfo.setSqlId("LSQuotUWSql585");
tSQLInfo.addSubPara(tQuotNo);
tSQLInfo.setModule("grp_quotation");
var arr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
for (let i = 0; i < arr.length; i++) {
if (arr[i][0]!='Y') {
alert("询价方案中所有方案保险期限必须为‘年’时,【是否允许短险投保标识】才可选允许。");
return false;
}
}
}
fm3.action = "../API/grp_quotation/g_quot/LSQuotUWDetailUpdateFBInfo/UPDATE?Operate=" + "uwSave" + "&QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&QuotType=" + tQuotType + "&MissionID=" + tMissionID + "&SubMissionID=" + tSubMissionID + "&ActivityID=" + tActivityID + "&TranProdType=" + tTranProdType;
submitForm(fm3, true);
}
function UWReInsureSave() {
if (fm3.UWInsureType.value == '2') {
if (fm3.UWInsureNum.value == "") {
alert("分保方式选择临分时,请输入分保编码。");
return false;
} else {
//取数据库查询分保编码是否重复
}
} else if (fm3.UWInsureType.value == '5') {
if (fm3.UWOtherFBType.value == "") {
alert("分保方式选择其他方式时,请输入其他方式。");
return false;
}
}
//建工合约1、建工合约2 只支持建工险
if(tTranProdType != "01" && (fm3.UWInsureType.value == "6" || fm3.UWInsureType.value == "7")){
alert("非建工险询价不支持分保类型选择建工合约1、建工合约2!");
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.UWOtherFBType.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 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=1";
window.open(strUrl, "补充医疗赔付比例方案信息", 'height=600,width=600,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no');
}
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]);
}
}