/*************************************************************** *
ProName:LSQuotRepealInput.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 tSQLInfo = new SqlClass(); var tSQLInfo1 = new SqlClass2(); /** * 查询准客户名 */ function quryGrpSpec1() { if(document.getElementById("QuotNo").value == null || document.getElementById("QuotNo").value == ''){ alert("询价号不能为空"); return false; } tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_quot.LSQuotSql"); tSQLInfo.setSqlId("LSQuotSql77"); tSQLInfo.addSubPara(fm.QuotNo.value); tSQLInfo.addSubPara(fm.Manage.value); tSQLInfo.addSubPara(tOperator); tSQLInfo.addSubPara(tManageCom); tSQLInfo.setModule("grp_quotation"); turnPage.queryModal(tSQLInfo.getString(), RepealGrid, 2, 1);//第三位表示使用大数据量,2--大于200小于1000 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 returnUserInfo() { if (tManageCom != '86'){ alert("只有总公司人员可以作废!"); return false; } var tRow = RepealGrid.getSelNo(); if (tRow==0) { i18nAlert("请选择一条信息!", "LIS-03743"); return false; } Operate = "CANCEL"; QuotNo=RepealGrid.getRowColData(tRow-1,1); QuotType=RepealGrid.getRowColData(tRow-1,11); /*fm.action = "./LSQuotETQuerySave.jsp?Operate=APPLYET&QuotType="+tETQuotType;*/ fm.action = "../API/grp_quotation/g_quot/LSQuotQueryConfigSave/UPDATE?Operate=APPLYET&QuotNo="+QuotNo+"&Operate="+Operate+"&QuotType="+QuotType; submitForm(fm); quryGrpSpec1(); } 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 reset(){ fm.AuthorName.value = ''; fm.AuthorUser.value = ''; fm.AuthorStartDate.value = ''; fm.AuthorEndDate.value = ''; fm.AuthorStartTime.value = '00:00:00'; fm.AuthorEndTime.value = '00:00:00'; initAuthorizeGrid(); } function basicInfo(){ if (isEmpty(fm.AuthorName)) { i18nAlert("被授权人不能为空!", ""); return false; } if (isEmpty(fm.AuthorStartDate)) { i18nAlert("授权开始日期不能为空!", ""); return false; } if (isEmpty(fm.AuthorStartTime)) { i18nAlert("授权开始时间不能为空!", ""); return false; } if (isEmpty(fm.AuthorEndDate)) { i18nAlert("授权结束日期不能为空!", ""); return false; } if (isEmpty(fm.AuthorEndTime)) { i18nAlert("授权结束时间不能为空!", ""); return false; } return true; } function basicSubmit1() { var tSelNo = AuthorizeGrid.getSelNo()-1; if (tSelNo<0) { i18nAlert("请选中一条用户信息记录!", ""); return false; } fm.AuthorizeNo.value = AuthorizeGrid.getRowColData(tSelNo,1); fm.action = "../API/grp_quotation/g_quot/LSQuotAuthorize/UPDATE"; submitForm(fm,true); returnAuthorizeInfo(); } /** * 提交数据 */ 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(); ajaxSubmit(obj); } 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(); } }