From ed33f828fc3fcd6562294dcadcd166a602bc6f47 Mon Sep 17 00:00:00 2001
From: 涂煌豪 <997058689@qq.com>
Date: 星期五, 11 三月 2022 19:31:29 +0800
Subject: [PATCH] 会议决裁申请
---
force-app/main/default/pages/CampaignMember.page | 52 +++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 49 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/pages/CampaignMember.page b/force-app/main/default/pages/CampaignMember.page
index c02e94c..7da4f58 100644
--- a/force-app/main/default/pages/CampaignMember.page
+++ b/force-app/main/default/pages/CampaignMember.page
@@ -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;
@@ -138,8 +141,49 @@
}
}
+ // 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() {
@@ -212,7 +256,8 @@
'&lea20_lkid=' + campaignId +
'&CF00N10000004oN28=' + encodeURI(campaign) +
'&CF00N10000004oN28_lkid=' + campaignId +
- '&lea5=' + encodeURI('瀛︿細/娌欓緳') +
+ // '&lea5=' + encodeURI('瀛︿細/娌欓緳') +
+ '&lea5=' + encodeURI('瀛︿細浼氳') +
'&CF00N10000006qNtt=' + encodeURI(contactSDCName);
}else{
//鏂板缓璇㈤棶鍗� URL 瀹㈡埛濮撳悕 绉戝 璇㈤棶鍗曟潵婧� 涓昏瀛︿細 鍏徃 鎰忓悜瀛︿細
@@ -224,7 +269,8 @@
'&CF00N1000000962nJ_lkid=' + accid +
'&CF00N1000000962n3=' + encodeURI(campaign) +
'&CF00N1000000962n3_lkid=' + campaignId +
- '&00N1000000962nO=' + encodeURI('瀛︿細/娌欓緳') +
+ // '&00N1000000962nO=' + encodeURI('瀛︿細/娌欓緳') +
+ '&00N1000000962nO=' + encodeURI('瀛︿細浼氳') +
'&CF00N1000000962nC=' + encodeURI(records[0].Department_Class__r.Name)+
'&CF00N1000000962nC_lkid=' + encodeURI(records[0].Department_Class__c)+
'&Name='+encodeURI(username)+
@@ -347,7 +393,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