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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
Quintiq file version 2.0
#parent: #root
Method Export (
  Boolean generals,
  Boolean globalparameters,
  Boolean periods,
  Boolean inventoryspecifications,
  Boolean inventorysupplies,
  Boolean products,
  Boolean recipes,
  Boolean salesdemands,
  Boolean servicelevels,
  Boolean campaigns,
  Boolean entities,
  Boolean entitycosts,
  Boolean lanes,
  Boolean routings,
  Boolean capacities,
  Boolean supplyspecifications,
  Boolean actuals,
  Boolean feedbacks,
  Boolean optimizerpuzzles,
  Boolean postponementandfulfillmentrestriction,
  Boolean customerorder,
  Boolean isbinaryexport,
  Boolean is3DDrive,
  FileItem directory3DDrive,
  output BinaryValues binaryvalues,
  output Strings brokernames
)
{
  Description: 'Selectively export items depending on arguments'
  TextBody:
  [*
    // desmondt May-19-2014 (created)
    
    //MODELING HANDLE: Turn on the printing when necessary
    print := false;
    
    if( generals )                // Currencies, UOMs, Priorities, Shift patterns
    {
      if( print ) { info( 'Exporting generals' )  }
      this.ExportGeneral( isbinaryexport, binaryvalues, brokernames );
    }
    if( globalparameters )        // Global Parameters
    {
      if( print ) { info( 'Exporting global param' )  }
      this.ExportGlobalParameters( isbinaryexport, binaryvalues, brokernames );
    }
    if( periods )                 // Period definitions, Period parameters
    {
      if( print ) { info( 'Exporting periods' )  }
      this.ExportPeriods( isbinaryexport, binaryvalues, brokernames );
    }
    if( inventoryspecifications )   // Inventory specifications
    {
      if( print ) { info( 'Exporting inventory specf' )  }
      this.ExportInventorySpecifications( isbinaryexport, binaryvalues, brokernames );
    }
    if( inventorysupplies )         // Inventory supplies
    {
      if( print ) { info( 'Exporting inventory supplies' )  }
      this.ExportInventorySupplies( isbinaryexport, binaryvalues, brokernames );
    }
    if( products )                  // Products, Product in stocking points and Disaggregation factors
    {
      if( print ) { info( 'Exporting products' )  }
      this.ExportProducts( isbinaryexport, binaryvalues, brokernames );
    }
    if( salesdemands )              // Sales demands, Postponed sales demand costs.
    {
      if( print ) { info( 'Exporting sales demands' )  }
      this.ExportSalesDemands( isbinaryexport, binaryvalues, brokernames );
    }
    if( servicelevels )
    {
      if( print ) { info( 'Exporting service levels' )  }
      this.ExportServiceLevels( isbinaryexport, binaryvalues, brokernames );
    }
    if( campaigns )                 // Campaign types, Campaigns, Operation in campaign types and Transitions
    {
      if( print ) { info( 'Exporting campaigns' )  }
      this.ExportCampaigns( isbinaryexport, binaryvalues, brokernames );
    }
    if( entities )                 // Groups, Units, Stocking points, Sales segments, Stocking point units
    {
      if( print ) { info( 'Exporting entities' )  }
      this.ExportEntities( isbinaryexport, binaryvalues, brokernames );
    }
    if( entitycosts )              // Unit accounts, Stocking point accounts, Unit costs, Lane costs, Lane leg costs, Operation costs, Stocking point costs
    {
      if( print ) { info( 'Exporting entity costs' )  }
      this.ExportEntityCosts( isbinaryexport, binaryvalues, brokernames );
    }
    if( lanes )                   // Lanes
    {
      if( print ) { info( 'Exporting processes' )  }
      this.ExportLanes( isbinaryexport, binaryvalues, brokernames );
    }
    if( routings )                // Routings, Routing step, Operations
    {
      if( print ) { info( 'Exporting routings' )  }
       this.ExportRoutings( isbinaryexport, binaryvalues, brokernames );
    }
    if( capacities )             // Stocking point capacities and unit capacities
    {
      if( print ) { info( 'Exporting sp capacities' )  }
      this.ExportStockingPointCapacities( isbinaryexport, binaryvalues, brokernames );
      if( print ) { info( 'Exporting unit capacities' )  }
      this.ExportUnitCapacities( isbinaryexport, binaryvalues, brokernames );
    }
    if( supplyspecifications )     // Supply specifications
    {
      if( print ) { info( 'Exporting supply specifications' )  }
      this.ExportSupplySpecifications( isbinaryexport, binaryvalues, brokernames );
    }
    if( recipes )           // Recipes, Recipe ingredients, Ingredients.
    {
      if( print ) { info( 'Exporting recipes' )  }
      this.ExportRecipes( isbinaryexport, binaryvalues, brokernames );
    }
    if( actuals )   // Actual unit periods and actual pispips
    {
      if( print ) { info( 'Exporting actual of unit periods' ) }
      this.ExportActualUnitPeriods( isbinaryexport, binaryvalues, brokernames );
      if( print ) { info( 'Exporting actual of product in stocking point in periods' ) }
      this.ExportActualProductInStockingPointInPeriods( isbinaryexport, binaryvalues, brokernames );
    }
    if( feedbacks ) // Feedbacks
    {
      if( print ) { info( 'Exporting feedbacks' ) }
      this.ExportFeedbacks( isbinaryexport, binaryvalues, brokernames );
    }
    if( optimizerpuzzles ) // OptimizerPuzzles
    {
      if( print ) { info( 'Exporting optimizerPuzzles' ) }
      this.ExportOptimizerPuzzles( isbinaryexport, binaryvalues, brokernames );
    }
    if( postponementandfulfillmentrestriction ) // Postponement and fulfillment restriction
    {
      if( print ) { info( 'Exporting Postponement and fulfillment restriction' ) }
      this.ExportPostponementAndFulfillmentRestriction( isbinaryexport, binaryvalues, brokernames );
    }
    if( customerorder ) // Postponement and fulfillment restriction
    {
      if( print ) { info( 'Exporting Postponement and fulfillment restriction' ) }
      this.ExportCustomerOrder( isbinaryexport, binaryvalues, brokernames );
    }
    
    // 3DDrive handling
    if( is3DDrive )
    {
      MPSyncUtility::ExportTo3DDrive( directory3DDrive, binaryvalues, brokernames );
    }
  *]
}