xiaoding721
2023-11-13 e4edcfd0b987b239526f5375881b919789782dad
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
Quintiq file version 2.0
#parent: #root
Method SetCopyData (
  Scenario selection
) id:Method_ScenarioManager_DialogCreateEditMPScenario_SetCopyData
{
  #keys: '[127238.1.1145415069]'
  Body:
  [*
    // Set the default data to copy scenario
    
    this.Data( selection ); // Allows SelectionKBBranch to bind to the correct branch
    scenarioname := ScenarioManager.GetUniqueScenarioName( selection.Name() );
    EditorScenarioName.Text( scenarioname );
    
    EditorComment.Text( selection.Comment() );
    this.SetAdvanced();
    
    RadioButtonGroupStorageState.BoundValue( selection.State() );
    
    SelectionStrategy.Data( selection.SelectedStrategy() );
    
    // disabling KT since using copy method similar to web copying KB from original
    TabPageKnowledge.DisableWithUserFeedback( Translations::MP_Designer_DisableKnowledgeCopyScenario() );
  *]
}