yanweiyuan3
2023-10-16 ae6bd7d76a91411914eee114c483db88dd3a38d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  structured[Scenario] selection
) id:Response_ListScenario_MenuCreateScenario_OnClick #extension
{
  Precondition:
  [*
    return not isnull( ScenarioManager ) and selection.Element( 0 ).CanCreate( feedback, true );
  *]
  QuillAction #extension
  {
    Body:
    [*
      // To be derived - ScenarioMP
      // Create a new Scenario
      dlg := construct( DialogCreateEditScenario );
      dlg.checkboxEnableSync().Checked( false );
      dlg.checkboxEnableSync().Visible( false );
      dlg.DropDownListGeneral().Visible( false );
      dlg.checkboxIsKeyProduct().Visible( false );
      dlg.checkboxCreatePurchaseSupplyProduct().Visible( false );
      parent := selection.Element( 0 ).Parent();
      dlg.NewScenario( ScenarioManager, parent );
    *]
  }
}