| Quintiq file version 2.0 | 
| #parent: #root | 
| EDIBroker MP_ExportPeriodsBroker | 
| { | 
|   MDSDefinition: MacroPlan | 
|   EDIModelLink.Source OutputPeriodsFromModel | 
|   { | 
|     SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.outputperioddefinitionsfrommodel' | 
|     EDIMLTable PeriodParameter_MP | 
|     { | 
|       PrimaryKeyColumns: ID | 
|       TargetType: PeriodParameter_MP | 
|       TypeIndex: PeriodParameterTypeIndex | 
|       EDIMLColumn ID { Attribute: ID ValueType: String } | 
|       EDIMLColumn StartOPlanning { Attribute: StartOfPlanning ValueType: DateTime } | 
|     } | 
|     EDIMLTable PeriodSpecification_MP | 
|     { | 
|       PrimaryKeyColumns: ID | 
|       TargetType: PeriodSpecification_MP | 
|       TypeIndex: PeriodSpecificationTypeIndex | 
|       WithInstanceFilter: true | 
|       EDIMLColumn ID { Attribute: ID ValueType: String } | 
|       EDIMLColumn IsUsedForPlanning { Attribute: IsUsedForPlanning ValueType: Boolean } | 
|       EDIMLColumn NrOfFuturePeriod { Attribute: NrOfFuturePeriod ValueType: Number } | 
|       EDIMLColumn NrOfHistoricalPeriod { Attribute: NrOfHistoricalPeriod ValueType: Number } | 
|       EDIMLColumn NrOfTimeUnit { Attribute: NrOfTimeUnit ValueType: Number } | 
|       EDIMLColumn PeriodAlignment { Attribute: PeriodAlignment ValueType: DateTime } | 
|       EDIMLColumn TimeUnit { Attribute: TimeUnit ValueType: String } | 
|       EDIMLInstanceFilter | 
|       { | 
|         ArgumentExpression: 'selectset( this, PeriodSpecification_MP, ps, not ps.IsDummyPlanningPeriod() )' | 
|       } | 
|     } | 
|   } | 
|   EDITransformation.Transformation TransformPeriodsForExport | 
|   { | 
|     EDITableTransformation | 
|     { | 
|       InputTable: PeriodParameter_MP | 
|       OutputTable: PeriodParameters_MP | 
|       EDIColumnMatch | 
|       { | 
|         InputColumn: ID | 
|         OutputColumn: ID | 
|       } | 
|       EDIColumnMatch | 
|       { | 
|         InputColumn: StartOPlanning | 
|         OutputColumn: StartOPlanning | 
|       } | 
|     } | 
|     EDITableTransformation | 
|     { | 
|       InputTable: PeriodSpecification_MP | 
|       OutputTable: PeriodSpecifications_MP | 
|       EDIColumnMatch { InputColumn: IsUsedForPlanning OutputColumn: IsUsedForPlanning } | 
|       EDIColumnMatch | 
|       { | 
|         InputColumn: PeriodAlignment | 
|         OutputColumn: PeriodAlignment | 
|       } | 
|       EDIColumnMatch | 
|       { | 
|         InputColumn: NrOfTimeUnit | 
|         OutputColumn: NrOfTimeUnit | 
|       } | 
|       EDIColumnMatch | 
|       { | 
|         InputColumn: NrOfHistoricalPeriod | 
|         OutputColumn: NrOfHistoricalPeriod | 
|       } | 
|       EDIColumnMatch | 
|       { | 
|         InputColumn: NrOfFuturePeriod | 
|         OutputColumn: NrOfFuturePeriod | 
|       } | 
|       EDIColumnMatch | 
|       { | 
|         InputColumn: ID | 
|         OutputColumn: ID | 
|       } | 
|       EDIColumnMatch | 
|       { | 
|         InputColumn: TimeUnit | 
|         OutputColumn: TimeUnit | 
|       } | 
|     } | 
|   } | 
|   EDIXLSLink.Destination OutputPeriodsToExcel | 
|   { | 
|     FileName: 'MP_Periods' | 
|     SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.outputperioddefinitionstoexcel' | 
|     EDIXLSLinkTable PeriodParameters_MP | 
|     { | 
|       Columns: | 
|       [ | 
|         EDIXLSLinkColumn ID { ValueType: String } | 
|         EDIXLSLinkColumn StartOPlanning { ValueType: DateTime } | 
|       ] | 
|     } | 
|     EDIXLSLinkTable PeriodSpecifications_MP | 
|     { | 
|       Columns: | 
|       [ | 
|         EDIXLSLinkColumn ID { ValueType: String } | 
|         EDIXLSLinkColumn NrOfFuturePeriod { ValueType: Number } | 
|         EDIXLSLinkColumn NrOfHistoricalPeriod { ValueType: Number } | 
|         EDIXLSLinkColumn NrOfTimeUnit { ValueType: Number } | 
|         EDIXLSLinkColumn PeriodAlignment { ValueType: DateTime } | 
|         EDIXLSLinkColumn TimeUnit { ValueType: String } | 
|         EDIXLSLinkColumn IsUsedForPlanning { ValueType: Boolean } | 
|       ] | 
|     } | 
|   } | 
| } |