/*************************************************************** *
ProName:LCQualityShareInput.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_nb"); tSQLInfo.setResourceName("g_app.LCQualitySql"); tSQLInfo.setSqlId("LCQualitySql1"); tSQLInfo.addSubPara(document.all('ManageCom').value); tSQLInfo.addSubPara(document.all('GrpName').value); tSQLInfo.addSubPara(document.all('OperSourceType').value); tSQLInfo.addSubPara(document.all('GrpContNo').value); tSQLInfo.addSubPara(document.all('StatsStartTime').value); tSQLInfo.addSubPara(document.all('StatsEndTime').value); tSQLInfo.addSubPara(document.all('PremEnd').value); tSQLInfo.addSubPara(document.all('PremStart').value); turnPage.queryModal(tSQLInfo.getString(), PatchNoGrid); queryClick2(); } /** * 查询询价信息 */ function queryClick2() { tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_nb"); tSQLInfo.setResourceName("g_app.LCQualitySql"); tSQLInfo.setSqlId("LCQualitySql2"); turnPage1.queryModal(tSQLInfo.getString(), AssignedGrid); } /** * 查询询价信息 */ function queryClick3() { if (document.getElementById("QualityStartDate").value == null || document.getElementById("QualityStartDate").value == '') { alert("质检任务发起起期不能为空"); return false; } if (document.getElementById("QualityEndDate").value == null || document.getElementById("QualityEndDate").value == '') { alert("质检任务发起止期不能为空"); return false; } tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_nb"); tSQLInfo.setResourceName("g_app.LCQualitySql"); tSQLInfo.setSqlId("LCQualitySql3"); tSQLInfo.addSubPara(document.all('QualityGrpContNo').value); tSQLInfo.addSubPara(document.all('StartDate').value); tSQLInfo.addSubPara(document.all('EndDate').value); turnPage1.queryModal(tSQLInfo.getString(), QualityGrid); } function queryManage1() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCGrpApproveListSql"); tSQLInfo.setSqlId("LCGrpApproveListSql4"); tSQLInfo.addSubPara(tManageCom); tSQLInfo.setModule("grp_nb"); var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tArr != null) { document.getElementById("ManageComName1").value = tArr[0][0]; } } 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 Delete2(){ var tSelNo = QualityGrid.getSelNo(); if (tSelNo<1) { i18nAlert("请选中一条投保信息", "LIS-01940"); return false; } var grpcontno = QualityGrid.getRowColData(tSelNo-1,3); var patchno = QualityGrid.getRowColData(tSelNo-1,8); fm.action = "../API/grp_nb/g_app/LCQualityController/DELETE2?Operate=DELETE2&QualityGrpContNo="+grpcontno+"&QualityPatchNo="+patchno; submitForm(fm,true); queryClick1(); } 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(); } }