Quintiq file version 2.0
#parent: #root
Method SetLabels (
  String timeunit,
  UnitOfMeasure_MP secondaryuom
) id:Method_DialogCreateEditTransportCapacity_SetLabels
{
  #keys: '[139394.1.45266549]'
  Body:
  [*
    // Update labels
    secondaryuomName := guard( secondaryuom.Name(), '' );
    
    // secondary uom
    EditFieldSecondaryMinCapacity.Label( Translations::MP_WebDesigner_DialogCreateEditTransportCapacity_MinCapacity( timeunit, secondaryuomName ) );
    EditFieldSecondaryMaxCapacity.Label( Translations::MP_WebDesigner_DialogCreateEditTransportCapacity_MaxCapacity( timeunit, secondaryuomName ) );
    EditFieldSecondaryLotSize.Label( Translations::MP_WebDesigner_DialogOperation_SetLabelLotSize( secondaryuomName ) );
    
    // uom
    uomName := guard( DataHolderDialogData.Data().Unit().UnitOfMeasureName(), '' );
    EditFieldMinCapacity.Label( Translations::MP_WebDesigner_DialogCreateEditTransportCapacity_MinCapacity( timeunit, uomName ) );
    EditFieldMaxCapacity.Label( Translations::MP_WebDesigner_DialogCreateEditTransportCapacity_MaxCapacity( timeunit, uomName ) );
    EditFieldLotSize.Label( Translations::MP_WebDesigner_DialogOperation_SetLabelLotSize( uomName ) );
  *]
}
