From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523
---
force-app/main/default/pages/SI_NewQuoteEntry.page | 288 ++++++++++++++++++++++++++++----------------------------
1 files changed, 144 insertions(+), 144 deletions(-)
diff --git a/force-app/main/default/pages/SI_NewQuoteEntry.page b/force-app/main/default/pages/SI_NewQuoteEntry.page
index 62eb8ba..9ea3210 100644
--- a/force-app/main/default/pages/SI_NewQuoteEntry.page
+++ b/force-app/main/default/pages/SI_NewQuoteEntry.page
@@ -8,150 +8,7 @@
<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銆愬鎵樸�戙�怬BSAP銆戣缁橭BSAP绠�妗BA2_璇环绠$悊 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銆愬鎵樸�戙�怬BSAP銆戣缁橭BSAP绠�妗BA2_璇环绠$悊 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銆佽仈绯籗I鏈儴鍋氶厤缃缓璁�俓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銆佽仈绯籗I鏈儴鍋氶厤缃缓璁�俓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 {
@@ -937,7 +794,150 @@
//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銆愬鎵樸�戙�怬BSAP銆戣缁橭BSAP绠�妗BA2_璇环绠$悊 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銆愬鎵樸�戙�怬BSAP銆戣缁橭BSAP绠�妗BA2_璇环绠$悊 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銆佽仈绯籗I鏈儴鍋氶厤缃缓璁�俓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銆佽仈绯籗I鏈儴鍋氶厤缃缓璁�俓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>
\ No newline at end of file
--
Gitblit v1.9.1