Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method Edit ( 
 | 
  structured[OperationInputSet] selection, 
 | 
  internal[GUIComponent] parent 
 | 
) id:Method_DialogCreateEditOperationInputSet_Edit_742 
 | 
{ 
 | 
  #keys: '[130256.0.409324393]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Edit input product group 
 | 
    isbatchedit := selection.Size() > 1; 
 | 
     
 | 
    data := shadow( selection.Element( 0 ) ); 
 | 
    Dialog.Data( data ); 
 | 
    Dialog.SetUOMLabel();                               
 | 
     
 | 
    // Enable / disable name editor when batch editing 
 | 
    Dialog.EnableDisableComponent( isbatchedit ); 
 | 
     
 | 
    result := Dialog.DoModal( parent ); 
 | 
     
 | 
    if( result > 0 ) 
 | 
    { 
 | 
      OperationInputSet::Update( selection, 
 | 
                                 EditorName.Text(), 
 | 
                                 ApplicationLibMacroPlanner.FormatStringToReal( EditorMinQuantity.Text(), 0.0 ), 
 | 
                                 ApplicationLibMacroPlanner.FormatStringToReal( EditorMaxQuantity.Text(), 0.0 ), 
 | 
                                 false /*isfromdb*/ ); 
 | 
     
 | 
    } 
 | 
  *] 
 | 
} 
 |