chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
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
Quintiq file version 2.0
#parent: CustomDrawRC/CustomDrawDataLayerOp
Response OnDrop (
  structured[Product_MP] source,
  Operation target
) id:Response_CustomDrawRC_CustomDrawDataLayerOp_OnDrop_715
{
  #keys: '[139394.0.1316636481]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDrop'
  QuillAction
  {
    Body:
    [*
      // Drop Product to operation to create operation input or output
      dummmyPISP := null( ProductInStockingPoint_MP );
      
      // Without control -> input
      if( not actionmodifier.IsControl() )
      {
        target.LinkProducts( source, true, dummmyPISP, false );
      }
      // Drop Product to operation + press CTRL to create operation output
      else
      {
        target.LinkProducts( source, false /*isinput*/, dummmyPISP, false );
      }
    *]
    GroupServerCalls: false
  }
}