Quintiq file version 2.0
#parent: #root
Method SetLabels () id:Method_DialogCreateEditTransportCapacity_SetLabels
{
  #keys: '[135040.0.7702527]'
  Body:
  [*
    // Update dialog labels 
    uom := guard( SelectionUnit.Data().UnitOfMeasureName(), '' );
    timeunit := StringSelectionTimeUnit.BoundValue();
    
    LabelMinCap.Text( Translations::MP_Designer_DialogCreateEditTransportCapacity_MinCapacity( uom, timeunit ) );
    LabelMaxCap.Text( Translations::MP_Designer_DialogCreateEditTransportCapacity_MaxCapacity( uom, timeunit ) );
    
    secondaryuom := guard( SelectionSecondaryUnitOfMeasure.Data().Name(), '' );
    
    LabelSecondaryMinCapacity.Text( Translations::MP_Designer_DialogCreateEditTransportCapacity_MinCapacity( secondaryuom, timeunit ) );
    LabelSecondaryMaxCapacity.Text( Translations::MP_Designer_DialogCreateEditTransportCapacity_MaxCapacity( secondaryuom, timeunit ) );
    LabelSecondaryLotSize.Text( Translations::MP_Designer_DialogUnit_SetLabelLotSize( secondaryuom ) );
  *]
}
