| Quintiq file version 2.0 | 
| #parent: #root | 
| EDIBroker MPSync_ImportShiftPatternsFromExcelBroker | 
| { | 
|   MDSDefinition: MPSync | 
|   EDIModelLink.Destination MPSync_DestinationShiftPatternsForExcelImport | 
|   { | 
|     SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.outputshiftpatternstomodel' | 
|     EDIMLTable IOShiftDay | 
|     { | 
|       PrimaryKeyColumns: ID | 
|       PrimaryKeyColumns: ShiftPatternName | 
|       SoftDeleteAttribute: IsSoftDeleted | 
|       TargetType: IOShiftDay | 
|       TypeIndex: IOShiftDayTypeIndex | 
|       WithSoftDelete: true | 
|       EDIMLColumn Capacity { Attribute: Capacity ValueType: Duration } | 
|       EDIMLColumn Day { Attribute: Day ValueType: Number } | 
|       EDIMLColumn ID { Attribute: ID ValueType: String } | 
|       EDIMLColumn ShiftPatternName { Attribute: ShiftPatternName ValueType: String } | 
|     } | 
|     EDIMLTable IOShiftPattern | 
|     { | 
|       PrimaryKeyColumns: Name | 
|       SoftDeleteAttribute: IsSoftDeleted | 
|       TargetType: IOShiftPattern | 
|       TypeIndex: IOShiftPatternTypeIndex | 
|       WithSoftDelete: true | 
|       EDIMLColumn MinimumDuration { Attribute: MinimumDuration ValueType: Duration } | 
|       EDIMLColumn Name { Attribute: Name ValueType: String } | 
|     } | 
|     EDIMLTable IOUnitShiftPattern | 
|     { | 
|       PrimaryKeyColumns: ShiftPatternName | 
|       PrimaryKeyColumns: UnitID | 
|       SoftDeleteAttribute: IsSoftDeleted | 
|       TargetType: IOUnitShiftPattern | 
|       TypeIndex: IOUnitShiftPatternTypeIndex | 
|       WithSoftDelete: true | 
|       EDIMLColumn IsAllowed { Attribute: IsAllowed ValueType: Boolean } | 
|       EDIMLColumn ShiftPatternName { Attribute: ShiftPatternName ValueType: String } | 
|       EDIMLColumn UnitID { Attribute: UnitID ValueType: String } | 
|     } | 
|   } | 
|   EDITransformation.Transformation MPSync_TransformationShiftPatternsForExcelImport | 
|   { | 
|     EDITableTransformation | 
|     { | 
|       InputTable: ShiftDays_MP | 
|       OutputTable: IOShiftDay | 
|       EDIColumnMatch { InputColumn: Capacity OutputColumn: Capacity } | 
|       EDIColumnMatch { InputColumn: Day OutputColumn: Day } | 
|       EDIColumnMatch { InputColumn: ID OutputColumn: ID } | 
|       EDIColumnMatch { InputColumn: ShiftPatternName OutputColumn: ShiftPatternName } | 
|     } | 
|     EDITableTransformation | 
|     { | 
|       InputTable: ShiftPatterns_MP | 
|       OutputTable: IOShiftPattern | 
|       EDIColumnMatch { InputColumn: MinimumDuration OutputColumn: MinimumDuration } | 
|       EDIColumnMatch { InputColumn: Name OutputColumn: Name } | 
|     } | 
|     EDITableTransformation | 
|     { | 
|       InputTable: UnitShiftPatterns_MP | 
|       OutputTable: IOUnitShiftPattern | 
|       EDIColumnMatch { InputColumn: IsAllowed OutputColumn: IsAllowed } | 
|       EDIColumnMatch { InputColumn: ShiftPatternName OutputColumn: ShiftPatternName } | 
|       EDIColumnMatch { InputColumn: UnitID OutputColumn: UnitID } | 
|     } | 
|   } | 
|   EDIXLSLink.Source MPSync_SourceShiftPatternsForExcelImport | 
|   { | 
|     FileName: 'MP_ShiftPatterns.xlsx' | 
|     SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.inputshiftpatternsfromexcel' | 
|     EDIXLSLinkTable ShiftDays_MP | 
|     { | 
|       Columns: | 
|       [ | 
|         EDIXLSLinkColumn Capacity { ValueType: Duration } | 
|         EDIXLSLinkColumn Day { ValueType: Number } | 
|         EDIXLSLinkColumn ID { ValueType: String } | 
|         EDIXLSLinkColumn ShiftPatternName { ValueType: String } | 
|       ] | 
|     } | 
|     EDIXLSLinkTable ShiftPatterns_MP | 
|     { | 
|       Columns: | 
|       [ | 
|         EDIXLSLinkColumn MinimumDuration { ValueType: Duration } | 
|         EDIXLSLinkColumn Name { ValueType: String } | 
|       ] | 
|     } | 
|     EDIXLSLinkTable UnitShiftPatterns_MP | 
|     { | 
|       Columns: | 
|       [ | 
|         EDIXLSLinkColumn IsAllowed { ValueType: Boolean } | 
|         EDIXLSLinkColumn ShiftPatternName { ValueType: String } | 
|         EDIXLSLinkColumn UnitID { ValueType: String } | 
|       ] | 
|     } | 
|   } | 
| } |