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

ProName:LCGroupContRevokeInput.js

*

Title:投保单撤销

*

Description:投保单撤销

*

Copyright:Copyright (c) 2014

*

Company:Sinosoft

* @author : withxiaoqi * @version : 8.0 * @date : 2014-01-01 ****************************************************************/ var showInfo; var turnPage = new turnPageClass(); var turnPage1 = new turnPageClass(); var tSQLInfo = new SqlClass(); /** * 查询 */ function queryDekay() { tSQLInfo1 = new SqlClass(); tSQLInfo1.setResourceName("g_app.LCGroupContRevokeSql"); tSQLInfo1.setSqlId("LCGroupContContClassReviseSql7"); tSQLInfo1.addSubPara(tCurrentDate); tSQLInfo1.addSubPara(fm.GrpPropNo.value); tSQLInfo1.addSubPara(fm.ManageCom.value); tSQLInfo1.addSubPara(tManageCom); tSQLInfo1.setModule("grp_nb"); turnPage1.queryModal(tSQLInfo1.getString(),PaymentDelayGrid, 1 , 1 ); if (!turnPage1.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); } } /** * 投保单撤销 */ function contRevoke() { var tSelNo = PaymentDelayGrid.getSelNo()-1; if (tSelNo<0) { i18nAlert("请选中一条信息", "LIS-01940"); return false; } var grpContNo=PaymentDelayGrid.getRowColData(tSelNo,1); var PayableDate=PaymentDelayGrid.getRowColData(tSelNo,2); fm.action = "../API/grp_nb/g_app/LCGrpContPayDelay/ADD?Operate=Delay&GrpContNo="+PaymentDelayGrid.getRowColData(tSelNo,1) +"&PayableDate="+ PaymentDelayGrid.getRowColData(tSelNo,2); submitForm(); } /** * 提交数据 */ function submitForm() { var showStr = i18nMessage("正在处理数据,请您稍候并且不要修改屏幕上的值或链接其他页面!", "LIS-04535"); var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content="+ encodeURIComponent(showStr); //showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=250; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); ajaxSubmit2(document.getElementById("fm")); } /** * 提交数据后返回操作 */ 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; //获得窗口的水平位置 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("该保单已延长7天交费期间。"); //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; //获得窗口的水平位置 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(); } }