| <?xml version="1.0" encoding="UTF-8"?> | 
| <WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>QIS_SC</fullName> | 
|     <availability>online</availability> | 
|     <displayType>button</displayType> | 
|     <linkType>javascript</linkType> | 
|     <masterLabel>QIS市场部意见</masterLabel> | 
|     <openType>onClickJavaScript</openType> | 
|     <protected>false</protected> | 
|     <url>{!RequireScript("/soap/ajax/51.0/connection.js")} | 
| {!RequireScript("/soap/ajax/51.0/apex.js")} | 
| {!RequireScript("/resource/CommonUtilJs")} | 
| //2021-10-21 gwy 版本更改为51.0 | 
| var foo = function() { | 
| var qis = '{!QIS_Report__c.QIS_SC_Report__c}'; | 
| var id ='{!QIS_Report__c.QIS_SC_Id__c}'; | 
| var action = '{!QIS_Report__c.next_action__c}'; | 
| var pro = '{!QIS_Report__c.QIS_Market_Category__c}' | 
| // 20210531 add by gzw | 
| if("{!$Profile.Id}" == "00e10000000xno9" || "{!$Profile.Id}" == "00e10000000NbC4"){ | 
| alert("您没有新建QIS市场部权限。"); | 
| return; | 
| } | 
| // 20210531 add by gzw | 
| if(qis){ | 
| var url = 'https://ocsm--stagefull.my.salesforce.com/'+id; | 
| window.open(url); | 
| }else{ | 
| if(action =='送回'&&(pro =='ET' || pro =='ENG'||pro=='EndoRapid')){ | 
| var urlStr ='/a3w/e?CF00N100000095xFJ={!HTMLENCODE(QIS_Report__c.Name)}'+ | 
| '&CF00N100000095xFJ_lkid={!HTMLENCODE(QIS_Report__c.Id)}'+ | 
| '&retURL={!HTMLENCODE(QIS_Report__c.Id)}'+ | 
| '&Name={!HTMLENCODE(QIS_Report__c.Name)}'; | 
| window.open(urlStr); | 
| }else{ | 
| alert('对应方法为返回且对应主机/消耗品为ET 或 ENG 或 EndoRapid 时,才可以新建。'); | 
| return; | 
| } | 
|   | 
| } | 
| } | 
| foo();</url> | 
| </WebLink> |