haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Quintiq file version 2.0
#parent: #root
Method LoadDatasetSnapshotReplannableAlreadyDeletedRun (
  LibOpt_Run run
) id:Method_LibOpt_GlobalState_LoadDatasetSnapshotReplannableAlreadyDeletedRun
{
  #keys: '[141860.2.1020933430]'
  Body:
  [*
    // The dataset that was used to execute this run is already deleted.
    // We set the IsDatasetThatExecutedRunDeleted variable to true for this run and all other runs that were executed from the same dataset. 
    // This will ensure that a precondition is shown on the relevant context menu items.    
    LibOpt_Run::SetIsDatasetThatExecutedRunDeleted( run );
    
    MessageBox::Warning( this,
                         Translations::LibOpt_SnapshotReplannable_Precondition_DatasetDeletedRun( run, run.MDSIDRun() ),
                         Translations::LibOpt_MessageBox_OK()
                         );
  *]
}