yanweiyuan3
2023-10-10 d901b1ab0ee0b690f5ac211b9cdb1db3a58bca86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Quintiq file version 2.0
#parent: ListPostponedSDCost
Response OnClick () id:Response_ListPostponedSDCost_MenuNewPostponedSalesDemandCost_OnClick
{
  #keys: '[11660.0.757984636]'
  Body:
  [*
    // Create a new PSD cost
    dlg := construct( DialogCreateEditPostponedSalesDemandCost );
    postponedsdcost := dlg.NewPostponedSalesDemandCost( this );
    
    ApplicationLibMacroPlanner.AutoExpandSelection( this, postponedsdcost );
  *]
  CanBindMultiple: false
  DefinitionID => /ListPostponedSDCost/Responsedef_ListPostponedSDCost_Menu_OnClick
  Initiator: 'MenuNewPostponedSalesDemandCost'
  Precondition:
  [*
    return Product_MP::HasProductAndHasPeriod( feedback, MacroPlan )
           and PostponedSalesDemandCost::CanCreate( feedback, DataHolderChildProducts.Data(), DataHolderChildStockingPoints.Data() );
  *]
  UserRequiresReadWrite: true
}