lazhen
2025-01-07 b3987122cbbc46c5c59d3173f37fca3170b6dc5a
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
Quintiq file version 2.0
#parent: #root
Method Edit (
  structured[OperationInputOutputPISPNode] selection
) id:Method_DialogCreateEditPISPNodeInRouting_Edit
{
  #keys: '[139394.0.1327420986]'
  Body:
  [*
    // Edit structured operation boms
    data := shadow( selection.Element( 0 ).OperationInputOutput().OperationBOM() );
    opBOMs := selectset( selection, Elements.OperationInputOutput.OperationBOM, e, true )
    
    DataHolderDialogData.Data( &data );
    DataHolderDialogDatas.Data( opBOMs.Copy() )
    
    // Disable product dropdown for batch edit
    Form.DropDownListProduct().Enabled( opBOMs.Size() = 1, 
                                        Translations::MP_Designer_DisableSelectorForBatchEdit( 'product' ) );  // Forced to use string here
                                                                                                               // because unable to access dropdown 
                                                                                                               // label
    
    
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}