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.
287 lines
9.6 KiB
287 lines
9.6 KiB
/***************************************************************
|
|
* <p>ProName:LSQuotProjDetailViewInput.js</p>
|
|
* <p>Title:查看报价单(一般询价)</p>
|
|
* <p>Description:查看报价单(一般询价)</p>
|
|
* <p>Copyright:Copyright (c) 2012</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : 张成
|
|
* @version : 8.0
|
|
* @date : 2014-05-19
|
|
****************************************************************/
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();
|
|
var turnPage1 = new turnPageClass();
|
|
var turnPage2 = new turnPageClass();
|
|
var turnPage3 = new turnPageClass();
|
|
var turnPage4 = new turnPageClass();
|
|
var tTranPremMode;//保费分摊方式
|
|
var tAllDetailOpen;
|
|
|
|
/**
|
|
* 提交数据
|
|
*/
|
|
function submitForm(obj) {
|
|
|
|
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; //获得窗口的水平位置
|
|
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();
|
|
// obj.submit();
|
|
ajaxSubmit2(obj);
|
|
}
|
|
|
|
/**
|
|
* 提交数据后返回操作
|
|
*/
|
|
function afterSubmit(FlagStr, content) {
|
|
|
|
if (typeof(showInfo)=="object" && typeof(showInfo)!="unknown") {
|
|
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 {
|
|
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();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 初始化询价第一步信息
|
|
*/
|
|
function initQuotStep1() {
|
|
|
|
fm2.QuotNo.value = tQuotNo;
|
|
fm2.QuotBatNo.value = tQuotBatNo;
|
|
|
|
//初始化基础信息
|
|
initBasicInfo();
|
|
|
|
document.getElementById("divPlanDiv").innerHTML = showPlanDiv("1");
|
|
document.getElementById("divPayIntvDiv").innerHTML = showPayIntvDiv("1");
|
|
document.getElementById("divSaleChnlDiv").innerHTML = showSaleChnlDiv("1");
|
|
|
|
}
|
|
|
|
/**
|
|
* 项目询价--初始化基础信息
|
|
*/
|
|
function initBasicInfo() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotProjBasicSql");
|
|
tSQLInfo.setSqlId("LSQuotProjBasicSql1");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tQuotBatNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
var tBasicArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if (tBasicArr==null) {
|
|
return false;
|
|
} else {
|
|
|
|
var tBasicInfo = new Array();
|
|
var i = 0;
|
|
tBasicInfo[i] = "";
|
|
tBasicInfo[i++] = "ProjName";
|
|
tBasicInfo[i++] = "TargetCust";
|
|
tBasicInfo[i++] = "NumPeopleA";
|
|
tBasicInfo[i++] = "PrePrem";
|
|
tBasicInfo[i++] = "PreLossRatio";
|
|
tBasicInfo[i++] = "Partner";
|
|
tBasicInfo[i++] = "ExpiryDate";
|
|
tBasicInfo[i++] = "ProdType";
|
|
tBasicInfo[i++] = "ProdTypeName";
|
|
tBasicInfo[i++] = "BlanketFlag";
|
|
tBasicInfo[i++] = "BlanketFlagName";
|
|
tBasicInfo[i++] = "ElasticFlag";
|
|
tBasicInfo[i++] = "ElasticFlagName";
|
|
tBasicInfo[i++] = "ProjDesc";
|
|
|
|
for(var t=0; t<i; t++) {
|
|
document.getElementById(tBasicInfo[t]).value = tBasicArr[0][t];
|
|
}
|
|
|
|
var tProdType = fm2.ProdType.value;
|
|
if (tProdType == "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 = '';
|
|
}
|
|
}
|
|
|
|
//关联适用机构
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotProjBasicSql");
|
|
tSQLInfo.setSqlId("LSQuotProjBasicSql3");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tQuotBatNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
if (!noDiv(turnPage2, AppOrgCodeGrid, tSQLInfo.getString())) {
|
|
initAppOrgCodeGrid();
|
|
return false;
|
|
}
|
|
|
|
//关联其他项目询价号既往信息
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotProjBasicSql");
|
|
tSQLInfo.setSqlId("LSQuotProjBasicSql6");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tQuotBatNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
if (!noDiv(turnPage4, LinkInquiryNoGrid, tSQLInfo.getString())) {
|
|
initLinkInquiryNoGrid();
|
|
return false;
|
|
}
|
|
|
|
if (LinkInquiryNoGrid.mulLineCount>0) {
|
|
|
|
document.getElementById('LinkInquiryNo').checked = true;
|
|
document.getElementById('divLinkInquiryNo').style.display = '';
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 展示中介机构名称
|
|
*/
|
|
function showAgencyInfo() {
|
|
|
|
//关联中介名称
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotProjBasicSql");
|
|
tSQLInfo.setSqlId("LSQuotProjBasicSql5");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tQuotBatNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
if (!noDiv(turnPage3, AgencyNameGrid, tSQLInfo.getString())) {
|
|
initAgencyNameGrid();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 初始化方案信息
|
|
*/
|
|
function initQuotStep2() {
|
|
|
|
queryPlanInfo();
|
|
pubInitQuotStep2(fm2, tQuotType, tTranProdType, tTranPremMode, '');
|
|
}
|
|
|
|
/**
|
|
* 初始化方案信息查询
|
|
*/
|
|
function queryPlanInfo() {
|
|
|
|
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, 2, 1);
|
|
}
|
|
/**
|
|
* 选择方案记录后处理
|
|
*/
|
|
function showPlanDetailInfo() {
|
|
|
|
document.getElementById('divInfo2').style.display = '';
|
|
pubShowPlanInfo(fm2, tQuotType, tTranProdType);
|
|
fm2.SexRate.value = fm2.MaleRate.value + " : " + fm2.FemaleRate.value;
|
|
}
|
|
|
|
|
|
/**
|
|
* 关闭方案明细
|
|
*/
|
|
function closePlanDetail() {
|
|
|
|
document.getElementById('divInfo2').style.display = 'none';
|
|
}
|
|
|
|
/**
|
|
* 查询核保处理信息
|
|
*/
|
|
function queryFinalConclu() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotPrintSql");
|
|
tSQLInfo.setSqlId("LSQuotPrintSql6");
|
|
tSQLInfo.addSubPara(tQuotNo);
|
|
tSQLInfo.addSubPara(tQuotBatNo);
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
var tArrUW = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
|
|
if (tArrUW != null){
|
|
if (tArrUW[0][2]==null || tArrUW[0][2] == "") {
|
|
|
|
fm2.FinalOpinion.value = tArrUW[0][3];
|
|
fm2.FinalConclu.value = tArrUW[0][4];
|
|
fm2.FinalConcluName.value = tArrUW[0][5];
|
|
|
|
} else {
|
|
fm2.FinalOpinion.value = tArrUW[0][0];
|
|
fm2.FinalConclu.value = tArrUW[0][1];
|
|
fm2.FinalConcluName.value = tArrUW[0][2];
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 方案明细
|
|
*/
|
|
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 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");
|
|
}
|
|
|