1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod AllowedDragDropUnit ( 
 |    LibUTF_IterationRun run, 
 |    MacroPlan macroplan, 
 |    Boolean checkallowed, 
 |    String unitids 
 |  ) 
 |  { 
 |    TextBody: 
 |    [* 
 |      units := UI_Unit::FindMultiple( run, macroplan, unitids );  
 |       
 |      feedback_o := ''; 
 |       
 |      allowed := Lane::CanCreate( feedback_o, macroplan ) 
 |                   and Lane::CanCreateFromUnits( feedback_o, units ); 
 |       
 |      text := ifexpr( allowed, 'Drag and drop Units to create Lane Precondition check: ' + unitids, feedback_o );  
 |       
 |      UI_Utility::ValidateTrue( run, checkallowed, allowed, text ); 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |