| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Relation InterfacePlanInventoryDataPush_InterfaceDataset_InterfaceDataset_InterfacePlanInventoryDataPush | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '1[413988.0.1493874639]' | 
|---|
|  |  |  | DefaultRelationStrategy | 
|---|
|  |  |  | { | 
|---|
|  |  |  | } | 
|---|
|  |  |  | RelationSide.LeftSide InterfaceDataset | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[413988.0.1493874641][413988.0.1493874640][413988.0.1493874642]' | 
|---|
|  |  |  | Cardinality: '0to1' | 
|---|
|  |  |  | ObjectDefinition: InterfacePlanInventoryDataPush | 
|---|
|  |  |  | OwningSide: 'Reference' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | RelationSide.RightSide InterfacePlanInventoryDataPush | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[413988.0.1493874644][413988.0.1493874643][413988.0.1493874645]' | 
|---|
|  |  |  | Cardinality: '1toN' | 
|---|
|  |  |  | ObjectDefinition: InterfaceDataset | 
|---|
|  |  |  | OwningSide: 'Owned' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute Fac | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[413988.0.1493874711][413988.0.1493874710][413988.0.1493874712]' | 
|---|
|  |  |  | Description: 'å·¥åç®å' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute FactoryName | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[413988.0.1493874701][413988.0.1493874700][413988.0.1493874702]' | 
|---|
|  |  |  | Description: 'å·¥ååç§°' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute InventoryDate | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[413988.0.1493874665][413988.0.1493874664][413988.0.1493874666]' | 
|---|
|  |  |  | Description: 'åºåæ¥æ' | 
|---|
|  |  |  | ValueType: Date | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute PlanningInventory | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[413988.0.1493874681][413988.0.1493874680][413988.0.1493874682]' | 
|---|
|  |  |  | Description: 'å¯¹åºæ¥æç计ååºåæ°é' | 
|---|
|  |  |  | ValueType: Number | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute Product | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[413988.0.1493874655][413988.0.1493874654][413988.0.1493874656]' | 
|---|
|  |  |  | Description: 'ç©æå·' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute VersionName | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[413988.0.1493874691][413988.0.1493874690][413988.0.1493874692]' | 
|---|
|  |  |  | Description: 'çæ¬åç§°' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | StaticMethod GenerateData ( | 
|---|
|  |  |  | MacroPlan macroPlan, | 
|---|
|  |  |  | InterfaceDataset interfaceDataset | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TextBody: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | interfaceDataset.InterfacePlanInventoryDataPush( relflush ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | traverse ( macroPlan, Product_MP.ProductInStockingPoint_MP, pispmp, not pispmp.IsSystem() and pispmp.IsLeaf() ) { | 
|---|
|  |  |  | traverse ( pispmp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ), pispippl, not pispippl.IsPeriodFrozen() ) { | 
|---|
|  |  |  | interfaceDataset.InterfacePlanInventoryDataPush( relnew, | 
|---|
|  |  |  | Product           := pispmp.ProductID(), | 
|---|
|  |  |  | InventoryDate     := pispippl.Start().Date(), | 
|---|
|  |  |  | PlanningInventory := [Number]pispippl.InventoryLevelEnd(), | 
|---|
|  |  |  | VersionName       := macroPlan.ScenarioName(), | 
|---|
|  |  |  | FactoryName       := ifexpr( pispmp.StockingPointID().Regex( "大è¿" ) or pispmp.StockingPointID().Regex( "DL" ), "大è¿å·¥å", "é¿æ¥å·¥å" ), | 
|---|
|  |  |  | Fac               := ifexpr( pispmp.StockingPointID().Regex( "大è¿" ) or pispmp.StockingPointID().Regex( "DL" ), "DL", "CC" ) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #root | 
|---|
|  |  |  | #parent: #DomainModel | 
|---|
|  |  |  | Type InterfacePlanInventoryDataPush | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '5[413988.0.1493874636][413988.0.1493874634][0.0.0][413988.0.1493874635][413988.0.1493874637]' | 
|---|
|  |  |  | BaseType: Object | 
|---|
|  |  |  | StructuredName: 'InterfacePlanInventoryDataPushs' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | traverse ( u, Lane.LaneLeg.Trip, t ) { | 
|---|
|  |  |  | traverse ( t, ProductInTrip, pit, pit.Quantity() > 0.0 ) { | 
|---|
|  |  |  | // æ¾è¡ | 
|---|
|  |  |  | tpr := TransferPlanRow::FindTransferPlanRowTypeIndex( t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP().Name(), | 
|---|
|  |  |  | t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP().Name(), | 
|---|
|  |  |  | tpr := TransferPlanRow::FindTransferPlanRowTypeIndex( TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP() ), | 
|---|
|  |  |  | TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP() ), | 
|---|
|  |  |  | pit.Product_MP().ID() ); | 
|---|
|  |  |  | if ( isnull( tpr ) ) { | 
|---|
|  |  |  | tpr := macroPlan.TransferPlanRow( relnew, | 
|---|
|  |  |  | RowNr                   := rowNr, | 
|---|
|  |  |  | SourceStockpoingPointID := t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP().Name(), | 
|---|
|  |  |  | TargetStockpoingPointID := t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP().Name(), | 
|---|
|  |  |  | SourceStockpoingPointID := TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP() ), | 
|---|
|  |  |  | TargetStockpoingPointID := TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP() ), | 
|---|
|  |  |  | ProductID               := pit.Product_MP().ID() ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | StaticMethod IdentifyTheFactory ( | 
|---|
|  |  |  | StockingPoint_MP spmp | 
|---|
|  |  |  | ) as String | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TextBody: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | factory := ""; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if ( spmp.Name().Regex( "é¿æ¥" ) or spmp.Name().Regex( "CC" ) ) { | 
|---|
|  |  |  | factory := "CC"; | 
|---|
|  |  |  | } else if ( spmp.Name().Regex( "大è¿" ) or spmp.Name().Regex( "DL" ) ) { | 
|---|
|  |  |  | factory := "DL"; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | factory := "æ¾ä¸å°å±äºåªä¸ªå·¥å"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return factory; | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | Taborder: 6 | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component bMachineLogisticsCostReport | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1467117990]' | 
|---|
|  |  |  | BaseType: 'WebButton' | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'LOCATION_PIN' | 
|---|
|  |  |  | Label: 'æºå ç©æµææ¬æ¥è¡¨' | 
|---|
|  |  |  | Taborder: 7 | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component ButtonScenarioComparisonDemandComparison id:ButtonScenarioComparisonDemandComparison_256 | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[412672.1.90201789]' | 
|---|
|  |  |  | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'EQUALS' | 
|---|
|  |  |  | Label: '鿱坹æ¯' | 
|---|
|  |  |  | Taborder: 8 | 
|---|
|  |  |  | Taborder: 7 | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component ButtonScheduleSummaryReport | 
|---|
|  |  |  | 
|---|
|  |  |  | Taborder: 9 | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component bCC_EngineRackReport | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1477120930]' | 
|---|
|  |  |  | BaseType: 'WebButton' | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'SATELLITE' | 
|---|
|  |  |  | Label: 'é¿æ¥å卿ºææ¶æ¥è¡¨' | 
|---|
|  |  |  | Taborder: 10 | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component bDL_EngineRackReport | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1488511896]' | 
|---|
|  |  |  | BaseType: 'WebButton' | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'EARTH_LOCATION' | 
|---|
|  |  |  | Label: '大è¿å卿ºææ¶æ¥è¡¨' | 
|---|
|  |  |  | Taborder: 11 | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component ButtonEngineLogisticsCostReport | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[415136.0.989557433]' | 
|---|
|  |  |  | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'MONEY2' | 
|---|
|  |  |  | Label: 'å卿ºç©æµææ¬æ¥è¡¨' | 
|---|
|  |  |  | Taborder: 12 | 
|---|
|  |  |  | Taborder: 10 | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component ButtonAnnualPlanReport | 
|---|
|  |  |  | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'DOCUMENT_HEART' | 
|---|
|  |  |  | Label: 'å
¨å¹´è®¡åæ¥è¡¨' | 
|---|
|  |  |  | Taborder: 13 | 
|---|
|  |  |  | Taborder: 11 | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Description: 'CC engine logistics cost report' | 
|---|
|  |  |  | Image: 'MONEY2' | 
|---|
|  |  |  | Taborder: 0 | 
|---|
|  |  |  | Image: 'MONEY_COINS2' | 
|---|
|  |  |  | Taborder: 1 | 
|---|
|  |  |  | Title: 'é¿æ¥å卿ºç©æµææ¬æ¥è¡¨' | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Description: 'DL engine logistics cost report' | 
|---|
|  |  |  | Image: 'MONEY2' | 
|---|
|  |  |  | Taborder: 1 | 
|---|
|  |  |  | Image: 'PIGGY_BANK' | 
|---|
|  |  |  | Taborder: 2 | 
|---|
|  |  |  | Title: '大è¿å卿ºç©æµææ¬æ¥è¡¨' | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component mMachineLogisticsCostReport | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1492770837]' | 
|---|
|  |  |  | BaseType: 'WebMenu' | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'LOCATION_PIN' | 
|---|
|  |  |  | Taborder: 0 | 
|---|
|  |  |  | Title: 'æºå ç©æµææ¬æ¥è¡¨' | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component mCC_EngineRackReport | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1492701081]' | 
|---|
|  |  |  | BaseType: 'WebMenu' | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'SATELLITE' | 
|---|
|  |  |  | Taborder: 3 | 
|---|
|  |  |  | Title: 'é¿æ¥å卿ºææ¶æ¥è¡¨' | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component mDL_EngineRackReport | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1492780876]' | 
|---|
|  |  |  | BaseType: 'WebMenu' | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Image: 'EARTH_LOCATION' | 
|---|
|  |  |  | Taborder: 4 | 
|---|
|  |  |  | Title: '大è¿å卿ºææ¶æ¥è¡¨' | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | 
|---|
|  |  |  | Title: 'Finished engine inventory' | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Component mInterfacePlanInventoryDataPush | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1495640230]' | 
|---|
|  |  |  | BaseType: 'WebMenu' | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | Taborder: 3 | 
|---|
|  |  |  | Title: '计ååºåæ°æ®æ¨éæ¥å£æµè¯' | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | Properties: | 
|---|
|  |  |  | [ | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: ContextMenuEngineLogisticsCostReport/mCC_EngineRackReport | 
|---|
|  |  |  | Response OnClick () id:Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mCC_EngineRackReport_OnClick | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1494079933]' | 
|---|
|  |  |  | CanBindMultiple: false | 
|---|
|  |  |  | DefinitionID: 'Responsedef_WebMenu_OnClick' | 
|---|
|  |  |  | GroupServerCalls: true | 
|---|
|  |  |  | QuillAction | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Body: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | ApplicationScope.ViewManager().ResetUserViewById( "CCEngineRackReport", true); | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: ContextMenuEngineLogisticsCostReport/mDL_EngineRackReport | 
|---|
|  |  |  | Response OnClick () id:Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mDL_EngineRackReport_OnClick | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1494298669]' | 
|---|
|  |  |  | CanBindMultiple: false | 
|---|
|  |  |  | DefinitionID: 'Responsedef_WebMenu_OnClick' | 
|---|
|  |  |  | GroupServerCalls: true | 
|---|
|  |  |  | QuillAction | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Body: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | ApplicationScope.ViewManager().ResetUserViewById( "DLEngineRackReport", true); | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: ContextMenuEngineLogisticsCostReport/mMachineLogisticsCostReport | 
|---|
|  |  |  | Response OnClick () id:Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mMachineLogisticsCostReport_OnClick | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1492720600]' | 
|---|
|  |  |  | CanBindMultiple: false | 
|---|
|  |  |  | DefinitionID: 'Responsedef_WebMenu_OnClick' | 
|---|
|  |  |  | GroupServerCalls: true | 
|---|
|  |  |  | QuillAction | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Body: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | ApplicationScope.ViewManager().ResetUserViewById( "MachineLogisticsCostReport", true); | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: ContextMenuInterface/mInterfacePlanInventoryDataPush | 
|---|
|  |  |  | Response OnClick () id:Response_MacroPlanner_ContextMenuInterface_mInterfacePlanInventoryDataPush_OnClick | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '[413988.0.1495640258]' | 
|---|
|  |  |  | CanBindMultiple: false | 
|---|
|  |  |  | DefinitionID: 'Responsedef_WebMenu_OnClick' | 
|---|
|  |  |  | QuillAction | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Body: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | InterfacePlanInventoryDataPush::GenerateData( MacroPlan, InterfaceDataset ); | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | GroupServerCalls: false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|