<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>checkOCMTargetOpp</fullName> 
 | 
    <active>true</active> 
 | 
    <errorConditionFormula>NOT(ISNEW()) && ISCHANGED(OCM_Change_To_Opportunity_Flg__c)  && (text(StageName__c) <> '取消')</errorConditionFormula> 
 | 
    <errorDisplayField>OCM_Change_To_Opportunity_Flg__c</errorDisplayField> 
 | 
    <errorMessage>不能更改OLY确认询价</errorMessage> 
 | 
</ValidationRule> 
 |