Quintiq file version 2.0
#parent: #root
Method SetDefaultCapacity () id:Method_DialogCreateEditUnit_SetDefaultCapacity
{
  #keys: '[11660.0.34891525]'
  Body:
  [*
    // Get dialog.data
    feedback := '';
    capacityType := RadioButtonGroupCapacityType.BoundValue();
    
    if( capacityType = GlobalParameters_MP::GetCapacityTypeTransportTime() )
    {
      feedback := Translations::MP_Designer_DialogUnit_DisableTransporTimeLotTabWithFeedback();
    }
    else if( capacityType = GlobalParameters_MP::GetCapacityTypeTransportQuantity() )
    {
      feedback := Translations::MP_Designer_DialogUnit_DisableTransportQuantityLotTabWithFeedback();  
    }
    
    if( feedback <> '' )
    {
      TabPageLotSize.DisableWithUserFeedback( feedback );
    }
    else
    {
      TabPageLotSize.Enabled( true );
    }
  *]
}
