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.
162 lines
5.8 KiB
162 lines
5.8 KiB
/***************************************************************
|
|
* <p>ProName:RenewalBackInput.js</p>
|
|
* <p>Title:抽档回退</p>
|
|
* <p>Description:抽档回退</p>
|
|
* <p>Copyright:Copyright (c) 2012</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : 蔡云聪
|
|
* @version : 8.0
|
|
* @date : 2014-06-17
|
|
****************************************************************/
|
|
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();
|
|
var turnPage1 = new turnPageClass();
|
|
var turnPage2 = new turnPageClass();
|
|
var mOperate = "";//操作状态
|
|
var tSQLInfo = new SqlClass();
|
|
|
|
/**
|
|
* 查询
|
|
*/
|
|
function queryClick(o) {
|
|
if (fm.Days.value!="" && !isInteger(fm.Days.value)) {
|
|
i18nAlert("【待催缴保单天数】不是有效的整数!", "LIS-05923");
|
|
return false;
|
|
}
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_renewal.RenewalBackSql");
|
|
tSQLInfo.setModule("grp_renewal");
|
|
tSQLInfo.setSqlId("RenewalBackSql1");
|
|
tSQLInfo.addSubPara(tManageCom);
|
|
tSQLInfo.addSubPara(fm.ManageCom.value);
|
|
tSQLInfo.addSubPara(fm.GrpContNo.value);
|
|
tSQLInfo.addSubPara(fm.GrpName.value);
|
|
tSQLInfo.addSubPara(fm.StartOperDate.value);
|
|
tSQLInfo.addSubPara(fm.EndOperDate.value);
|
|
tSQLInfo.addSubPara(fm.StartPayDate.value);
|
|
tSQLInfo.addSubPara(fm.EndPayDate.value);
|
|
tSQLInfo.addSubPara(fm.PayIntv.value);
|
|
if(isInteger(fm.Days.value)){
|
|
tSQLInfo.addSubPara(addDate(4,-fm.Days.value,tCurrentDate));
|
|
tSQLInfo.addSubPara(addDate(4,fm.Days.value,tCurrentDate));
|
|
}else{
|
|
tSQLInfo.addSubPara("");
|
|
tSQLInfo.addSubPara("");
|
|
}
|
|
tSQLInfo.addSubPara(tManageCom);
|
|
tSQLInfo.addSubPara(tManageCom);
|
|
|
|
initRiskInfoGrid();
|
|
initContInfoGrid();
|
|
turnPage1.queryModal(tSQLInfo.getString(),ContInfoGrid, 1 , 1);
|
|
if (o=="1" && !turnPage1.strQueryResult) {
|
|
i18nAlert("未查询到符合条件的查询结果!", "LIS-03016");
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 提交
|
|
*/
|
|
function submitForm() {
|
|
|
|
var i = 0;
|
|
var showStr = i18nMessage("正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04525");
|
|
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();
|
|
|
|
//fm.submit();
|
|
ajaxSubmit2(document.getElementById("fm"));
|
|
}
|
|
|
|
/**
|
|
* 提交后操作,服务器数据返回后执行的操作
|
|
*/
|
|
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; //获得窗口的水平位置
|
|
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; //获得窗口的水平位置
|
|
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();
|
|
queryClick("0");
|
|
}
|
|
}
|
|
/**
|
|
*展示险种信息
|
|
*/
|
|
function showRiskDivInfo(){
|
|
DivRiskInfo.style.display='';
|
|
}
|
|
|
|
/**
|
|
* 查询
|
|
*/
|
|
function showRiskInfo() {
|
|
|
|
showRiskDivInfo();
|
|
var tSelNo = ContInfoGrid.getSelNo()-1;
|
|
if (tSelNo<0) {
|
|
i18nAlert("请选择要操作的记录!", "LIS-02720");
|
|
return false;
|
|
}
|
|
var getNoticeNo = ContInfoGrid.getRowColData(tSelNo, 1);
|
|
var payCount = ContInfoGrid.getRowColData(tSelNo, 10);
|
|
var grpContNo = ContInfoGrid.getRowColData(tSelNo, 3);
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_renewal.RenewalBackSql");
|
|
tSQLInfo.setModule("grp_renewal");
|
|
tSQLInfo.setSqlId("RenewalBackSql2");
|
|
tSQLInfo.addSubPara(payCount);
|
|
tSQLInfo.addSubPara(grpContNo);
|
|
|
|
initRiskInfoGrid();
|
|
turnPage2.queryModal(tSQLInfo.getString(),RiskInfoGrid, 1 , 1);
|
|
}
|
|
/**
|
|
* 手工回退
|
|
*/
|
|
function reback(){
|
|
|
|
var tSelNo = ContInfoGrid.getSelNo()-1;
|
|
if (tSelNo<0) {
|
|
i18nAlert("请选择要回退的记录!", "LIS-05925");
|
|
return false;
|
|
}
|
|
var tRenewalNo = ContInfoGrid.getRowColData(tSelNo, 1);
|
|
|
|
mOperate="REBACK";
|
|
//fm.action = "./RenewalBackSave.jsp?Operate="+ mOperate +"&RenewalType=Manu&RenewalNo="+tRenewalNo;
|
|
fm.action = "../API/grp_renewal/g_renewal/RenewalBackSave/REBACK?Operate="+ mOperate +"&RenewalType=Manu&RenewalNo="+tRenewalNo;
|
|
submitForm();
|
|
}
|
|
|