Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method SynchronizeEntities ( 
 | 
  owning BinaryData groups, 
 | 
  owning BinaryData stockingpoints, 
 | 
  owning BinaryData units, 
 | 
  owning BinaryData salessegment 
 | 
) 
 | 
{ 
 | 
  Description: 'Import entities to model' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // desmondt May-20-2014 (created) 
 | 
    this.ValidateBroker( typeof( MP_ImportGroupsBroker ).ShortName(), this.MP_ImportGroupsBroker().Source(), groups.AsBinaryValue() ); 
 | 
    this.ValidateBroker( typeof( MP_ImportUnitsBroker ).ShortName(), this.MP_ImportUnitsBroker().Source(), units.AsBinaryValue() ); 
 | 
    this.ValidateBroker( typeof( MP_ImportStockingPointsBroker ).ShortName(), this.MP_ImportStockingPointsBroker().Source(), stockingpoints.AsBinaryValue() ); 
 | 
    this.ValidateBroker( typeof( MP_ImportSalesSegmentsBroker ).ShortName(), this.MP_ImportSalesSegmentsBroker().Source(), salessegment.AsBinaryValue() ); 
 | 
     
 | 
    progress( 'Importing groups', DateTime::ActualTime() ); 
 | 
    this.MP_ImportGroupsBroker().ExecuteFromXLS( &groups, true ); 
 | 
       
 | 
    progress( 'Importing units', DateTime::ActualTime() ); 
 | 
    this.MP_ImportUnitsBroker().ExecuteFromXLS( &units, true ); 
 | 
       
 | 
    progress( 'Importing stocking points', DateTime::ActualTime() ); 
 | 
    this.MP_ImportStockingPointsBroker().ExecuteFromXLS( &stockingpoints, true ); 
 | 
       
 | 
    progress( 'Importing sales segments', DateTime::ActualTime() ); 
 | 
    this.MP_ImportSalesSegmentsBroker().ExecuteFromXLS( &salessegment, true ); 
 | 
  *] 
 | 
} 
 |