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

ProName:LSQuotBranchFinalQueryInput.js

*

Title:分公司报价生成

*

Description:分公司报价生成

*

Copyright:Copyright (c) 2012

*

Company:Sinosoft

* @author : zhoufz * @version : 8.0 * @date : 2014-04-17 ****************************************************************/ var showInfo; var turnPage = new turnPageClass(); var turnPage1 = new turnPageClass(); var turnPage2 = new turnPageClass(); var mOperate = "";//操作状态 var tSQLInfo = new SqlClass(); /** * 公共池查询 */ function queryClick() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotProcessSql"); tSQLInfo.setSqlId("LSQuotProcessSql6"); tSQLInfo.addSubPara(document.all('QuotName').value); tSQLInfo.addSubPara(document.all('QuotNo').value); tSQLInfo.addSubPara(document.all('QuotType').value); tSQLInfo.addSubPara(tManageCom); tSQLInfo.addSubPara(document.all('StartDate').value); tSQLInfo.addSubPara(document.all('EndtDate').value); tSQLInfo.addSubPara(document.all('ManageCom').value); tSQLInfo.setModule("grp_quotation"); turnPage1.queryModal(tSQLInfo.getString(), QuotGrid, 0,1); if (!turnPage1.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); } } /** * 个人池查询 */ function perQueryClick() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotProcessSql"); tSQLInfo.setSqlId("LSQuotProcessSql7"); tSQLInfo.addSubPara(document.all('QuotName').value); tSQLInfo.addSubPara(document.all('QuotNo').value); tSQLInfo.addSubPara(document.all('QuotType').value); tSQLInfo.addSubPara(tManageCom); tSQLInfo.addSubPara(tOperator); tSQLInfo.setModule("grp_quotation"); turnPage2.queryModal(tSQLInfo.getString(), PerQuotGrid, 0,1); } /** * 申请公共池中的数据到个人池 */ function appClick() { var tSelNo = QuotGrid.getSelNo(); if (tSelNo==0) { i18nAlert("请选择需要操作的信息!", "LIS-03017"); return false; } var tMissionID = QuotGrid.getRowColData(tSelNo-1, 3); var tSubMissionID = QuotGrid.getRowColData(tSelNo-1, 4); var tActivityID = QuotGrid.getRowColData(tSelNo-1, 5); fm.action = "../API/grp_quotation/g_quot/LSQuotAppSave/ADD?MissionID="+tMissionID+"&SubMissionID="+tSubMissionID+"&ActivityID="+tActivityID; submitForm(); } /** * 提交 */ function submitForm() { var i = 0; 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(); // fm.submit(); ajaxSubmit2(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(); initForm(); } } /** * 进入询价 */ function GotoDetail() { var tSelNo = PerQuotGrid.getSelNo()-1; var tMissionID = PerQuotGrid.getRowColData(tSelNo, 3); var tSubMissionID = PerQuotGrid.getRowColData(tSelNo, 4); var tActivityID = PerQuotGrid.getRowColData(tSelNo, 5); var tQuotNo = PerQuotGrid.getRowColData(tSelNo, 6); var tQuotBatNo = PerQuotGrid.getRowColData(tSelNo, 7); var tQuotType = PerQuotGrid.getRowColData(tSelNo, 8); if (tQuotType=="00") { location.href = "./LSQuotUWDetailInput.jsp?QuotType="+ tQuotType +"&QuotNo="+ tQuotNo + "&QuotBatNo="+ tQuotBatNo +"&MissionID="+ tMissionID +"&SubMissionID="+ tSubMissionID +"&ActivityID="+ tActivityID; } else if (tQuotType=="01") { location.href = "./LSQuotProjUWDetailInput.jsp?QuotType="+ tQuotType +"&QuotNo="+ tQuotNo + "&QuotBatNo="+ tQuotBatNo +"&MissionID="+ tMissionID +"&SubMissionID="+ tSubMissionID +"&ActivityID="+ tActivityID; } }