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
32
33
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*/ );
    
    }
  *]
}