/*************************************************************** *
ProName:LLClaimMajorMainInput.js
*Title:重大案件上报公共池界面
*Description:重大案件上报公共池界面
*Copyright:Copyright (c) 2012
*Company:Sinosoft
* @author : 高冬华 * @version : 8.0 * @date : 2012-01-01 ****************************************************************/ var showInfo; var turnPage = new turnPageClass(); var turnPage1 = new turnPageClass(); var tSQLInfo = new SqlClass(); /** * 查询报案列表 */ function queryClick() { //校验录入机构级别 var tComGrade; tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimMajorAppSql"); tSQLInfo.setSqlId("LLClaimMajorAppSql2"); tSQLInfo.addSubPara(mManageCom); tArr = null; tArr = easyExecSql(tSQLInfo.getString()); //判断是否查询成功 if (tArr==null || tArr.length==0) { i18nAlert("未查询到登录机构的机构级别!", "LIS-04499"); return false; } else { tComGrade = tArr[0][0]; } tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimMajorAppSql"); if (tComGrade=="01") { tSQLInfo.setSqlId("LLClaimMajorAppSql1"); } else if (tComGrade=="02") { tSQLInfo.setSqlId("LLClaimMajorAppSql"); } else { i18nAlert("请使用总公司或分公司进行查询!", "LIS-16336"); //其他级别没有sqlid会导致“请求失败” return; } tSQLInfo.addSubPara(document.all('RptNo').value); tSQLInfo.addSubPara(document.all('GrpName').value); tSQLInfo.addSubPara(document.all('RptCom').value); tSQLInfo.addSubPara(document.all('CustomerName').value); tSQLInfo.addSubPara(document.all('RptDateStart').value); tSQLInfo.addSubPara(document.all('RptDateEnd').value); tSQLInfo.addSubPara(mManageCom); turnPage1.queryModal(tSQLInfo.getString(),LLClaimReportGrid,2); if (!turnPage1.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); return; } } /** * 查询报案明细 */ function showRptDetail() { var tSelNo = LLClaimReportGrid.getSelNo()-1; if (tSelNo<0) { i18nAlert("请选择公共池中一条报案信息", "LIS-04340"); return false; } var tRptNo = LLClaimReportGrid.getRowColData(tSelNo,1); if (tRptNo==null || tRptNo=="") { i18nAlert("请先查询出险人事件信息!", "LIS-04341"); return; } window.location.href="LLClaimReportInput.jsp?Type=3&RptNo="+ tRptNo; } /** * 进入案件 */ function enterReport(parm1) { var tSelNo; if (parm1!=null && parm1!="") { tSelNo = document.all(parm1).all("LLClaimReportGridNo").value; tSelNo = tSelNo - turnPage1.pageIndex*turnPage1.pageLineNum; LLClaimReportGrid.radioSel(tSelNo); tSelNo = tSelNo - 1; } else { tSelNo = LLClaimReportGrid.getSelNo() - 1; } if (tSelNo<0) { i18nAlert("请选择公共池中一条报案信息", "LIS-04340"); return false; } var tRptNo = LLClaimReportGrid.getRowColData(tSelNo,1); if (tRptNo==null || tRptNo=="") { i18nAlert("请先查询出险人事件信息!", "LIS-04341"); return; } window.location.href="LLClaimReportInput.jsp?Type=4&RptNo="+ tRptNo; } /** * 提交数据 */ function submitForm() { var showStr = i18nMessage("正在处理数据,请您稍候并且不要修改屏幕上的值或链接其他页面!", "LIS-04535"); var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content="+ encodeURIComponent(showStr); //showInfo = showDialogWindow(urlStr, 0); var name='提示'; //网页名称,可为空; var iWidth=1; //弹出窗口的宽度; var iHeight=1; //弹出窗口的高度; 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); //showDialogWindow(urlStr, 1); var name='提示'; //网页名称,可为空; var iWidth=1; //弹出窗口的宽度; var iHeight=1; //弹出窗口的高度; 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(); } else { var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content="+ encodeURIComponent(content); //showDialogWindow(urlStr, 1); var name='提示'; //网页名称,可为空; var iWidth=1; //弹出窗口的宽度; var iHeight=1; //弹出窗口的高度; 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(); } } /** * 下拉框选择以后调用 */ function afterCodeSelect(cCodeName, Field) { if(cCodeName == '') { } }