| | |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <script type="text/javascript"> |
| | | //添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 start |
| | | //dialog 弹窗 start |
| | | var popupBox; |
| | | popupBox = new SimpleDialog("SpeedDialogId", false); // 不可拖动 |
| | | popupBox.createDialog(); |
| | | //精琢技术 2021/02/08 start |
| | | function openAddMultipleRow(){ |
| | | popupBox.setTitle("请输入需要增加的行号!"); |
| | | popupBox.importContentNode(document.getElementById("speedDiv")); |
| | | popupBox.show(document.getElementById("speedDiv")); |
| | | document.getElementById("speedDiv").style.display = 'block'; |
| | | |
| | | } |
| | | //dialog 弹窗 end |
| | | // 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end |
| | | |
| | | var QuoteEntryMaxLine = {!QuoteEntryMaxLine}; |
| | | var trade = '{!oppInfo.Trade}'; |
| | | var displayCost = '{!displayCost}'; |
| | | var quoid = '{!quoid}'; |
| | | var Session_ID = '{!$Api.Session_ID}'; |
| | | var Price_Valid_Period = '{!$Label.Price_Valid_Period}'; |
| | | var Message_001 = '{!$Label.Message_001}'; |
| | | var Message_Please_Save_Quote = '{!$Label.Please_Save_Quote}'; |
| | | var Message_Check_Your_Clipboard = '{!$Label.Check_Your_Clipboard}'; |
| | | var Error_Message3 = '{!$Label.Error_Message3}'; |
| | | var Error_Message11 = '{!$Label.Error_Message11}'; |
| | | var Error_Message29 = '{!$Label.Error_Message29}'; |
| | | var Error_Message33 = '{!$Label.Error_Message33}'; |
| | | var Error_Message34 = '{!$Label.Error_Message34}'; |
| | | var Error_Message35 = '{!$Label.Error_Message35}'; |
| | | var Error_Message36 = '{!$Label.Error_Message36}'; |
| | | var Error_Message40 = '{!$Label.Error_Message40}'; |
| | | var Confirm_ChangedAfterPrint = '打印后行信息有变化,是否继续操作(报价编码会变新)?'; |
| | | var Confirm_ChangedAfterBid = '该报价已成为false传票,是否继续操作(将会做出一个新的报价)?'; |
| | | var Confirm_PriceRefresh = '报价作成后{!$Label.Price_Valid_Period}天,还没有更新过价格,需要执行{!$Label.Status_Update}?'; |
| | | window.sfdcPage.appendToOnloadQueue(function() { calonLoad() }); |
| | | var openQuoteExcelImportWindow = null; |
| | | |
| | | function selectAll() { |
| | | var checklist = j$("input[name='checklist']"); |
| | | var all = j$(escapeVfId("checkAll")); |
| | | for(var i = 0; i < checklist.length; i++){ |
| | | if (all[0].checked == true) { |
| | | checklist[i].checked = true; |
| | | } else { |
| | | checklist[i].checked = false; |
| | | } |
| | | } |
| | | } |
| | | // xudan 20140627 削除後のチェック外すロジック |
| | | function clearAllCheck() { |
| | | j$(escapeVfId("checkAll"))[0].checked = false; |
| | | var checklist = j$("input[name='checklist']"); |
| | | for(var i = 0; i < checklist.length; i++){ |
| | | checklist[i].checked = false; |
| | | } |
| | | } |
| | | // 报价试算 |
| | | function JumpJs() { |
| | | // console.log(ApexPages.currentPage().getParameters().get('core.apexpages.request.devconsole')); |
| | | // var t = '{!quoId}'; |
| | | // window.open('/apex/test02?Id=' + t); |
| | | blockme(); |
| | | Jump.call(); |
| | | return true; |
| | | } |
| | | function DownloadCsvGet(){ |
| | | DownloadCsv(); |
| | | } |
| | | function DownloadCsvJs(){ |
| | | var a = j$(escapeVfId("Page:mainForm:oppoidforCSV")).val(); |
| | | var b = '{!oppId}'; |
| | | //window.open('/apex/SI_CsvModel?'+(a==''?'':'id='+a)+'&'+(a==''?'':'oppId='+b)+'','name','features','replace'); |
| | | window.open('/apex/SI_CsvModel?id='+encodeURI(a),'name','features','replace'); |
| | | } |
| | | function QuoteConfirmJs() { |
| | | debugger |
| | | // body... |
| | | blockme(); |
| | | //SWAG-C5DBAL 【委托】 [紧急]SI询价肖寒无法修改报价单 精琢技术 2021/07/30 start |
| | | //获取当前登录人简档 |
| | | var profileId = '{!$User.profileId}'; |
| | | //获取自定义标签 系统管理员简档 |
| | | var adminId = '{!$Label.ProfileId_SystemAdmin}'; |
| | | //XLIU-CHRD8P【委托】【OBSAP】请给OBSAP简档OBA2_询价管理 SI询价报价单确认权限 fy start |
| | | var adminId2 = '{!$Label.ProfileId_SystemAdmin2}'; |
| | | var flag=true; |
| | | var profileId15=profileId; |
| | | if(profileId&&profileId.length>15){ |
| | | profileId15=profileId.substring(0,15); |
| | | } |
| | | if(adminId2.includes(profileId15)){ |
| | | flag=false; |
| | | }else{ |
| | | flag=true; |
| | | } |
| | | //XLIU-CHRD8P【委托】【OBSAP】请给OBSAP简档OBA2_询价管理 SI询价报价单确认权限 fy end |
| | | //只有系统管理员可以点击 |
| | | if(profileId!=adminId&&flag){ |
| | | alert('只有系统管理员和营业助理有权限确认报价!'); |
| | | unblockUI(); |
| | | }else{ |
| | | QuoteConfirm(); |
| | | } |
| | | //SWAG-C5DBAL 【委托】 [紧急]SI询价肖寒无法修改报价单 精琢技术 2021/07/30 end |
| | | // QuoteConfirm(); |
| | | } |
| | | function ReloadPage() { |
| | | // body... |
| | | window.location.reload(); |
| | | } |
| | | function submitOppoApplyStockJs(){ |
| | | // SI询价修改 update by vivek start 20191129 |
| | | var Save_button1 = '{!Save_button1}'; |
| | | console.log(Save_button1); |
| | | if(Save_button1 == '111'){ |
| | | alert('1、联系SI本部做配置建议。\n2、请营业本部做配置建议反馈。\n3、请SI本部做配置文件检查。'); |
| | | }else if(Save_button1 == '211'){ |
| | | alert('1、请营业本部做配置建议反馈。\n2、请SI本部做配置文件检查。'); |
| | | }else if(Save_button1 == '221'){ |
| | | alert('1、请SI本部做配置文件检查。'); |
| | | }else if(Save_button1 == '1'){ |
| | | alert('1、请SI本部做配置文件检查。'); |
| | | }else if(Save_button1 == '112'){ |
| | | alert('1、联系SI本部做配置建议。\n2、请营业本部做配置建议反馈。'); |
| | | }else if(Save_button1 == '212'){ |
| | | alert('1、请营业本部做配置建议反馈。'); |
| | | }else{ |
| | | blockme(); |
| | | submitOppoApplyStock(); |
| | | } |
| | | // SI询价修改 update by vivek end 20191129 |
| | | // blockme(); |
| | | // submitOppoApplyStock(); |
| | | } |
| | | // SI业务系统流程改善和提升项目2019-10-28 by vivek start |
| | | function IfRadioChecker2(){ |
| | | var msg = "不能删除,如果删除可能影响设备安装。\n\n请确认!"; |
| | | if(confirm(msg)==true){ |
| | | radioChecker2('del'); |
| | | } |
| | | } |
| | | // SI业务系统流程改善和提升项目2019-10-28 by vivek end |
| | | |
| | | </script> |
| | | <style type="text/css"> |
| | | div#iframelike { |
| | |
| | | //SFDC停止预警(预计消耗到期日标红) lt 20210928 add start |
| | | MarkRed(); |
| | | //SFDC停止预警(预计消耗到期日标红) lt 20210928 add end |
| | | //添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 start |
| | | //dialog 弹窗 start |
| | | var popupBox; |
| | | popupBox = new SimpleDialog("SpeedDialogId", false); // 不可拖动 |
| | | popupBox.createDialog(); |
| | | //精琢技术 2021/02/08 start |
| | | function openAddMultipleRow(){ |
| | | popupBox.setTitle("请输入需要增加的行号!"); |
| | | popupBox.importContentNode(document.getElementById("speedDiv")); |
| | | popupBox.show(document.getElementById("speedDiv")); |
| | | document.getElementById("speedDiv").style.display = 'block'; |
| | | |
| | | } |
| | | //dialog 弹窗 end |
| | | // 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end |
| | | |
| | | var QuoteEntryMaxLine = {!QuoteEntryMaxLine}; |
| | | var trade = '{!oppInfo.Trade}'; |
| | | var displayCost = '{!displayCost}'; |
| | | var quoid = '{!quoid}'; |
| | | var Session_ID = '{!$Api.Session_ID}'; |
| | | var Price_Valid_Period = '{!$Label.Price_Valid_Period}'; |
| | | var Message_001 = '{!$Label.Message_001}'; |
| | | var Message_Please_Save_Quote = '{!$Label.Please_Save_Quote}'; |
| | | var Message_Check_Your_Clipboard = '{!$Label.Check_Your_Clipboard}'; |
| | | var Error_Message3 = '{!$Label.Error_Message3}'; |
| | | var Error_Message11 = '{!$Label.Error_Message11}'; |
| | | var Error_Message29 = '{!$Label.Error_Message29}'; |
| | | var Error_Message33 = '{!$Label.Error_Message33}'; |
| | | var Error_Message34 = '{!$Label.Error_Message34}'; |
| | | var Error_Message35 = '{!$Label.Error_Message35}'; |
| | | var Error_Message36 = '{!$Label.Error_Message36}'; |
| | | var Error_Message40 = '{!$Label.Error_Message40}'; |
| | | var Confirm_ChangedAfterPrint = '打印后行信息有变化,是否继续操作(报价编码会变新)?'; |
| | | var Confirm_ChangedAfterBid = '该报价已成为false传票,是否继续操作(将会做出一个新的报价)?'; |
| | | var Confirm_PriceRefresh = '报价作成后{!$Label.Price_Valid_Period}天,还没有更新过价格,需要执行{!$Label.Status_Update}?'; |
| | | window.sfdcPage.appendToOnloadQueue(function() { calonLoad() }); |
| | | var openQuoteExcelImportWindow = null; |
| | | |
| | | function selectAll() { |
| | | var checklist = j$("input[name='checklist']"); |
| | | var all = j$(escapeVfId("checkAll")); |
| | | for(var i = 0; i < checklist.length; i++){ |
| | | if (all[0].checked == true) { |
| | | checklist[i].checked = true; |
| | | } else { |
| | | checklist[i].checked = false; |
| | | } |
| | | } |
| | | } |
| | | // xudan 20140627 削除後のチェック外すロジック |
| | | function clearAllCheck() { |
| | | j$(escapeVfId("checkAll"))[0].checked = false; |
| | | var checklist = j$("input[name='checklist']"); |
| | | for(var i = 0; i < checklist.length; i++){ |
| | | checklist[i].checked = false; |
| | | } |
| | | } |
| | | // 报价试算 |
| | | function JumpJs() { |
| | | // console.log(ApexPages.currentPage().getParameters().get('core.apexpages.request.devconsole')); |
| | | // var t = '{!quoId}'; |
| | | // window.open('/apex/test02?Id=' + t); |
| | | blockme(); |
| | | Jump.call(); |
| | | return true; |
| | | } |
| | | function DownloadCsvGet(){ |
| | | DownloadCsv(); |
| | | } |
| | | function DownloadCsvJs(){ |
| | | var a = j$(escapeVfId("Page:mainForm:oppoidforCSV")).val(); |
| | | var b = '{!oppId}'; |
| | | //window.open('/apex/SI_CsvModel?'+(a==''?'':'id='+a)+'&'+(a==''?'':'oppId='+b)+'','name','features','replace'); |
| | | window.open('/apex/SI_CsvModel?id='+encodeURI(a),'name','features','replace'); |
| | | } |
| | | function QuoteConfirmJs() { |
| | | debugger |
| | | // body... |
| | | blockme(); |
| | | //SWAG-C5DBAL 【委托】 [紧急]SI询价肖寒无法修改报价单 精琢技术 2021/07/30 start |
| | | //获取当前登录人简档 |
| | | var profileId = '{!$User.ProfileId}'; |
| | | //获取自定义标签 系统管理员简档 |
| | | var adminId = '{!$Label.ProfileId_SystemAdmin}'; |
| | | //XLIU-CHRD8P【委托】【OBSAP】请给OBSAP简档OBA2_询价管理 SI询价报价单确认权限 fy start |
| | | var adminId2 = '{!$Label.ProfileId_SystemAdmin2}'; |
| | | var flag=true; |
| | | var profileId15=profileId; |
| | | if(profileId&&profileId.length>15){ |
| | | profileId15=profileId.substring(0,15); |
| | | } |
| | | if(adminId2.includes(profileId15)){ |
| | | flag=false; |
| | | }else{ |
| | | flag=true; |
| | | } |
| | | //XLIU-CHRD8P【委托】【OBSAP】请给OBSAP简档OBA2_询价管理 SI询价报价单确认权限 fy end |
| | | //只有系统管理员可以点击 |
| | | if(profileId!=adminId&&flag){ |
| | | alert('只有系统管理员和营业助理有权限确认报价!'); |
| | | unblockUI(); |
| | | }else{ |
| | | QuoteConfirm(); |
| | | } |
| | | //SWAG-C5DBAL 【委托】 [紧急]SI询价肖寒无法修改报价单 精琢技术 2021/07/30 end |
| | | // QuoteConfirm(); |
| | | } |
| | | function ReloadPage() { |
| | | // body... |
| | | window.location.reload(); |
| | | } |
| | | function submitOppoApplyStockJs(){ |
| | | // SI询价修改 update by vivek start 20191129 |
| | | var Save_button1 = '{!Save_button1}'; |
| | | console.log(Save_button1); |
| | | if(Save_button1 == '111'){ |
| | | alert('1、联系SI本部做配置建议。\n2、请营业本部做配置建议反馈。\n3、请SI本部做配置文件检查。'); |
| | | }else if(Save_button1 == '211'){ |
| | | alert('1、请营业本部做配置建议反馈。\n2、请SI本部做配置文件检查。'); |
| | | }else if(Save_button1 == '221'){ |
| | | alert('1、请SI本部做配置文件检查。'); |
| | | }else if(Save_button1 == '1'){ |
| | | alert('1、请SI本部做配置文件检查。'); |
| | | }else if(Save_button1 == '112'){ |
| | | alert('1、联系SI本部做配置建议。\n2、请营业本部做配置建议反馈。'); |
| | | }else if(Save_button1 == '212'){ |
| | | alert('1、请营业本部做配置建议反馈。'); |
| | | }else{ |
| | | blockme(); |
| | | submitOppoApplyStock(); |
| | | } |
| | | // SI询价修改 update by vivek end 20191129 |
| | | // blockme(); |
| | | // submitOppoApplyStock(); |
| | | } |
| | | // SI业务系统流程改善和提升项目2019-10-28 by vivek start |
| | | function IfRadioChecker2(){ |
| | | var msg = "不能删除,如果删除可能影响设备安装。\n\n请确认!"; |
| | | if(confirm(msg)==true){ |
| | | radioChecker2('del'); |
| | | } |
| | | } |
| | | // SI业务系统流程改善和提升项目2019-10-28 by vivek end |
| | | </script> |
| | | <!-- //添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end --> |
| | | </apex:page> |