admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 );
  *]
}