Quintiq file version 2.0 
 | 
#parent: #root 
 | 
EDIBroker MPSync_ImportInventorySuppliesFromDBBroker 
 | 
{ 
 | 
  MDSDefinition: MPSync 
 | 
  EDIModelLink.Destination MPSync_DestinationInventorySuppliesForImport 
 | 
  { 
 | 
    EDIMLTable IOInventorySupply 
 | 
    { 
 | 
      PrimaryKeyColumns: ID 
 | 
      SoftDeleteAttribute: IsSoftDeleted 
 | 
      TargetType: IOInventorySupply 
 | 
      TypeIndex: IOInventorySupplyTypeIndex 
 | 
      WithSoftDelete: true 
 | 
      EDIMLColumn Date { Attribute: Date ValueType: Date } 
 | 
      EDIMLColumn Description { Attribute: Description ValueType: String } 
 | 
      EDIMLColumn ID { Attribute: ID ValueType: String } 
 | 
      EDIMLColumn ManufacturedDate { Attribute: ManufacturedDate ValueType: Date } 
 | 
      EDIMLColumn ProductID { Attribute: ProductID ValueType: String } 
 | 
      EDIMLColumn StockingPointID { Attribute: StockingPointID ValueType: String } 
 | 
      EDIMLColumn UserQuantity { Attribute: UserQuantity ValueType: Real } 
 | 
    } 
 | 
    EDIMLTable IOInventorySupplyCost 
 | 
    { 
 | 
      PrimaryKeyColumns: ID 
 | 
      SoftDeleteAttribute: IsSoftDeleted 
 | 
      TargetType: IOInventorySupplyCost 
 | 
      TypeIndex: IOInventorySupplyCostTypeIndex 
 | 
      WithSoftDelete: true 
 | 
      EDIMLColumn AccountName { Attribute: AccountName ValueType: String } 
 | 
      EDIMLColumn Cost { Attribute: Cost ValueType: Real } 
 | 
      EDIMLColumn CostDriver { Attribute: CostDriver ValueType: String } 
 | 
      EDIMLColumn ID { Attribute: ID ValueType: String } 
 | 
      EDIMLColumn InventorySupplyID { Attribute: InventorySupplyID ValueType: String } 
 | 
      EDIMLColumn LengthOfTime { Attribute: LengthOfTime ValueType: Number } 
 | 
      EDIMLColumn Start { Attribute: Start ValueType: Date } 
 | 
      EDIMLColumn TimeUnit { Attribute: TimeUnit ValueType: String } 
 | 
    } 
 | 
  } 
 | 
  EDIODBCLink.Source MPSync_SourceInventorySuppliesForImport 
 | 
  { 
 | 
    DataIntegrityStrategy: 'Disabled' 
 | 
    SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.syncobject' 
 | 
    EDIODBCLinkTable ExternalSupplies 
 | 
    { 
 | 
      OthersMayCreateTable: true 
 | 
      OthersMayDeleteRow: true 
 | 
      OthersMayDropTable: true 
 | 
      OthersMayFlushTable: true 
 | 
      OthersMayInsertRow: true 
 | 
      Parameters: '/owner="dbo"' 
 | 
      PrimaryKeyColumns: ID 
 | 
      RecordModificationHintStrategy: 'None' 
 | 
      EDIODBCLinkColumn Date 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: DateTime 
 | 
      } 
 | 
      EDIODBCLinkColumn Description 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
      EDIODBCLinkColumn ID 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
      EDIODBCLinkColumn ManufacturedDate 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: DateTime 
 | 
      } 
 | 
      EDIODBCLinkColumn ProductID 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
      EDIODBCLinkColumn Quantity 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: Real 
 | 
      } 
 | 
      EDIODBCLinkColumn StockingPointID 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
    } 
 | 
    EDIODBCLinkTable InventorySupplyCosts 
 | 
    { 
 | 
      OthersMayCreateTable: true 
 | 
      OthersMayDeleteRow: true 
 | 
      OthersMayDropTable: true 
 | 
      OthersMayFlushTable: true 
 | 
      OthersMayInsertRow: true 
 | 
      Parameters: '/owner="dbo"' 
 | 
      PrimaryKeyColumns: ID 
 | 
      RecordModificationHintStrategy: 'None' 
 | 
      EDIODBCLinkColumn AccountName 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
      EDIODBCLinkColumn Cost 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: Real 
 | 
      } 
 | 
      EDIODBCLinkColumn CostDriver 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
      EDIODBCLinkColumn ID 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
      EDIODBCLinkColumn InventorySupplyID 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
      EDIODBCLinkColumn LengthOfTime 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: Number 
 | 
      } 
 | 
      EDIODBCLinkColumn Start 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: DateTime 
 | 
      } 
 | 
      EDIODBCLinkColumn TimeUnit 
 | 
      { 
 | 
        OthersMayUpdateColumn: true 
 | 
        ValueType: String 
 | 
      } 
 | 
    } 
 | 
  } 
 | 
  EDITransformation.Transformation MPSync_TransformationInventorySuppliesForImport 
 | 
  { 
 | 
    EDITableTransformation 
 | 
    { 
 | 
      InputTable: ExternalSupplies 
 | 
      OutputTable: IOInventorySupply 
 | 
      EDIColumnMatch 
 | 
      { 
 | 
        InputColumn: Date 
 | 
        OutputColumn: Date 
 | 
        Converter 
 | 
        { 
 | 
          XMLDefinition: 
 | 
          [* 
 | 
            <?xml version="1.0" encoding="UTF-16"?> 
 | 
            <DateTimeToDate xmlns="http://www.quintiq.com/GEB/DateTimeToDate" Key="@1"> 
 | 
              <IsStandard>true</IsStandard> 
 | 
              <IsISO>false</IsISO> 
 | 
              <IsCustom>false</IsCustom> 
 | 
              <ConversionType>0</ConversionType> 
 | 
            </DateTimeToDate> 
 | 
          *] 
 | 
        } 
 | 
      } 
 | 
      EDIColumnMatch { InputColumn: Description OutputColumn: Description } 
 | 
      EDIColumnMatch { InputColumn: ID OutputColumn: ID } 
 | 
      EDIColumnMatch 
 | 
      { 
 | 
        InputColumn: ManufacturedDate 
 | 
        OutputColumn: ManufacturedDate 
 | 
        Converter 
 | 
        { 
 | 
          XMLDefinition: 
 | 
          [* 
 | 
            <?xml version="1.0" encoding="UTF-16"?> 
 | 
            <DateTimeToDate xmlns="http://www.quintiq.com/GEB/DateTimeToDate" Key="@1"> 
 | 
              <IsStandard>true</IsStandard> 
 | 
              <IsISO>false</IsISO> 
 | 
              <IsCustom>false</IsCustom> 
 | 
              <ConversionType>0</ConversionType> 
 | 
            </DateTimeToDate> 
 | 
          *] 
 | 
        } 
 | 
      } 
 | 
      EDIColumnMatch { InputColumn: ProductID OutputColumn: ProductID } 
 | 
      EDIColumnMatch { InputColumn: Quantity OutputColumn: UserQuantity } 
 | 
      EDIColumnMatch { InputColumn: StockingPointID OutputColumn: StockingPointID } 
 | 
    } 
 | 
    EDITableTransformation 
 | 
    { 
 | 
      InputTable: InventorySupplyCosts 
 | 
      OutputTable: IOInventorySupplyCost 
 | 
      EDIColumnMatch { InputColumn: AccountName OutputColumn: AccountName } 
 | 
      EDIColumnMatch { InputColumn: Cost OutputColumn: Cost } 
 | 
      EDIColumnMatch { InputColumn: CostDriver OutputColumn: CostDriver } 
 | 
      EDIColumnMatch { InputColumn: ID OutputColumn: ID } 
 | 
      EDIColumnMatch { InputColumn: InventorySupplyID OutputColumn: InventorySupplyID } 
 | 
      EDIColumnMatch { InputColumn: LengthOfTime OutputColumn: LengthOfTime } 
 | 
      EDIColumnMatch 
 | 
      { 
 | 
        InputColumn: Start 
 | 
        OutputColumn: Start 
 | 
        Converter 
 | 
        { 
 | 
          XMLDefinition: 
 | 
          [* 
 | 
            <?xml version="1.0" encoding="UTF-16"?> 
 | 
            <DateTimeToDate xmlns="http://www.quintiq.com/GEB/DateTimeToDate" Key="@1"> 
 | 
              <IsStandard>true</IsStandard> 
 | 
              <IsISO>false</IsISO> 
 | 
              <IsCustom>false</IsCustom> 
 | 
              <ConversionType>0</ConversionType> 
 | 
            </DateTimeToDate> 
 | 
          *] 
 | 
        } 
 | 
      } 
 | 
      EDIColumnMatch { InputColumn: TimeUnit OutputColumn: TimeUnit } 
 | 
    } 
 | 
  } 
 | 
} 
 |