/*************************************************************** *
ProName:EdorMassCheckDistributeInput.js
*Title:保全质检分配
*Description:保全质检分配
*Copyright:Copyright (c) 2012
*Company:Sinosoft
* @author : lisy * @version : 8.0 * @date : 2024-12-17 ****************************************************************/ var showInfo; var turnPage = new turnPageClass(); var turnPage1 = new turnPageClass(); var turnPage2 = new turnPageClass(); var mOperate = "";//操作状态 var tSQLInfo = new SqlClass(); var tSQLInfo1 = new SqlClass(); var tSQLInfo2 = new SqlClass(); /** * 查询(批次查询结果) */ function queryClick() { tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_pa"); tSQLInfo.setResourceName("g_pos.EdorMassCheckDistributeSql"); tSQLInfo.setSqlId("queryMassCHeckInfoByLPGrpEdoritem"); tSQLInfo.addSubPara(tManageCom); tSQLInfo.addSubPara(fm.OutPayGrpName.value);//投保单位名称 tSQLInfo.addSubPara('');//业务类型 后期更改 tSQLInfo.addSubPara(fm.EdorAppNo.value);//保全受理号 tSQLInfo.addSubPara(fm.CValiDate.value);//保全生效日期 tSQLInfo.addSubPara(fm.EndDate.value);//保全生效止期 tSQLInfo.addSubPara(fm.EdorType.value);//保全项目 tSQLInfo.addSubPara(fm.Managecom.value); turnPage.queryModal(tSQLInfo.getString(), QueryGrid, 1, 1); initWaitDisGrid(); initCheckDisGrid(); queryWaitMEssCheck(); queryCheckDisGrid(); } /** * 提取任务(待分配任务) */ function chooseTask() { if (QueryGrid.getChkCount() < 1) { i18nAlert("请选中一条投保信息", "LIS-01940"); return false; } fm.Operate.value = "INSERT" fm.action = "../API/grp_pa/g_pos/EdorMassCheckDistributeSave/INSERT"; submitForm(); ajaxSubmit2(document.getElementById("fm")); initForm(); } /** * 分配(公共池) */ function Distribute() { if (fm.CheckDisManagecom.value == null || fm.CheckDisManagecom.value == "") { i18nAlert("请选择需要操作的质检机构!", null); return false; } if (WaitDisGrid.getChkCount() < 1) { i18nAlert("请选择需要操作的信息!", "LIS-03017"); return false; } fm.Operate.value = "UPDATE" fm.action = "../API/grp_pa/g_pos/EdorMassCheckDistributeSave/UPDATE"; submitForm(); ajaxSubmit2(document.getElementById("fm")); } /** * 取消分配(公共池) */ function CancelDistribute() { if (WaitDisGrid.getChkCount() < 1) { i18nAlert("请选择需要操作的信息!", "LIS-03017"); return false; } fm.Operate.value = "DELETE" fm.action = "../API/grp_pa/g_pos/EdorMassCheckDistributeSave/DELETE"; submitForm(); ajaxSubmit2(document.getElementById("fm")); } /** * 审查分配取回(退回到待分配任务) */ function returnCheckDis() { if (CheckDisGrid.getChkCount() < 1) { i18nAlert("请选择需要操作的信息!", "LIS-03017"); return false; } fm.Operate.value = "UPDATE2" fm.action = "../API/grp_pa/g_pos/EdorMassCheckDistributeSave/UPDATE2"; submitForm(); ajaxSubmit2(document.getElementById("fm")); } /** * 提交,保存按钮对应操作 */ function submitForm() { // var i = 0; var showStr = i18nMessage("正在处理数据,请您稍候并且不要修改屏幕上的值或链接其他页面!", "LIS-04535"); var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(showStr); 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) { 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(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(); queryWaitMEssCheck(); queryCheckDisGrid(); } } function queryWaitMEssCheck() { tSQLInfo1 = new SqlClass(); tSQLInfo1.setModule("grp_pa"); tSQLInfo1.setResourceName("g_pos.EdorMassCheckDistributeSql"); tSQLInfo1.setSqlId("queryLPGrpMessCheckAll"); tSQLInfo1.addSubPara(tManageCom); turnPage1.queryModal(tSQLInfo1.getString(), WaitDisGrid, 1, 1); } /** * 已分配任务查询 */ function queryCheckDisGrid() { tSQLInfo2 = new SqlClass(); tSQLInfo2.setModule("grp_pa"); tSQLInfo2.setResourceName("g_pos.EdorMassCheckDistributeSql"); tSQLInfo2.setSqlId("queryLPGrpMessCheckAllStatus1"); tSQLInfo2.addSubPara(tManageCom); tSQLInfo2.addSubPara(fm.EdorAppNo1.value); turnPage2.queryModal(tSQLInfo2.getString(), CheckDisGrid, 1, 1); }