Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method EditShift ( 
 | 
  structured[ShiftDay] selection, 
 | 
  internal[GUIComponent] parent 
 | 
) id:Method_DialogEditShiftDay_EditShift 
 | 
{ 
 | 
  #keys: '[11660.0.14186373]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Edit shift day 
 | 
    isbatchedit := selection.Size() > 1; 
 | 
     
 | 
    Dialog.ShowHideComponentForBatchEdit( isbatchedit ); 
 | 
     
 | 
    data := shadow( selection.Element( 0 ) ); 
 | 
    Dialog.Data( data ); 
 | 
     
 | 
    result := Dialog.DoModal( parent ); 
 | 
     
 | 
    if( result > 0 ) 
 | 
    { 
 | 
      ShiftDay::Update( selection, data.Capacity(), false ); 
 | 
    } 
 | 
  *] 
 | 
} 
 |