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
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod CanSetIsIgnored ( 
 |    SCK_CheckBases checks, 
 |    Boolean is_ignored, 
 |    output String feedback_o 
 |  ) const declarative remote as Boolean 
 |  { 
 |    Description: 'Indicates if the ignored flag of the checks in [checks] can be set to [is_ignored] and provides feedback [feedback_o] if this is not the case' 
 |    TextBody: 
 |    [* 
 |      result := true; 
 |       
 |      if ( checks.Size() > 0 and forall( checks, Elements, v, v.IsIgnored() = is_ignored ) ) 
 |      { 
 |        manager := checks.Element( 0 ).Manager(); 
 |        items := manager.TRANSLATION_Checks(); 
 |        feedback_o := ifexpr( is_ignored 
 |                            , manager.TRANSLATION_AlreadyIgnoredItems( items ) 
 |                            , manager.TRANSLATION_AlreadyUnIgnoredItems( items ) ); 
 |       
 |        result := false;   
 |      } 
 |       
 |      return result; 
 |    *] 
 |  } 
 |  
  |