Quintiq file version 2.0
#parent: #root
Method InitializeComponents () id:Method_DialogCreateEditSupplyTarget_InitializeComponents
{
  #keys: '[139394.1.54606077]'
  Body:
  [*
    // Enable disable components
    data := DataHolderDialogData.Data();
    
    isstartfinite := data.Start().IsFinite();
    CheckboxStart.Checked( isstartfinite );
    DateTimeSelectorStart.Enabled( isstartfinite, '' )
    
    isendfinite := data.End().IsFinite();
    CheckboxEnd.Checked( isendfinite );
    DateTimeSelectorEnd.Enabled( isendfinite, '' );
    
    EditFieldMaxQuantity.Enabled( data.HasMaxQuantity(), '' );
    
    // Set labels
    this.SetLabels( data.Unit().UnitOfMeasure_MP() );
  *]
}
