_Main/BL/InfoMessages.qbl
@@ -106,6 +106,10 @@ { DefaultText: 'application/json' } InfoMessage InterfaceDataset_CustomerDemandPPAIDS_Name { DefaultText: 'Customer demand(PPA + IDS)' } InfoMessage InterfaceDataset_FinishedEngineInventory_Name { DefaultText: 'Finished engine inventory' _Main/BL/Relations/Relation_CustomerDemandPPAIDS_InterfaceDataset_InterfaceDataset_CustomerDema.qbl
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,23 @@ Quintiq file version 2.0 #parent: #root Relation CustomerDemandPPAIDS_InterfaceDataset_InterfaceDataset_CustomerDemandPPAIDS { #keys: '1[415136.0.1024850018]' DefaultRelationStrategy { } RelationSide.LeftSide InterfaceDataset { #keys: '3[415136.0.1024850020][415136.0.1024850019][415136.0.1024850021]' Cardinality: '0to1' ObjectDefinition: CustomerDemandPPAIDS OwningSide: 'Reference' } RelationSide.RightSide CustomerDemandPPAIDS { #keys: '3[415136.0.1024850023][415136.0.1024850022][415136.0.1024850024]' Cardinality: '1toN' ObjectDefinition: InterfaceDataset OwningSide: 'Owned' } } _Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl
@@ -1,7 +1,8 @@ Quintiq file version 2.0 #parent: #root StaticMethod GenerateData ( MacroPlan macroplan, const MacroPlan macroplan, InterfaceDataset interfaceDataset, Boolean versionflag ) { @@ -9,7 +10,16 @@ TextBody: [* // çå °é¸½ Aug-20-2024 (created) interfaceDataset.CustomerDemandPPAIDS( relflush ); nowdate := DateTime::ActualTime(); traverse( macroplan, SalesDemand.astype( Forecast ), forecast ){ interfaceDataset.CustomerDemandPPAIDS( relnew, Product := forecast.ProductID() , DemandDate := forecast.StartDate() , DemandQty := [Number]forecast.Quantity() , VersionName := macroplan.ScenarioName() , InterfaceTime := nowdate , VersionFlag := versionflag ); } *] } _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupDebug.def
@@ -31,19 +31,6 @@ Taborder: 1 ] } Component ButtonDataPush { #keys: '[415136.0.1020582499]' BaseType: 'WebButton' Children: [ #child: ContextMenuDataPush ] Properties: [ Taborder: 2 ] } ] Properties: [ _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuDataPush.def
ÎļþÒÑɾ³ý _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuInterface.def
@@ -44,10 +44,31 @@ BaseType: 'WebMenu' Properties: [ Taborder: 3 Taborder: 4 Title: '计ååºåæ°æ®æ¨éæ¥å£æµè¯' ] } Component MenuInterface367 { #keys: '[415136.0.1024980241]' BaseType: 'WebMenu' Properties: [ Separator: true Taborder: 3 ] } Component MenuCustomerDemandPPAIDS { #keys: '[415136.0.1024980263]' BaseType: 'WebMenu' Properties: [ Image: 'FLAG_AMBER' Taborder: 5 Title: 'Customer demand(PPA + IDS)' ] } ] Properties: [ _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuInterface_MenuCustomerDemandPPAIDS_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,23 @@ Quintiq file version 2.0 #parent: ContextMenuInterface/MenuCustomerDemandPPAIDS Response OnClick () id:Response_MacroPlanner_ContextMenuInterface_MenuCustomerDemandPPAIDS_OnClick { #keys: '[415136.0.1024980283]' CanBindMultiple: false DefinitionID: 'Responsedef_WebMenu_OnClick' Precondition: [* return not isnull( MacroPlan ) and not isnull( InterfaceDataset ); *] QuillAction { Body: [* dlg := construct( DialogCustomerDemandPPAIDS ); dlg.Title( Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() ); dlg.New( Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() ); *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Component_pnlActions.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,40 @@ Quintiq file version 2.0 Component pnlActions { #keys: '[415136.0.1022501788]' BaseType: 'WebPanel' Children: [ Component btnOk { #keys: '[415136.0.1022501792]' BaseType: 'WebButton' Properties: [ Label: 'OK' Taborder: 0 ] } Component btnCancel { #keys: '[415136.0.1022501794]' BaseType: 'WebButton' Properties: [ Label: 'Cancel' Taborder: 1 ] } ] Properties: [ Alignment: 'trailing' Border: true ExcludeFromActiveComponent: true FixedSize: true Orientation: 'horizontal' Padding: 'true' Style: 'footer' Taborder: 1 ] } _Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Component_pnlContent.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,37 @@ Quintiq file version 2.0 Component pnlContent { #keys: '[415136.0.1022501786]' BaseType: 'WebPanel' Children: [ Component rbgVersionFlag { #keys: '[415136.0.1022501839]' BaseType: 'WebRadioButtonGroup' Properties: [ ButtonLabels: 'åå¸çæ¬;æ±æ¥çæ¬' ButtonValues: 'true;false' Taborder: 0 Title: 'çæ¬æ è¯' ] } Component efInterfacename { #keys: '[415136.0.1022501890]' BaseType: 'WebEditField' Properties: [ Label: 'æ¥å£åç§°' Taborder: 1 Visible: false ] } ] Properties: [ Padding: 'true' Taborder: 0 ] } _Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Method_New.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,15 @@ Quintiq file version 2.0 #parent: #root Method New ( String name ) id:Method_DialogCustomerDemandPPAIDS_New { #keys: '[415136.0.1022502059]' Body: [* // Edit Product(s) efInterfacename.Text( name ); ApplicationMacroPlanner.ShowFormModal( this ); *] } _Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Method_OnOK.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,17 @@ Quintiq file version 2.0 #parent: #root Method OnOK () id:Method_DialogCustomerDemandPPAIDS_OnOK { #keys: '[415136.0.1022502154]' Body: [* // On ok Form.ApplyChanges(); if( efInterfacename.Text() = Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() ){ CustomerDemandPPAIDS::GenerateData( MacroPlan, InterfaceDataset, ifexpr( rbgVersionFlag.BoundValue() = "true", true, false ) ); } Form.Close(); *] } _Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Response_pnlActions_btnCancel_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,15 @@ Quintiq file version 2.0 #parent: pnlActions/btnCancel Response OnClick () id:Response_pnlActions_btnCancel_OnClick { #keys: '[415136.0.1022501798]' DefinitionID: 'Responsedef_WebButton_OnClick' GroupServerCalls: true QuillAction { Body: [* Form.Close(); *] } } _Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Response_pnlActions_btnOk_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,15 @@ Quintiq file version 2.0 #parent: pnlActions/btnOk Response OnClick () id:Response_pnlActions_btnOk_OnClick { #keys: '[415136.0.1022501797]' DefinitionID: 'Responsedef_WebButton_OnClick' GroupServerCalls: true QuillAction { Body: [* Form.OnOK(); *] } } _Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/_ROOT_Component_DialogCustomerDemandPPAIDS.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,23 @@ Quintiq file version 2.0 #root #parent: MacroPlannerWebApp OrphanComponent DialogCustomerDemandPPAIDS { #keys: '[415136.0.1022501784]' BaseType: 'WebForm' Children: [ #child: pnlContent #child: pnlActions ] Properties: [ Alignment: 'trailing' EnterButton: 'btnOk' EscapeButton: 'btnCancel' ExcludeFromActiveComponent: true Image: 'FLAG_AMBER' Padding: 'false' Title: 'Customer demand(PPA + IDS)' ] }