Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetHasValidShiftPattern ( 
 | 
  output Strings feedback_o, 
 | 
  output Strings sanitycheckfeedback_o 
 | 
) declarative remote as Boolean 
 | 
{ 
 | 
  Description: 'check if macroplan has at least a shift pattern' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // desmondt Nov-11-2014 (created) 
 | 
     
 | 
    isvalid := this.ShiftPattern( relsize ) > 0; 
 | 
     
 | 
    if( not isnull( feedback_o ) and not isvalid ) 
 | 
    { 
 | 
      feedback_o.Add( Translations::MP_MacroPlan_ViolateHasValidShiftPattern() ); 
 | 
      sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataIssue() ); 
 | 
    } 
 | 
     
 | 
    return isvalid; 
 | 
  *] 
 | 
} 
 |