Quintiq file version 2.0
#parent: #root
Method SetDefaultValue (
  structured[SalesSegment_MP] salesSegmentsSelected
) id:Method_DialogCreateEditFulfillmentRestriction_SetDefaultValue
{
  #keys: '[135040.0.185320559]'
  Body:
  [*
    // Set default + init dialog
    
    dialogInstance := DataHolderDialogData.Data();
    
    if ( not isnull( dialogInstance ) )
    {
      CheckboxStart.Checked( dialogInstance.StartDate().IsFinite() );
      CheckboxEnd.Checked( dialogInstance.EndDate().IsFinite( ) );
    }
    else
    {
      CheckboxStart.Checked( false );
      CheckboxEnd.Checked( false );  
      dsStart.Date( Date::MinDate() );
      dsEnd.Date( Date::MaxDate() );
    }
  *]
}
