<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Lock_failuer_situation_Check</fullName>
|
<active>true</active>
|
<description>2018/10/30因为日报新建时报错,取消状态是草案中的验证条件。</description>
|
<errorConditionFormula>($User.ProfileId <>'00e10000000dEQx')&&
|
($User.ProfileId <>'00e10000000xnoT')&&
|
(NOT(CONTAINS($Label.ProfileId_EquCenAdmin, $User.ProfileId)))&&
|
(NOT(CONTAINS($Label.ProfileId_EquCenCheckAndDepot, $User.ProfileId)))&&
|
($User.ProfileId <>'00e10000000Y3o5')&& ((ischanged(failuer_situation__c)||ischanged(Faliour_date__c)||ischanged(Trable_occur_daY_collect__c)||
|
ischanged(Report_For_Goz__c)||ischanged(Relation_With_The_Problem__c)||
|
ischanged(Comment__c)||ischanged(Which_Project__c)||ischanged(Opera_Name__c)||
|
ischanged(Is_Used_For_The_Opera__c)||ischanged(Set_usage_product__c)||ischanged(problem_detail__c)||
|
ischanged(problem_detail_photo__c)||ischanged(accsessary_ship__c)||ischanged(accsessary_detail__c)||
|
ischanged(shipping_to_QIS_dept_day__c)||ischanged(request_altanetive_product__c))&&
|
or(and(and( $Profile.Id!='00e10000000xnpM',$Profile.Id!='00e10000000Y3o5', $Profile.Id!='00e10000000xo1D'),
|
or(Text(QIS_Status__c)=='FSE填写完毕',Text(QIS_Status__c)=='申请中',Text(QIS_Status__c)=='取消申请',Text(QIS_Status__c)=='取消')
|
),
|
and(Text(QIS_Status__c)!='草案中',Text(QIS_Status__c)!='FSE填写完毕',Text(QIS_Status__c)!='申请中',Text(QIS_Status__c)!='取消申请',Text(QIS_Status__c)!='取消')))</errorConditionFormula>
|
<errorMessage>“发生故障信息”一栏已不可编辑,请确认QIS状态</errorMessage>
|
</ValidationRule>
|