chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
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 SetDefaultValue (
  structured[SalesSegment_MP] salesSegmentsSelected
) id:Method_DialogCreateEditFulfillmentRestriction_SetDefaultValue
{
  #keys: '[135040.0.185320559]'
  Body:
  [*
    // Set default + init dialog
    
    dialogInstance := DataHolderDialogData.Data();
    
    if ( not isnull( dialogInstance ) )
    {
      CheckboxStart.Checked( dialogInstance.StartDate().IsFinite() );
      CheckboxEnd.Checked( dialogInstance.EndDate().IsFinite( ) );
    }
    else
    {
      CheckboxStart.Checked( false );
      CheckboxEnd.Checked( false );  
      dsStart.Date( Date::MinDate() );
      dsEnd.Date( Date::MaxDate() );
    }
  *]
}