| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>Cannot_edit_after_contract</fullName> | 
|     <active>false</active> | 
|     <errorConditionFormula>$Profile.Id != "00e10000000xno4"   /* 张晶 */ | 
| && $Profile.Id != "00e10000000xnpM"   /* FSE */ | 
| && $Profile.Id != "00e10000000Y3o5"   /* 系统管理员 */ | 
| && $Profile.Id != "00e10000000dEQx"   /* GPI_系统管理员 */ | 
| && $Profile.Id != "00e10000000dzzG"   /* GPI_系统管理员New */ | 
| && Not(OR( | 
|     ISCHANGED(First_contract_usage_Rate__c), | 
|     ISCHANGED(First_Estimate_Date__c), | 
|     ISCHANGED(Xin_Last_Follow_Day__c), | 
|     ISCHANGED(Lastest_Collect_Date__c), | 
|     ISCHANGED(First_Collect_Date__c), | 
|     ISCHANGED(BaddebtsAmount__c), | 
|     ISCHANGED(Estimate_Asset_Cnt__c), | 
|     ISCHANGED(Estimate_Num__c) | 
| )) | 
| && | 
| /*Effective_Status__c = "有効"*/ | 
| and(Len(PRIORVALUE(Maintenance_Contract_No__c)) > 1,PRIORVALUE(Contract_Start_Date__c) <= today(), PRIORVALUE(Contract_End_Date__c) >= today(), | 
| NOT(ISBLANK(PRIORVALUE(upload_to_sap_time__c))))</errorConditionFormula> | 
|     <errorMessage>不能修改已经生效的合同</errorMessage> | 
| </ValidationRule> |