<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>OLYwinBid</fullName>
|
<availability>online</availability>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>OLY中标</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")};
|
|
|
if('{!task__c.taskStatus__c}' == '04 取消'){
|
alert('任务取消,不可操作');
|
}else{
|
if (window.confirm('是否确认OLY中标?')) {
|
var opp = new sforce.SObject('Opportunity');
|
opp.Id = '{!task__c.OpportunityIdId__c}';
|
opp.ConfirmationofAward__c = 'OLY中标';
|
var result = sforce.connection.update([opp]);
|
var messages = getConnectDMLErrorMessages(result);
|
if (messages.length > 0) {
|
alert(messages.join("\n"));
|
}else{
|
alert('操作成功!');
|
}
|
window.location.reload();
|
}
|
|
}</url>
|
</WebLink>
|