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

ProName:LSQuotTrackInput.js

*

Title:询价追踪查询页js

*

Description:询价追踪查询页js

*

Copyright:Copyright (c) 2024

*

Company:Sinosoft

* @author : 揣龙 * @version : 8.0 * @date : 2024-10-28 ****************************************************************/ var showInfo; var turnPage = new turnPageClass(); var turnPage1 = new turnPageClass(); var turnPage2 = new turnPageClass(); var tSQLInfo = new SqlClass(); var tSQLInfo1 = new SqlClass2(); /** * 查询准客户名 */ // function quryGrpSpec1() { // //关联其他准客户时,查询询价申请机构 // tSQLInfo = new SqlClass(); // tSQLInfo.setResourceName("g_quot.LDSpecialAgreementSql"); // tSQLInfo.setSqlId("LDSpecialAgreementSql1"); // tSQLInfo.setModule("grp_quotation"); // initSpecialAgreementGrid(); // turnPage.queryModal(tSQLInfo.getString(),SpecialAgreementGrid,0,1); // if (!turnPage.strQueryResult) { // i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); // } // // } function queryUpCustomer(customerno){ tPreSQLInfo = new SqlClass(); tPreSQLInfo.setResourceName("g_quot.LSQuotQueryCustomerSql"); tPreSQLInfo.setSqlId("LSQuotQueryCustomer4"); tPreSQLInfo.addSubPara(customerno); tPreSQLInfo.setModule("grp_quotation"); var tmBasicArr = easyExecSql(tPreSQLInfo.getString(), 1, 0, 1); var mprecustomerno =null; if(tmBasicArr == null){ return ""; }else{ if ( tmBasicArr[0][0] ==null || tmBasicArr[0][0] =="" ) { return ""; }else{ mprecustomerno =tmBasicArr[0][0]; } } return mprecustomerno+","+ queryUpCustomer(mprecustomerno); } /** * 查询范围询价 */ function quryGrpSpec1() { tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql79"); tSQLInfo.addSubPara(tOperator); tSQLInfo.addSubPara(tManageCom); tSQLInfo.addSubPara(fm.QuotNo.value); tSQLInfo.setModule("grp_quotation"); turnPage.queryModal(tSQLInfo.getString(), ScopeGrid, 2, 1);//第三位表示使用大数据量,2--大于200小于1000 if (!turnPage.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); } } /** * 报价单明细 **/ function showQuotation(){ var tRow = ScopeGrid.getSelNo(); if (tRow==0) { i18nAlert("请先选择一条报价信息!", "LIS-01667"); return false; } var tQuotNo = ScopeGrid.getRowColData(tRow-1,1); var tQuotBatNo = "1" var tQuotType = "01" var tSrc = ""; tSrc += "?QuotNo="+ tQuotNo +"&QuotBatNo="+ tQuotBatNo+ "&QuotType="+ tQuotType+ "&ReturnFlag=1"; window.open("../g_app/LCQuotQueryMain.jsp"+tSrc,"报价单查询",'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0'); } /** * 适用机构 **/ function showAppOrgCode(){ var tRow = ScopeGrid.getSelNo(); var QuotNo = ScopeGrid.getRowColData(tRow-1,1); var QuotBatNo = "1" //关联适用机构 tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_quotation"); tSQLInfo.setResourceName("g_quot.LSQuotProjBasicSql"); tSQLInfo.setSqlId("LSQuotProjBasicSql3"); tSQLInfo.addSubPara(QuotNo); tSQLInfo.addSubPara(QuotBatNo); if (!noDiv(turnPage2, AppOrgCodeGrid, tSQLInfo.getString())) { initAppOrgCodeGrid(); return false; } } /** * 返回用户清单信息 */ function returnUserInfo() { // var strUrl = "LSQuotQueryUserListMain.jsp"; // window.open(strUrl,"用户清单查询",'height=600,width=600,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no'); } function returnAuthorizeInfo(){ tSQLInfo1.setResourceName("g_quot.LSQuotAuthorizeSql"); tSQLInfo1.setSqlId("LSQuotAuthorizeSql2"); tSQLInfo1.setModule("grp_quotation"); tSQLInfo1.addSubPara("para0",fm.AuthorName1.value); tSQLInfo1.addSubPara("para1",fm.AuthorStartDate1.value); tSQLInfo1.addSubPara("para2",fm.AuthorEndDate1.value); initAuthorizeGrid(); turnPage.queryModal(tSQLInfo1.getString(), AuthorizeGrid, 0, 1); if (!turnPage.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); } } function selectEstimates(){ tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LDSafetySupervisionConfigSql"); tSQLInfo.setSqlId("LDSafetySupervisionConfigSql1"); tSQLInfo.setModule("grp_quotation"); initSpecialAgreementGrid(); turnPage.queryModal(tSQLInfo.getString(), SpecialAgreementGrid, 0, 1); if (!turnPage.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); } } function basicSubmit(Operate) { // if (!basicInfo()) { // return false; // } // fm.action = "../API/grp_quotation/g_quot/LSQuotAuthorize/ADD?Operate="+Operate; // submitForm(fm,true); // initAuthorizeGrid(); } function basicSubmit1() { if(!checkAppCom()){ return false; } var rowNum=AppOrgCodeGrid. mulLineCount; var tRow = ScopeGrid.getSelNo(); var Man = ScopeGrid.getRowColData(tRow-1,3); var QuotNo = ScopeGrid.getRowColData(tRow-1,1); var submit = false; for (let i = 0; i