Li Jun
2022-05-11 b776940205e893302f77d24c4285613f228b44c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>QIS_M_BC_request_new</fullName>
    <availability>online</availability>
    <description>对应UTF8前
var QISName = &apos;{!QIS_Report__c.Name}&apos; 
var QISID = &apos;{!QIS_Report__c.Id}&apos;; 
var M_BCID = &apos;{!QIS_M_BC__c.Id}&apos;; 
var name = &apos;*&apos;; 
 
var url = &apos;a20/e?retURL=%2Fa20%2Fo&amp;Name=&apos; + name + &apos;&amp;CF00N10000006Q4NP=&apos; + QISName + &apos;&amp;CF00N10000006Q4NP_lkid=&apos; + QISID; 
 
window.top.location.href = url; 
 
}
增加取消状态的M-BC创建权限</description>
    <displayType>massActionButton</displayType>
    <linkType>javascript</linkType>
    <masterLabel>新建QIS M-BC申请.</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <requireRowSelection>true</requireRowSelection>
    <url>var foo = function() { 
 
var status = &apos;{!JSENCODE(TEXT(QIS_Report__c.QIS_Status__c))}&apos;; 
 
if (status != &apos;完毕&apos; &amp;&amp; status != &apos;已回答&apos; &amp;&amp; status != &apos;取消&apos;){ 
alert(&quot;QIS没有审批完毕或取消,不可以创建QIS M-BC!&quot;); 
return; 
 
//var QISName = &apos;{!QIS_Report__c.Name}&apos; 
//var QISID = &apos;{!QIS_Report__c.Id}&apos;; 
//var M_BCID = &apos;{!QIS_M_BC__c.Id}&apos;; 
//var name = &apos;*&apos;; 
 
var url = &quot;a20/e?retURL=%2Fa20%2Fo&amp;Name={!URLENCODE(&apos;*&apos;)}&amp;CF00N10000006Q4NP={!URLENCODE(QIS_Report__c.Name)}&amp;CF00N10000006Q4NP_lkid={!URLENCODE(QIS_Report__c.Id)}&quot;; 
 
window.top.location.href = url; 
 
 
foo();</url>
</WebLink>