陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
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 EnableDisableComponents () id:Method_ScenarioManager_DialogCreateEditMPScenario_EnableDisableComponents
{
  #keys: '[133968.0.324568341]'
  Body:
  [*
    // Enable / disable components
    
    // Disable storage tab page if both database and datasetstore are disabled
    if( not Domain.MDSStorageDefinitionManager().DatasetStoreEnabled()
        and not Domain.MDSStorageDefinitionManager().DatabaseEnabled() )
    {
      TabPageStorage.DisableWithUserFeedback( Translations::MP_Designer_DisableStorageManager() );
    }
    
    // Show supply chain wizard checkbox at scenario creation
    isnew := isnull( Dialog.Data() );
    CheckBoxLaunchSupplyChainWizard.Visible( isnew );
    if( isnew )
    {
      // Set user preference
      CheckBoxLaunchSupplyChainWizard.Checked( ScenarioManager.LaunchInitializationWizardAtScenarioCreation() ); 
    }
  *]
}