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 );
|
}
|
*]
|
}
|