From e6068da47c1bef5517c9e5fdc8c726766867ad4e Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 14 七月 2023 15:10:02 +0800 Subject: [PATCH] Merge branch 'master' into LEXUpgrade2023-Deloitte --- force-app/main/default/pages/CampaignMemberService.page | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 48 insertions(+), 2 deletions(-) diff --git a/force-app/main/default/pages/CampaignMemberService.page b/force-app/main/default/pages/CampaignMemberService.page index 27a5b34..2fa16ea 100644 --- a/force-app/main/default/pages/CampaignMemberService.page +++ b/force-app/main/default/pages/CampaignMemberService.page @@ -1,4 +1,4 @@ -<apex:page controller="CampaignMemberServiceController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鍙備細浜哄憳"> +<apex:page controller="CampaignMemberServiceController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鍙備細浜哄憳" lightningStylesheets="true" > <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> @@ -6,6 +6,9 @@ <apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}"/> <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> +<!-- 2022/02/15 寮犲崕寤� dependency start --> +<apex:includeScript value="{!URLFOR($Resource.AWSService, 'AWSService.js') }" /> +<!-- 2022/02/15 寮犲崕寤� dependency end --> <style type="text/css"> .visitorplace_results { border: 1px solid gray; @@ -136,10 +139,53 @@ } } +// 20220216 PI鏀归�� by 寰愪寒 start +var staticResource = JSON.parse('{!staticResource}'); + + var awsids = []; + var aws_result={}; + + jQuery(function(){ + var eles = document.getElementsByClassName("contact"); + for(let e of eles){ + let awsid = e.getAttribute('awsid'); + if(awsid) awsids.push(awsid); + } + + if(awsids.length > 0){ + AWSService.search(staticResource.searchUrl,JSON.stringify({dataIds:awsids}),function(result){ + if(result.status == '0' && result.object && result.object.length > 0){ + for(let obj of result.object){ + jQuery("[awsid='"+obj.dataId + "']").val(obj.lastName); + } + } + },staticResource.token); + } + }) + + + + + + //jQuery(".contact").attr("awsid"); + + function encrypt(){ + jQuery(".contact").each(function(i,e){ + if(e.value){ + e.value = '***'; + } + }); + } + + // 20220216 PI鏀归�� by 寰愪寒 end + function saveJs() { blockme(); + encrypt() // 20220216 PI鏀归�� by 寰愪寒 saveLine(); } + + function addJs() { blockme(); addLine(); @@ -261,7 +307,7 @@ <apex:inputHidden id="departmentHiddenId" value="{!lineInfo.cm.Department_ID__c}" /> </td> <td align="center"> - <apex:inputField id="contact" value="{!lineInfo.cm.Contact__c}" onclick="openSearchContact({!lineInfo.line})" style="width: 95%"></apex:inputField> + <apex:inputField styleClass="contact" html-awsid="{!lineInfo.cm.Contact_ID__r.AWS_Data_Id__c}" id="contact" value="{!lineInfo.cm.Contact__c}" onclick="openSearchContact({!lineInfo.line})" style="width: 95%"></apex:inputField> <apex:inputHidden id="contactId" value="{!lineInfo.cm.Contact_ID__c}"></apex:inputHidden> <apex:inputHidden id="contactSDCName" value="{!lineInfo.cm.Contact_ID__r.Strategic_dept_Class__r.Name}"></apex:inputHidden> </td> -- Gitblit v1.9.1