| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <fullName>FSE_Cannot_change_to_other_hospital</fullName> |
| | | <active>false</active> |
| | | <active>true</active> |
| | | <description>SWAG-C8MB5U</description> |
| | | <errorConditionFormula>$User.Batch_User__c = false && |
| | | $User.ProfileId <> LEFT($Label.ProfileId_SystemAdmin, 15) && OR(CONTAINS($Profile.Name, '2S5'),CONTAINS($Profile.Name, '2S6'),CONTAINS($Profile.Name, '2S8'),CONTAINS($Profile.Name, '2S9'),CONTAINS($Profile.Name, '2S1')) && |
| | | NOT(ISNEW()) && |
| | | Account.Parent.ParentId <> PRIORVALUE( Hospital__c ) && NOT( OR( Product2.Dealer_special_Object__c , Product2.Dealer_Object__c, Product2.ENG_DeaerProFlag__c )) && |
| | | Account.RecordTypeId <> '012C600000003HG' && RecordTypeId <> '012C600000003Hv'</errorConditionFormula> |
| | | Account.RecordTypeId <> '01210000000gT1X' && RecordTypeId <> '01210000000kOPR'</errorConditionFormula> |
| | | <errorDisplayField>AccountId</errorDisplayField> |
| | | <errorMessage>不能修改为其他医院的科室。</errorMessage> |
| | | </ValidationRule> |