1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| <?xml version="1.0" encoding="UTF-8"?>
| <CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
| <fullName>Is_Active_Formula__c</fullName>
| <description>20230206
| /*医院*/
| IF(RecordTypeId = '01210000000QemG', CASE(text(Is_Active__c), '無効', '无效', '有効', '有效','申请中', '申请中','草案中', '草案中',''),IF(Parent.RecordTypeId = '01210000000QemG', IF(text(Parent.Is_Active__c) <> '無効', '有效', '无效'),IF(Parent.Parent.RecordTypeId = '01210000000QemG',IF(text(Parent.Parent.Is_Active__c) <> '無効', IF(text(Is_Active__c) <> '有効', '无效', '有效'), '无效'),
| /*经销商*/
| IF(RecordTypeId = '01210000000Qem1',IF(OR(Delete_Flag__c,Ban_On_Use_Date__c < Today(),Business_Paper_Expiration_Date__c <Today(),Tax_Practice_Expiration_Date__c < Today(),Medical_Equipment_Expiration_Date__c < Today(),
| DGLicenseTo__c < Today()
| ),'无效','有效'),IF(Parent.RecordTypeId = '01210000000Qem1', IF(OR(Delete_Flag__c,
| Parent.Delete_Flag__c,Parent.Business_Paper_Expiration_Date__c < Today(),
| Parent.Tax_Practice_Expiration_Date__c < Today(),Parent.Medical_Equipment_Expiration_Date__c < Today(),Parent.Ban_On_Use_Date__c < Today(), Contract_Decide_End_Date__c < Today()), '无效', '有效'),'')))))</description>
| <externalId>false</externalId>
| <formula>/*医院*/
| IF(RecordTypeId = '01210000000QemG', CASE(text(Is_Active__c), '無効', '无效', '有効', '有效','申请中', '申请中','草案中', '草案中','驳回', '驳回',''),IF(Parent.RecordTypeId = '01210000000QemG', IF((text(Parent.Is_Active__c) <> '無効' && text(Parent.Is_Active__c) <> '驳回'), '有效', '无效'),IF(Parent.Parent.RecordTypeId = '01210000000QemG',IF((text(Parent.Parent.Is_Active__c) <> '無効' && text(Parent.Parent.Is_Active__c) <> '驳回'), IF(text(Is_Active__c) <> '有効', '无效', '有效'), '无效'),
| /*经销商*/
| IF(RecordTypeId = '01210000000Qem1',IF(OR(Delete_Flag__c,Ban_On_Use_Date__c < Today(),Business_Paper_Expiration_Date__c <Today(),Tax_Practice_Expiration_Date__c < Today(),Medical_Equipment_Expiration_Date__c < Today(),
| DGLicenseTo__c < Today()
| ),'无效','有效'),IF(Parent.RecordTypeId = '01210000000Qem1', IF(OR(Delete_Flag__c,
| Parent.Delete_Flag__c,Parent.Business_Paper_Expiration_Date__c < Today(),
| Parent.Tax_Practice_Expiration_Date__c < Today(),Parent.Medical_Equipment_Expiration_Date__c < Today(),Parent.Ban_On_Use_Date__c < Today(), Contract_Decide_End_Date__c < Today()), '无效', '有效'),'')))))</formula>
| <label>有效/无效(公式)</label>
| <required>false</required>
| <trackHistory>false</trackHistory>
| <type>Text</type>
| <unique>false</unique>
| </CustomField>
|
|