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
32
33
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method New ( 
 |    internal[GUIComponent] parent, 
 |    Operation owner 
 |  ) as OperationInputSet id:Method_DialogCreateEditOperationInputSet_New 
 |  { 
 |    #keys: '[113694.2.228567638]' 
 |    Body: 
 |    [* 
 |      // New input product set 
 |       
 |      data := owner.OperationInputSet( relshadow, OperationID := owner.ID(), Name := "" );// Temporary set Name to empty, will be filled in by user 
 |       
 |      Dialog.Data( data ); 
 |      Dialog.SetUOMLabel(); 
 |       
 |      result := Dialog.DoModal( parent ); 
 |      newobj := null( OperationInputSet ); 
 |       
 |      if( result > 0 ) 
 |      { 
 |        newobj := OperationInputSet::Create( owner, 
 |                                             EditorName.Text(), 
 |                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorMinQuantity.Text(), 0.0 ), 
 |                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorMaxQuantity.Text(), 0.0 ), 
 |                                             false /*isfromdb*/ ); 
 |       
 |      } 
 |       
 |      return newobj; 
 |    *] 
 |  } 
 |  
  |