hongji.li
2023-11-07 1a1ba3ad5ed9e4380185aa1ccad20204a0e5f115
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: #root
Method New (
  internal[GUIComponent] parent
) as PostponementSpecification id:Method_DialogCreateEditPostponementSpecification_New
{
  #keys: '[130036.1.306632888]'
  Body:
  [*
    // Create a new PostponementSpecification                                
    this.ShowHideComponentForBatchEdit( false );
    salesSegment := select( DataHolderChildSalesSegments.Data(), Elements, ss, true );
    
    data := salesSegment.PostponementSpecification( relshadow, SalesSegmentName := "" );
    
    Dialog.Data( data );
    
    Dialog.SetDefaultValue( null( PostponementSpecification ) );
    
    if ( Dialog.DoModal( parent ) > 0 )
    {
      data.Commit();                                             
    }
    
    return data.WrappedInstance();
  *]
}