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

ProName:LCQualityExamineInfoInput.js

*

Title:质检任务审查核保页面

*

Description:质检任务审查核保页面

*

Copyright:Copyright (c) 2012

*

Company:Sinosoft

* @author : 蔡云聪 * @version : 8.0 * @date : 2014-04-22 ****************************************************************/ var showInfo; var turnPage = new turnPageClass(); var turnPage1 = new turnPageClass(); var tSQLInfo = new SqlClass(); /** * 查询询价信息 */ function queryClick() { tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_pa"); tSQLInfo.setResourceName("g_pos.EdorMassCheckQualityQueryInfoSQL"); tSQLInfo.setSqlId("queryLPGrpMessCheckAll"); tSQLInfo.addSubPara(document.getElementById('ManageCom').value); tSQLInfo.addSubPara(document.getElementById('EdorAcceptNo').value); tSQLInfo.addSubPara(document.getElementById('IfError').value); tSQLInfo.addSubPara(document.getElementById('QualityStartDate').value); tSQLInfo.addSubPara(document.getElementById('QualityEndDate').value); turnPage2.queryModal(tSQLInfo.getString(), AssignedGrid, 1, 1); } /** * 数据导出 */ function qualitydownload() { if (!i18nConfirm("确认要导出数据?", "LIS-00694")) { return false; } //报表标题 var tTitle = "管理机构^|保全项目^|投保单位名称^|保单号^|保全生效日期^|保全受理日期^|收付费金额^|已分配机构^|已分配机构^|质检人^|分配日期^|质检完成日期^|是否差错^|扣分分值^|差错明细^|批次号"; tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_nb"); tSQLInfo.setResourceName("g_app.EdorMassCheckQualityQueryInfoSQL"); tSQLInfo.setSqlId("queryLPGrpMessCheckAll"); tSQLInfo.addSubPara(document.getElementById('ManageCom').value); tSQLInfo.addSubPara(document.getElementById('EdorAcceptNo').value); tSQLInfo.addSubPara(document.getElementById('IfError').value); tSQLInfo.addSubPara(document.getElementById('QualityStartDate').value); tSQLInfo.addSubPara(document.getElementById('QualityEndDate').value); var tQuerySQL = tSQLInfo.getString(); fm.action = "../API/grp_common/jsp/QueryDataExport/EXPORT"; //ajaxSubmit2(fm, null, null, true, tTitle, tQuerySQL); ajaxSubmit2(document.getElementById("fm"), null, null, true, tTitle, tQuerySQL); } /** * 查询质检结论 */ function queryClick2() { tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_nb"); tSQLInfo.setResourceName("g_app.LCQualitySql"); tSQLInfo.setSqlId("LCQualitySql7"); tSQLInfo.addSubPara(tGrpContNo); tSQLInfo.addSubPara(tPatchNo); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArr == null) { alert("未查询到数据!"); return false; } else { document.getElementById("IfError").value = tArr[0][0]; document.getElementById("IfErrorName").value = tArr[0][1]; document.getElementById("LoseScores").value = tArr[0][2]; document.getElementById("ErrorDetails").value = tArr[0][3]; } } function queryCode() { var tSelNo = UserAuthorizeGrid.getSelNo(); if (tSelNo == '0') { i18nAlert("请选择一条用户信息!"); return false; } fm.userCode1.value = UserAuthorizeGrid.getRowColData(tSelNo - 1, 1); fm.userName.value = UserAuthorizeGrid.getRowColData(tSelNo - 1, 2); fm.ManageCom1.value = UserAuthorizeGrid.getRowColData(tSelNo - 1, 3); fm.ManageComName.value = UserAuthorizeGrid.getRowColData(tSelNo - 1, 4); fm.organPopedom.value = UserAuthorizeGrid.getRowColData(tSelNo - 1, 5); fm.organPopedomName.value = UserAuthorizeGrid.getRowColData(tSelNo - 1, 6); fm.healthyPopedom.value = UserAuthorizeGrid.getRowColData(tSelNo - 1, 7); fm.healthyPopedomName.value = UserAuthorizeGrid.getRowColData(tSelNo - 1, 8); } /** * 进入投保书信息录入 */ function propInfo() { var tRow = PropInfoGrid.getSelNo(); var tSelNo = PropInfoGrid.getSelNo() - 1; if (tRow == 0) { i18nAlert("请选择一条信息!", "LIS-03743"); return false; } var tGrpPropNo = PropInfoGrid.getRowColData(tSelNo, 1); window.location = "./LCPropEntryInput.jsp?GrpPropNo=" + tGrpPropNo; } /** * 生成投保书信息录入 */ function createPrintInfo() { var tSelNo = PatchNoGrid.getChkCount(); if (tSelNo < 1) { i18nAlert("请选中一条投保信息", "LIS-01940"); return false; } /*fm.action = "./LCPropPrintSave.jsp?Operate=CREATE&OfferListNo=" + tOfferListNo ;*/ fm.action = "../API/grp_nb/g_app/LCQualityController/CREATE?Operate=CREATE"; submitForm(fm, true); queryClick(); } /** * 生成投保书信息录入 */ function createPrintInfo2() { if (document.getElementById("ManageCom2").value == null || document.getElementById("ManageCom2").value == '') { alert("请选择机构!") return false; } var tSelNo = AssignedGrid.getChkCount(); if (tSelNo < 1) { i18nAlert("请选中一条投保信息", "LIS-01940"); return false; } /*fm.action = "./LCPropPrintSave.jsp?Operate=CREATE&OfferListNo=" + tOfferListNo ;*/ fm.action = "../API/grp_nb/g_app/LCQualityController/UPDATE?Operate=UPDATE"; submitForm(fm, true); initForm(); } function Delete1() { var tSelNo = AssignedGrid.getChkCount(); if (tSelNo < 1) { i18nAlert("请选中一条投保信息", "LIS-01940"); return false; } fm.action = "../API/grp_nb/g_app/LCQualityController/DELETE1?Operate=DELETE1"; submitForm(fm, true); queryClick1(); } function save() { if (document.getElementById("IfError").value == null || document.getElementById("IfError").value == '') { alert("请填写差错类型"); return false; } if (document.getElementById("IfError").value == '1') { if (document.getElementById("LoseScores").value == null || document.getElementById("LoseScores").value == '') { alert("差错类型为是,请填写扣分分值!"); return false; } else { const reg = /^([0-9][0-9]{0,1}|100)$/ //注意此处细节 if (reg.test(document.getElementById("LoseScores").value) == false) { alert("扣分分值只能是大于等于0,小于等于100的正整数!"); return false; } } if (document.getElementById("ErrorDetails").value == null || document.getElementById("ErrorDetails").value == '') { alert("差错类型为是,请填写差错描述!"); return false; } } fm.action = "../API/grp_nb/g_app/LCQualityController/SAVE?Operate=SAVE&GrpContNo=" + tGrpContNo + "&PatchNo=" + tPatchNo; submitForm(fm, true); initForm(); } function qualitySubmit() { fm.action = "../API/grp_nb/g_app/LCQualityController/SUBMIT?Operate=SUBMIT&GrpContNo=" + tGrpContNo + "&PatchNo=" + tPatchNo; submitForm(fm, true); initForm(); } function printAfterSubmit(flagStr, content, result) { afterSubmit(flagStr, content, result.tGrpPropNo) } /** * 提交数据 */ function submitForm(obj, dynamic) { 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(); if (dynamic != null && dynamic === true) { ajaxSubmit(obj); } else { ajaxSubmit2(obj); } initForm(); } function checkSubmit() { if (fm.userCode1.value == null || fm.userCode1.value == "") { i18nAlert("用户编码不能为空!", "LIS-05943"); return false; } if (fm.userName.value == null || fm.userName.value == "") { i18nAlert("用户名称不能为空!", ""); return false; } if (fm.ManageCom1.value == null || fm.ManageCom1.value == "") { i18nAlert("管理机构不能为空!", ""); return false; } if (fm.organPopedom.value == null || fm.organPopedom.value == "") { i18nAlert("团险业务操作不能为空!", ""); return false; } if (fm.healthyPopedom.value == null || fm.healthyPopedom.value == "") { i18nAlert("健康险业务操作不能为空!", ""); return false; } return true; } function submitFunc() { 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(); } function afterSubmit(FlagStr, content, cQuotNo, cQuotBatNo) { 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 queryClickDow() { if (!i18nConfirm("确认要导出数据?", "LIS-00694")) { return false; } //报表标题 // var tTitle = "保全受理号^|批单号^|团体保单号^|投保人名称^|批改类型编码^|批改状态^|补/退费金额^|受理机构^|受理日期"; var tTitle = "管理机构^|保全项目^|投保单位名称^|保单号^|保全生效日期^|保全受理日期^|收付费金额^|已分配机构^|质检人^|分配日期^|质检完成日期^|是否差错^|扣分分值^|差错明细"; tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_pa"); tSQLInfo.setResourceName("g_pos.EdorMassCheckQualityQueryInfoSQL"); tSQLInfo.setSqlId("queryLPGrpMessCheckAllDow"); tSQLInfo.addSubPara(document.getElementById('ManageCom').value); tSQLInfo.addSubPara(document.getElementById('EdorAcceptNo').value); tSQLInfo.addSubPara(document.getElementById('IfError').value); tSQLInfo.addSubPara(document.getElementById('QualityStartDate').value); tSQLInfo.addSubPara(document.getElementById('QualityEndDate').value); var tQuerySQL = tSQLInfo.getString(); fm.action = "../API/grp_common/jsp/QueryDataExport/EXPORT"; //ajaxSubmit2(fm, null, null, true, tTitle, tQuerySQL); ajaxSubmit2(document.getElementById("fm"), null, null, true,tTitle, tQuerySQL); }