You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1754 lines
64 KiB
1754 lines
64 KiB
/***************************************************************
|
|
* <p>ProName:LSQuotProjUWDetailInput.js</p>
|
|
* <p>Title:项目询价核保明细</p>
|
|
* <p>Description:项目询价核保明细</p>
|
|
* <p>Copyright:Copyright (c) 2012</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @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 = "<table class=common><tr class=common><td class=title></td><td class=input><td class=title></td><td class=input><td class=title></td><td class=input></td></tr>";
|
|
var tInnerHTML1 = "<tr class=common><td class=title>渠道类型</td><td class=input colspan=5>";
|
|
|
|
for (var i = 0; i < tArr.length; i++) {
|
|
|
|
tElementCode = tArr[i][0];
|
|
tElementName = tArr[i][2];
|
|
tIsSelected = tArr[i][3];
|
|
|
|
tInnerHTML1 += "<input type=checkbox disabled name=" + tElementCode;
|
|
if (tIsSelected == '0') {//询价表中没有保存该因子
|
|
|
|
tInnerHTML1 += ">" + tElementName;
|
|
} else {//询价中保存了该因子
|
|
|
|
tInnerHTML1 += " checked>" + tElementName;
|
|
}
|
|
|
|
// tInnerHTML1 += "<input class='displayNone' name='Hidden' + tElementCode + " value=0>";
|
|
tInnerHTML1 += "<input class='displayNone' type=hidden name=Hidden" + tElementCode + " value=0>";
|
|
}
|
|
|
|
tInnerHTML1 += "</td></tr></table>";
|
|
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 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 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 = "<table class=common><tr class=common><td class=title></td><td class=input><td class=title></td><td class=input><td class=title></td><td class=input></td></tr>";
|
|
var tInnerHTML1 = "<tr class=common><td class=title>保障层级划分标准</td><td class=input colspan=5>";
|
|
|
|
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 += "<input type=checkbox disabled name=" + tElementCode;
|
|
if (tIsSelected == '0') {//询价表中没有保存该因子
|
|
|
|
tInnerHTML1 += ">" + tElementName;
|
|
} else {//询价中保存了该因子
|
|
|
|
tInnerHTML1 += " checked>" + tElementName;
|
|
}
|
|
|
|
if (tControlFlag == '1') {//存在录入框
|
|
|
|
tInnerHTML1 += "<input class='displayNone' name=Hidden" + tElementCode + " value=" + tControlFlag + "><input style='width:50px' class=readonly name=" + tElementCode + "Value value=\"" + tNElementValue + "\" readonly>";//存在录入框的,置为只读模式
|
|
} else {
|
|
tInnerHTML1 += "<input class='displayNone' name=Hidden" + tElementCode + " value=0>";
|
|
}
|
|
}
|
|
|
|
tInnerHTML1 += "</td></tr></table>";
|
|
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 = "<table class=common><tr class=common><td class=title></td><td class=input><td class=title></td><td class=input><td class=title></td><td class=input></td></tr>";
|
|
var tInnerHTML1 = "<tr class=common><td class=title>缴费方式<span style='color: red'>*</span></td><td class=input colspan=5>";
|
|
|
|
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 += "<input type=checkbox disabled name=" + tElementCode;
|
|
if (tIsSelected == '0') {//询价表中没有保存该因子
|
|
tInnerHTML1 += ">" + tElementName;
|
|
} else {//询价中保存了该因子
|
|
|
|
tInnerHTML1 += " checked>" + tElementName;
|
|
}
|
|
}
|
|
|
|
tInnerHTML1 += "</td></tr></table>";
|
|
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 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("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];
|
|
}
|
|
}
|
|
queryPlanDetailInformationByPlanCode();
|
|
}
|
|
/**
|
|
* 选择单多职业类别
|
|
*/
|
|
function chooseOccupFlag(cQuotFlag) {
|
|
|
|
pubChooseOccupFlag(fmPlan, cQuotFlag);
|
|
}
|
|
|
|
// /**
|
|
// * 增加方案
|
|
// */
|
|
// function addPlan() {
|
|
//
|
|
// dealRedundant(fmPlan, tQuotType, tTranProdType);
|
|
// if (!verifyForm('fmPlan')) {
|
|
// return false;
|
|
// }
|
|
//
|
|
// if (!pubBeforeSubmit(fmPlan, tQuotType, tTranProdType)) {//提交前的公用校验
|
|
// return false;
|
|
// }
|
|
//
|
|
// fmPub.Operate.value = "ADDPLAN";
|
|
// /*fmPlan.action = "./LSQuotProjPlanSave.jsp?Operate=ADDPLAN&QuotNo="+ tQuotNo +"&QuotBatNo="+ tQuotBatNo +"&QuotType="+ tQuotType +"&MissionID="+ tMissionID +"&SubMissionID="+ tSubMissionID +"&ActivityID="+ tActivityID +"&TranProdType="+ tTranProdType;*/
|
|
// fmPlan.action = "../API/grp_quotation/g_quot/LSQuotProjPlanSave/UPDATE?Operate=ADDPLAN&QuotNo="+ tQuotNo +"&QuotBatNo="+ tQuotBatNo +"&QuotType="+ tQuotType +"&MissionID="+ tMissionID +"&SubMissionID="+ tSubMissionID +"&ActivityID="+ tActivityID +"&TranProdType="+ tTranProdType;
|
|
// submitForm(fmPlan,mOperate,true);
|
|
// }
|
|
|
|
/**
|
|
* 增加方案
|
|
*/
|
|
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 BranchReInsureRule() {
|
|
|
|
|
|
var tLoadFlag = "1"; //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 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 (arr[0][3] == '1') {
|
|
fm3.BranchIsExitName.value = '是';
|
|
|
|
} else if (arr[0][2] == '0') {
|
|
fm3.BranchIsExitName.value = '否';
|
|
}
|
|
fm3.BranchIsShortInsure.value = arr[0][4];
|
|
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 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 afterCodeSelect(cCodeType, Field) {
|
|
|
|
if (cCodeType == 'InsureType') {
|
|
if (Field.value == "5") {
|
|
// document.getElementById("OtherFBType").style.display = '';
|
|
// document.getElementById("BranchInsureNumTitlediv").style.display = 'none';
|
|
// document.getElementById("BranchInsureNumdiv").style.display = 'none';
|
|
// fm3.BranchInsureNum.value = "";
|
|
} else {
|
|
document.getElementById("OtherFBType").style.display = 'none';
|
|
fm3.OtherFBType.value = "";
|
|
|
|
if (Field.value == "2") {
|
|
// document.getElementById("BranchInsureNumTitlediv").style.display = '';
|
|
// document.getElementById("BranchInsureNumdiv").style.display = '';
|
|
} else {
|
|
// document.getElementById("BranchInsureNumTitlediv").style.display = 'none';
|
|
// document.getElementById("BranchInsureNumdiv").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;
|
|
}
|
|
downloadFile(tFilePath,tFileName,"../API/grp_common/jsp/download/DOWNLOAD");
|
|
}
|
|
|
|
|
|
function SaleInfoSave() {
|
|
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotSql");
|
|
tSQLInfo.setSqlId("LSQuotSql63");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tQuotBatNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if (tArr != null) {
|
|
for (let i = 0; i < SaleInfoGrid.mulLineCount; i++) {
|
|
if (SaleInfoGrid.getRowColData(i, 6) == "") {
|
|
alert("批复中介手续费比例不能为空!");
|
|
return false;
|
|
}
|
|
if (SaleInfoGrid.getRowColData(i, 6) >= 0 && SaleInfoGrid.getRowColData(i, 6) < 1) {
|
|
if (!checkDecimalFormat(SaleInfoGrid.getRowColData(i, 6),1,6)){
|
|
alert("批复中介手续费比例整数位不超过1位,小数位不超过3位");
|
|
return false;
|
|
}
|
|
} else {
|
|
alert("批复中介手续费比例只能为大于等于0且小于1的小数");
|
|
return false;
|
|
}
|
|
if (SaleInfoGrid.getRowColData(i, 6) > SaleInfoGrid.getRowColData(i, 5)){
|
|
alert("批复中介手续费比例不得高于申请中介手续费比例");
|
|
return false;
|
|
}
|
|
|
|
}
|
|
} else {
|
|
for (let i = 0; i < SaleInfoGrid.mulLineCount; i++) {
|
|
if (SaleInfoGrid.getRowColData(i, 6) == "0" || SaleInfoGrid.getRowColData(i, 6) == "") {
|
|
|
|
} else {
|
|
alert("销售渠道不为中介时,申请中介手续费比例只能录入0或者是空");
|
|
return false;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
for (let i = 0; i < SaleInfoGrid.mulLineCount; i++) {
|
|
if (SaleInfoGrid.getRowColData(i, 4) == "") {
|
|
alert("申请佣金比例不能为空");
|
|
return false;
|
|
}
|
|
if (SaleInfoGrid.getRowColData(i, 4) >= 0 && SaleInfoGrid.getRowColData(i, 4) < 1) {
|
|
if (!checkDecimalFormat(SaleInfoGrid.getRowColData(i, 4),1,4)){
|
|
alert("批复佣金比例整数位不超过1位,小数位不超过3位");
|
|
return false;
|
|
}
|
|
} else {
|
|
alert("批复佣金比例只能为大于等于0且小于1的小数");
|
|
return false;
|
|
}
|
|
if (SaleInfoGrid.getRowColData(i, 4) > SaleInfoGrid.getRowColData(i, 3)){
|
|
alert("批复佣金比例不得高于申请佣金比例");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
//子询价 销售费用只能调低
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotSql");
|
|
tSQLInfo.setSqlId("LSQuotSql315");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
var mumQuotFlag = easyExecSql(tSQLInfo.getString());
|
|
if (mumQuotFlag !=null){
|
|
//证明是子询价
|
|
let ScreenMap = new Map();//佣金
|
|
let ScreenMap1 = new Map();//中介
|
|
for (let i = 0; i < SaleInfoGrid.mulLineCount; i++) {
|
|
ScreenMap.set(SaleInfoGrid.getRowColData(i, 1) , parseFloat(SaleInfoGrid.getRowColData(i, 4)))
|
|
ScreenMap1.set(SaleInfoGrid.getRowColData(i, 1) , parseFloat(SaleInfoGrid.getRowColData(i, 6)))
|
|
}
|
|
|
|
let dataBaseMap = new Map();//佣金
|
|
let dataBaseMap1 = new Map();//中介
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotSql");
|
|
tSQLInfo.setSqlId("LSQuotSql324");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
var dataArr = easyExecSql(tSQLInfo.getString());
|
|
if (dataArr != null) {
|
|
for (let j = 0; j < dataArr.length; j++) {
|
|
dataBaseMap.set(dataArr[j][0], parseFloat(dataArr[j][1]))
|
|
}
|
|
}
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotSql");
|
|
tSQLInfo.setSqlId("LSQuotSql325");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
var dataArr1 = easyExecSql(tSQLInfo.getString());
|
|
if (dataArr1 != null) {
|
|
for (let j = 0; j < dataArr1.length; j++) {
|
|
dataBaseMap1.set(dataArr1[j][0], parseFloat(dataArr1[j][1]))
|
|
}
|
|
}
|
|
var stopFlag = 0;
|
|
ScreenMap.forEach((value, key) => {
|
|
if (value > dataBaseMap.get(key)) {
|
|
stopFlag++;
|
|
}
|
|
})
|
|
if (stopFlag>0){
|
|
alert("当前批复佣金比例高于母询价的批复佣金比例");
|
|
return false;
|
|
}
|
|
|
|
|
|
|
|
var stopFlag1 = 0;
|
|
ScreenMap1.forEach((value, key) => {
|
|
if (value > dataBaseMap1.get(key)) {
|
|
stopFlag1++;
|
|
}
|
|
})
|
|
if (stopFlag1>0){
|
|
alert("当前批复中介手续费比例高于母询价的批复中介手续费比例");
|
|
return false;
|
|
}
|
|
|
|
|
|
// ScreenMap.forEach((value, key) => {
|
|
// if (value > dataBaseMap.get(key)) {
|
|
// alert("当前批复佣金比例高于母询价的批复佣金比例");
|
|
// return false;
|
|
// }
|
|
// }) ;
|
|
//
|
|
// ScreenMap1.forEach((value, key) => {
|
|
// if (value > dataBaseMap1.get(key)) {
|
|
// alert("当前批复中介手续费比例高于母询价的批复中介手续费比例");
|
|
// return false;
|
|
// }
|
|
// })
|
|
}
|
|
|
|
|
|
|
|
mOperate = "SAVE";
|
|
|
|
|
|
|
|
|
|
fm3.action = "../API/grp_quotation/g_quot/LSQuotUWSaleSave/UPDATE?QuotType="+tQuotType+"&QuotNo="+tQuotNo+"&QuotBatNo="+tQuotBatNo+"&MissionID="+tMissionID+"&SubMissionID="+tSubMissionID+"&ActivityID="+tActivityID+"&Operate="+mOperate +"&TranProdType="+ tTranProdType;
|
|
submitForm(fm3);
|
|
}
|
|
|
|
|
|
function quotInfoSubmit(UserCode, ComCode) {
|
|
if (fm3.SaleAuditConclu.value != "3"){
|
|
if (fm3.SaleAuditOpinion.value == "") {
|
|
alert("请输入审核意见");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if(fm3.SaleAuditConclu.value=="" ){
|
|
alert("请输入审核结论");
|
|
return false;
|
|
}
|
|
if (fm3.SaleAuditOpinion.value.length>1500){
|
|
alert("审核意见长度不能超过1500字")
|
|
return false;
|
|
}
|
|
//销售费用审核下一个节点有两种情况 1是审批终结 2是总公司核保
|
|
//首先判断审批终结的 又分三种 1是总公司出单 2是分公司销售费用审核下一步 3是分公司销售费用审核超权限 核保费率不超经总公司销售费用审核通过
|
|
|
|
//审批终结 1总公司出单
|
|
var AuditEnd="";
|
|
// 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'){
|
|
// // AuditEnd="1";
|
|
// // }else {
|
|
// // if (tManageCom != '86')
|
|
// // //根据这两个条件判断 此节点为分公司销售费用审核
|
|
// // //2分公司销售费用审核下一步
|
|
// // AuditEnd="1";
|
|
// // }
|
|
// AuditEnd="1";
|
|
// }
|
|
//3分公司销售费用审核超权限 核保费率不超经总公司销售费用审核通过
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
|
|
tSQLInfo.setSqlId("LSQuotUWSql44");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
var arr1 = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if (arr1 !=null){
|
|
AuditEnd="1";
|
|
}
|
|
var InsureAudit="";
|
|
//是总公司核保 同时超两个权限 核保费率已经通过 销售费用当前节点超过 提交后不超过 但要在进行总公司核保
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
|
|
tSQLInfo.setSqlId("LSQuotUWSql39");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
var arr2 = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if(arr2 != null){
|
|
InsureAudit="1";
|
|
}
|
|
|
|
|
|
//销售费用审核默认下一步就走审批终结
|
|
|
|
if (InsureAudit !="1"){
|
|
AuditEnd="1";
|
|
}
|
|
|
|
|
|
mOperate = 'UWSUBMIT'
|
|
if (fm3.SaleAuditConclu.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.SaleAuditConclu.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.SaleAuditConclu.value == '1' || fm3.SaleAuditConclu.value == '5') {//同意
|
|
if (UserCode == '0' && ComCode == '0') {
|
|
|
|
|
|
if("86"!=tManageCom){
|
|
var alertStr = '';
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
|
|
tSQLInfo.setSqlId("LSQuotUWSql578");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tManageCom);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
var arrPlanMedDiscount = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if (arrPlanMedDiscount !=null){
|
|
for (let i = 0; i < arrPlanMedDiscount.length; i++) {
|
|
if (arrPlanMedDiscount[i][1] == '1'){
|
|
alertStr +="险种:"+arrPlanMedDiscount[i][0] + "销售费用超权限,超过分公司销售费用上限;\n";
|
|
}
|
|
}
|
|
}
|
|
|
|
if (alertStr !=""){
|
|
if (!confirm("该询价已触发\n"+alertStr+"是否继续?")){
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
var strUrl = "LSQuotQueryUserAddMain.jsp?QuotNo=" + tQuotNo + "&ActionFlag=0&IsHealthy=" + IsHealthy + "&AuditEnd="+AuditEnd+"&InsureAudit="+InsureAudit+"&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 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 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 (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 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 checkFileSuffix() {
|
|
|
|
var tFilePath = fm2.UploadPath.value;
|
|
|
|
if (tFilePath != null && tFilePath != "") {
|
|
|
|
var tFileName = tFilePath.substring(tFilePath.lastIndexOf("\\") + 1);
|
|
var pattern2 = /^[^\s\+\&]+$/;
|
|
if (!pattern2.test(tFileName)) {
|
|
i18nAlert("上传的文件不能含有空格、‘+’,‘&’!", "LIS-04690");
|
|
return false;
|
|
}
|
|
|
|
var tFileSuffix = tFilePath.substring(tFilePath.lastIndexOf("."));
|
|
if (tFileSuffix == ".eml" || tFileSuffix == ".EML" || tFileSuffix == ".txt" || tFileSuffix == ".TXT" ||
|
|
tFileSuffix == ".doc" || tFileSuffix == ".DOC" || tFileSuffix == ".docx" || tFileSuffix == ".DOCX" ||
|
|
tFileSuffix == ".xls" || tFileSuffix == ".XLS" || tFileSuffix == ".xlsx" || tFileSuffix == ".XLSX" ||
|
|
tFileSuffix == ".pdf" || tFileSuffix == ".PDF" || tFileSuffix == ".zip" || tFileSuffix == ".ZIP" ||
|
|
tFileSuffix == ".rar" || tFileSuffix == ".RAR" || tFileSuffix == ".gif" || tFileSuffix == ".GIF") {
|
|
} else {
|
|
i18nAlert("不支持此文件类型上传!", "LIS-04691");
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
|
|
}
|
|
|
|
/**
|
|
* 查询流程是否经过中支公司核保,处理中支信息展示
|
|
*/
|
|
function querySubUWFlag() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
|
|
tSQLInfo.setSqlId("LSQuotUWSql27");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tQuotBatNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
var tResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
|
|
return tResult[0][0];
|
|
|
|
}
|
|
|
|
/**
|
|
* 查询流程是否经过总公司核保,处理总公司核保信息展示
|
|
*/
|
|
function queryTotalFlag() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
|
|
tSQLInfo.setSqlId("LSQuotUWSql28");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tQuotBatNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
var tResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
|
|
return tResult[0][0];
|
|
|
|
}
|
|
|
|
|
|
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 BranchReInsureSave() {
|
|
// if (fm3.BranchInsureType.value == '2') {
|
|
// if (fm3.BranchInsureNum.value == "") {
|
|
// alert("分保方式选择临分时,请输入分保编码。");
|
|
// return false;
|
|
// } else {
|
|
// //取数据库查询分保编码是否重复
|
|
// }
|
|
// } else if (fm3.BranchInsureType.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 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 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 returnShowCode(value1, value2, value3, returnType) {
|
|
var fankui = '0';
|
|
if (value1 == 'UWSale') {
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotUWSql");
|
|
tSQLInfo.setSqlId("LSQuotUWSql39");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
var arr2 = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if (arr2 != null) {
|
|
fankui = '1';
|
|
}
|
|
if (fankui == '1') {
|
|
return showCodeList('uwconcluspecldcode', value2, value3, null, 'spec', 'CodeAlias', '1', 180);
|
|
|
|
|
|
} else {
|
|
return showCodeList('uwconcluspecldcode', value2, value3, null, 'common', 'OtherSign', '1', 180);
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
function returnShowCodeList(value1, value2, value3) {
|
|
|
|
returnShowCode(value1, value2, value3, '0');
|
|
}
|
|
|
|
|
|
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 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]);
|
|
}
|
|
} |