yanweiyuan3
2023-10-07 e8e45927b2db7b27e0eb0cabddb7320a008b8940
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
28
Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  Scenario selection
) id:Response_ListScenario_MenuEdit_OnClick #extension
{
  Precondition:
  [*
    username := ApplicationMacroPlanner.GetUserName();
    return feedback = ''
           and selection.CanEdit( feedback )
           and selection.CanModify( username, feedback );
  *]
  QuillAction #extension
  {
    Body:
    [*
      // Edit scenario
      dlg := construct( DialogCreateEditScenario );
      dlg.dropDownStringListGeneral().Visible( selection.EnableSync() );
      dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableScenarioNames( GlobalOTDTable ) );
      dlg.checkboxIsKeyProduct().Visible( selection.EnableSync() );
      dlg.checkboxCreatePurchaseSupplyProduct().Visible( selection.EnableSync() );
      
      dlg.EditScenario( selection );
    *]
  }
}