You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
187 lines
7.4 KiB
187 lines
7.4 KiB
/***************************************************************
|
|
* <p>ProName:LSQuotAuditQueryInput.js</p>
|
|
* <p>Title:已办询价查询</p>
|
|
* <p>Description:已办询价查询</p>
|
|
* <p>Copyright:Copyright (c) 2012</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : liuhe
|
|
* @version : 8.0
|
|
* @date : 2025-08-19
|
|
****************************************************************/
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();
|
|
var turnPage1 = new turnPageClass();
|
|
var turnPage2 = new turnPageClass();
|
|
var tSQLInfo = new SqlClass();
|
|
var mOperate = "";//操作状态
|
|
var mWindowNum = 1;//明细窗口数量
|
|
|
|
/**
|
|
* 提交数据
|
|
*/
|
|
function submitForm(obj) {
|
|
|
|
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");
|
|
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();
|
|
// obj.submit();
|
|
ajaxSubmit2(obj);
|
|
}
|
|
|
|
/**
|
|
* 提交数据后返回操作
|
|
*/
|
|
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 {
|
|
|
|
if (mOperate == "QUERY_PRINT") {
|
|
|
|
var tFileName = content.substring(content.lastIndexOf('/')+1,content.length);
|
|
var tFilePath = content;
|
|
|
|
window.location = "../API/grp_common/jsp/download/DOWNLOAD?FilePath=" + tFilePath + "&FileName=" + tFileName;
|
|
//window.open("../API/grp_common/jsp/download/DOWNLOAD?FilePath=" + tFilePath + "&FileName=" + tFileName);
|
|
} 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();
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 查询询价信息
|
|
*/
|
|
function queryClick() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_quot.LSQuotAuditQuerySql");
|
|
tSQLInfo.setSqlId("LSQuotAuditQuerySql1");
|
|
tSQLInfo.addSubPara(tOperator);
|
|
tSQLInfo.addSubPara(fm2.ManageCom.value);
|
|
tSQLInfo.addSubPara(fm2.PFStartDate.value);
|
|
tSQLInfo.addSubPara(fm2.PFEndDate.value);
|
|
tSQLInfo.addSubPara(fm2.QuotNo.value);
|
|
tSQLInfo.addSubPara(fm2.GrpName.value);
|
|
tSQLInfo.addSubPara(fm2.AgentCode.value);
|
|
tSQLInfo.addSubPara(fm2.AgentCom.value);
|
|
tSQLInfo.addSubPara(fm2.StartMakeDate.value);
|
|
tSQLInfo.addSubPara(fm2.EndMakeDate.value);
|
|
tSQLInfo.addSubPara(fm2.SaleChnl.value);
|
|
tSQLInfo.addSubPara(fm2.QuotState.value);
|
|
tSQLInfo.addSubPara(fm2.OperSource.value);
|
|
|
|
tSQLInfo.setModule("grp_quotation");
|
|
|
|
initQuotGrid();
|
|
turnPage1.queryModal(tSQLInfo.getString(), QuotGrid, 2, 1);
|
|
|
|
if (!turnPage1.strQueryResult) {
|
|
i18nAlert("未查询到符合条件的查询结果!", "LIS-03016");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* 明细查看
|
|
*/
|
|
function showQuotInfo() {
|
|
|
|
var tRow = QuotGrid.getSelNo();
|
|
if (tRow==0) {
|
|
i18nAlert("请先选择一条询价信息!", "LIS-04281");
|
|
return false;
|
|
}
|
|
tQuotNo = QuotGrid.getRowColData(tRow-1,1);
|
|
tQuotBatNo = QuotGrid.getRowColData(tRow-1,2);
|
|
tQuotType = QuotGrid.getRowColData(tRow-1,3);
|
|
window.open("../g_app/LCQuotQueryMain.jsp?QuotNo=" + tQuotNo + "&QuotBatNo=" + tQuotBatNo + "&QuotType=" + tQuotType, "明细查看", 'width='+screen.availWidth+',height='+screen.availHeight+',top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
|
|
}
|
|
|
|
function querySalesmanAndMediator(tMark) {
|
|
|
|
if (tMark == "salesman") {
|
|
if(fm2.SaleChnl.value == '07'){
|
|
var strUrl = "LSQuotQuerySalesmanMain.jsp?QuotNo=" + tQuotNo+ "&AgentType=" + fm2.SaleChnl.value+"&AgentCom="+fm2.AgentCom.value +"&branchtype=perandgrp";
|
|
window.open(strUrl, "业务员查询", 'height=600,width=600,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no');
|
|
}else{
|
|
var strUrl = "LSQuotQuerySalesmanMain.jsp?QuotNo=" + tQuotNo+ "&AgentType=" + fm2.SaleChnl.value+"&AgentCom="+fm2.AgentCom.value +"&branchtype=2";
|
|
window.open(strUrl, "业务员查询", 'height=600,width=600,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no');
|
|
}
|
|
|
|
}
|
|
if (tMark == "mediator") {
|
|
var strUrl = "LSQuotQueryMediatorMain.jsp?QuotNo=" + tQuotNo + "&AgentType=" + fm2.SaleChnl.value;
|
|
window.open(strUrl, "中介机构查询", 'height=600,width=600,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no');
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 查询机构名称信息
|
|
*/
|
|
function queryManage() {
|
|
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("ManageComName").value = tArr[0][0];
|
|
}
|
|
}
|
|
|
|
function resetClick(){
|
|
|
|
document.getElementById("ManageCom").value = tManageCom;
|
|
queryManage();
|
|
document.all("QuotNo").value='';
|
|
document.all("QuotState").value='';
|
|
document.all("QuotStateName").value='';
|
|
document.all("GrpName").value='';
|
|
document.all("AgentCode").value='';
|
|
document.all("AgentCodeName").value='';
|
|
document.all("AgentCom").value='';
|
|
document.all("AgentComName").value='';
|
|
document.all("StartMakeDate").value='';
|
|
document.all("EndMakeDate").value='';
|
|
document.all("SaleChnl").value='';
|
|
document.all("SaleChnlName").value='';
|
|
document.all("OperSource").value='';
|
|
document.all("OperSourceName").value='';
|
|
document.all("PFStartDate").value='';
|
|
document.all("PFEndDate").value='';
|
|
} |