yanweiyuan3
2023-08-09 98db93a55d7079e89c706c18b15eeaecd0ec539a
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
28
29
30
31
Quintiq file version 2.0
#parent: #root
Method GetReportParameters (
  internal[GUIComponent] parent,
  NamedValueTree parameters,
  output String format
) as Number id:Method_DialogGenerateBaseReport_GetReportParameters
{
  #keys: '[107654.0.438157920]'
  Body:
  [*
    result := this.DoModal( parent );
    
    if( result > 0 )
    {
      // pack report parameters into a NamedValueTree
      start := GUIDateTimeSelectorStart.DateTime().Date();
      end := GUIDateTimeSelectorEnd.DateTime().Date();
    
      starthandle := parameters.GetHandle( "StartDate" );
      parameters.Root().AddChild( starthandle, start );
      endhandle := parameters.GetHandle( "EndDate" );
      parameters.Root().AddChild( endhandle, end );
    
      format := StringSelectionReportFormat.BoundValue();
    
    }
    
    return result;
  *]
}