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.
185 lines
6.2 KiB
185 lines
6.2 KiB
/***************************************************************
|
|
* <p>ProName:LCSecondUWInput.js</p>
|
|
* <p>Title:理赔二核</p>
|
|
* <p>Description:理赔二核</p>
|
|
* <p>Copyright:Copyright (c) 2012</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : weigh
|
|
* @version : 8.0
|
|
* @date : 2014-04-22
|
|
****************************************************************/
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();
|
|
var turnPage1 = new turnPageClass();
|
|
var turnPage2 = new turnPageClass();
|
|
var mOperate = "";//操作状态
|
|
var tSQLInfo = new SqlClass();
|
|
|
|
/**
|
|
* 查询
|
|
*/
|
|
function queryClick1() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_nb");
|
|
tSQLInfo.setResourceName("g_app.LCPropPrintSql");
|
|
tSQLInfo.setSqlId("LCPropPrintSql8");
|
|
tSQLInfo.addSubPara(document.getElementById("ManageCom").value);
|
|
tSQLInfo.addSubPara(document.getElementById("ClmNo").value);
|
|
tSQLInfo.addSubPara("");
|
|
|
|
turnPage1.queryModal(tSQLInfo.getString(), AduioGrid, 1);
|
|
}
|
|
|
|
/**
|
|
* 查询
|
|
*/
|
|
function queryClick2() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_nb");
|
|
tSQLInfo.setResourceName("g_app.LCPropPrintSql");
|
|
tSQLInfo.setSqlId("LCPropPrintSql9");
|
|
tSQLInfo.addSubPara(tOperator);
|
|
|
|
turnPage.queryModal(tSQLInfo.getString(), PersonalGrid, 1);
|
|
|
|
}
|
|
|
|
function AppByRgtNo(){
|
|
var tRow = AduioGrid.getSelNo();
|
|
if (tRow==0) {
|
|
i18nAlert("请选择一条信息!", "LIS-03743");
|
|
return false;
|
|
}
|
|
//校验赔付金额是否超过配置的个人理赔金额
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_nb");
|
|
tSQLInfo.setResourceName("g_app.LCPropPrintSql");
|
|
tSQLInfo.setSqlId("LCPropPrintSql15");
|
|
tSQLInfo.addSubPara(tOperator);
|
|
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if(tArr != null && tArr != "" && AduioGrid.getRowColData(tRow-1,6) != null && AduioGrid.getRowColData(tRow-1,6) != ""){
|
|
if(tArr[0][0] < Number(AduioGrid.getRowColData(tRow-1,6))){
|
|
alert("此赔案的赔付金额已超过个人理赔金额,无权限进行审核操作!");
|
|
return false;
|
|
}
|
|
}
|
|
var tRgtNo = AduioGrid.getRowColData(tRow-1,2);
|
|
fm.action = "../API/grp_nb/g_app/LCSecondUWSave/UPDATE?rgtNo="+tRgtNo+"&Operate=APP";
|
|
submitForm();
|
|
initForm();
|
|
}
|
|
|
|
|
|
/**
|
|
* 下拉后处理
|
|
*/
|
|
function afterCodeSelect(CodeName, Field ){
|
|
|
|
if(CodeName == "distritype") {
|
|
if(fm.branchSub.value=="0"){
|
|
divr1.style.display="";
|
|
divr2.style.display="none";
|
|
divr3.style.display="none";
|
|
initYearDistributionGrid();
|
|
queryInfo();
|
|
}else if(fm.branchSub.value=="1"){
|
|
divr1.style.display="";
|
|
divr2.style.display="";
|
|
divr3.style.display="none";
|
|
initYearDistributionGrid();
|
|
}else if(fm.branchSub.value=="2"){
|
|
divr1.style.display="";
|
|
divr2.style.display="none";
|
|
divr3.style.display="";
|
|
initYearDistributionGrid();
|
|
}
|
|
}
|
|
|
|
if(CodeName=='contplan'){
|
|
if(fm.ContPlanCode.value!=''){
|
|
queryInfo();
|
|
}
|
|
}
|
|
|
|
if(CodeName=='contplanrisk'){
|
|
if(fm.RiskCode.value!=''){
|
|
queryInfo();
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 业务需求
|
|
*/
|
|
function showRequest() {
|
|
|
|
var tRow = PersonalGrid.getSelNo();
|
|
if (tRow==0) {
|
|
i18nAlert("请选择一条信息!", "LIS-03743");
|
|
return false;
|
|
}
|
|
var tRgtNo = PersonalGrid.getRowColData(tRow-1,2);
|
|
|
|
var strUrl ="./LCArtificialUWMain.jsp?RgtNo="+tRgtNo;
|
|
window.open(strUrl,'LCArtificialUWMain','width='+screen.availWidth+',height='+screen.availHeight+',channelmode=yes,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
|
|
|
|
|
|
}
|
|
|
|
//提交,保存按钮对应操作
|
|
function submitForm()
|
|
{
|
|
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();
|
|
|
|
ajaxSubmit(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();
|
|
// queryCoinsuranceInfo();
|
|
initInpBox();
|
|
}
|
|
}
|
|
|