对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation PanelMaterial_MacroPlan_MacroPlan_PanelMaterial |
| | | { |
| | | #keys: '1[414702.0.162969760]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[414702.0.162969762][414702.0.162969761][414702.0.162969763]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: PanelMaterial |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide PanelMaterial |
| | | { |
| | | #keys: '3[414702.0.162969765][414702.0.162969764][414702.0.162969766]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | traverse ( pto, DependentDemand, dd, true ) { |
| | | product_MP := dd.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Product_MP(); |
| | | if ( product_MP.IsPanelMaterial() ) { |
| | | this.PanelMaterial( relnew, |
| | | macroPlan.PanelMaterial( relnew, |
| | | PanelModel := product_MP.ID(), |
| | | MaterialDescription := product_MP.ID(), |
| | | StartDate := dd.Start().Date(), |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SynchronizeInventoryTargets ( |
| | | GlobalOTDTable globalOTDTable, |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | traverse ( globalOTDTable, MatAttrSettingAndPlanStrategy, masaps ) { |
| | | hasMaxLevel := masaps.MaximumNumberOfDaysInInventory() <> 0; |
| | | product_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = masaps.MatCode() ); |
| | | if ( not isnull( product_MP ) ) { |
| | | traverse ( product_MP, ProductInStockingPoint_MP, pispmp ) { |
| | | InventorySpecification::Create( product_MP, |
| | | pispmp.StockingPoint_MP(), |
| | | macroPlan.StartOfPlanning().Date(), |
| | | false, |
| | | 0.0, |
| | | 0.0, |
| | | true, |
| | | [Real]masaps.MinimumNumberOfDaysInStock(), |
| | | 0.0, |
| | | hasMaxLevel, |
| | | true, |
| | | [Real]masaps.MaximumNumberOfDaysInInventory(), |
| | | 0.0, |
| | | false, |
| | | false |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | *] |
| | | } |
| | |
| | | data := shadow( selection ); |
| | | |
| | | DataHolderDialogData.Data( &data ); |
| | | |
| | | info( "hello world" ); |
| | | ApplicationMacroPlanner.ShowFormModal( this ); |
| | | *] |
| | | } |
| | |
| | | #keys: '[414702.0.158084611]' |
| | | Body: |
| | | [* |
| | | panelMaterial := GlobalOTDTable.PanelMaterial( relshadow ); |
| | | panelMaterial := MacroPlan.PanelMaterial( relshadow ); |
| | | |
| | | DataHolderDialogData.Data( &panelMaterial ); |
| | | |
| | |
| | | data := DataHolderDialogData.Data(); |
| | | panelMaterial := data.WrappedInstance(); |
| | | if ( isnull( panelMaterial ) ) { |
| | | GlobalOTDTable.PanelMaterial( relnew, |
| | | MacroPlan.PanelMaterial( relnew, |
| | | PanelModel := ddslPanelModel.Text(), |
| | | MaterialDescription := efMaterialDescription.Text(), |
| | | StartDate := dsStartDate.Date(), |
| | |
| | | Image: 'CLOUD_REFRESH' |
| | | Label: '鍚屾搴撳瓨鐩爣' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | | ] |
| | |
| | | #keys: '[414702.0.141615322]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( GlobalOTDTable ) and not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | WebMessageBox::Success( "鍚屾鎴愬姛", true ); |
| | | MatAttrSettingAndPlanStrategy::SynchronizeInventoryTargets( GlobalOTDTable, MacroPlan ); |
| | | |
| | | WebMessageBox::Success( "搴撳瓨鐩爣鍚屾鎴愬姛", true ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'GlobalOTDTable' |
| | | Source: 'GlobalOTDTable' |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'PanelMaterial' |
| | | ] |
| | |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListData/Responsedef_ListData_WebMenu_OnClick |
| | | Initiator: 'MenuCreate' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | GlobalOTDTable.PanelMaterial( relflush ); |
| | | MacroPlan.PanelMaterial( relflush ); |
| | | |
| | | GlobalOTDTable.RefreshPanelMaterialData( MacroPlan ); |
| | | |